var a,t,s;!function(a){a.ECOM="ecom",a.BNPL="bnpl",a.APPLE_PAY="apple_pay",a.GOOGLE_PAY="google_pay"}(a||(a={})),function(a){a.CARD="card",a.BANK_ACCOUNT="bank_account",a.APPLE_PAY="apple_pay",a.GOOGLE_PAY="google_pay",a.SEZZLE="sezzle",a.PLAID="plaid"}(t||(t={})),function(a){a.SAVED_CARD="saved_card",a.NEW_CARD="new_card",a.SAVED_BANK_ACCOUNT="saved_bank_account",a.NEW_BANK_ACCOUNT="new_bank_account",a.APPLE_PAY="apple_pay",a.GOOGLE_PAY="google_pay",a.SEZZLE="sezzle",a.PLAID="plaid"}(s||(s={}));class e{constructor(a){this.id=a.id,this.type=(a=>{switch(a){case t.CARD:return s.SAVED_CARD;case t.BANK_ACCOUNT:return s.SAVED_BANK_ACCOUNT;default:return a}})(a.type),this.status=a.status,this.invalid_reason=a.invalid_reason,this.name=a.name,this.brand=a.brand,this.acct_last_four=a.acct_last_four,this.account_type=a.account_type,this.month=a.month,this.year=a.year,this.address_line1_check=a.address_line1_check,this.address_postal_code_check=a.address_postal_code_check,this.bin_details=a.bin_details}}export{s as P,e as a,a as b}