@getivy/node-sdk 0.1.0-alpha.32 → 0.1.0-alpha.33
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 +8 -0
- package/index.d.mts +14 -14
- package/index.d.ts +14 -14
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/balance.d.ts +6 -3
- package/resources/balance.d.ts.map +1 -1
- package/resources/banks.d.ts +38 -59
- package/resources/banks.d.ts.map +1 -1
- package/resources/capabilities.d.ts +1 -10
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/charges.d.ts +30 -21
- package/resources/charges.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +311 -803
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/customers.d.ts +9 -12
- package/resources/customers.d.ts.map +1 -1
- package/resources/data/accounts.d.ts +0 -100
- package/resources/data/accounts.d.ts.map +1 -1
- package/resources/data/accounts.js +0 -6
- package/resources/data/accounts.js.map +1 -1
- package/resources/data/accounts.mjs +0 -6
- package/resources/data/accounts.mjs.map +1 -1
- package/resources/data/balances.d.ts +0 -41
- package/resources/data/balances.d.ts.map +1 -1
- package/resources/data/balances.js +0 -6
- package/resources/data/balances.js.map +1 -1
- package/resources/data/balances.mjs +0 -6
- package/resources/data/balances.mjs.map +1 -1
- package/resources/data/consent.d.ts +0 -76
- package/resources/data/consent.d.ts.map +1 -1
- package/resources/data/consent.js +0 -12
- package/resources/data/consent.js.map +1 -1
- package/resources/data/consent.mjs +0 -12
- package/resources/data/consent.mjs.map +1 -1
- package/resources/data/data.d.ts +10 -10
- package/resources/data/data.d.ts.map +1 -1
- package/resources/data/data.js.map +1 -1
- package/resources/data/data.mjs +2 -2
- package/resources/data/data.mjs.map +1 -1
- package/resources/data/index.d.ts +5 -5
- package/resources/data/index.d.ts.map +1 -1
- package/resources/data/index.js.map +1 -1
- package/resources/data/index.mjs +2 -2
- package/resources/data/index.mjs.map +1 -1
- package/resources/data/session.d.ts +0 -230
- package/resources/data/session.d.ts.map +1 -1
- package/resources/data/session.js +0 -12
- package/resources/data/session.js.map +1 -1
- package/resources/data/session.mjs +0 -12
- package/resources/data/session.mjs.map +1 -1
- package/resources/data/transactions.d.ts +0 -50
- package/resources/data/transactions.d.ts.map +1 -1
- package/resources/data/transactions.js +0 -7
- package/resources/data/transactions.js.map +1 -1
- package/resources/data/transactions.mjs +0 -7
- package/resources/data/transactions.mjs.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mandates.d.ts +55 -17
- package/resources/mandates.d.ts.map +1 -1
- package/resources/mandates.js.map +1 -1
- package/resources/mandates.mjs.map +1 -1
- package/resources/orders.d.ts +242 -524
- package/resources/orders.d.ts.map +1 -1
- package/resources/payouts.d.ts +146 -70
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs.map +1 -1
- package/resources/refunds.d.ts +16 -92
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +4 -4
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +4 -4
- package/resources/refunds.mjs.map +1 -1
- package/resources/reports.d.ts +4 -78
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +5 -1
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +5 -1
- package/resources/reports.mjs.map +1 -1
- package/resources/subaccounts.d.ts +19 -7
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/subaccounts.js.map +1 -1
- package/resources/subaccounts.mjs.map +1 -1
- package/resources/webhooksubscription.d.ts +0 -151
- package/resources/webhooksubscription.d.ts.map +1 -1
- package/resources/webhooksubscription.js +0 -33
- package/resources/webhooksubscription.js.map +1 -1
- package/resources/webhooksubscription.mjs +0 -33
- package/resources/webhooksubscription.mjs.map +1 -1
- package/src/index.ts +22 -38
- package/src/resources/balance.ts +6 -3
- package/src/resources/banks.ts +41 -59
- package/src/resources/capabilities.ts +1 -10
- package/src/resources/charges.ts +32 -23
- package/src/resources/checkoutsession.ts +1395 -999
- package/src/resources/customers.ts +9 -12
- package/src/resources/data/accounts.ts +1 -130
- package/src/resources/data/balances.ts +1 -53
- package/src/resources/data/consent.ts +1 -106
- package/src/resources/data/data.ts +10 -46
- package/src/resources/data/index.ts +5 -17
- package/src/resources/data/session.ts +1 -1295
- package/src/resources/data/transactions.ts +1 -67
- package/src/resources/index.ts +9 -19
- package/src/resources/mandates.ts +82 -17
- package/src/resources/orders.ts +1149 -805
- package/src/resources/payouts.ts +239 -70
- package/src/resources/refunds.ts +33 -94
- package/src/resources/reports.ts +8 -98
- package/src/resources/subaccounts.ts +36 -7
- package/src/resources/webhooksubscription.ts +1 -349
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/reports.ts
CHANGED
|
@@ -28,141 +28,51 @@ export class Reports extends APIResource {
|
|
|
28
28
|
* Download the actual Payout Report once the creation succeeded with this
|
|
29
29
|
* endpoint.
|
|
30
30
|
*/
|
|
31
|
-
download(body: ReportDownloadParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
32
|
-
return this._client.post('/api/service/merchant/payout/export/download', {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
payouts: Array<PayoutReport.Payout>;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export namespace PayoutReport {
|
|
41
|
-
export interface Payout {
|
|
42
|
-
id: string;
|
|
43
|
-
|
|
44
|
-
amount: number;
|
|
45
|
-
|
|
46
|
-
availableAt: string;
|
|
47
|
-
|
|
48
|
-
merchantAppId: string;
|
|
49
|
-
|
|
50
|
-
transactions: Array<Payout.Transaction>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export namespace Payout {
|
|
54
|
-
export interface Transaction {
|
|
55
|
-
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
56
|
-
|
|
57
|
-
fee: number;
|
|
58
|
-
|
|
59
|
-
gross: number;
|
|
60
|
-
|
|
61
|
-
net: number;
|
|
62
|
-
|
|
63
|
-
reportingCategory: string;
|
|
64
|
-
|
|
65
|
-
billingFullName?: string;
|
|
66
|
-
|
|
67
|
-
createdAt?: string;
|
|
68
|
-
|
|
69
|
-
description?: string;
|
|
70
|
-
|
|
71
|
-
displayId?: string;
|
|
72
|
-
|
|
73
|
-
orderId?: string;
|
|
74
|
-
|
|
75
|
-
referenceId?: string;
|
|
76
|
-
|
|
77
|
-
subaccountId?: string;
|
|
78
|
-
|
|
79
|
-
userMail?: string;
|
|
80
|
-
}
|
|
31
|
+
download(body: ReportDownloadParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
32
|
+
return this._client.post('/api/service/merchant/payout/export/download', {
|
|
33
|
+
body,
|
|
34
|
+
...options,
|
|
35
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
36
|
+
});
|
|
81
37
|
}
|
|
82
38
|
}
|
|
83
39
|
|
|
84
40
|
export interface ReportCreateResponse {
|
|
85
|
-
/**
|
|
86
|
-
* The unique identifier of the new Payout Report Object that was created.
|
|
87
|
-
*/
|
|
88
41
|
id: string;
|
|
89
42
|
|
|
90
|
-
|
|
91
|
-
* Status of the Payout Report creation. This will be `pending` when the run is
|
|
92
|
-
* initially created. As soon as the report is created, this will be set to
|
|
93
|
-
* `succeeded`. Rarely, we may encounter an error, at which point this will be set
|
|
94
|
-
* to `failed`. See [the guide](https://docs.getivy.de/docs/payout-report-1) to
|
|
95
|
-
* learn more.
|
|
96
|
-
*/
|
|
97
|
-
status: string;
|
|
43
|
+
status: 'pending' | 'succeeded' | 'failed';
|
|
98
44
|
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated
|
|
101
|
-
*/
|
|
102
45
|
fileUrl?: string;
|
|
103
46
|
}
|
|
104
47
|
|
|
105
48
|
export interface ReportRetrieveResponse {
|
|
106
|
-
|
|
107
|
-
* Status of this Payout Report creation. This will be `pending` when the run is
|
|
108
|
-
* initially created. When the run finishes, this will be set to `succeeded`.
|
|
109
|
-
* Rarely, we may encounter an error, at which point this will be set to `failed`.
|
|
110
|
-
*/
|
|
111
|
-
status: string;
|
|
49
|
+
status: 'pending' | 'succeeded' | 'failed';
|
|
112
50
|
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated
|
|
115
|
-
*/
|
|
116
51
|
fileUrl?: string;
|
|
117
52
|
}
|
|
118
53
|
|
|
119
54
|
export interface ReportCreateParams {
|
|
120
|
-
/**
|
|
121
|
-
* Unix timestamp. The end of the timerange to create a Payout Report for.
|
|
122
|
-
*/
|
|
123
55
|
intervalEnd: number;
|
|
124
56
|
|
|
125
|
-
/**
|
|
126
|
-
* Unix timestamp. The start of the timerange to create a Payout Report for.
|
|
127
|
-
*/
|
|
128
57
|
intervalStart: number;
|
|
129
58
|
|
|
130
|
-
/**
|
|
131
|
-
* If provided, the report will be generated for this currency only. If not
|
|
132
|
-
* provided, the report will be generated for all currencies.
|
|
133
|
-
*/
|
|
134
59
|
currency?: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
135
60
|
|
|
136
|
-
/**
|
|
137
|
-
* Optional URL of a webhook. If provided, the report, once generated, will be sent
|
|
138
|
-
* there in JSON format.
|
|
139
|
-
*/
|
|
140
61
|
webhookUrl?: string;
|
|
141
62
|
}
|
|
142
63
|
|
|
143
64
|
export interface ReportRetrieveParams {
|
|
144
|
-
/**
|
|
145
|
-
* The unique identifier of the Payout Report to retrieve.
|
|
146
|
-
*/
|
|
147
65
|
reportId: string;
|
|
148
66
|
}
|
|
149
67
|
|
|
150
68
|
export interface ReportDownloadParams {
|
|
151
|
-
/**
|
|
152
|
-
* The unique identifier of the report you want to download. This was returned when
|
|
153
|
-
* creating a new Payout Report.
|
|
154
|
-
*/
|
|
155
69
|
reportId: string;
|
|
156
70
|
|
|
157
|
-
/**
|
|
158
|
-
* The format in which you want to download the report. Default is csv.
|
|
159
|
-
*/
|
|
160
71
|
format?: 'csv' | 'json' | 'datev';
|
|
161
72
|
}
|
|
162
73
|
|
|
163
74
|
export declare namespace Reports {
|
|
164
75
|
export {
|
|
165
|
-
type PayoutReport as PayoutReport,
|
|
166
76
|
type ReportCreateResponse as ReportCreateResponse,
|
|
167
77
|
type ReportRetrieveResponse as ReportRetrieveResponse,
|
|
168
78
|
type ReportCreateParams as ReportCreateParams,
|
|
@@ -8,32 +8,60 @@ export class Subaccounts extends APIResource {
|
|
|
8
8
|
* Create a Subaccount which can be used to reconcile orders, refunds and payouts
|
|
9
9
|
* more easily.
|
|
10
10
|
*/
|
|
11
|
-
create(
|
|
11
|
+
create(
|
|
12
|
+
body: SubaccountCreateParams,
|
|
13
|
+
options?: Core.RequestOptions,
|
|
14
|
+
): Core.APIPromise<SubaccountCreateResponse> {
|
|
12
15
|
return this._client.post('/api/service/subaccount/create', { body, ...options });
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
19
|
* Retrieve a Subaccount by id.
|
|
17
20
|
*/
|
|
18
|
-
retrieve(
|
|
21
|
+
retrieve(
|
|
22
|
+
body: SubaccountRetrieveParams,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<SubaccountRetrieveResponse> {
|
|
19
25
|
return this._client.post('/api/service/subaccount/retrieve', { body, ...options });
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
|
|
23
|
-
export interface
|
|
29
|
+
export interface SubaccountCreateResponse {
|
|
24
30
|
id: string;
|
|
25
31
|
|
|
32
|
+
createdAt: unknown;
|
|
33
|
+
|
|
34
|
+
legalName: string;
|
|
35
|
+
|
|
36
|
+
mcc: string;
|
|
37
|
+
|
|
38
|
+
ownerId: unknown;
|
|
39
|
+
|
|
40
|
+
status: 'active' | 'inactive';
|
|
41
|
+
|
|
42
|
+
updatedAt: unknown;
|
|
43
|
+
|
|
44
|
+
themeName?: 'default' | 'kraken' | 'inpay';
|
|
45
|
+
|
|
46
|
+
websiteUrl?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface SubaccountRetrieveResponse {
|
|
50
|
+
id: string;
|
|
51
|
+
|
|
52
|
+
createdAt: unknown;
|
|
53
|
+
|
|
26
54
|
legalName: string;
|
|
27
55
|
|
|
28
56
|
mcc: string;
|
|
29
57
|
|
|
30
|
-
ownerId:
|
|
58
|
+
ownerId: unknown;
|
|
31
59
|
|
|
32
60
|
status: 'active' | 'inactive';
|
|
33
61
|
|
|
34
|
-
|
|
62
|
+
updatedAt: unknown;
|
|
35
63
|
|
|
36
|
-
|
|
64
|
+
themeName?: 'default' | 'kraken' | 'inpay';
|
|
37
65
|
|
|
38
66
|
websiteUrl?: string;
|
|
39
67
|
}
|
|
@@ -66,7 +94,8 @@ export interface SubaccountRetrieveParams {
|
|
|
66
94
|
|
|
67
95
|
export declare namespace Subaccounts {
|
|
68
96
|
export {
|
|
69
|
-
type
|
|
97
|
+
type SubaccountCreateResponse as SubaccountCreateResponse,
|
|
98
|
+
type SubaccountRetrieveResponse as SubaccountRetrieveResponse,
|
|
70
99
|
type SubaccountCreateParams as SubaccountCreateParams,
|
|
71
100
|
type SubaccountRetrieveParams as SubaccountRetrieveParams,
|
|
72
101
|
};
|
|
@@ -1,353 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
|
-
import * as Core from '../core';
|
|
5
4
|
|
|
6
|
-
export class Webhooksubscription extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
9
|
-
* url. There can be multiple subscriptions per app.
|
|
10
|
-
*/
|
|
11
|
-
create(
|
|
12
|
-
body: WebhooksubscriptionCreateParams,
|
|
13
|
-
options?: Core.RequestOptions,
|
|
14
|
-
): Core.APIPromise<WebhooksubscriptionCreateResponse> {
|
|
15
|
-
return this._client.post('/api/service/webhook-subscription/create', { body, ...options });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Updates the url or subcribed to events for a webhook subscription. This can be
|
|
20
|
-
* used via the app or via the API by providing an API key.
|
|
21
|
-
*/
|
|
22
|
-
update(
|
|
23
|
-
body: WebhooksubscriptionUpdateParams,
|
|
24
|
-
options?: Core.RequestOptions,
|
|
25
|
-
): Core.APIPromise<WebhooksubscriptionUpdateResponse> {
|
|
26
|
-
return this._client.post('/api/service/webhook-subscription/update', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists all webhook subscriptions that are registered for the merchant. The
|
|
31
|
-
* results are paginated and provided in chronological order.
|
|
32
|
-
*/
|
|
33
|
-
list(
|
|
34
|
-
body: WebhooksubscriptionListParams,
|
|
35
|
-
options?: Core.RequestOptions,
|
|
36
|
-
): Core.APIPromise<WebhooksubscriptionListResponse> {
|
|
37
|
-
return this._client.post('/api/service/webhook-subscription/list', { body, ...options });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Deletes a webhook subscription.
|
|
42
|
-
*/
|
|
43
|
-
delete(
|
|
44
|
-
body: WebhooksubscriptionDeleteParams,
|
|
45
|
-
options?: Core.RequestOptions,
|
|
46
|
-
): Core.APIPromise<WebhooksubscriptionDeleteResponse> {
|
|
47
|
-
return this._client.post('/api/service/webhook-subscription/delete', { body, ...options });
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Trigger the webhook event "test" for the specified webhook subscription.
|
|
52
|
-
*/
|
|
53
|
-
ping(
|
|
54
|
-
body: WebhooksubscriptionPingParams,
|
|
55
|
-
options?: Core.RequestOptions,
|
|
56
|
-
): Core.APIPromise<WebhooksubscriptionPingResponse> {
|
|
57
|
-
return this._client.post('/api/service/webhook-subscription/ping', { body, ...options });
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface WebhooksubscriptionCreateResponse {
|
|
62
|
-
/**
|
|
63
|
-
* The unique id for the webhook subscription.
|
|
64
|
-
*/
|
|
65
|
-
id: string;
|
|
66
|
-
|
|
67
|
-
createdAt: string;
|
|
68
|
-
|
|
69
|
-
events: Array<
|
|
70
|
-
| 'test'
|
|
71
|
-
| 'merchant_updated'
|
|
72
|
-
| 'merchant_app_updated'
|
|
73
|
-
| 'order_created'
|
|
74
|
-
| 'order_updated'
|
|
75
|
-
| 'refund_succeeded'
|
|
76
|
-
| 'refund_failed'
|
|
77
|
-
| 'payout_report_requested'
|
|
78
|
-
| 'data_session_completed'
|
|
79
|
-
| 'checkout_session_created'
|
|
80
|
-
| 'checkout_session_updated'
|
|
81
|
-
| 'checkout_session_expired'
|
|
82
|
-
| 'checkout_session_completed'
|
|
83
|
-
| 'payout_created'
|
|
84
|
-
| 'payout_updated'
|
|
85
|
-
| 'mandate_setup_started'
|
|
86
|
-
| 'mandate_setup_succeeded'
|
|
87
|
-
| 'mandate_setup_failed'
|
|
88
|
-
| 'mandate_revoked'
|
|
89
|
-
| 'user_payout.failed'
|
|
90
|
-
| 'user_payout.paid'
|
|
91
|
-
| 'user_payout.initiated'
|
|
92
|
-
>;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The unique id for the webhook subscription.
|
|
96
|
-
*/
|
|
97
|
-
merchant: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated The unique id for the webhook subscription.
|
|
101
|
-
*/
|
|
102
|
-
merchantApp: string;
|
|
103
|
-
|
|
104
|
-
updatedAt: string;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The url that will listen to the webhook events coming from Ivy. Must be unique
|
|
108
|
-
* for the merchant app.
|
|
109
|
-
*/
|
|
110
|
-
url: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface WebhooksubscriptionUpdateResponse {
|
|
114
|
-
/**
|
|
115
|
-
* The unique id for the webhook subscription.
|
|
116
|
-
*/
|
|
117
|
-
id: string;
|
|
118
|
-
|
|
119
|
-
createdAt: string;
|
|
120
|
-
|
|
121
|
-
events: Array<
|
|
122
|
-
| 'test'
|
|
123
|
-
| 'merchant_updated'
|
|
124
|
-
| 'merchant_app_updated'
|
|
125
|
-
| 'order_created'
|
|
126
|
-
| 'order_updated'
|
|
127
|
-
| 'refund_succeeded'
|
|
128
|
-
| 'refund_failed'
|
|
129
|
-
| 'payout_report_requested'
|
|
130
|
-
| 'data_session_completed'
|
|
131
|
-
| 'checkout_session_created'
|
|
132
|
-
| 'checkout_session_updated'
|
|
133
|
-
| 'checkout_session_expired'
|
|
134
|
-
| 'checkout_session_completed'
|
|
135
|
-
| 'payout_created'
|
|
136
|
-
| 'payout_updated'
|
|
137
|
-
| 'mandate_setup_started'
|
|
138
|
-
| 'mandate_setup_succeeded'
|
|
139
|
-
| 'mandate_setup_failed'
|
|
140
|
-
| 'mandate_revoked'
|
|
141
|
-
| 'user_payout.failed'
|
|
142
|
-
| 'user_payout.paid'
|
|
143
|
-
| 'user_payout.initiated'
|
|
144
|
-
>;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The unique id for the webhook subscription.
|
|
148
|
-
*/
|
|
149
|
-
merchant: string;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @deprecated The unique id for the webhook subscription.
|
|
153
|
-
*/
|
|
154
|
-
merchantApp: string;
|
|
155
|
-
|
|
156
|
-
updatedAt: string;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* The url that will listen to the webhook events coming from Ivy. Must be unique
|
|
160
|
-
* for the merchant app.
|
|
161
|
-
*/
|
|
162
|
-
url: string;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface WebhooksubscriptionListResponse {
|
|
166
|
-
count: number;
|
|
167
|
-
|
|
168
|
-
hasNext: boolean;
|
|
169
|
-
|
|
170
|
-
items: Array<WebhooksubscriptionListResponse.Item>;
|
|
171
|
-
|
|
172
|
-
skip: number;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export namespace WebhooksubscriptionListResponse {
|
|
176
|
-
export interface Item {
|
|
177
|
-
/**
|
|
178
|
-
* The unique id for the webhook subscription.
|
|
179
|
-
*/
|
|
180
|
-
id: string;
|
|
181
|
-
|
|
182
|
-
createdAt: string;
|
|
183
|
-
|
|
184
|
-
events: Array<
|
|
185
|
-
| 'test'
|
|
186
|
-
| 'merchant_updated'
|
|
187
|
-
| 'merchant_app_updated'
|
|
188
|
-
| 'order_created'
|
|
189
|
-
| 'order_updated'
|
|
190
|
-
| 'refund_succeeded'
|
|
191
|
-
| 'refund_failed'
|
|
192
|
-
| 'payout_report_requested'
|
|
193
|
-
| 'data_session_completed'
|
|
194
|
-
| 'checkout_session_created'
|
|
195
|
-
| 'checkout_session_updated'
|
|
196
|
-
| 'checkout_session_expired'
|
|
197
|
-
| 'checkout_session_completed'
|
|
198
|
-
| 'payout_created'
|
|
199
|
-
| 'payout_updated'
|
|
200
|
-
| 'mandate_setup_started'
|
|
201
|
-
| 'mandate_setup_succeeded'
|
|
202
|
-
| 'mandate_setup_failed'
|
|
203
|
-
| 'mandate_revoked'
|
|
204
|
-
| 'user_payout.failed'
|
|
205
|
-
| 'user_payout.paid'
|
|
206
|
-
| 'user_payout.initiated'
|
|
207
|
-
>;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* The unique id for the webhook subscription.
|
|
211
|
-
*/
|
|
212
|
-
merchant: string;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* @deprecated The unique id for the webhook subscription.
|
|
216
|
-
*/
|
|
217
|
-
merchantApp: string;
|
|
218
|
-
|
|
219
|
-
updatedAt: string;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* The url that will listen to the webhook events coming from Ivy. Must be unique
|
|
223
|
-
* for the merchant app.
|
|
224
|
-
*/
|
|
225
|
-
url: string;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export interface WebhooksubscriptionDeleteResponse {
|
|
230
|
-
success: boolean;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface WebhooksubscriptionPingResponse {
|
|
234
|
-
/**
|
|
235
|
-
* The unique identifier of the webhook that was sent.
|
|
236
|
-
*/
|
|
237
|
-
id: string;
|
|
238
|
-
|
|
239
|
-
date: string;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* The response body returned by the targeted webhook endpoint.
|
|
243
|
-
*/
|
|
244
|
-
response: string | number | boolean | Array<unknown> | Record<string, unknown> | null;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* The status code returned by the targeted webhook endpoint.
|
|
248
|
-
*/
|
|
249
|
-
statusCode: number;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* True if the targeted webhook endpoint returned status code 200. False otherwise.
|
|
253
|
-
*/
|
|
254
|
-
success: boolean;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface WebhooksubscriptionCreateParams {
|
|
258
|
-
/**
|
|
259
|
-
* The events to subscribe the url to.
|
|
260
|
-
*/
|
|
261
|
-
events: Array<
|
|
262
|
-
| 'test'
|
|
263
|
-
| 'merchant_updated'
|
|
264
|
-
| 'merchant_app_updated'
|
|
265
|
-
| 'order_created'
|
|
266
|
-
| 'order_updated'
|
|
267
|
-
| 'refund_succeeded'
|
|
268
|
-
| 'refund_failed'
|
|
269
|
-
| 'payout_report_requested'
|
|
270
|
-
| 'data_session_completed'
|
|
271
|
-
| 'checkout_session_created'
|
|
272
|
-
| 'checkout_session_updated'
|
|
273
|
-
| 'checkout_session_expired'
|
|
274
|
-
| 'checkout_session_completed'
|
|
275
|
-
| 'payout_created'
|
|
276
|
-
| 'payout_updated'
|
|
277
|
-
| 'mandate_setup_started'
|
|
278
|
-
| 'mandate_setup_succeeded'
|
|
279
|
-
| 'mandate_setup_failed'
|
|
280
|
-
| 'mandate_revoked'
|
|
281
|
-
| 'user_payout.failed'
|
|
282
|
-
| 'user_payout.paid'
|
|
283
|
-
| 'user_payout.initiated'
|
|
284
|
-
>;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* The endpoint where webhook events are sent.
|
|
288
|
-
*/
|
|
289
|
-
url: string;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export interface WebhooksubscriptionUpdateParams {
|
|
293
|
-
id: string;
|
|
294
|
-
|
|
295
|
-
events?: Array<
|
|
296
|
-
| 'test'
|
|
297
|
-
| 'merchant_updated'
|
|
298
|
-
| 'merchant_app_updated'
|
|
299
|
-
| 'order_created'
|
|
300
|
-
| 'order_updated'
|
|
301
|
-
| 'refund_succeeded'
|
|
302
|
-
| 'refund_failed'
|
|
303
|
-
| 'payout_report_requested'
|
|
304
|
-
| 'data_session_completed'
|
|
305
|
-
| 'checkout_session_created'
|
|
306
|
-
| 'checkout_session_updated'
|
|
307
|
-
| 'checkout_session_expired'
|
|
308
|
-
| 'checkout_session_completed'
|
|
309
|
-
| 'payout_created'
|
|
310
|
-
| 'payout_updated'
|
|
311
|
-
| 'mandate_setup_started'
|
|
312
|
-
| 'mandate_setup_succeeded'
|
|
313
|
-
| 'mandate_setup_failed'
|
|
314
|
-
| 'mandate_revoked'
|
|
315
|
-
| 'user_payout.failed'
|
|
316
|
-
| 'user_payout.paid'
|
|
317
|
-
| 'user_payout.initiated'
|
|
318
|
-
>;
|
|
319
|
-
|
|
320
|
-
url?: string;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export interface WebhooksubscriptionListParams {
|
|
324
|
-
limit?: number;
|
|
325
|
-
|
|
326
|
-
skip?: number;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export interface WebhooksubscriptionDeleteParams {
|
|
330
|
-
id: string;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export interface WebhooksubscriptionPingParams {
|
|
334
|
-
/**
|
|
335
|
-
* The unique identifier for the webhook subscription to trigger.
|
|
336
|
-
*/
|
|
337
|
-
id: string;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export declare namespace Webhooksubscription {
|
|
341
|
-
export {
|
|
342
|
-
type WebhooksubscriptionCreateResponse as WebhooksubscriptionCreateResponse,
|
|
343
|
-
type WebhooksubscriptionUpdateResponse as WebhooksubscriptionUpdateResponse,
|
|
344
|
-
type WebhooksubscriptionListResponse as WebhooksubscriptionListResponse,
|
|
345
|
-
type WebhooksubscriptionDeleteResponse as WebhooksubscriptionDeleteResponse,
|
|
346
|
-
type WebhooksubscriptionPingResponse as WebhooksubscriptionPingResponse,
|
|
347
|
-
type WebhooksubscriptionCreateParams as WebhooksubscriptionCreateParams,
|
|
348
|
-
type WebhooksubscriptionUpdateParams as WebhooksubscriptionUpdateParams,
|
|
349
|
-
type WebhooksubscriptionListParams as WebhooksubscriptionListParams,
|
|
350
|
-
type WebhooksubscriptionDeleteParams as WebhooksubscriptionDeleteParams,
|
|
351
|
-
type WebhooksubscriptionPingParams as WebhooksubscriptionPingParams,
|
|
352
|
-
};
|
|
353
|
-
}
|
|
5
|
+
export class Webhooksubscription extends APIResource {}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.33'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.33";
|
|
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 = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.33'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.33'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|