@getivy/node-sdk 0.1.0-alpha.2 → 0.1.0-alpha.4

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 (47) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +1 -1
  3. package/README.md +17 -17
  4. package/core.js +9 -9
  5. package/core.js.map +1 -1
  6. package/core.mjs +10 -10
  7. package/core.mjs.map +1 -1
  8. package/error.d.ts +2 -2
  9. package/error.d.ts.map +1 -1
  10. package/error.js +4 -4
  11. package/error.js.map +1 -1
  12. package/error.mjs +2 -2
  13. package/error.mjs.map +1 -1
  14. package/index.d.mts +13 -10
  15. package/index.d.ts +13 -10
  16. package/index.d.ts.map +1 -1
  17. package/index.js +45 -42
  18. package/index.js.map +1 -1
  19. package/index.mjs +42 -39
  20. package/index.mjs.map +1 -1
  21. package/package.json +3 -3
  22. package/resource.d.ts +3 -3
  23. package/resource.d.ts.map +1 -1
  24. package/resource.js.map +1 -1
  25. package/resource.mjs.map +1 -1
  26. package/resources/index.d.ts +1 -0
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js +3 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs +1 -0
  31. package/resources/index.mjs.map +1 -1
  32. package/resources/webhooksubscription.d.ts +155 -0
  33. package/resources/webhooksubscription.d.ts.map +1 -0
  34. package/resources/webhooksubscription.js +42 -0
  35. package/resources/webhooksubscription.js.map +1 -0
  36. package/resources/webhooksubscription.mjs +38 -0
  37. package/resources/webhooksubscription.mjs.map +1 -0
  38. package/src/core.ts +10 -10
  39. package/src/error.ts +2 -2
  40. package/src/index.ts +56 -27
  41. package/src/resource.ts +3 -3
  42. package/src/resources/index.ts +13 -0
  43. package/src/resources/webhooksubscription.ts +353 -0
  44. package/src/version.ts +1 -1
  45. package/version.d.ts +1 -1
  46. package/version.js +1 -1
  47. package/version.mjs +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Subaccounts = exports.Reports = exports.Refunds = exports.Payouts = exports.Orders = exports.Mandates = exports.Customers = exports.Checkoutsession = exports.Charges = exports.Capabilities = exports.Banks = exports.Balance = void 0;
4
+ exports.Webhooksubscription = exports.Subaccounts = exports.Reports = exports.Refunds = exports.Payouts = exports.Orders = exports.Mandates = exports.Customers = exports.Checkoutsession = exports.Charges = exports.Capabilities = exports.Banks = exports.Balance = void 0;
5
5
  var balance_1 = require("./balance.js");
6
6
  Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_1.Balance; } });
7
7
  var banks_1 = require("./banks.js");
@@ -26,4 +26,6 @@ var reports_1 = require("./reports.js");
26
26
  Object.defineProperty(exports, "Reports", { enumerable: true, get: function () { return reports_1.Reports; } });
27
27
  var subaccounts_1 = require("./subaccounts.js");
28
28
  Object.defineProperty(exports, "Subaccounts", { enumerable: true, get: function () { return subaccounts_1.Subaccounts; } });
29
+ var webhooksubscription_1 = require("./webhooksubscription.js");
30
+ Object.defineProperty(exports, "Webhooksubscription", { enumerable: true, get: function () { return webhooksubscription_1.Webhooksubscription; } });
29
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA8F;AAArF,kGAAA,OAAO,OAAA;AAChB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,kDAA8G;AAArG,4GAAA,YAAY,OAAA;AACrB,wCAA0E;AAAjE,kGAAA,OAAO,OAAA;AAChB,wDAQ2B;AAPzB,kHAAA,eAAe,OAAA;AAQjB,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,gDAKuB;AAJrB,0GAAA,WAAW,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA8F;AAArF,kGAAA,OAAO,OAAA;AAChB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,kDAA8G;AAArG,4GAAA,YAAY,OAAA;AACrB,wCAA0E;AAAjE,kGAAA,OAAO,OAAA;AAChB,wDAQ2B;AAPzB,kHAAA,eAAe,OAAA;AAQjB,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,gEAY+B;AAX7B,0HAAA,mBAAmB,OAAA"}
@@ -11,4 +11,5 @@ export { Payouts, } from "./payouts.mjs";
11
11
  export { Refunds, } from "./refunds.mjs";
12
12
  export { Reports, } from "./reports.mjs";
13
13
  export { Subaccounts, } from "./subaccounts.mjs";
14
+ export { Webhooksubscription, } from "./webhooksubscription.mjs";
14
15
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA4D;OACrE,EACL,KAAK,GAON;OACM,EAAE,YAAY,EAAkE;OAChF,EAAE,OAAO,EAAwC;OACjD,EACL,eAAe,GAOhB;OACM,EACL,SAAS,GAKV;OACM,EACL,QAAQ,GAMT;OACM,EACL,MAAM,GAKP;OACM,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAKR;OACM,EACL,OAAO,GAOR;OACM,EACL,WAAW,GAIZ"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA4D;OACrE,EACL,KAAK,GAON;OACM,EAAE,YAAY,EAAkE;OAChF,EAAE,OAAO,EAAwC;OACjD,EACL,eAAe,GAOhB;OACM,EACL,SAAS,GAKV;OACM,EACL,QAAQ,GAMT;OACM,EACL,MAAM,GAKP;OACM,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAKR;OACM,EACL,OAAO,GAOR;OACM,EACL,WAAW,GAIZ;OACM,EACL,mBAAmB,GAWpB"}
@@ -0,0 +1,155 @@
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
@@ -0,0 +1 @@
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,GAC5B,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAIrD;;OAEG;IACH,IAAI,CACF,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGpD;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,KAAK,CACT,MAAM,GACN,kBAAkB,GAClB,sBAAsB,GACtB,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,eA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E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -0,0 +1,42 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,38 @@
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
@@ -0,0 +1 @@
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/core.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VERSION } from './version';
2
2
  import {
3
- GetivyError,
3
+ IvyError,
4
4
  APIError,
5
5
  APIConnectionError,
6
6
  APIConnectionTimeoutError,
@@ -504,7 +504,7 @@ export abstract class APIClient {
504
504
  if (value === null) {
505
505
  return `${encodeURIComponent(key)}=`;
506
506
  }
507
- throw new GetivyError(
507
+ throw new IvyError(
508
508
  `Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
509
509
  );
510
510
  })
@@ -654,7 +654,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
654
654
  async getNextPage(): Promise<this> {
655
655
  const nextInfo = this.nextPageInfo();
656
656
  if (!nextInfo) {
657
- throw new GetivyError(
657
+ throw new IvyError(
658
658
  'No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.',
659
659
  );
660
660
  }
@@ -990,10 +990,10 @@ export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve
990
990
 
991
991
  const validatePositiveInteger = (name: string, n: unknown): number => {
992
992
  if (typeof n !== 'number' || !Number.isInteger(n)) {
993
- throw new GetivyError(`${name} must be an integer`);
993
+ throw new IvyError(`${name} must be an integer`);
994
994
  }
995
995
  if (n < 0) {
996
- throw new GetivyError(`${name} must be a positive integer`);
996
+ throw new IvyError(`${name} must be a positive integer`);
997
997
  }
998
998
  return n;
999
999
  };
@@ -1009,7 +1009,7 @@ export const castToError = (err: any): Error => {
1009
1009
  };
1010
1010
 
1011
1011
  export const ensurePresent = <T>(value: T | null | undefined): T => {
1012
- if (value == null) throw new GetivyError(`Expected a value to be given but received ${value} instead.`);
1012
+ if (value == null) throw new IvyError(`Expected a value to be given but received ${value} instead.`);
1013
1013
  return value;
1014
1014
  };
1015
1015
 
@@ -1034,14 +1034,14 @@ export const coerceInteger = (value: unknown): number => {
1034
1034
  if (typeof value === 'number') return Math.round(value);
1035
1035
  if (typeof value === 'string') return parseInt(value, 10);
1036
1036
 
1037
- throw new GetivyError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
1037
+ throw new IvyError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
1038
1038
  };
1039
1039
 
1040
1040
  export const coerceFloat = (value: unknown): number => {
1041
1041
  if (typeof value === 'number') return value;
1042
1042
  if (typeof value === 'string') return parseFloat(value);
1043
1043
 
1044
- throw new GetivyError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
1044
+ throw new IvyError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
1045
1045
  };
1046
1046
 
1047
1047
  export const coerceBoolean = (value: unknown): boolean => {
@@ -1107,7 +1107,7 @@ function applyHeadersMut(targetHeaders: Headers, newHeaders: Headers): void {
1107
1107
 
1108
1108
  export function debug(action: string, ...args: any[]) {
1109
1109
  if (typeof process !== 'undefined' && process?.env?.['DEBUG'] === 'true') {
1110
- console.log(`Getivy:DEBUG:${action}`, ...args);
1110
+ console.log(`Ivy:DEBUG:${action}`, ...args);
1111
1111
  }
1112
1112
  }
1113
1113
 
@@ -1192,7 +1192,7 @@ export const toBase64 = (str: string | null | undefined): string => {
1192
1192
  return btoa(str);
1193
1193
  }
1194
1194
 
1195
- throw new GetivyError('Cannot generate b64 string; Expected `Buffer` or `btoa` to be defined');
1195
+ throw new IvyError('Cannot generate b64 string; Expected `Buffer` or `btoa` to be defined');
1196
1196
  };
1197
1197
 
1198
1198
  export function isObj(obj: unknown): obj is Record<string, unknown> {
package/src/error.ts CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  import { castToError, Headers } from './core';
4
4
 
5
- export class GetivyError extends Error {}
5
+ export class IvyError extends Error {}
6
6
 
7
7
  export class APIError<
8
8
  TStatus extends number | undefined = number | undefined,
9
9
  THeaders extends Headers | undefined = Headers | undefined,
10
10
  TError extends Object | undefined = Object | undefined,
11
- > extends GetivyError {
11
+ > extends IvyError {
12
12
  /** HTTP status for the response that caused the error */
13
13
  readonly status: TStatus;
14
14
  /** HTTP headers for the response that caused the error */
package/src/index.ts CHANGED
@@ -78,6 +78,19 @@ import {
78
78
  SubaccountRetrieveParams,
79
79
  Subaccounts,
80
80
  } from './resources/subaccounts';
81
+ import {
82
+ Webhooksubscription,
83
+ WebhooksubscriptionCreateParams,
84
+ WebhooksubscriptionCreateResponse,
85
+ WebhooksubscriptionDeleteParams,
86
+ WebhooksubscriptionDeleteResponse,
87
+ WebhooksubscriptionListParams,
88
+ WebhooksubscriptionListResponse,
89
+ WebhooksubscriptionPingParams,
90
+ WebhooksubscriptionPingResponse,
91
+ WebhooksubscriptionUpdateParams,
92
+ WebhooksubscriptionUpdateResponse,
93
+ } from './resources/webhooksubscription';
81
94
 
82
95
  const environments = {
83
96
  production: 'https://api.getivy.de',
@@ -103,7 +116,7 @@ export interface ClientOptions {
103
116
  /**
104
117
  * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
105
118
  *
106
- * Defaults to process.env['GETIVY_BASE_URL'].
119
+ * Defaults to process.env['IVY_BASE_URL'].
107
120
  */
108
121
  baseURL?: string | null | undefined;
109
122
 
@@ -158,19 +171,19 @@ export interface ClientOptions {
158
171
  }
159
172
 
160
173
  /**
161
- * API Client for interfacing with the Getivy API.
174
+ * API Client for interfacing with the Ivy API.
162
175
  */
163
- export class Getivy extends Core.APIClient {
176
+ export class Ivy extends Core.APIClient {
164
177
  apiKey: string;
165
178
 
166
179
  private _options: ClientOptions;
167
180
 
168
181
  /**
169
- * API Client for interfacing with the Getivy API.
182
+ * API Client for interfacing with the Ivy API.
170
183
  *
171
184
  * @param {string | undefined} [opts.apiKey=process.env['IVY_API_KEY'] ?? undefined]
172
185
  * @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
173
- * @param {string} [opts.baseURL=process.env['GETIVY_BASE_URL'] ?? https://api.getivy.de] - Override the default base URL for the API.
186
+ * @param {string} [opts.baseURL=process.env['IVY_BASE_URL'] ?? https://api.getivy.de] - Override the default base URL for the API.
174
187
  * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
175
188
  * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
176
189
  * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
@@ -179,13 +192,13 @@ export class Getivy extends Core.APIClient {
179
192
  * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
180
193
  */
181
194
  constructor({
182
- baseURL = Core.readEnv('GETIVY_BASE_URL'),
195
+ baseURL = Core.readEnv('IVY_BASE_URL'),
183
196
  apiKey = Core.readEnv('IVY_API_KEY'),
184
197
  ...opts
185
198
  }: ClientOptions = {}) {
186
199
  if (apiKey === undefined) {
187
- throw new Errors.GetivyError(
188
- "The IVY_API_KEY environment variable is missing or empty; either provide it, or instantiate the Getivy client with an apiKey option, like new Getivy({ apiKey: 'My API Key' }).",
200
+ throw new Errors.IvyError(
201
+ "The IVY_API_KEY environment variable is missing or empty; either provide it, or instantiate the Ivy client with an apiKey option, like new Ivy({ apiKey: 'My API Key' }).",
189
202
  );
190
203
  }
191
204
 
@@ -197,8 +210,8 @@ export class Getivy extends Core.APIClient {
197
210
  };
198
211
 
199
212
  if (baseURL && opts.environment) {
200
- throw new Errors.GetivyError(
201
- 'Ambiguous URL; The `baseURL` option (or GETIVY_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null',
213
+ throw new Errors.IvyError(
214
+ 'Ambiguous URL; The `baseURL` option (or IVY_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null',
202
215
  );
203
216
  }
204
217
 
@@ -227,6 +240,7 @@ export class Getivy extends Core.APIClient {
227
240
  reports: API.Reports = new API.Reports(this);
228
241
  subaccounts: API.Subaccounts = new API.Subaccounts(this);
229
242
  balance: API.Balance = new API.Balance(this);
243
+ webhooksubscription: API.Webhooksubscription = new API.Webhooksubscription(this);
230
244
 
231
245
  protected override defaultQuery(): Core.DefaultQuery | undefined {
232
246
  return this._options.defaultQuery;
@@ -243,10 +257,10 @@ export class Getivy extends Core.APIClient {
243
257
  return { 'X-Ivy-Api-Key': this.apiKey };
244
258
  }
245
259
 
246
- static Getivy = this;
260
+ static Ivy = this;
247
261
  static DEFAULT_TIMEOUT = 60000; // 1 minute
248
262
 
249
- static GetivyError = Errors.GetivyError;
263
+ static IvyError = Errors.IvyError;
250
264
  static APIError = Errors.APIError;
251
265
  static APIConnectionError = Errors.APIConnectionError;
252
266
  static APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
@@ -264,19 +278,20 @@ export class Getivy extends Core.APIClient {
264
278
  static fileFromPath = Uploads.fileFromPath;
265
279
  }
266
280
 
267
- Getivy.Banks = Banks;
268
- Getivy.Checkoutsession = Checkoutsession;
269
- Getivy.Customers = Customers;
270
- Getivy.Orders = Orders;
271
- Getivy.Charges = Charges;
272
- Getivy.Mandates = Mandates;
273
- Getivy.Capabilities = Capabilities;
274
- Getivy.Refunds = Refunds;
275
- Getivy.Payouts = Payouts;
276
- Getivy.Reports = Reports;
277
- Getivy.Subaccounts = Subaccounts;
278
- Getivy.Balance = Balance;
279
- export declare namespace Getivy {
281
+ Ivy.Banks = Banks;
282
+ Ivy.Checkoutsession = Checkoutsession;
283
+ Ivy.Customers = Customers;
284
+ Ivy.Orders = Orders;
285
+ Ivy.Charges = Charges;
286
+ Ivy.Mandates = Mandates;
287
+ Ivy.Capabilities = Capabilities;
288
+ Ivy.Refunds = Refunds;
289
+ Ivy.Payouts = Payouts;
290
+ Ivy.Reports = Reports;
291
+ Ivy.Subaccounts = Subaccounts;
292
+ Ivy.Balance = Balance;
293
+ Ivy.Webhooksubscription = Webhooksubscription;
294
+ export declare namespace Ivy {
280
295
  export type RequestOptions = Core.RequestOptions;
281
296
 
282
297
  export {
@@ -371,11 +386,25 @@ export declare namespace Getivy {
371
386
  type BalanceRetrieveResponse as BalanceRetrieveResponse,
372
387
  type BalanceRetrieveParams as BalanceRetrieveParams,
373
388
  };
389
+
390
+ export {
391
+ Webhooksubscription as Webhooksubscription,
392
+ type WebhooksubscriptionCreateResponse as WebhooksubscriptionCreateResponse,
393
+ type WebhooksubscriptionUpdateResponse as WebhooksubscriptionUpdateResponse,
394
+ type WebhooksubscriptionListResponse as WebhooksubscriptionListResponse,
395
+ type WebhooksubscriptionDeleteResponse as WebhooksubscriptionDeleteResponse,
396
+ type WebhooksubscriptionPingResponse as WebhooksubscriptionPingResponse,
397
+ type WebhooksubscriptionCreateParams as WebhooksubscriptionCreateParams,
398
+ type WebhooksubscriptionUpdateParams as WebhooksubscriptionUpdateParams,
399
+ type WebhooksubscriptionListParams as WebhooksubscriptionListParams,
400
+ type WebhooksubscriptionDeleteParams as WebhooksubscriptionDeleteParams,
401
+ type WebhooksubscriptionPingParams as WebhooksubscriptionPingParams,
402
+ };
374
403
  }
375
404
 
376
405
  export { toFile, fileFromPath } from './uploads';
377
406
  export {
378
- GetivyError,
407
+ IvyError,
379
408
  APIError,
380
409
  APIConnectionError,
381
410
  APIConnectionTimeoutError,
@@ -390,4 +419,4 @@ export {
390
419
  UnprocessableEntityError,
391
420
  } from './error';
392
421
 
393
- export default Getivy;
422
+ export default Ivy;
package/src/resource.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import type { Getivy } from './index';
3
+ import type { Ivy } from './index';
4
4
 
5
5
  export class APIResource {
6
- protected _client: Getivy;
6
+ protected _client: Ivy;
7
7
 
8
- constructor(client: Getivy) {
8
+ constructor(client: Ivy) {
9
9
  this._client = client;
10
10
  }
11
11
  }
@@ -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';