@getivy/node-sdk 0.1.0-alpha.2 → 0.1.0-alpha.21
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 +217 -0
- package/LICENSE +1 -1
- package/README.md +18 -18
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +12 -1
- package/core.d.ts.map +1 -1
- package/core.js +29 -20
- package/core.js.map +1 -1
- package/core.mjs +31 -22
- package/core.mjs.map +1 -1
- package/error.d.ts +2 -2
- package/error.d.ts.map +1 -1
- package/error.js +4 -4
- package/error.js.map +1 -1
- package/error.mjs +2 -2
- package/error.mjs.map +1 -1
- package/index.d.mts +15 -12
- package/index.d.ts +15 -12
- package/index.d.ts.map +1 -1
- package/index.js +45 -42
- package/index.js.map +1 -1
- package/index.mjs +42 -39
- package/index.mjs.map +1 -1
- package/package.json +3 -3
- package/resource.d.ts +3 -3
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/banks.d.ts +12 -0
- package/resources/banks.d.ts.map +1 -1
- package/resources/charges.d.ts +0 -13
- package/resources/charges.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +444 -1305
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/customers.d.ts +41 -4
- package/resources/customers.d.ts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/orders.d.ts +243 -101
- package/resources/orders.d.ts.map +1 -1
- package/resources/orders.js +6 -6
- package/resources/orders.js.map +1 -1
- package/resources/orders.mjs +6 -6
- package/resources/orders.mjs.map +1 -1
- package/resources/refunds.d.ts +1 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/webhooksubscription.d.ts +155 -0
- package/resources/webhooksubscription.d.ts.map +1 -0
- package/resources/webhooksubscription.js +42 -0
- package/resources/webhooksubscription.js.map +1 -0
- package/resources/webhooksubscription.mjs +38 -0
- package/resources/webhooksubscription.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 +49 -22
- package/src/error.ts +2 -2
- package/src/index.ts +60 -31
- package/src/resource.ts +3 -3
- package/src/resources/banks.ts +15 -0
- package/src/resources/charges.ts +0 -13
- package/src/resources/checkoutsession.ts +2103 -4416
- package/src/resources/customers.ts +46 -4
- package/src/resources/index.ts +15 -2
- package/src/resources/orders.ts +288 -118
- package/src/resources/refunds.ts +0 -1
- package/src/resources/webhooksubscription.ts +353 -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
|
@@ -31,15 +31,57 @@ export interface CustomerCreateResponse {
|
|
|
31
31
|
email: string;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* Returns the id, email and the merchantId of the customer
|
|
36
|
-
*/
|
|
37
34
|
export interface CustomerRetrieveResponse {
|
|
35
|
+
/**
|
|
36
|
+
* Customer id
|
|
37
|
+
*/
|
|
38
38
|
id: string;
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* List of remembered bank accounts for this Customer
|
|
42
|
+
*/
|
|
43
|
+
bankAccounts: Array<CustomerRetrieveResponse.BankAccount>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Customer email address
|
|
47
|
+
*/
|
|
40
48
|
emailAddress: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export namespace CustomerRetrieveResponse {
|
|
52
|
+
export interface BankAccount {
|
|
53
|
+
/**
|
|
54
|
+
* Bank details
|
|
55
|
+
*/
|
|
56
|
+
bank: BankAccount.Bank;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Last 4 digits of remembered account number
|
|
60
|
+
*/
|
|
61
|
+
last4digits?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace BankAccount {
|
|
65
|
+
/**
|
|
66
|
+
* Bank details
|
|
67
|
+
*/
|
|
68
|
+
export interface Bank {
|
|
69
|
+
/**
|
|
70
|
+
* Ivy bank id used to initiate checkout session with preselected bank
|
|
71
|
+
*/
|
|
72
|
+
id: string;
|
|
41
73
|
|
|
42
|
-
|
|
74
|
+
/**
|
|
75
|
+
* The customer-facing name of the Bank.
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The Bank Logo as a URL
|
|
81
|
+
*/
|
|
82
|
+
logo?: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
43
85
|
}
|
|
44
86
|
|
|
45
87
|
export interface CustomerCreateParams {
|
package/src/resources/index.ts
CHANGED
|
@@ -38,10 +38,10 @@ export {
|
|
|
38
38
|
} from './mandates';
|
|
39
39
|
export {
|
|
40
40
|
Orders,
|
|
41
|
+
type OrderCreateResponse,
|
|
41
42
|
type OrderRetrieveResponse,
|
|
42
|
-
type
|
|
43
|
+
type OrderCreateParams,
|
|
43
44
|
type OrderRetrieveParams,
|
|
44
|
-
type OrderUpdateParams,
|
|
45
45
|
} from './orders';
|
|
46
46
|
export {
|
|
47
47
|
Payouts,
|
|
@@ -73,3 +73,16 @@ export {
|
|
|
73
73
|
type SubaccountCreateParams,
|
|
74
74
|
type SubaccountRetrieveParams,
|
|
75
75
|
} from './subaccounts';
|
|
76
|
+
export {
|
|
77
|
+
Webhooksubscription,
|
|
78
|
+
type WebhooksubscriptionCreateResponse,
|
|
79
|
+
type WebhooksubscriptionUpdateResponse,
|
|
80
|
+
type WebhooksubscriptionListResponse,
|
|
81
|
+
type WebhooksubscriptionDeleteResponse,
|
|
82
|
+
type WebhooksubscriptionPingResponse,
|
|
83
|
+
type WebhooksubscriptionCreateParams,
|
|
84
|
+
type WebhooksubscriptionUpdateParams,
|
|
85
|
+
type WebhooksubscriptionListParams,
|
|
86
|
+
type WebhooksubscriptionDeleteParams,
|
|
87
|
+
type WebhooksubscriptionPingParams,
|
|
88
|
+
} from './webhooksubscription';
|