@getivy/node-sdk 1.1.0 → 1.3.0

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/index.d.mts +0 -6
  3. package/index.d.ts +0 -6
  4. package/index.d.ts.map +1 -1
  5. package/index.js +0 -6
  6. package/index.js.map +1 -1
  7. package/index.mjs +0 -6
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/beneficiary-payouts.d.ts +8 -6
  11. package/resources/beneficiary-payouts.d.ts.map +1 -1
  12. package/resources/beneficiary-payouts.js +3 -2
  13. package/resources/beneficiary-payouts.js.map +1 -1
  14. package/resources/beneficiary-payouts.mjs +3 -2
  15. package/resources/beneficiary-payouts.mjs.map +1 -1
  16. package/resources/checkoutsession.d.ts +2 -2
  17. package/resources/index.d.ts +0 -2
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +1 -5
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +0 -2
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/orders.d.ts +36 -12
  24. package/resources/orders.d.ts.map +1 -1
  25. package/resources/payouts.d.ts +12 -0
  26. package/resources/payouts.d.ts.map +1 -1
  27. package/resources/refunds.d.ts +9 -1
  28. package/resources/refunds.d.ts.map +1 -1
  29. package/src/index.ts +0 -26
  30. package/src/resources/beneficiary-payouts.ts +8 -6
  31. package/src/resources/checkoutsession.ts +2 -2
  32. package/src/resources/index.ts +0 -10
  33. package/src/resources/orders.ts +51 -9
  34. package/src/resources/payouts.ts +15 -0
  35. package/src/resources/refunds.ts +12 -1
  36. package/src/version.ts +1 -1
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
  39. package/version.mjs +1 -1
  40. package/resources/charges.d.ts +0 -82
  41. package/resources/charges.d.ts.map +0 -1
  42. package/resources/charges.js +0 -15
  43. package/resources/charges.js.map +0 -1
  44. package/resources/charges.mjs +0 -11
  45. package/resources/charges.mjs.map +0 -1
  46. package/resources/mandates.d.ts +0 -129
  47. package/resources/mandates.d.ts.map +0 -1
  48. package/resources/mandates.js +0 -27
  49. package/resources/mandates.js.map +0 -1
  50. package/resources/mandates.mjs +0 -23
  51. package/resources/mandates.mjs.map +0 -1
  52. package/src/resources/charges.ts +0 -104
  53. package/src/resources/mandates.ts +0 -197
@@ -90,7 +90,8 @@ export interface OrderCreateResponse {
90
90
  | 'partially_refunded'
91
91
  | 'in_dispute'
92
92
  | 'disputed'
93
- | 'refused';
93
+ | 'refused'
94
+ | 'finalizing';
94
95
 
95
96
  updatedAt: unknown;
96
97
 
@@ -230,6 +231,11 @@ export interface OrderCreateResponse {
230
231
 
231
232
  subaccountLegalName?: string;
232
233
 
234
+ /**
235
+ * The unique id of the transaction.
236
+ */
237
+ transactionId?: string;
238
+
233
239
  trees?: number;
234
240
  }
235
241
 
@@ -812,6 +818,11 @@ export namespace OrderCreateResponse {
812
818
  * The description of the refund.
813
819
  */
814
820
  description?: string;
821
+
822
+ /**
823
+ * The unique id of the transaction.
824
+ */
825
+ transactionId?: string;
815
826
  }
816
827
 
817
828
  export interface ShippingAddress {
@@ -1130,7 +1141,8 @@ export namespace OrderCreateResponse {
1130
1141
  | 'partially_refunded'
1131
1142
  | 'in_dispute'
1132
1143
  | 'disputed'
1133
- | 'refused';
1144
+ | 'refused'
1145
+ | 'finalizing';
1134
1146
 
1135
1147
  reason:
1136
1148
  | 'ORDER_CREATED'
@@ -1158,7 +1170,8 @@ export namespace OrderCreateResponse {
1158
1170
  | 'AML_FREEZE'
1159
1171
  | 'MANUAL_FREEZE'
1160
1172
  | 'MANUAL_UNFREEZE'
1161
- | 'ORDER_MANUALLY_REOPENED';
1173
+ | 'ORDER_MANUALLY_REOPENED'
1174
+ | 'ORDER_FINALIZATION_STARTED';
1162
1175
 
1163
1176
  updatedAt: unknown;
1164
1177
 
@@ -1175,6 +1188,7 @@ export namespace OrderCreateResponse {
1175
1188
  | 'in_dispute'
1176
1189
  | 'disputed'
1177
1190
  | 'refused'
1191
+ | 'finalizing'
1178
1192
  | null;
1179
1193
  }
1180
1194
  }
@@ -1237,7 +1251,8 @@ export interface OrderRetrieveResponse {
1237
1251
  | 'partially_refunded'
1238
1252
  | 'in_dispute'
1239
1253
  | 'disputed'
1240
- | 'refused';
1254
+ | 'refused'
1255
+ | 'finalizing';
1241
1256
 
1242
1257
  updatedAt: unknown;
1243
1258
 
@@ -1377,6 +1392,11 @@ export interface OrderRetrieveResponse {
1377
1392
 
1378
1393
  subaccountLegalName?: string;
1379
1394
 
1395
+ /**
1396
+ * The unique id of the transaction.
1397
+ */
1398
+ transactionId?: string;
1399
+
1380
1400
  trees?: number;
1381
1401
  }
1382
1402
 
@@ -1959,6 +1979,11 @@ export namespace OrderRetrieveResponse {
1959
1979
  * The description of the refund.
1960
1980
  */
1961
1981
  description?: string;
1982
+
1983
+ /**
1984
+ * The unique id of the transaction.
1985
+ */
1986
+ transactionId?: string;
1962
1987
  }
1963
1988
 
1964
1989
  export interface ShippingAddress {
@@ -2277,7 +2302,8 @@ export namespace OrderRetrieveResponse {
2277
2302
  | 'partially_refunded'
2278
2303
  | 'in_dispute'
2279
2304
  | 'disputed'
2280
- | 'refused';
2305
+ | 'refused'
2306
+ | 'finalizing';
2281
2307
 
2282
2308
  reason:
2283
2309
  | 'ORDER_CREATED'
@@ -2305,7 +2331,8 @@ export namespace OrderRetrieveResponse {
2305
2331
  | 'AML_FREEZE'
2306
2332
  | 'MANUAL_FREEZE'
2307
2333
  | 'MANUAL_UNFREEZE'
2308
- | 'ORDER_MANUALLY_REOPENED';
2334
+ | 'ORDER_MANUALLY_REOPENED'
2335
+ | 'ORDER_FINALIZATION_STARTED';
2309
2336
 
2310
2337
  updatedAt: unknown;
2311
2338
 
@@ -2322,6 +2349,7 @@ export namespace OrderRetrieveResponse {
2322
2349
  | 'in_dispute'
2323
2350
  | 'disputed'
2324
2351
  | 'refused'
2352
+ | 'finalizing'
2325
2353
  | null;
2326
2354
  }
2327
2355
  }
@@ -2384,7 +2412,8 @@ export interface OrderExpireResponse {
2384
2412
  | 'partially_refunded'
2385
2413
  | 'in_dispute'
2386
2414
  | 'disputed'
2387
- | 'refused';
2415
+ | 'refused'
2416
+ | 'finalizing';
2388
2417
 
2389
2418
  updatedAt: unknown;
2390
2419
 
@@ -2524,6 +2553,11 @@ export interface OrderExpireResponse {
2524
2553
 
2525
2554
  subaccountLegalName?: string;
2526
2555
 
2556
+ /**
2557
+ * The unique id of the transaction.
2558
+ */
2559
+ transactionId?: string;
2560
+
2527
2561
  trees?: number;
2528
2562
  }
2529
2563
 
@@ -3106,6 +3140,11 @@ export namespace OrderExpireResponse {
3106
3140
  * The description of the refund.
3107
3141
  */
3108
3142
  description?: string;
3143
+
3144
+ /**
3145
+ * The unique id of the transaction.
3146
+ */
3147
+ transactionId?: string;
3109
3148
  }
3110
3149
 
3111
3150
  export interface ShippingAddress {
@@ -3424,7 +3463,8 @@ export namespace OrderExpireResponse {
3424
3463
  | 'partially_refunded'
3425
3464
  | 'in_dispute'
3426
3465
  | 'disputed'
3427
- | 'refused';
3466
+ | 'refused'
3467
+ | 'finalizing';
3428
3468
 
3429
3469
  reason:
3430
3470
  | 'ORDER_CREATED'
@@ -3452,7 +3492,8 @@ export namespace OrderExpireResponse {
3452
3492
  | 'AML_FREEZE'
3453
3493
  | 'MANUAL_FREEZE'
3454
3494
  | 'MANUAL_UNFREEZE'
3455
- | 'ORDER_MANUALLY_REOPENED';
3495
+ | 'ORDER_MANUALLY_REOPENED'
3496
+ | 'ORDER_FINALIZATION_STARTED';
3456
3497
 
3457
3498
  updatedAt: unknown;
3458
3499
 
@@ -3469,6 +3510,7 @@ export namespace OrderExpireResponse {
3469
3510
  | 'in_dispute'
3470
3511
  | 'disputed'
3471
3512
  | 'refused'
3513
+ | 'finalizing'
3472
3514
  | null;
3473
3515
  }
3474
3516
  }
@@ -79,6 +79,11 @@ export interface Payout {
79
79
  * The payout payment reference
80
80
  */
81
81
  paymentReference?: string;
82
+
83
+ /**
84
+ * The payout transaction ID
85
+ */
86
+ transactionId?: string;
82
87
  }
83
88
 
84
89
  export namespace Payout {
@@ -182,6 +187,11 @@ export interface PayoutRetrieveResponse {
182
187
  * The payout payment reference
183
188
  */
184
189
  paymentReference?: string;
190
+
191
+ /**
192
+ * The payout transaction ID
193
+ */
194
+ transactionId?: string;
185
195
  }
186
196
 
187
197
  export namespace PayoutRetrieveResponse {
@@ -296,6 +306,11 @@ export namespace PayoutListResponse {
296
306
  * The payout payment reference
297
307
  */
298
308
  paymentReference?: string;
309
+
310
+ /**
311
+ * The payout transaction ID
312
+ */
313
+ transactionId?: string;
299
314
  }
300
315
 
301
316
  export namespace Item {
@@ -40,7 +40,8 @@ export interface Refund {
40
40
  | 'partially_refunded'
41
41
  | 'in_dispute'
42
42
  | 'disputed'
43
- | 'refused';
43
+ | 'refused'
44
+ | 'finalizing';
44
45
 
45
46
  referenceId: string;
46
47
 
@@ -72,6 +73,11 @@ export interface RefundCreateResponse {
72
73
  * The current status of this refund.
73
74
  */
74
75
  status: 'initiated' | 'pending' | 'succeeded' | 'failed';
76
+
77
+ /**
78
+ * The id of the transaction
79
+ */
80
+ transactionId?: string;
75
81
  }
76
82
 
77
83
  export interface RefundRetrieveResponse {
@@ -99,6 +105,11 @@ export interface RefundRetrieveResponse {
99
105
  * The current status of this refund.
100
106
  */
101
107
  status: 'initiated' | 'pending' | 'succeeded' | 'failed';
108
+
109
+ /**
110
+ * The id of the transaction
111
+ */
112
+ transactionId?: string;
102
113
  }
103
114
 
104
115
  export interface RefundCreateParams {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.1.0'; // x-release-please-version
1
+ export const VERSION = '1.3.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.1.0";
1
+ export declare const VERSION = "1.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.1.0'; // x-release-please-version
4
+ exports.VERSION = '1.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.1.0'; // x-release-please-version
1
+ export const VERSION = '1.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,82 +0,0 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
3
- export declare class Charges extends APIResource {
4
- /**
5
- * Creates a Direct Debit Charge with a valid mandate.
6
- */
7
- create(body: ChargeCreateParams, options?: Core.RequestOptions): Core.APIPromise<Charge>;
8
- }
9
- export interface Charge {
10
- /**
11
- * The unique identifier of the created charge
12
- */
13
- id: string;
14
- /**
15
- * The mandate id used for the charge
16
- */
17
- mandateId: string;
18
- /**
19
- * The order id associated with the charge
20
- */
21
- orderId?: unknown;
22
- /**
23
- * The subaccount id used for the charge
24
- */
25
- subaccountId?: string;
26
- }
27
- export interface ChargeCreateParams {
28
- /**
29
- * A unique key to ensure the charge is not processed twice.
30
- */
31
- idempotencyKey: string;
32
- /**
33
- * A valid mandate id of the customer's bank account. This can be retrieved from
34
- * the `mandate_setup_succeeded` event.
35
- */
36
- mandateId: string;
37
- /**
38
- * Additional data to be stored with the charge.
39
- */
40
- metadata: ChargeCreateParams.Metadata;
41
- /**
42
- * The price to be charged.
43
- */
44
- price: ChargeCreateParams.Price;
45
- /**
46
- * An internal reference id which will be stored with the charge & corresponding
47
- * order. Needs to be unique per merchant per order and can be up to 200
48
- * characters. We recommend to use your internal order id here.
49
- */
50
- referenceId: string;
51
- /**
52
- * The subaccount id to be used for the charge.
53
- */
54
- subaccountId?: string;
55
- }
56
- export declare namespace ChargeCreateParams {
57
- /**
58
- * Additional data to be stored with the charge.
59
- */
60
- interface Metadata {
61
- /**
62
- * A token to verify incoming webhooks. Used in the shopware plugin. Limited to 200
63
- * characters.
64
- */
65
- verificationToken?: string;
66
- }
67
- /**
68
- * The price to be charged.
69
- */
70
- interface Price {
71
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
72
- total: number;
73
- shipping?: number;
74
- subTotal?: number;
75
- totalNet?: number;
76
- vat?: number;
77
- }
78
- }
79
- export declare namespace Charges {
80
- export { type Charge as Charge, type ChargeCreateParams as ChargeCreateParams };
81
- }
82
- //# sourceMappingURL=charges.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"charges.d.ts","sourceRoot":"","sources":["../src/resources/charges.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;CAGzF;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC;IAEtC;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC;IAEhC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,QAAQ;QACvB;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;QAEhD,KAAK,EAAE,MAAM,CAAC;QAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,MAAM,IAAI,MAAM,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CACjF"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Charges = void 0;
5
- const resource_1 = require("../resource.js");
6
- class Charges extends resource_1.APIResource {
7
- /**
8
- * Creates a Direct Debit Charge with a valid mandate.
9
- */
10
- create(body, options) {
11
- return this._client.post('/api/service/charge/create', { body, ...options });
12
- }
13
- }
14
- exports.Charges = Charges;
15
- //# sourceMappingURL=charges.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"charges.js","sourceRoot":"","sources":["../src/resources/charges.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAPD,0BAOC"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- export class Charges extends APIResource {
4
- /**
5
- * Creates a Direct Debit Charge with a valid mandate.
6
- */
7
- create(body, options) {
8
- return this._client.post('/api/service/charge/create', { body, ...options });
9
- }
10
- }
11
- //# sourceMappingURL=charges.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"charges.mjs","sourceRoot":"","sources":["../src/resources/charges.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
@@ -1,129 +0,0 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
3
- export declare class Mandates extends APIResource {
4
- /**
5
- * Retrieves a direct debit mandate with mandate id.
6
- */
7
- retrieve(body: MandateRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Mandate>;
8
- /**
9
- * Returns a Direct Debit Mandate when a valid mandate referenceId is given.
10
- */
11
- lookup(body: MandateLookupParams, options?: Core.RequestOptions): Core.APIPromise<MandateLookupResponse>;
12
- /**
13
- * Revokes a Direct Debit Mandate with a valid mandate id.
14
- */
15
- revoke(body: MandateRevokeParams, options?: Core.RequestOptions): Core.APIPromise<MandateRevokeResponse>;
16
- }
17
- export interface Mandate {
18
- id: string;
19
- creditor: Mandate.Creditor;
20
- debtor: Mandate.Debtor;
21
- reference: string;
22
- referenceId: string;
23
- signature: Mandate.Signature;
24
- status: 'pending' | 'active' | 'inactive';
25
- revokedAt?: unknown;
26
- userNotificationEmail?: string;
27
- }
28
- export declare namespace Mandate {
29
- interface Creditor {
30
- id: string;
31
- address: Creditor.Address;
32
- name: string;
33
- }
34
- namespace Creditor {
35
- interface Address {
36
- city: string;
37
- country: string;
38
- postalCode: string;
39
- street: string;
40
- }
41
- }
42
- interface Debtor {
43
- account: Debtor.Account;
44
- }
45
- namespace Debtor {
46
- interface Account {
47
- accountHolderName: string;
48
- iban: string;
49
- bic?: string;
50
- }
51
- }
52
- interface Signature {
53
- token: string;
54
- ip: string;
55
- signedAt: unknown;
56
- }
57
- }
58
- export interface MandateLookupResponse {
59
- id: string;
60
- creditor: MandateLookupResponse.Creditor;
61
- debtor: MandateLookupResponse.Debtor;
62
- reference: string;
63
- referenceId: string;
64
- signature: MandateLookupResponse.Signature;
65
- status: 'pending' | 'active' | 'inactive';
66
- revokedAt?: unknown;
67
- userNotificationEmail?: string;
68
- }
69
- export declare namespace MandateLookupResponse {
70
- interface Creditor {
71
- id: string;
72
- address: Creditor.Address;
73
- name: string;
74
- }
75
- namespace Creditor {
76
- interface Address {
77
- city: string;
78
- country: string;
79
- postalCode: string;
80
- street: string;
81
- }
82
- }
83
- interface Debtor {
84
- account: Debtor.Account;
85
- }
86
- namespace Debtor {
87
- interface Account {
88
- accountHolderName: string;
89
- iban: string;
90
- bic?: string;
91
- }
92
- }
93
- interface Signature {
94
- token: string;
95
- ip: string;
96
- signedAt: unknown;
97
- }
98
- }
99
- export interface MandateRevokeResponse {
100
- /**
101
- * Indicates whether the mandate was successfully revoked
102
- */
103
- success: boolean;
104
- }
105
- export interface MandateRetrieveParams {
106
- /**
107
- * A valid mandate id. This can be retrieved from the `mandate_setup_succeeded`
108
- * event.
109
- */
110
- id: string;
111
- }
112
- export interface MandateLookupParams {
113
- /**
114
- * A valid mandate reference id. This is set by the merchant during the checkout
115
- * session when the mandate setup is initiated.
116
- */
117
- referenceId: string;
118
- }
119
- export interface MandateRevokeParams {
120
- /**
121
- * A valid mandate id. This can be retrieved from the `mandate_setup_succeeded`
122
- * event.
123
- */
124
- id: string;
125
- }
126
- export declare namespace Mandates {
127
- export { type Mandate as Mandate, type MandateLookupResponse as MandateLookupResponse, type MandateRevokeResponse as MandateRevokeResponse, type MandateRetrieveParams as MandateRetrieveParams, type MandateLookupParams as MandateLookupParams, type MandateRevokeParams as MandateRevokeParams, };
128
- }
129
- //# sourceMappingURL=mandates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mandates.d.ts","sourceRoot":"","sources":["../src/resources/mandates.ts"],"names":[],"mappings":"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"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Mandates = void 0;
5
- const resource_1 = require("../resource.js");
6
- class Mandates extends resource_1.APIResource {
7
- /**
8
- * Retrieves a direct debit mandate with mandate id.
9
- */
10
- retrieve(body, options) {
11
- return this._client.post('/api/service/mandate/retrieve', { body, ...options });
12
- }
13
- /**
14
- * Returns a Direct Debit Mandate when a valid mandate referenceId is given.
15
- */
16
- lookup(body, options) {
17
- return this._client.post('/api/service/mandate/lookup', { body, ...options });
18
- }
19
- /**
20
- * Revokes a Direct Debit Mandate with a valid mandate id.
21
- */
22
- revoke(body, options) {
23
- return this._client.post('/api/service/mandate/revoke', { body, ...options });
24
- }
25
- }
26
- exports.Mandates = Mandates;
27
- //# sourceMappingURL=mandates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mandates.js","sourceRoot":"","sources":["../src/resources/mandates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,IAA2B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AArBD,4BAqBC"}
@@ -1,23 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- export class Mandates extends APIResource {
4
- /**
5
- * Retrieves a direct debit mandate with mandate id.
6
- */
7
- retrieve(body, options) {
8
- return this._client.post('/api/service/mandate/retrieve', { body, ...options });
9
- }
10
- /**
11
- * Returns a Direct Debit Mandate when a valid mandate referenceId is given.
12
- */
13
- lookup(body, options) {
14
- return this._client.post('/api/service/mandate/lookup', { body, ...options });
15
- }
16
- /**
17
- * Revokes a Direct Debit Mandate with a valid mandate id.
18
- */
19
- revoke(body, options) {
20
- return this._client.post('/api/service/mandate/revoke', { body, ...options });
21
- }
22
- }
23
- //# sourceMappingURL=mandates.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mandates.mjs","sourceRoot":"","sources":["../src/resources/mandates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,IAA2B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}