@getivy/node-sdk 0.1.0-alpha.8 → 1.0.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.
- package/CHANGELOG.md +359 -0
- package/README.md +16 -26
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +25 -15
- package/core.js.map +1 -1
- package/core.mjs +26 -16
- package/core.mjs.map +1 -1
- package/index.d.mts +30 -18
- package/index.d.ts +30 -18
- package/index.d.ts.map +1 -1
- package/index.js +21 -8
- package/index.js.map +1 -1
- package/index.mjs +21 -8
- package/index.mjs.map +1 -1
- package/package.json +11 -33
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/balance.d.ts +8 -5
- package/resources/balance.d.ts.map +1 -1
- package/resources/banks.d.ts +82 -67
- package/resources/banks.d.ts.map +1 -1
- package/resources/beneficiary-payouts.d.ts +61 -0
- package/resources/beneficiary-payouts.d.ts.map +1 -0
- package/resources/beneficiary-payouts.js +16 -0
- package/resources/beneficiary-payouts.js.map +1 -0
- package/resources/beneficiary-payouts.mjs +12 -0
- package/resources/beneficiary-payouts.mjs.map +1 -0
- package/resources/capabilities.d.ts +1 -10
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/charges.d.ts +28 -19
- package/resources/charges.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +275 -1360
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/customers.d.ts +140 -10
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +9 -2
- package/resources/customers.js.map +1 -1
- package/resources/customers.mjs +9 -2
- package/resources/customers.mjs.map +1 -1
- package/resources/deposits.d.ts +165 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +15 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +11 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/fx.d.ts +90 -0
- package/resources/fx.d.ts.map +1 -0
- package/resources/fx.js +22 -0
- package/resources/fx.js.map +1 -0
- package/resources/fx.mjs +18 -0
- package/resources/fx.mjs.map +1 -0
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mandates.d.ts +55 -17
- package/resources/mandates.d.ts.map +1 -1
- package/resources/orders.d.ts +718 -739
- package/resources/orders.d.ts.map +1 -1
- package/resources/orders.js +13 -3
- package/resources/orders.js.map +1 -1
- package/resources/orders.mjs +13 -3
- package/resources/orders.mjs.map +1 -1
- package/resources/payouts.d.ts +219 -103
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +3 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +3 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/refunds.d.ts +53 -97
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +8 -12
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +8 -12
- package/resources/refunds.mjs.map +1 -1
- package/resources/returns.d.ts +104 -0
- package/resources/returns.d.ts.map +1 -0
- package/resources/returns.js +21 -0
- package/resources/returns.js.map +1 -0
- package/resources/returns.mjs +17 -0
- package/resources/returns.mjs.map +1 -0
- package/resources/subaccounts.d.ts +15 -5
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/subaccounts.js.map +1 -1
- package/resources/subaccounts.mjs.map +1 -1
- package/resources/transactions.d.ts +174 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +15 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +11 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +44 -16
- package/src/index.ts +100 -63
- package/src/resource.ts +1 -1
- package/src/resources/balance.ts +8 -5
- package/src/resources/banks.ts +130 -67
- package/src/resources/beneficiary-payouts.ts +78 -0
- package/src/resources/capabilities.ts +1 -10
- package/src/resources/charges.ts +30 -21
- package/src/resources/checkoutsession.ts +1224 -3096
- package/src/resources/customers.ts +164 -9
- package/src/resources/deposits.ts +231 -0
- package/src/resources/fx.ts +119 -0
- package/src/resources/index.ts +31 -28
- package/src/resources/mandates.ts +79 -17
- package/src/resources/orders.ts +1448 -1072
- package/src/resources/payouts.ts +273 -103
- package/src/resources/refunds.ts +70 -111
- package/src/resources/returns.ts +140 -0
- package/src/resources/subaccounts.ts +26 -4
- package/src/resources/transactions.ts +234 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/reports.d.ts +0 -120
- package/resources/reports.d.ts.map +0 -1
- package/resources/reports.js +0 -31
- package/resources/reports.js.map +0 -1
- package/resources/reports.mjs +0 -27
- package/resources/reports.mjs.map +0 -1
- package/resources/webhooksubscription.d.ts +0 -155
- package/resources/webhooksubscription.d.ts.map +0 -1
- package/resources/webhooksubscription.js +0 -42
- package/resources/webhooksubscription.js.map +0 -1
- package/resources/webhooksubscription.mjs +0 -38
- package/resources/webhooksubscription.mjs.map +0 -1
- package/src/resources/reports.ts +0 -172
- package/src/resources/webhooksubscription.ts +0 -353
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class BeneficiaryPayouts extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Perform a payout. This endpoint will be deprecated in favor of the new payout
|
|
9
|
+
* endpoint that will support more payout types.
|
|
10
|
+
*/
|
|
11
|
+
create(options?: Core.RequestOptions): Core.APIPromise<BeneficiaryPayoutCreateResponse> {
|
|
12
|
+
return this._client.post('/api/service/beneficiary-payout/create', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Array of payout objects
|
|
18
|
+
*/
|
|
19
|
+
export type BeneficiaryPayoutCreateResponse =
|
|
20
|
+
Array<BeneficiaryPayoutCreateResponse.BeneficiaryPayoutCreateResponseItem>;
|
|
21
|
+
|
|
22
|
+
export namespace BeneficiaryPayoutCreateResponse {
|
|
23
|
+
export interface BeneficiaryPayoutCreateResponseItem {
|
|
24
|
+
/**
|
|
25
|
+
* The unique identifier of the payout
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The payout amount
|
|
31
|
+
*/
|
|
32
|
+
amount: number;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The creation timestamp of the payout
|
|
36
|
+
*/
|
|
37
|
+
createdAt: unknown;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The currency of the payout
|
|
41
|
+
*/
|
|
42
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Description of the payout
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The merchant identifier
|
|
51
|
+
*/
|
|
52
|
+
merchant: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The reference identifier for the payout
|
|
56
|
+
*/
|
|
57
|
+
referenceId: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The descriptor that appears on bank statements
|
|
61
|
+
*/
|
|
62
|
+
statementDescriptor: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The current status of the payout
|
|
66
|
+
*/
|
|
67
|
+
status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The type of payout
|
|
71
|
+
*/
|
|
72
|
+
type: 'merchant' | 'customer';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export declare namespace BeneficiaryPayouts {
|
|
77
|
+
export { type BeneficiaryPayoutCreateResponse as BeneficiaryPayoutCreateResponse };
|
|
78
|
+
}
|
|
@@ -17,19 +17,10 @@ export class Capabilities extends APIResource {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface CapabilityRetrieveResponse {
|
|
20
|
-
|
|
21
|
-
* Either `'pis'` or `'ais'` or both. The capabilities of the merchant set in the
|
|
22
|
-
* merchant dashboard for the specific market. If no capabilities are set, the
|
|
23
|
-
* response will be an empty array. Check if `'pis'` is present in the array for
|
|
24
|
-
* payments capabilities.
|
|
25
|
-
*/
|
|
26
|
-
capabilities: Array<'pis' | 'ais'>;
|
|
20
|
+
capabilities?: Array<'ais' | 'pis'>;
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
export interface CapabilityRetrieveParams {
|
|
30
|
-
/**
|
|
31
|
-
* The market for which you want to retrieve the capabilities.
|
|
32
|
-
*/
|
|
33
24
|
market:
|
|
34
25
|
| 'AF'
|
|
35
26
|
| 'AL'
|
package/src/resources/charges.ts
CHANGED
|
@@ -13,12 +13,24 @@ export class Charges extends APIResource {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface Charge {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the created charge
|
|
18
|
+
*/
|
|
16
19
|
id: string;
|
|
17
20
|
|
|
21
|
+
/**
|
|
22
|
+
* The mandate id used for the charge
|
|
23
|
+
*/
|
|
18
24
|
mandateId: string;
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The order id associated with the charge
|
|
28
|
+
*/
|
|
29
|
+
orderId?: unknown;
|
|
21
30
|
|
|
31
|
+
/**
|
|
32
|
+
* The subaccount id used for the charge
|
|
33
|
+
*/
|
|
22
34
|
subaccountId?: string;
|
|
23
35
|
}
|
|
24
36
|
|
|
@@ -34,6 +46,11 @@ export interface ChargeCreateParams {
|
|
|
34
46
|
*/
|
|
35
47
|
mandateId: string;
|
|
36
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Additional data to be stored with the charge.
|
|
51
|
+
*/
|
|
52
|
+
metadata: ChargeCreateParams.Metadata;
|
|
53
|
+
|
|
37
54
|
/**
|
|
38
55
|
* The price to be charged.
|
|
39
56
|
*/
|
|
@@ -46,11 +63,6 @@ export interface ChargeCreateParams {
|
|
|
46
63
|
*/
|
|
47
64
|
referenceId: string;
|
|
48
65
|
|
|
49
|
-
/**
|
|
50
|
-
* Additional data to be stored with the charge.
|
|
51
|
-
*/
|
|
52
|
-
metadata?: ChargeCreateParams.Metadata;
|
|
53
|
-
|
|
54
66
|
/**
|
|
55
67
|
* The subaccount id to be used for the charge.
|
|
56
68
|
*/
|
|
@@ -58,15 +70,23 @@ export interface ChargeCreateParams {
|
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
export namespace ChargeCreateParams {
|
|
73
|
+
/**
|
|
74
|
+
* Additional data to be stored with the charge.
|
|
75
|
+
*/
|
|
76
|
+
export interface Metadata {
|
|
77
|
+
/**
|
|
78
|
+
* A token to verify incoming webhooks. Used in the shopware plugin. Limited to 200
|
|
79
|
+
* characters.
|
|
80
|
+
*/
|
|
81
|
+
verificationToken?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
61
84
|
/**
|
|
62
85
|
* The price to be charged.
|
|
63
86
|
*/
|
|
64
87
|
export interface Price {
|
|
65
|
-
currency: 'EUR' | 'GBP' | 'PLN';
|
|
88
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
66
89
|
|
|
67
|
-
/**
|
|
68
|
-
* The total amount to be paid.
|
|
69
|
-
*/
|
|
70
90
|
total: number;
|
|
71
91
|
|
|
72
92
|
shipping?: number;
|
|
@@ -77,17 +97,6 @@ export namespace ChargeCreateParams {
|
|
|
77
97
|
|
|
78
98
|
vat?: number;
|
|
79
99
|
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Additional data to be stored with the charge.
|
|
83
|
-
*/
|
|
84
|
-
export interface Metadata {
|
|
85
|
-
/**
|
|
86
|
-
* A token to verify incoming webhooks. Used in the shopware plugin. Limited to 200
|
|
87
|
-
* characters.
|
|
88
|
-
*/
|
|
89
|
-
verificationToken?: string;
|
|
90
|
-
}
|
|
91
100
|
}
|
|
92
101
|
|
|
93
102
|
export declare namespace Charges {
|