@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
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '1.0.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/resources/reports.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Reports extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Create a Payout Report for a given timerange. A Payout Report is generated
|
|
6
|
-
* async. Please follow [this guide](https://docs.getivy.de/docs/payout-report-1)
|
|
7
|
-
* to learn more in detail.
|
|
8
|
-
*/
|
|
9
|
-
create(body: ReportCreateParams, options?: Core.RequestOptions): Core.APIPromise<ReportCreateResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve the status of an existing Payout Report. Use this endpoint to poll for
|
|
12
|
-
* the status before downloading a Payout Report.
|
|
13
|
-
*/
|
|
14
|
-
retrieve(body: ReportRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<ReportRetrieveResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Download the actual Payout Report once the creation succeeded with this
|
|
17
|
-
* endpoint.
|
|
18
|
-
*/
|
|
19
|
-
download(body: ReportDownloadParams, options?: Core.RequestOptions): Core.APIPromise<PayoutReport>;
|
|
20
|
-
}
|
|
21
|
-
export interface PayoutReport {
|
|
22
|
-
payouts: Array<PayoutReport.Payout>;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace PayoutReport {
|
|
25
|
-
interface Payout {
|
|
26
|
-
id: string;
|
|
27
|
-
amount: number;
|
|
28
|
-
availableAt: string;
|
|
29
|
-
merchantAppId: string;
|
|
30
|
-
transactions: Array<Payout.Transaction>;
|
|
31
|
-
}
|
|
32
|
-
namespace Payout {
|
|
33
|
-
interface Transaction {
|
|
34
|
-
currency: 'EUR' | 'GBP' | 'PLN';
|
|
35
|
-
fee: number;
|
|
36
|
-
gross: number;
|
|
37
|
-
net: number;
|
|
38
|
-
reportingCategory: string;
|
|
39
|
-
billingFullName?: string;
|
|
40
|
-
createdAt?: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
displayId?: string;
|
|
43
|
-
orderId?: string;
|
|
44
|
-
referenceId?: string;
|
|
45
|
-
subaccountId?: string;
|
|
46
|
-
userMail?: string;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export interface ReportCreateResponse {
|
|
51
|
-
/**
|
|
52
|
-
* The unique identifier of the new Payout Report Object that was created.
|
|
53
|
-
*/
|
|
54
|
-
id: string;
|
|
55
|
-
/**
|
|
56
|
-
* Status of the Payout Report creation. This will be `pending` when the run is
|
|
57
|
-
* initially created. As soon as the report is created, this will be set to
|
|
58
|
-
* `succeeded`. Rarely, we may encounter an error, at which point this will be set
|
|
59
|
-
* to `failed`. See [the guide](https://docs.getivy.de/docs/payout-report-1) to
|
|
60
|
-
* learn more.
|
|
61
|
-
*/
|
|
62
|
-
status: string;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated
|
|
65
|
-
*/
|
|
66
|
-
fileUrl?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface ReportRetrieveResponse {
|
|
69
|
-
/**
|
|
70
|
-
* Status of this Payout Report creation. This will be `pending` when the run is
|
|
71
|
-
* initially created. When the run finishes, this will be set to `succeeded`.
|
|
72
|
-
* Rarely, we may encounter an error, at which point this will be set to `failed`.
|
|
73
|
-
*/
|
|
74
|
-
status: string;
|
|
75
|
-
/**
|
|
76
|
-
* @deprecated
|
|
77
|
-
*/
|
|
78
|
-
fileUrl?: string;
|
|
79
|
-
}
|
|
80
|
-
export interface ReportCreateParams {
|
|
81
|
-
/**
|
|
82
|
-
* Unix timestamp. The end of the timerange to create a Payout Report for.
|
|
83
|
-
*/
|
|
84
|
-
intervalEnd: number;
|
|
85
|
-
/**
|
|
86
|
-
* Unix timestamp. The start of the timerange to create a Payout Report for.
|
|
87
|
-
*/
|
|
88
|
-
intervalStart: number;
|
|
89
|
-
/**
|
|
90
|
-
* If provided, the report will be generated for this currency only. If not
|
|
91
|
-
* provided, the report will be generated for all currencies.
|
|
92
|
-
*/
|
|
93
|
-
currency?: 'EUR' | 'GBP' | 'PLN';
|
|
94
|
-
/**
|
|
95
|
-
* Optional URL of a webhook. If provided, the report, once generated, will be sent
|
|
96
|
-
* there in JSON format.
|
|
97
|
-
*/
|
|
98
|
-
webhookUrl?: string;
|
|
99
|
-
}
|
|
100
|
-
export interface ReportRetrieveParams {
|
|
101
|
-
/**
|
|
102
|
-
* The unique identifier of the Payout Report to retrieve.
|
|
103
|
-
*/
|
|
104
|
-
reportId: string;
|
|
105
|
-
}
|
|
106
|
-
export interface ReportDownloadParams {
|
|
107
|
-
/**
|
|
108
|
-
* The unique identifier of the report you want to download. This was returned when
|
|
109
|
-
* creating a new Payout Report.
|
|
110
|
-
*/
|
|
111
|
-
reportId: string;
|
|
112
|
-
/**
|
|
113
|
-
* The format in which you want to download the report. Default is csv.
|
|
114
|
-
*/
|
|
115
|
-
format?: 'csv' | 'json' | 'datev';
|
|
116
|
-
}
|
|
117
|
-
export declare namespace Reports {
|
|
118
|
-
export { type PayoutReport as PayoutReport, type ReportCreateResponse as ReportCreateResponse, type ReportRetrieveResponse as ReportRetrieveResponse, type ReportCreateParams as ReportCreateParams, type ReportRetrieveParams as ReportRetrieveParams, type ReportDownloadParams as ReportDownloadParams, };
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../src/resources/reports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAItG;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1C;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;CAGnG;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;CACrC;AAED,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,MAAM,CAAC;QAEf,WAAW,EAAE,MAAM,CAAC;QAEpB,aAAa,EAAE,MAAM,CAAC;QAEtB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;KACzC;IAED,UAAiB,MAAM,CAAC;QACtB,UAAiB,WAAW;YAC1B,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;YAEhC,GAAG,EAAE,MAAM,CAAC;YAEZ,KAAK,EAAE,MAAM,CAAC;YAEd,GA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AAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/reports.js
DELETED
|
@@ -1,31 +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.Reports = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
class Reports extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a Payout Report for a given timerange. A Payout Report is generated
|
|
9
|
-
* async. Please follow [this guide](https://docs.getivy.de/docs/payout-report-1)
|
|
10
|
-
* to learn more in detail.
|
|
11
|
-
*/
|
|
12
|
-
create(body, options) {
|
|
13
|
-
return this._client.post('/api/service/merchant/payout/export/create', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve the status of an existing Payout Report. Use this endpoint to poll for
|
|
17
|
-
* the status before downloading a Payout Report.
|
|
18
|
-
*/
|
|
19
|
-
retrieve(body, options) {
|
|
20
|
-
return this._client.post('/api/service/merchant/payout/export/retrieve', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Download the actual Payout Report once the creation succeeded with this
|
|
24
|
-
* endpoint.
|
|
25
|
-
*/
|
|
26
|
-
download(body, options) {
|
|
27
|
-
return this._client.post('/api/service/merchant/payout/export/download', { body, ...options });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.Reports = Reports;
|
|
31
|
-
//# sourceMappingURL=reports.js.map
|
package/resources/reports.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../src/resources/reports.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,IAA0B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AA5BD,0BA4BC"}
|
package/resources/reports.mjs
DELETED
|
@@ -1,27 +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 Reports extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Create a Payout Report for a given timerange. A Payout Report is generated
|
|
6
|
-
* async. Please follow [this guide](https://docs.getivy.de/docs/payout-report-1)
|
|
7
|
-
* to learn more in detail.
|
|
8
|
-
*/
|
|
9
|
-
create(body, options) {
|
|
10
|
-
return this._client.post('/api/service/merchant/payout/export/create', { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve the status of an existing Payout Report. Use this endpoint to poll for
|
|
14
|
-
* the status before downloading a Payout Report.
|
|
15
|
-
*/
|
|
16
|
-
retrieve(body, options) {
|
|
17
|
-
return this._client.post('/api/service/merchant/payout/export/retrieve', { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Download the actual Payout Report once the creation succeeded with this
|
|
21
|
-
* endpoint.
|
|
22
|
-
*/
|
|
23
|
-
download(body, options) {
|
|
24
|
-
return this._client.post('/api/service/merchant/payout/export/download', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=reports.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.mjs","sourceRoot":"","sources":["../src/resources/reports.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,IAA0B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Webhooksubscription extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
6
|
-
* url. There can be multiple subscriptions per app.
|
|
7
|
-
*/
|
|
8
|
-
create(body: WebhooksubscriptionCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebhooksubscriptionCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Updates the url or subcribed to events for a webhook subscription. This can be
|
|
11
|
-
* used via the app or via the API by providing an API key.
|
|
12
|
-
*/
|
|
13
|
-
update(body: WebhooksubscriptionUpdateParams, options?: Core.RequestOptions): Core.APIPromise<WebhooksubscriptionUpdateResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Lists all webhook subscriptions that are registered for the merchant. The
|
|
16
|
-
* results are paginated and provided in chronological order.
|
|
17
|
-
*/
|
|
18
|
-
list(body: WebhooksubscriptionListParams, options?: Core.RequestOptions): Core.APIPromise<WebhooksubscriptionListResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Deletes a webhook subscription.
|
|
21
|
-
*/
|
|
22
|
-
delete(body: WebhooksubscriptionDeleteParams, options?: Core.RequestOptions): Core.APIPromise<WebhooksubscriptionDeleteResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Trigger the webhook event "test" for the specified webhook subscription.
|
|
25
|
-
*/
|
|
26
|
-
ping(body: WebhooksubscriptionPingParams, options?: Core.RequestOptions): Core.APIPromise<WebhooksubscriptionPingResponse>;
|
|
27
|
-
}
|
|
28
|
-
export interface WebhooksubscriptionCreateResponse {
|
|
29
|
-
/**
|
|
30
|
-
* The unique id for the webhook subscription.
|
|
31
|
-
*/
|
|
32
|
-
id: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.failed' | 'user_payout.paid' | 'user_payout.initiated'>;
|
|
35
|
-
/**
|
|
36
|
-
* The unique id for the webhook subscription.
|
|
37
|
-
*/
|
|
38
|
-
merchant: string;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated The unique id for the webhook subscription.
|
|
41
|
-
*/
|
|
42
|
-
merchantApp: string;
|
|
43
|
-
updatedAt: string;
|
|
44
|
-
/**
|
|
45
|
-
* The url that will listen to the webhook events coming from Ivy. Must be unique
|
|
46
|
-
* for the merchant app.
|
|
47
|
-
*/
|
|
48
|
-
url: string;
|
|
49
|
-
}
|
|
50
|
-
export interface WebhooksubscriptionUpdateResponse {
|
|
51
|
-
/**
|
|
52
|
-
* The unique id for the webhook subscription.
|
|
53
|
-
*/
|
|
54
|
-
id: string;
|
|
55
|
-
createdAt: string;
|
|
56
|
-
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.failed' | 'user_payout.paid' | 'user_payout.initiated'>;
|
|
57
|
-
/**
|
|
58
|
-
* The unique id for the webhook subscription.
|
|
59
|
-
*/
|
|
60
|
-
merchant: string;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated The unique id for the webhook subscription.
|
|
63
|
-
*/
|
|
64
|
-
merchantApp: string;
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
/**
|
|
67
|
-
* The url that will listen to the webhook events coming from Ivy. Must be unique
|
|
68
|
-
* for the merchant app.
|
|
69
|
-
*/
|
|
70
|
-
url: string;
|
|
71
|
-
}
|
|
72
|
-
export interface WebhooksubscriptionListResponse {
|
|
73
|
-
count: number;
|
|
74
|
-
hasNext: boolean;
|
|
75
|
-
items: Array<WebhooksubscriptionListResponse.Item>;
|
|
76
|
-
skip: number;
|
|
77
|
-
}
|
|
78
|
-
export declare namespace WebhooksubscriptionListResponse {
|
|
79
|
-
interface Item {
|
|
80
|
-
/**
|
|
81
|
-
* The unique id for the webhook subscription.
|
|
82
|
-
*/
|
|
83
|
-
id: string;
|
|
84
|
-
createdAt: string;
|
|
85
|
-
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.failed' | 'user_payout.paid' | 'user_payout.initiated'>;
|
|
86
|
-
/**
|
|
87
|
-
* The unique id for the webhook subscription.
|
|
88
|
-
*/
|
|
89
|
-
merchant: string;
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated The unique id for the webhook subscription.
|
|
92
|
-
*/
|
|
93
|
-
merchantApp: string;
|
|
94
|
-
updatedAt: string;
|
|
95
|
-
/**
|
|
96
|
-
* The url that will listen to the webhook events coming from Ivy. Must be unique
|
|
97
|
-
* for the merchant app.
|
|
98
|
-
*/
|
|
99
|
-
url: string;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
export interface WebhooksubscriptionDeleteResponse {
|
|
103
|
-
success: boolean;
|
|
104
|
-
}
|
|
105
|
-
export interface WebhooksubscriptionPingResponse {
|
|
106
|
-
/**
|
|
107
|
-
* The unique identifier of the webhook that was sent.
|
|
108
|
-
*/
|
|
109
|
-
id: string;
|
|
110
|
-
date: string;
|
|
111
|
-
/**
|
|
112
|
-
* The response body returned by the targeted webhook endpoint.
|
|
113
|
-
*/
|
|
114
|
-
response: string | number | boolean | Array<unknown> | Record<string, unknown> | null;
|
|
115
|
-
/**
|
|
116
|
-
* The status code returned by the targeted webhook endpoint.
|
|
117
|
-
*/
|
|
118
|
-
statusCode: number;
|
|
119
|
-
/**
|
|
120
|
-
* True if the targeted webhook endpoint returned status code 200. False otherwise.
|
|
121
|
-
*/
|
|
122
|
-
success: boolean;
|
|
123
|
-
}
|
|
124
|
-
export interface WebhooksubscriptionCreateParams {
|
|
125
|
-
/**
|
|
126
|
-
* The events to subscribe the url to.
|
|
127
|
-
*/
|
|
128
|
-
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.failed' | 'user_payout.paid' | 'user_payout.initiated'>;
|
|
129
|
-
/**
|
|
130
|
-
* The endpoint where webhook events are sent.
|
|
131
|
-
*/
|
|
132
|
-
url: string;
|
|
133
|
-
}
|
|
134
|
-
export interface WebhooksubscriptionUpdateParams {
|
|
135
|
-
id: string;
|
|
136
|
-
events?: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.failed' | 'user_payout.paid' | 'user_payout.initiated'>;
|
|
137
|
-
url?: string;
|
|
138
|
-
}
|
|
139
|
-
export interface WebhooksubscriptionListParams {
|
|
140
|
-
limit?: number;
|
|
141
|
-
skip?: number;
|
|
142
|
-
}
|
|
143
|
-
export interface WebhooksubscriptionDeleteParams {
|
|
144
|
-
id: string;
|
|
145
|
-
}
|
|
146
|
-
export interface WebhooksubscriptionPingParams {
|
|
147
|
-
/**
|
|
148
|
-
* The unique identifier for the webhook subscription to trigger.
|
|
149
|
-
*/
|
|
150
|
-
id: string;
|
|
151
|
-
}
|
|
152
|
-
export declare namespace Webhooksubscription {
|
|
153
|
-
export { type WebhooksubscriptionCreateResponse as WebhooksubscriptionCreateResponse, type WebhooksubscriptionUpdateResponse as WebhooksubscriptionUpdateResponse, type WebhooksubscriptionListResponse as WebhooksubscriptionListResponse, type WebhooksubscriptionDeleteResponse as WebhooksubscriptionDeleteResponse, type WebhooksubscriptionPingResponse as WebhooksubscriptionPingResponse, type WebhooksubscriptionCreateParams as WebhooksubscriptionCreateParams, type WebhooksubscriptionUpdateParams as WebhooksubscriptionUpdateParams, type WebhooksubscriptionListParams as WebhooksubscriptionListParams, type WebhooksubscriptionDeleteParams as WebhooksubscriptionDeleteParams, type WebhooksubscriptionPingParams as WebhooksubscriptionPingParams, };
|
|
154
|
-
}
|
|
155
|
-
//# sourceMappingURL=webhooksubscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscription.d.ts","sourceRoot":"","sources":["../src/resources/webhooksubscription.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAIrD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAIrD;;;OAGG;IACH,IAAI,CACF,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAInD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GA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B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -1,42 +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.Webhooksubscription = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
class Webhooksubscription extends resource_1.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(body, options) {
|
|
12
|
-
return this._client.post('/api/service/webhook-subscription/create', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Updates the url or subcribed to events for a webhook subscription. This can be
|
|
16
|
-
* used via the app or via the API by providing an API key.
|
|
17
|
-
*/
|
|
18
|
-
update(body, options) {
|
|
19
|
-
return this._client.post('/api/service/webhook-subscription/update', { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Lists all webhook subscriptions that are registered for the merchant. The
|
|
23
|
-
* results are paginated and provided in chronological order.
|
|
24
|
-
*/
|
|
25
|
-
list(body, options) {
|
|
26
|
-
return this._client.post('/api/service/webhook-subscription/list', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Deletes a webhook subscription.
|
|
30
|
-
*/
|
|
31
|
-
delete(body, options) {
|
|
32
|
-
return this._client.post('/api/service/webhook-subscription/delete', { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Trigger the webhook event "test" for the specified webhook subscription.
|
|
36
|
-
*/
|
|
37
|
-
ping(body, options) {
|
|
38
|
-
return this._client.post('/api/service/webhook-subscription/ping', { body, ...options });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.Webhooksubscription = Webhooksubscription;
|
|
42
|
-
//# sourceMappingURL=webhooksubscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscription.js","sourceRoot":"","sources":["../src/resources/webhooksubscription.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;OAGG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AArDD,kDAqDC"}
|
|
@@ -1,38 +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 Webhooksubscription extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
6
|
-
* url. There can be multiple subscriptions per app.
|
|
7
|
-
*/
|
|
8
|
-
create(body, options) {
|
|
9
|
-
return this._client.post('/api/service/webhook-subscription/create', { body, ...options });
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Updates the url or subcribed to events for a webhook subscription. This can be
|
|
13
|
-
* used via the app or via the API by providing an API key.
|
|
14
|
-
*/
|
|
15
|
-
update(body, options) {
|
|
16
|
-
return this._client.post('/api/service/webhook-subscription/update', { body, ...options });
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Lists all webhook subscriptions that are registered for the merchant. The
|
|
20
|
-
* results are paginated and provided in chronological order.
|
|
21
|
-
*/
|
|
22
|
-
list(body, options) {
|
|
23
|
-
return this._client.post('/api/service/webhook-subscription/list', { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Deletes a webhook subscription.
|
|
27
|
-
*/
|
|
28
|
-
delete(body, options) {
|
|
29
|
-
return this._client.post('/api/service/webhook-subscription/delete', { body, ...options });
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Trigger the webhook event "test" for the specified webhook subscription.
|
|
33
|
-
*/
|
|
34
|
-
ping(body, options) {
|
|
35
|
-
return this._client.post('/api/service/webhook-subscription/ping', { body, ...options });
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=webhooksubscription.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscription.mjs","sourceRoot":"","sources":["../src/resources/webhooksubscription.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;OAGG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
package/src/resources/reports.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
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 Reports extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a Payout Report for a given timerange. A Payout Report is generated
|
|
9
|
-
* async. Please follow [this guide](https://docs.getivy.de/docs/payout-report-1)
|
|
10
|
-
* to learn more in detail.
|
|
11
|
-
*/
|
|
12
|
-
create(body: ReportCreateParams, options?: Core.RequestOptions): Core.APIPromise<ReportCreateResponse> {
|
|
13
|
-
return this._client.post('/api/service/merchant/payout/export/create', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Retrieve the status of an existing Payout Report. Use this endpoint to poll for
|
|
18
|
-
* the status before downloading a Payout Report.
|
|
19
|
-
*/
|
|
20
|
-
retrieve(
|
|
21
|
-
body: ReportRetrieveParams,
|
|
22
|
-
options?: Core.RequestOptions,
|
|
23
|
-
): Core.APIPromise<ReportRetrieveResponse> {
|
|
24
|
-
return this._client.post('/api/service/merchant/payout/export/retrieve', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Download the actual Payout Report once the creation succeeded with this
|
|
29
|
-
* endpoint.
|
|
30
|
-
*/
|
|
31
|
-
download(body: ReportDownloadParams, options?: Core.RequestOptions): Core.APIPromise<PayoutReport> {
|
|
32
|
-
return this._client.post('/api/service/merchant/payout/export/download', { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface PayoutReport {
|
|
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';
|
|
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
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface ReportCreateResponse {
|
|
85
|
-
/**
|
|
86
|
-
* The unique identifier of the new Payout Report Object that was created.
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
|
|
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;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated
|
|
101
|
-
*/
|
|
102
|
-
fileUrl?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
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;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated
|
|
115
|
-
*/
|
|
116
|
-
fileUrl?: string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface ReportCreateParams {
|
|
120
|
-
/**
|
|
121
|
-
* Unix timestamp. The end of the timerange to create a Payout Report for.
|
|
122
|
-
*/
|
|
123
|
-
intervalEnd: number;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Unix timestamp. The start of the timerange to create a Payout Report for.
|
|
127
|
-
*/
|
|
128
|
-
intervalStart: number;
|
|
129
|
-
|
|
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
|
-
currency?: 'EUR' | 'GBP' | 'PLN';
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Optional URL of a webhook. If provided, the report, once generated, will be sent
|
|
138
|
-
* there in JSON format.
|
|
139
|
-
*/
|
|
140
|
-
webhookUrl?: string;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface ReportRetrieveParams {
|
|
144
|
-
/**
|
|
145
|
-
* The unique identifier of the Payout Report to retrieve.
|
|
146
|
-
*/
|
|
147
|
-
reportId: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
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
|
-
reportId: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* The format in which you want to download the report. Default is csv.
|
|
159
|
-
*/
|
|
160
|
-
format?: 'csv' | 'json' | 'datev';
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export declare namespace Reports {
|
|
164
|
-
export {
|
|
165
|
-
type PayoutReport as PayoutReport,
|
|
166
|
-
type ReportCreateResponse as ReportCreateResponse,
|
|
167
|
-
type ReportRetrieveResponse as ReportRetrieveResponse,
|
|
168
|
-
type ReportCreateParams as ReportCreateParams,
|
|
169
|
-
type ReportRetrieveParams as ReportRetrieveParams,
|
|
170
|
-
type ReportDownloadParams as ReportDownloadParams,
|
|
171
|
-
};
|
|
172
|
-
}
|