@spritz-finance/api-client 0.2.6 → 0.2.8
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.
|
@@ -156,6 +156,9 @@ interface AccountPayments_paymentsForAccount {
|
|
|
156
156
|
createdAt: any;
|
|
157
157
|
deliveryMethod: PaymentDeliveryMethod | null;
|
|
158
158
|
paymentRequestId: string | null;
|
|
159
|
+
targetCurrency: string | null;
|
|
160
|
+
targetCurrencyAmount: number;
|
|
161
|
+
targetCurrencyRate: number | null;
|
|
159
162
|
}
|
|
160
163
|
interface AccountPayments {
|
|
161
164
|
paymentsForAccount: AccountPayments_paymentsForAccount[];
|
|
@@ -423,6 +426,9 @@ interface Payment_payment {
|
|
|
423
426
|
createdAt: any;
|
|
424
427
|
deliveryMethod: PaymentDeliveryMethod | null;
|
|
425
428
|
paymentRequestId: string | null;
|
|
429
|
+
targetCurrency: string | null;
|
|
430
|
+
targetCurrencyAmount: number;
|
|
431
|
+
targetCurrencyRate: number | null;
|
|
426
432
|
}
|
|
427
433
|
interface Payment {
|
|
428
434
|
payment: Payment_payment | null;
|
|
@@ -442,6 +448,9 @@ interface PaymentFragment {
|
|
|
442
448
|
createdAt: any;
|
|
443
449
|
deliveryMethod: PaymentDeliveryMethod | null;
|
|
444
450
|
paymentRequestId: string | null;
|
|
451
|
+
targetCurrency: string | null;
|
|
452
|
+
targetCurrencyAmount: number;
|
|
453
|
+
targetCurrencyRate: number | null;
|
|
445
454
|
}
|
|
446
455
|
|
|
447
456
|
interface PaymentRequestFragment {
|
|
@@ -456,6 +465,9 @@ interface PaymentRequestFragment {
|
|
|
456
465
|
network: string;
|
|
457
466
|
createdAt: any;
|
|
458
467
|
deliveryMethod: string | null;
|
|
468
|
+
targetCurrency: string | null;
|
|
469
|
+
targetCurrencyAmount: number;
|
|
470
|
+
targetCurrencyRate: number;
|
|
459
471
|
}
|
|
460
472
|
|
|
461
473
|
interface PaymentRequestPayment_paymentForPaymentRequest {
|
|
@@ -469,6 +481,9 @@ interface PaymentRequestPayment_paymentForPaymentRequest {
|
|
|
469
481
|
createdAt: any;
|
|
470
482
|
deliveryMethod: PaymentDeliveryMethod | null;
|
|
471
483
|
paymentRequestId: string | null;
|
|
484
|
+
targetCurrency: string | null;
|
|
485
|
+
targetCurrencyAmount: number;
|
|
486
|
+
targetCurrencyRate: number | null;
|
|
472
487
|
}
|
|
473
488
|
interface PaymentRequestPayment {
|
|
474
489
|
paymentForPaymentRequest: PaymentRequestPayment_paymentForPaymentRequest | null;
|
|
@@ -1158,6 +1173,9 @@ interface CreatePaymentRequest_createDirectPayment {
|
|
|
1158
1173
|
network: string;
|
|
1159
1174
|
createdAt: any;
|
|
1160
1175
|
deliveryMethod: string | null;
|
|
1176
|
+
targetCurrency: string | null;
|
|
1177
|
+
targetCurrencyAmount: number;
|
|
1178
|
+
targetCurrencyRate: number;
|
|
1161
1179
|
}
|
|
1162
1180
|
|
|
1163
1181
|
declare enum PaymentNetwork {
|
|
@@ -238,7 +238,7 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
|
238
238
|
...PayableAccountInstitutionFragment
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ta={};function xo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ta[t]?!1:(ta[t]=!0,!0)})}Ae.definitions=Ae.definitions.concat(xo(Ke.definitions));function Rn(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(i){Rn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Rn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Rn(i,n)})}var Et={};(function(){Ae.definitions.forEach(function(n){if(n.name){var t=new Set;Rn(n,t),Et[n.name.value]=t}})})();function ia(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Mo(e,n){var t={kind:e.kind,definitions:[ia(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Et[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Et[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=ia(e,o);s&&t.definitions.push(s)}),t}Mo(Ae,"SearchUSBillInstitutions");class jo{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:Fe,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:Ae,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}var Oe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]}]}}],loc:{start:0,end:
|
|
241
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ta={};function xo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ta[t]?!1:(ta[t]=!0,!0)})}Ae.definitions=Ae.definitions.concat(xo(Ke.definitions));function Rn(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(i){Rn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Rn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Rn(i,n)})}var Et={};(function(){Ae.definitions.forEach(function(n){if(n.name){var t=new Set;Rn(n,t),Et[n.name.value]=t}})})();function ia(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Mo(e,n){var t={kind:e.kind,definitions:[ia(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Et[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Et[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=ia(e,o);s&&t.definitions.push(s)}),t}Mo(Ae,"SearchUSBillInstitutions");class jo{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:Fe,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:Ae,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}var Oe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]}]}}],loc:{start:0,end:229}};Oe.loc.source={body:`fragment PaymentFragment on Payment {
|
|
242
242
|
id
|
|
243
243
|
userId
|
|
244
244
|
status
|
|
@@ -248,6 +248,9 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
|
248
248
|
createdAt
|
|
249
249
|
deliveryMethod
|
|
250
250
|
paymentRequestId
|
|
251
|
+
targetCurrency
|
|
252
|
+
targetCurrencyAmount
|
|
253
|
+
targetCurrencyRate
|
|
251
254
|
}
|
|
252
255
|
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function _n(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(i){_n(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){_n(i,n)}),e.definitions&&e.definitions.forEach(function(i){_n(i,n)})}var wt={};(function(){Oe.definitions.forEach(function(n){if(n.name){var t=new Set;_n(n,t),wt[n.name.value]=t}})})();function aa(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Go(e,n){var t={kind:e.kind,definitions:[aa(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=wt[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=wt[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=aa(e,o);s&&t.definitions.push(s)}),t}Go(Oe,"PaymentFragment");var Re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PaymentRequestPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentForPaymentRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};Re.loc.source={body:`#import "./paymentFragment.graphql"
|
|
253
256
|
|
|
@@ -270,7 +273,7 @@ query Payment($paymentId: String!) {
|
|
|
270
273
|
...PaymentFragment
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ca={};function Yo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ca[t]?!1:(ca[t]=!0,!0)})}Le.definitions=Le.definitions.concat(Yo(Oe.definitions));function Bn(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(i){Bn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Bn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Bn(i,n)})}var Ft={};(function(){Le.definitions.forEach(function(n){if(n.name){var t=new Set;Bn(n,t),Ft[n.name.value]=t}})})();function la(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Ko(e,n){var t={kind:e.kind,definitions:[la(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Ft[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Ft[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=la(e,o);s&&t.definitions.push(s)}),t}Ko(Le,"Payment");class Xo{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:_e,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:Le,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:Re,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}}var Vn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]}]}}],loc:{start:0,end:
|
|
276
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ca={};function Yo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ca[t]?!1:(ca[t]=!0,!0)})}Le.definitions=Le.definitions.concat(Yo(Oe.definitions));function Bn(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(i){Bn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Bn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Bn(i,n)})}var Ft={};(function(){Le.definitions.forEach(function(n){if(n.name){var t=new Set;Bn(n,t),Ft[n.name.value]=t}})})();function la(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Ko(e,n){var t={kind:e.kind,definitions:[la(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Ft[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Ft[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=la(e,o);s&&t.definitions.push(s)}),t}Ko(Le,"Payment");class Xo{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:_e,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:Le,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:Re,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}}var Vn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]}]}}],loc:{start:0,end:247}};Vn.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
|
|
274
277
|
id
|
|
275
278
|
userId
|
|
276
279
|
accountId
|
|
@@ -281,6 +284,9 @@ query Payment($paymentId: String!) {
|
|
|
281
284
|
network
|
|
282
285
|
createdAt
|
|
283
286
|
deliveryMethod
|
|
287
|
+
targetCurrency
|
|
288
|
+
targetCurrencyAmount
|
|
289
|
+
targetCurrencyRate
|
|
284
290
|
}
|
|
285
291
|
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Un(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(i){Un(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Un(i,n)}),e.definitions&&e.definitions.forEach(function(i){Un(i,n)})}var At={};(function(){Vn.definitions.forEach(function(n){if(n.name){var t=new Set;Un(n,t),At[n.name.value]=t}})})();function da(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Wo(e,n){var t={kind:e.kind,definitions:[da(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=At[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=At[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=da(e,o);s&&t.definitions.push(s)}),t}Wo(Vn,"PaymentRequestFragment");var fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateDirectPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDirectPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentRequestFragment"},directives:[]}]}}]}}],loc:{start:0,end:260}};fe.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
|
|
286
292
|
|
|
@@ -347,7 +353,7 @@ query CurrentUser {
|
|
|
347
353
|
}
|
|
348
354
|
}
|
|
349
355
|
}
|
|
350
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qn(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(i){Qn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Qn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Qn(i,n)})}var Vt={};(function(){Gn.definitions.forEach(function(n){if(n.name){var t=new Set;Qn(n,t),Vt[n.name.value]=t}})})();function Sa(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function ys(e,n){var t={kind:e.kind,definitions:[Sa(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Vt[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Vt[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=Sa(e,o);s&&t.definitions.push(s)}),t}ys(Gn,"UserVerification");class ks{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/
|
|
356
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qn(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(i){Qn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Qn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Qn(i,n)})}var Vt={};(function(){Gn.definitions.forEach(function(n){if(n.name){var t=new Set;Qn(n,t),Vt[n.name.value]=t}})})();function Sa(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function ys(e,n){var t={kind:e.kind,definitions:[Sa(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Vt[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Vt[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=Sa(e,o);s&&t.definitions.push(s)}),t}ys(Gn,"UserVerification");class ks{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getCurrentUser(){return(await this.client.query({query:Pe}))?.me??null}async getUserVerification(){return(await this.client.query({query:Gn}))?.verification??null}}var Xe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},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:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:408}};Xe.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
|
|
351
357
|
id
|
|
352
358
|
name
|
|
353
359
|
userId
|
|
@@ -238,7 +238,7 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
|
238
238
|
...PayableAccountInstitutionFragment
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ta={};function xo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ta[t]?!1:(ta[t]=!0,!0)})}Ae.definitions=Ae.definitions.concat(xo(Ke.definitions));function Rn(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(i){Rn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Rn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Rn(i,n)})}var Et={};(function(){Ae.definitions.forEach(function(n){if(n.name){var t=new Set;Rn(n,t),Et[n.name.value]=t}})})();function ia(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Mo(e,n){var t={kind:e.kind,definitions:[ia(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Et[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Et[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=ia(e,o);s&&t.definitions.push(s)}),t}Mo(Ae,"SearchUSBillInstitutions");class jo{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:Fe,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:Ae,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}var Oe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]}]}}],loc:{start:0,end:
|
|
241
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ta={};function xo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ta[t]?!1:(ta[t]=!0,!0)})}Ae.definitions=Ae.definitions.concat(xo(Ke.definitions));function Rn(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(i){Rn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Rn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Rn(i,n)})}var Et={};(function(){Ae.definitions.forEach(function(n){if(n.name){var t=new Set;Rn(n,t),Et[n.name.value]=t}})})();function ia(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Mo(e,n){var t={kind:e.kind,definitions:[ia(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Et[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Et[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=ia(e,o);s&&t.definitions.push(s)}),t}Mo(Ae,"SearchUSBillInstitutions");class jo{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:Fe,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:Ae,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}var Oe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]}]}}],loc:{start:0,end:229}};Oe.loc.source={body:`fragment PaymentFragment on Payment {
|
|
242
242
|
id
|
|
243
243
|
userId
|
|
244
244
|
status
|
|
@@ -248,6 +248,9 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
|
248
248
|
createdAt
|
|
249
249
|
deliveryMethod
|
|
250
250
|
paymentRequestId
|
|
251
|
+
targetCurrency
|
|
252
|
+
targetCurrencyAmount
|
|
253
|
+
targetCurrencyRate
|
|
251
254
|
}
|
|
252
255
|
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function _n(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(i){_n(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){_n(i,n)}),e.definitions&&e.definitions.forEach(function(i){_n(i,n)})}var wt={};(function(){Oe.definitions.forEach(function(n){if(n.name){var t=new Set;_n(n,t),wt[n.name.value]=t}})})();function aa(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Go(e,n){var t={kind:e.kind,definitions:[aa(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=wt[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=wt[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=aa(e,o);s&&t.definitions.push(s)}),t}Go(Oe,"PaymentFragment");var Re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PaymentRequestPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentForPaymentRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};Re.loc.source={body:`#import "./paymentFragment.graphql"
|
|
253
256
|
|
|
@@ -270,7 +273,7 @@ query Payment($paymentId: String!) {
|
|
|
270
273
|
...PaymentFragment
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ca={};function Yo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ca[t]?!1:(ca[t]=!0,!0)})}Le.definitions=Le.definitions.concat(Yo(Oe.definitions));function Bn(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(i){Bn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Bn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Bn(i,n)})}var Ft={};(function(){Le.definitions.forEach(function(n){if(n.name){var t=new Set;Bn(n,t),Ft[n.name.value]=t}})})();function la(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Ko(e,n){var t={kind:e.kind,definitions:[la(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Ft[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Ft[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=la(e,o);s&&t.definitions.push(s)}),t}Ko(Le,"Payment");class Xo{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:_e,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:Le,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:Re,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}}var Vn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]}]}}],loc:{start:0,end:
|
|
276
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ca={};function Yo(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ca[t]?!1:(ca[t]=!0,!0)})}Le.definitions=Le.definitions.concat(Yo(Oe.definitions));function Bn(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(i){Bn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Bn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Bn(i,n)})}var Ft={};(function(){Le.definitions.forEach(function(n){if(n.name){var t=new Set;Bn(n,t),Ft[n.name.value]=t}})})();function la(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Ko(e,n){var t={kind:e.kind,definitions:[la(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Ft[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Ft[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=la(e,o);s&&t.definitions.push(s)}),t}Ko(Le,"Payment");class Xo{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:_e,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:Le,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:Re,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}}var Vn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]}]}}],loc:{start:0,end:247}};Vn.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
|
|
274
277
|
id
|
|
275
278
|
userId
|
|
276
279
|
accountId
|
|
@@ -281,6 +284,9 @@ query Payment($paymentId: String!) {
|
|
|
281
284
|
network
|
|
282
285
|
createdAt
|
|
283
286
|
deliveryMethod
|
|
287
|
+
targetCurrency
|
|
288
|
+
targetCurrencyAmount
|
|
289
|
+
targetCurrencyRate
|
|
284
290
|
}
|
|
285
291
|
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Un(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(i){Un(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Un(i,n)}),e.definitions&&e.definitions.forEach(function(i){Un(i,n)})}var At={};(function(){Vn.definitions.forEach(function(n){if(n.name){var t=new Set;Un(n,t),At[n.name.value]=t}})})();function da(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Wo(e,n){var t={kind:e.kind,definitions:[da(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=At[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=At[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=da(e,o);s&&t.definitions.push(s)}),t}Wo(Vn,"PaymentRequestFragment");var fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateDirectPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDirectPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentRequestFragment"},directives:[]}]}}]}}],loc:{start:0,end:260}};fe.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
|
|
286
292
|
|
|
@@ -347,7 +353,7 @@ query CurrentUser {
|
|
|
347
353
|
}
|
|
348
354
|
}
|
|
349
355
|
}
|
|
350
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qn(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(i){Qn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Qn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Qn(i,n)})}var Vt={};(function(){Gn.definitions.forEach(function(n){if(n.name){var t=new Set;Qn(n,t),Vt[n.name.value]=t}})})();function Sa(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function ys(e,n){var t={kind:e.kind,definitions:[Sa(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Vt[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Vt[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=Sa(e,o);s&&t.definitions.push(s)}),t}ys(Gn,"UserVerification");class ks{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/
|
|
356
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qn(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(i){Qn(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Qn(i,n)}),e.definitions&&e.definitions.forEach(function(i){Qn(i,n)})}var Vt={};(function(){Gn.definitions.forEach(function(n){if(n.name){var t=new Set;Qn(n,t),Vt[n.name.value]=t}})})();function Sa(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function ys(e,n){var t={kind:e.kind,definitions:[Sa(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Vt[n]||new Set,a=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var u=r;r=new Set,u.forEach(function(o){if(!a.has(o)){a.add(o);var s=Vt[o]||new Set;s.forEach(function(c){r.add(c)})}})}return a.forEach(function(o){var s=Sa(e,o);s&&t.definitions.push(s)}),t}ys(Gn,"UserVerification");class ks{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getCurrentUser(){return(await this.client.query({query:Pe}))?.me??null}async getUserVerification(){return(await this.client.query({query:Gn}))?.verification??null}}var Xe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},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:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:408}};Xe.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
|
|
351
357
|
id
|
|
352
358
|
name
|
|
353
359
|
userId
|
package/package.json
CHANGED