@spritz-finance/api-client 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,7 +195,7 @@ query UserBankAccounts {
|
|
|
195
195
|
...BankAccountFragment
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Rm={};function nE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Rm[t]?!1:(Rm[t]=!0,!0)})}it.definitions=it.definitions.concat(nE(ti.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){gu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){gu(u,n)}),e.definitions&&e.definitions.forEach(function(u){gu(u,n)})}var Qo={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Qo[n.name.value]=t}})})();function jm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function tE(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}tE(it,"UserBankAccounts");function iE(e){throw new Error(e)}var uE=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(uE||{}),Lm=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Lm||{}),Zm=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Zm||{}),ut=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ut||{}),Vm=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Vm||{}),qm=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(qm||{}),Mm=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(Mm||{}),rt=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(rt||{}),rE=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(rE||{}),aE=(e=>(e.Provider="Provider",e.User="User",e))(aE||{}),Gm=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(Gm||{}),Jm=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(Jm||{}),Qm=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Qm||{}),Ho=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Ho||{});const oE=fe.object({transitNumber:fe.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:fe.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),sE=fe.object({routingNumber:fe.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),cE=fe.object({iban:fe.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),lE=fe.object({sortCode:fe.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),dE={[ut.CABankAccount]:oE,[ut.USBankAccount]:sE,[ut.IbanAccount]:cE,[ut.UKBankAccount]:lE};class fE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.bankAccounts??[]}async rename(n,t){return(await this.client.query({query:tt,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:ln,variables:{accountId:n}}))?.deletePayableAccount??null}async createLinkToken(){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-token"})}async completeLinking(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-complete",body:n})}async create(n,t){const u=dE[n]??iE("Invalid bank account type");try{const i=u.parse(t);return(await this.client.query({query:nt,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name??null,type:n,subType:t.subType,details:i,email:t.email??null,ownedByUser:t.ownedByUser??null}}}))?.createBankAccount??null}catch(i){throw i instanceof fe.ZodError?new Error(i?.issues?.[0]?.message??"Input validation failure"):i}}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};ii.loc.source={body:`fragment BillFragment on Bill {
|
|
198
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Rm={};function nE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Rm[t]?!1:(Rm[t]=!0,!0)})}it.definitions=it.definitions.concat(nE(ti.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){gu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){gu(u,n)}),e.definitions&&e.definitions.forEach(function(u){gu(u,n)})}var Qo={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Qo[n.name.value]=t}})})();function jm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function tE(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}tE(it,"UserBankAccounts");function iE(e){throw new Error(e)}var uE=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(uE||{}),Lm=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Lm||{}),Zm=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Zm||{}),ut=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ut||{}),Vm=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Vm||{}),qm=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(qm||{}),Mm=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(Mm||{}),rt=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(rt||{}),rE=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(rE||{}),aE=(e=>(e.Provider="Provider",e.User="User",e))(aE||{}),Gm=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(Gm||{}),Jm=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(Jm||{}),Qm=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Qm||{}),Ho=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Ho||{});const oE=fe.object({transitNumber:fe.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:fe.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),sE=fe.object({routingNumber:fe.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),cE=fe.object({iban:fe.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),lE=fe.object({sortCode:fe.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),dE={[ut.CABankAccount]:oE,[ut.USBankAccount]:sE,[ut.IbanAccount]:cE,[ut.UKBankAccount]:lE};class fE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.bankAccounts??[]}async rename(n,t){return(await this.client.query({query:tt,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:ln,variables:{accountId:n}}))?.deletePayableAccount??null}async createLinkToken(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-token",body:n})}async completeLinking(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-complete",body:n})}async create(n,t){const u=dE[n]??iE("Invalid bank account type");try{const i=u.parse(t);return(await this.client.query({query:nt,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name??null,type:n,subType:t.subType,details:i,email:t.email??null,ownedByUser:t.ownedByUser??null}}}))?.createBankAccount??null}catch(i){throw i instanceof fe.ZodError?new Error(i?.issues?.[0]?.message??"Input validation failure"):i}}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};ii.loc.source={body:`fragment BillFragment on Bill {
|
|
199
199
|
id
|
|
200
200
|
name
|
|
201
201
|
userId
|
|
@@ -7187,11 +7187,31 @@ interface operations {
|
|
|
7187
7187
|
*/
|
|
7188
7188
|
bankAccountId: string;
|
|
7189
7189
|
/**
|
|
7190
|
-
* @description Institution name used for funding source display
|
|
7190
|
+
* @description Institution name used for funding source display. Prefer `institution.name` when present; this field will be removed in a future release.
|
|
7191
7191
|
* @example Plaid Test Bank
|
|
7192
7192
|
* @example null
|
|
7193
7193
|
*/
|
|
7194
7194
|
institutionName: string | null;
|
|
7195
|
+
/** @description Branding metadata for the institution backing the funding source, or null when no institution data is available. */
|
|
7196
|
+
institution: {
|
|
7197
|
+
/**
|
|
7198
|
+
* @description Display name for the institution
|
|
7199
|
+
* @example Chase
|
|
7200
|
+
*/
|
|
7201
|
+
name: string;
|
|
7202
|
+
/**
|
|
7203
|
+
* @description Absolute URL to the institution's logo (PNG). Null when the institution has no logo on file.
|
|
7204
|
+
* @example https://assets.platform.spritz.finance/institutions/ins_109508.png
|
|
7205
|
+
* @example null
|
|
7206
|
+
*/
|
|
7207
|
+
logoUrl: string | null;
|
|
7208
|
+
/**
|
|
7209
|
+
* @description Hex color (e.g. `#1e88e5`) representing the institution's brand. Null when unavailable.
|
|
7210
|
+
* @example #1e88e5
|
|
7211
|
+
* @example null
|
|
7212
|
+
*/
|
|
7213
|
+
primaryColor: string | null;
|
|
7214
|
+
} | null;
|
|
7195
7215
|
/**
|
|
7196
7216
|
* @description Last 4 digits of the linked bank account number
|
|
7197
7217
|
* @example 6789
|
|
@@ -7550,11 +7570,31 @@ interface operations {
|
|
|
7550
7570
|
*/
|
|
7551
7571
|
bankAccountId: string;
|
|
7552
7572
|
/**
|
|
7553
|
-
* @description Institution name used for funding source display
|
|
7573
|
+
* @description Institution name used for funding source display. Prefer `institution.name` when present; this field will be removed in a future release.
|
|
7554
7574
|
* @example Plaid Test Bank
|
|
7555
7575
|
* @example null
|
|
7556
7576
|
*/
|
|
7557
7577
|
institutionName: string | null;
|
|
7578
|
+
/** @description Branding metadata for the institution backing the funding source, or null when no institution data is available. */
|
|
7579
|
+
institution: {
|
|
7580
|
+
/**
|
|
7581
|
+
* @description Display name for the institution
|
|
7582
|
+
* @example Chase
|
|
7583
|
+
*/
|
|
7584
|
+
name: string;
|
|
7585
|
+
/**
|
|
7586
|
+
* @description Absolute URL to the institution's logo (PNG). Null when the institution has no logo on file.
|
|
7587
|
+
* @example https://assets.platform.spritz.finance/institutions/ins_109508.png
|
|
7588
|
+
* @example null
|
|
7589
|
+
*/
|
|
7590
|
+
logoUrl: string | null;
|
|
7591
|
+
/**
|
|
7592
|
+
* @description Hex color (e.g. `#1e88e5`) representing the institution's brand. Null when unavailable.
|
|
7593
|
+
* @example #1e88e5
|
|
7594
|
+
* @example null
|
|
7595
|
+
*/
|
|
7596
|
+
primaryColor: string | null;
|
|
7597
|
+
} | null;
|
|
7558
7598
|
/**
|
|
7559
7599
|
* @description Last 4 digits of the linked bank account number
|
|
7560
7600
|
* @example 6789
|
|
@@ -9481,7 +9521,34 @@ interface operations {
|
|
|
9481
9521
|
path?: never;
|
|
9482
9522
|
cookie?: never;
|
|
9483
9523
|
};
|
|
9484
|
-
requestBody
|
|
9524
|
+
requestBody: {
|
|
9525
|
+
content: {
|
|
9526
|
+
"application/json": {
|
|
9527
|
+
/**
|
|
9528
|
+
* @description Plaid OAuth redirect target. For web, use a URL. For iOS, use a universal link. For Android, use the package name.
|
|
9529
|
+
* @example https://app.example.com/plaid/oauth-return
|
|
9530
|
+
* @example com.example.app
|
|
9531
|
+
*/
|
|
9532
|
+
redirectUri?: string;
|
|
9533
|
+
} | Record<string, never>;
|
|
9534
|
+
"application/x-www-form-urlencoded": {
|
|
9535
|
+
/**
|
|
9536
|
+
* @description Plaid OAuth redirect target. For web, use a URL. For iOS, use a universal link. For Android, use the package name.
|
|
9537
|
+
* @example https://app.example.com/plaid/oauth-return
|
|
9538
|
+
* @example com.example.app
|
|
9539
|
+
*/
|
|
9540
|
+
redirectUri?: string;
|
|
9541
|
+
} | Record<string, never>;
|
|
9542
|
+
"multipart/form-data": {
|
|
9543
|
+
/**
|
|
9544
|
+
* @description Plaid OAuth redirect target. For web, use a URL. For iOS, use a universal link. For Android, use the package name.
|
|
9545
|
+
* @example https://app.example.com/plaid/oauth-return
|
|
9546
|
+
* @example com.example.app
|
|
9547
|
+
*/
|
|
9548
|
+
redirectUri?: string;
|
|
9549
|
+
} | Record<string, never>;
|
|
9550
|
+
};
|
|
9551
|
+
};
|
|
9485
9552
|
responses: {
|
|
9486
9553
|
/** @description Response for status 200 */
|
|
9487
9554
|
200: {
|
|
@@ -25063,6 +25130,7 @@ interface RenameBankAccount_renamePayableAccount_BankAccount {
|
|
|
25063
25130
|
}
|
|
25064
25131
|
|
|
25065
25132
|
type LinkTokenResponse = PathResponse<'/v1/bank-accounts/link-token', 'post'>;
|
|
25133
|
+
type CreateLinkTokenRequest = PathRequestBody<'/v1/bank-accounts/link-token', 'post'>;
|
|
25066
25134
|
type CompleteLinkingRequest = PathRequestBody<'/v1/bank-accounts/link-complete', 'post'>;
|
|
25067
25135
|
type BaseBankAccountInput = Omit<BankAccountInput, 'details' | 'type'>;
|
|
25068
25136
|
type UsBankAccountInput = BaseBankAccountInput & {
|
|
@@ -25088,7 +25156,7 @@ declare class BankAccountService {
|
|
|
25088
25156
|
list(): Promise<UserBankAccounts_bankAccounts[]>;
|
|
25089
25157
|
rename(accountId: string, name: string): Promise<RenameBankAccount_renamePayableAccount_BankAccount>;
|
|
25090
25158
|
delete(accountId: string): Promise<DeletePayableAccount_deletePayableAccount_BankAccount>;
|
|
25091
|
-
createLinkToken(): Promise<{
|
|
25159
|
+
createLinkToken(input?: CreateLinkTokenRequest): Promise<{
|
|
25092
25160
|
linkToken: string;
|
|
25093
25161
|
hostedLinkUrl: string | null;
|
|
25094
25162
|
expiration: string;
|
|
@@ -25357,6 +25425,11 @@ declare class FundingSourceService {
|
|
|
25357
25425
|
id: string;
|
|
25358
25426
|
bankAccountId: string;
|
|
25359
25427
|
institutionName: string | null;
|
|
25428
|
+
institution: {
|
|
25429
|
+
name: string;
|
|
25430
|
+
logoUrl: string | null;
|
|
25431
|
+
primaryColor: string | null;
|
|
25432
|
+
} | null;
|
|
25360
25433
|
accountNumberLast4: string | null;
|
|
25361
25434
|
accountType: "checking" | "savings" | "business" | "unknown";
|
|
25362
25435
|
status: "pending" | "active" | "review_required" | "ineligible" | "disabled";
|
|
@@ -25368,6 +25441,11 @@ declare class FundingSourceService {
|
|
|
25368
25441
|
id: string;
|
|
25369
25442
|
bankAccountId: string;
|
|
25370
25443
|
institutionName: string | null;
|
|
25444
|
+
institution: {
|
|
25445
|
+
name: string;
|
|
25446
|
+
logoUrl: string | null;
|
|
25447
|
+
primaryColor: string | null;
|
|
25448
|
+
} | null;
|
|
25371
25449
|
accountNumberLast4: string | null;
|
|
25372
25450
|
accountType: "checking" | "savings" | "business" | "unknown";
|
|
25373
25451
|
status: "pending" | "active" | "review_required" | "ineligible" | "disabled";
|
|
@@ -195,7 +195,7 @@ query UserBankAccounts {
|
|
|
195
195
|
...BankAccountFragment
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Pm={};function tE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Pm[t]?!1:(Pm[t]=!0,!0)})}it.definitions=it.definitions.concat(tE(ti.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){gu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){gu(u,n)}),e.definitions&&e.definitions.forEach(function(u){gu(u,n)})}var Qo={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Qo[n.name.value]=t}})})();function Rm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function iE(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}iE(it,"UserBankAccounts");function uE(e){throw new Error(e)}var rE=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(rE||{}),jm=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(jm||{}),Lm=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Lm||{}),ut=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ut||{}),Zm=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Zm||{}),Vm=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(Vm||{}),qm=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(qm||{}),rt=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(rt||{}),aE=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(aE||{}),oE=(e=>(e.Provider="Provider",e.User="User",e))(oE||{}),Mm=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(Mm||{}),Gm=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(Gm||{}),Jm=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Jm||{}),Ho=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Ho||{});const sE=fe.object({transitNumber:fe.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:fe.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),cE=fe.object({routingNumber:fe.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),lE=fe.object({iban:fe.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),dE=fe.object({sortCode:fe.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),fE={[ut.CABankAccount]:sE,[ut.USBankAccount]:cE,[ut.IbanAccount]:lE,[ut.UKBankAccount]:dE};class mE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.bankAccounts??[]}async rename(n,t){return(await this.client.query({query:tt,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:ln,variables:{accountId:n}}))?.deletePayableAccount??null}async createLinkToken(){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-token"})}async completeLinking(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-complete",body:n})}async create(n,t){const u=fE[n]??uE("Invalid bank account type");try{const i=u.parse(t);return(await this.client.query({query:nt,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name??null,type:n,subType:t.subType,details:i,email:t.email??null,ownedByUser:t.ownedByUser??null}}}))?.createBankAccount??null}catch(i){throw i instanceof fe.ZodError?new Error(i?.issues?.[0]?.message??"Input validation failure"):i}}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};ii.loc.source={body:`fragment BillFragment on Bill {
|
|
198
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Pm={};function tE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Pm[t]?!1:(Pm[t]=!0,!0)})}it.definitions=it.definitions.concat(tE(ti.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){gu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){gu(u,n)}),e.definitions&&e.definitions.forEach(function(u){gu(u,n)})}var Qo={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Qo[n.name.value]=t}})})();function Rm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function iE(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}iE(it,"UserBankAccounts");function uE(e){throw new Error(e)}var rE=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(rE||{}),jm=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(jm||{}),Lm=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Lm||{}),ut=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ut||{}),Zm=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Zm||{}),Vm=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(Vm||{}),qm=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(qm||{}),rt=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(rt||{}),aE=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(aE||{}),oE=(e=>(e.Provider="Provider",e.User="User",e))(oE||{}),Mm=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(Mm||{}),Gm=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(Gm||{}),Jm=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Jm||{}),Ho=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Ho||{});const sE=fe.object({transitNumber:fe.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:fe.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),cE=fe.object({routingNumber:fe.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),lE=fe.object({iban:fe.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),dE=fe.object({sortCode:fe.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),fE={[ut.CABankAccount]:sE,[ut.USBankAccount]:cE,[ut.IbanAccount]:lE,[ut.UKBankAccount]:dE};class mE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.bankAccounts??[]}async rename(n,t){return(await this.client.query({query:tt,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:ln,variables:{accountId:n}}))?.deletePayableAccount??null}async createLinkToken(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-token",body:n})}async completeLinking(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-complete",body:n})}async create(n,t){const u=fE[n]??uE("Invalid bank account type");try{const i=u.parse(t);return(await this.client.query({query:nt,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name??null,type:n,subType:t.subType,details:i,email:t.email??null,ownedByUser:t.ownedByUser??null}}}))?.createBankAccount??null}catch(i){throw i instanceof fe.ZodError?new Error(i?.issues?.[0]?.message??"Input validation failure"):i}}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};ii.loc.source={body:`fragment BillFragment on Bill {
|
|
199
199
|
id
|
|
200
200
|
name
|
|
201
201
|
userId
|