rebilly-js-sdk 62.211.0 → 62.212.1
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 +1 -1
- package/dist/rebilly-js-sdk.d.cts +188 -29
- package/dist/rebilly-js-sdk.d.mts +188 -29
- package/dist/rebilly-js-sdk.d.ts +188 -29
- package/dist/rebilly-js-sdk.es.mjs +156 -146
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/resources/api-instance.js +2 -0
- package/src/resources/tracking-resource.js +1 -2
- package/src/resources/webhook-events-resource.js +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1883,6 +1883,11 @@ declare namespace rebilly {
|
|
|
1883
1883
|
type PostWebhookResponse = operations['PostWebhook']['responses']['201']['content']['application/json']
|
|
1884
1884
|
type PostWebhookResponsePromise = Promise<{fields: PostWebhookResponse}>
|
|
1885
1885
|
|
|
1886
|
+
type GetWebhookEventCollectionRequest = operations['GetWebhookEventCollection']['parameters']["query"] & (operations['GetWebhookEventCollection']['parameters'] extends {path: {}} ? operations['GetWebhookEventCollection']['parameters']["path"] : {})
|
|
1887
|
+
|
|
1888
|
+
type GetWebhookEventCollectionResponse = operations['GetWebhookEventCollection']['responses']['200']['content']['application/json'][0]
|
|
1889
|
+
type GetWebhookEventCollectionResponsePromise = Promise<{ items: {fields: GetWebhookEventCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
|
|
1890
|
+
|
|
1886
1891
|
type GetWebhookRequest = { id: string }
|
|
1887
1892
|
|
|
1888
1893
|
type GetWebhookResponse = operations['GetWebhook']['responses']['200']['content']['application/json']
|
|
@@ -3066,7 +3071,12 @@ export interface corePaths {
|
|
|
3066
3071
|
};
|
|
3067
3072
|
};
|
|
3068
3073
|
"/invoices": {
|
|
3069
|
-
/**
|
|
3074
|
+
/**
|
|
3075
|
+
* Retrieves a list of invoices.
|
|
3076
|
+
* Each invoice in the list includes up to 10 of the most recent transactions in `transactions`.
|
|
3077
|
+
* To retrieve transactions for an invoice, use [Retrieve transactions](https://www.rebilly.com/catalog/all/transactions/gettransactioncollection) with the `invoiceIds` filter.
|
|
3078
|
+
* Search results can lag briefly behind a write.
|
|
3079
|
+
*/
|
|
3070
3080
|
get: operations["GetInvoiceCollection"];
|
|
3071
3081
|
/** Creates an invoice. */
|
|
3072
3082
|
post: operations["PostInvoice"];
|
|
@@ -5726,7 +5736,10 @@ export interface corePaths {
|
|
|
5726
5736
|
get: operations["GetTrackingListCollection"];
|
|
5727
5737
|
};
|
|
5728
5738
|
"/tracking/webhooks": {
|
|
5729
|
-
/**
|
|
5739
|
+
/**
|
|
5740
|
+
* Retrieves webhook tracking logs.
|
|
5741
|
+
* Logs are sorted by creation time in descending order.
|
|
5742
|
+
*/
|
|
5730
5743
|
get: operations["GetTrackingWebhookCollection"];
|
|
5731
5744
|
};
|
|
5732
5745
|
"/tracking/webhooks/{id}": {
|
|
@@ -5776,6 +5789,13 @@ export interface corePaths {
|
|
|
5776
5789
|
/** Creates a webhook. */
|
|
5777
5790
|
post: operations["PostWebhook"];
|
|
5778
5791
|
};
|
|
5792
|
+
"/webhook-events": {
|
|
5793
|
+
/**
|
|
5794
|
+
* Retrieves the event types that your organization can use in the events filter of a webhook.
|
|
5795
|
+
* If your organization uses the Replay add-on, the list also contains Replay event types.
|
|
5796
|
+
*/
|
|
5797
|
+
get: operations["GetWebhookEventCollection"];
|
|
5798
|
+
};
|
|
5779
5799
|
"/webhooks/{id}": {
|
|
5780
5800
|
/** Retrieves a webhook with a specified ID. */
|
|
5781
5801
|
get: operations["GetWebhook"];
|
|
@@ -9574,7 +9594,11 @@ export interface coreComponents {
|
|
|
9574
9594
|
/** Specifies if the order is a new order. */
|
|
9575
9595
|
isNewOrder?: boolean;
|
|
9576
9596
|
customerId: coreComponents["schemas"]["CustomerId"];
|
|
9577
|
-
/**
|
|
9597
|
+
/**
|
|
9598
|
+
* Up to 10 of the most recent transactions for the invoice.
|
|
9599
|
+
* To retrieve transactions for an invoice, use [Retrieve transactions](https://www.rebilly.com/catalog/all/transactions/gettransactioncollection) with the `invoiceIds` filter.
|
|
9600
|
+
* Search results can lag briefly behind a write.
|
|
9601
|
+
*/
|
|
9578
9602
|
transactions?: coreComponents["schemas"]["Transaction"][];
|
|
9579
9603
|
/**
|
|
9580
9604
|
* Invoice payment retry instruction.
|
|
@@ -23396,7 +23420,8 @@ export interface coreComponents {
|
|
|
23396
23420
|
* Event types that trigger the webhook.
|
|
23397
23421
|
* If empty, all event types trigger the webhook.
|
|
23398
23422
|
*/
|
|
23399
|
-
eventsFilter?: coreComponents["schemas"]["GlobalEventType"]
|
|
23423
|
+
eventsFilter?: (Partial<coreComponents["schemas"]["GlobalEventType"]> &
|
|
23424
|
+
Partial<string>)[];
|
|
23400
23425
|
status?: "active" | "inactive";
|
|
23401
23426
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
23402
23427
|
/** URL that receives requests when a specified event occurs. */
|
|
@@ -23677,6 +23702,16 @@ export interface coreComponents {
|
|
|
23677
23702
|
customerId?: string;
|
|
23678
23703
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
23679
23704
|
};
|
|
23705
|
+
/**
|
|
23706
|
+
* Date and time when the resource is created.
|
|
23707
|
+
* This value is set automatically when the resource is created.
|
|
23708
|
+
*/
|
|
23709
|
+
CreatedTimeNoSort: string;
|
|
23710
|
+
/**
|
|
23711
|
+
* Date and time when the resource is updated.
|
|
23712
|
+
* This value is set automatically when the resource is updated.
|
|
23713
|
+
*/
|
|
23714
|
+
UpdatedTimeNoSort: string;
|
|
23680
23715
|
/**
|
|
23681
23716
|
* Webhook tracking log.
|
|
23682
23717
|
* This log contains information about a webhook request and its response.
|
|
@@ -23703,15 +23738,16 @@ export interface coreComponents {
|
|
|
23703
23738
|
/** ID of the main entity related to the event type. */
|
|
23704
23739
|
entityId?: string;
|
|
23705
23740
|
organizationId?: coreComponents["schemas"]["OrganizationId"];
|
|
23706
|
-
eventType?: coreComponents["schemas"]["GlobalEventType"]
|
|
23741
|
+
eventType?: Partial<coreComponents["schemas"]["GlobalEventType"]> &
|
|
23742
|
+
Partial<string>;
|
|
23707
23743
|
/** Source that triggered the webhook. */
|
|
23708
23744
|
source?: "webhooks" | "rules";
|
|
23709
23745
|
/** Number of attempts to send the webhook. */
|
|
23710
23746
|
attempt?: number;
|
|
23711
23747
|
/** Date and time when the webhook is sent. */
|
|
23712
23748
|
sentTime?: coreComponents["schemas"]["ServerTimestamp"];
|
|
23713
|
-
createdTime?: coreComponents["schemas"]["
|
|
23714
|
-
updatedTime?: coreComponents["schemas"]["
|
|
23749
|
+
createdTime?: coreComponents["schemas"]["CreatedTimeNoSort"];
|
|
23750
|
+
updatedTime?: coreComponents["schemas"]["UpdatedTimeNoSort"];
|
|
23715
23751
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
23716
23752
|
};
|
|
23717
23753
|
User: {
|
|
@@ -23769,6 +23805,15 @@ export interface coreComponents {
|
|
|
23769
23805
|
allowedIps?: coreComponents["schemas"]["AllowedIps"];
|
|
23770
23806
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
23771
23807
|
};
|
|
23808
|
+
WebhookEvent: {
|
|
23809
|
+
/** Event type that a webhook can subscribe to. */
|
|
23810
|
+
eventType: string;
|
|
23811
|
+
/**
|
|
23812
|
+
* Product in which the event occurs.
|
|
23813
|
+
* Use this value to distinguish between Replay events and non-Replay events.
|
|
23814
|
+
*/
|
|
23815
|
+
product: "core" | "replay";
|
|
23816
|
+
};
|
|
23772
23817
|
CustomerInformation: {
|
|
23773
23818
|
/** Currency code in ISO 4217 format. */
|
|
23774
23819
|
currency?: string;
|
|
@@ -28330,7 +28375,10 @@ export interface coreComponents {
|
|
|
28330
28375
|
transactionId?: string | null;
|
|
28331
28376
|
/** ID of the payout request that received the merged amount. */
|
|
28332
28377
|
mergedIntoPayoutRequestId?: string;
|
|
28333
|
-
/**
|
|
28378
|
+
/**
|
|
28379
|
+
* ID of the transfer that reserves the payout funds.
|
|
28380
|
+
* This value is `null` if no transfer exists.
|
|
28381
|
+
*/
|
|
28334
28382
|
replayTransferId?: string | null;
|
|
28335
28383
|
/** Specifies whether the allocation is created automatically. */
|
|
28336
28384
|
isAutoAllocation?: boolean;
|
|
@@ -33287,7 +33335,12 @@ export interface operations {
|
|
|
33287
33335
|
403: coreComponents["responses"]["Forbidden"];
|
|
33288
33336
|
};
|
|
33289
33337
|
};
|
|
33290
|
-
/**
|
|
33338
|
+
/**
|
|
33339
|
+
* Retrieves a list of invoices.
|
|
33340
|
+
* Each invoice in the list includes up to 10 of the most recent transactions in `transactions`.
|
|
33341
|
+
* To retrieve transactions for an invoice, use [Retrieve transactions](https://www.rebilly.com/catalog/all/transactions/gettransactioncollection) with the `invoiceIds` filter.
|
|
33342
|
+
* Search results can lag briefly behind a write.
|
|
33343
|
+
*/
|
|
33291
33344
|
GetInvoiceCollection: {
|
|
33292
33345
|
parameters: {
|
|
33293
33346
|
query: {
|
|
@@ -44196,7 +44249,10 @@ export interface operations {
|
|
|
44196
44249
|
403: coreComponents["responses"]["Forbidden"];
|
|
44197
44250
|
};
|
|
44198
44251
|
};
|
|
44199
|
-
/**
|
|
44252
|
+
/**
|
|
44253
|
+
* Retrieves webhook tracking logs.
|
|
44254
|
+
* Logs are sorted by creation time in descending order.
|
|
44255
|
+
*/
|
|
44200
44256
|
GetTrackingWebhookCollection: {
|
|
44201
44257
|
parameters: {
|
|
44202
44258
|
query: {
|
|
@@ -44207,11 +44263,6 @@ export interface operations {
|
|
|
44207
44263
|
limit?: coreComponents["parameters"]["collectionLimit"];
|
|
44208
44264
|
/** Specifies the starting point within the collection of items to be returned. */
|
|
44209
44265
|
offset?: coreComponents["parameters"]["collectionOffset"];
|
|
44210
|
-
/**
|
|
44211
|
-
* Sorts and orders the collection of items. To sort in descending
|
|
44212
|
-
* order, prefix with `-`. Multiple fields can be sorted by separating each with `,`.
|
|
44213
|
-
*/
|
|
44214
|
-
sort?: coreComponents["parameters"]["collectionSort"];
|
|
44215
44266
|
/**
|
|
44216
44267
|
* Criteria for filtering collection items.
|
|
44217
44268
|
* This field requires a special format.
|
|
@@ -44438,6 +44489,45 @@ export interface operations {
|
|
|
44438
44489
|
};
|
|
44439
44490
|
requestBody: coreComponents["requestBodies"]["GlobalWebhook"];
|
|
44440
44491
|
};
|
|
44492
|
+
/**
|
|
44493
|
+
* Retrieves the event types that your organization can use in the events filter of a webhook.
|
|
44494
|
+
* If your organization uses the Replay add-on, the list also contains Replay event types.
|
|
44495
|
+
*/
|
|
44496
|
+
GetWebhookEventCollection: {
|
|
44497
|
+
parameters: {
|
|
44498
|
+
query: {
|
|
44499
|
+
/**
|
|
44500
|
+
* Limit the number of collection items to be returned.
|
|
44501
|
+
* Use `0` to return an empty collection and still receive the count of matching items in `Pagination-Total`.
|
|
44502
|
+
*/
|
|
44503
|
+
limit?: coreComponents["parameters"]["collectionLimit"];
|
|
44504
|
+
/** Specifies the starting point within the collection of items to be returned. */
|
|
44505
|
+
offset?: coreComponents["parameters"]["collectionOffset"];
|
|
44506
|
+
/**
|
|
44507
|
+
* Criteria for filtering collection items.
|
|
44508
|
+
* This field requires a special format.
|
|
44509
|
+
* Use `,` to specify multiple allowed values.
|
|
44510
|
+
* Use `;` to specify multiple fields.
|
|
44511
|
+
*
|
|
44512
|
+
* For more information, see [Search filters](https://www.rebilly.com/docs/dev-docs/search-filters).
|
|
44513
|
+
*/
|
|
44514
|
+
filter?: coreComponents["parameters"]["collectionFilter"];
|
|
44515
|
+
/** Use this field to perform a partial search of text fields. */
|
|
44516
|
+
q?: coreComponents["parameters"]["collectionQuery"];
|
|
44517
|
+
};
|
|
44518
|
+
};
|
|
44519
|
+
responses: {
|
|
44520
|
+
/** Webhook event types retrieved. */
|
|
44521
|
+
200: {
|
|
44522
|
+
headers: {};
|
|
44523
|
+
content: {
|
|
44524
|
+
"application/json": coreComponents["schemas"]["WebhookEvent"][];
|
|
44525
|
+
};
|
|
44526
|
+
};
|
|
44527
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
44528
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
44529
|
+
};
|
|
44530
|
+
};
|
|
44441
44531
|
/** Retrieves a webhook with a specified ID. */
|
|
44442
44532
|
GetWebhook: {
|
|
44443
44533
|
parameters: {
|
|
@@ -49361,7 +49451,11 @@ export interface storefrontComponents {
|
|
|
49361
49451
|
/** Specifies if the order is a new order. */
|
|
49362
49452
|
isNewOrder?: boolean;
|
|
49363
49453
|
customerId: storefrontComponents["schemas"]["CustomerId"];
|
|
49364
|
-
/**
|
|
49454
|
+
/**
|
|
49455
|
+
* Up to 10 of the most recent transactions for the invoice.
|
|
49456
|
+
* To retrieve transactions for an invoice, use [Retrieve transactions](https://www.rebilly.com/catalog/all/transactions/gettransactioncollection) with the `invoiceIds` filter.
|
|
49457
|
+
* Search results can lag briefly behind a write.
|
|
49458
|
+
*/
|
|
49365
49459
|
transactions?: storefrontComponents["schemas"]["Transaction"][];
|
|
49366
49460
|
/**
|
|
49367
49461
|
* Invoice payment retry instruction.
|
|
@@ -63183,7 +63277,8 @@ export interface storefrontComponents {
|
|
|
63183
63277
|
* Event types that trigger the webhook.
|
|
63184
63278
|
* If empty, all event types trigger the webhook.
|
|
63185
63279
|
*/
|
|
63186
|
-
eventsFilter?: storefrontComponents["schemas"]["GlobalEventType"]
|
|
63280
|
+
eventsFilter?: (Partial<storefrontComponents["schemas"]["GlobalEventType"]> &
|
|
63281
|
+
Partial<string>)[];
|
|
63187
63282
|
status?: "active" | "inactive";
|
|
63188
63283
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
63189
63284
|
/** URL that receives requests when a specified event occurs. */
|
|
@@ -63464,6 +63559,16 @@ export interface storefrontComponents {
|
|
|
63464
63559
|
customerId?: string;
|
|
63465
63560
|
_links?: storefrontComponents["schemas"]["SelfLink"];
|
|
63466
63561
|
};
|
|
63562
|
+
/**
|
|
63563
|
+
* Date and time when the resource is created.
|
|
63564
|
+
* This value is set automatically when the resource is created.
|
|
63565
|
+
*/
|
|
63566
|
+
CreatedTimeNoSort: string;
|
|
63567
|
+
/**
|
|
63568
|
+
* Date and time when the resource is updated.
|
|
63569
|
+
* This value is set automatically when the resource is updated.
|
|
63570
|
+
*/
|
|
63571
|
+
UpdatedTimeNoSort: string;
|
|
63467
63572
|
/**
|
|
63468
63573
|
* Webhook tracking log.
|
|
63469
63574
|
* This log contains information about a webhook request and its response.
|
|
@@ -63490,15 +63595,16 @@ export interface storefrontComponents {
|
|
|
63490
63595
|
/** ID of the main entity related to the event type. */
|
|
63491
63596
|
entityId?: string;
|
|
63492
63597
|
organizationId?: storefrontComponents["schemas"]["OrganizationId"];
|
|
63493
|
-
eventType?: storefrontComponents["schemas"]["GlobalEventType"]
|
|
63598
|
+
eventType?: Partial<storefrontComponents["schemas"]["GlobalEventType"]> &
|
|
63599
|
+
Partial<string>;
|
|
63494
63600
|
/** Source that triggered the webhook. */
|
|
63495
63601
|
source?: "webhooks" | "rules";
|
|
63496
63602
|
/** Number of attempts to send the webhook. */
|
|
63497
63603
|
attempt?: number;
|
|
63498
63604
|
/** Date and time when the webhook is sent. */
|
|
63499
63605
|
sentTime?: storefrontComponents["schemas"]["ServerTimestamp"];
|
|
63500
|
-
createdTime?: storefrontComponents["schemas"]["
|
|
63501
|
-
updatedTime?: storefrontComponents["schemas"]["
|
|
63606
|
+
createdTime?: storefrontComponents["schemas"]["CreatedTimeNoSort"];
|
|
63607
|
+
updatedTime?: storefrontComponents["schemas"]["UpdatedTimeNoSort"];
|
|
63502
63608
|
_links?: storefrontComponents["schemas"]["SelfLink"];
|
|
63503
63609
|
};
|
|
63504
63610
|
User: {
|
|
@@ -63556,6 +63662,15 @@ export interface storefrontComponents {
|
|
|
63556
63662
|
allowedIps?: storefrontComponents["schemas"]["AllowedIps"];
|
|
63557
63663
|
_links?: storefrontComponents["schemas"]["SelfLink"];
|
|
63558
63664
|
};
|
|
63665
|
+
WebhookEvent: {
|
|
63666
|
+
/** Event type that a webhook can subscribe to. */
|
|
63667
|
+
eventType: string;
|
|
63668
|
+
/**
|
|
63669
|
+
* Product in which the event occurs.
|
|
63670
|
+
* Use this value to distinguish between Replay events and non-Replay events.
|
|
63671
|
+
*/
|
|
63672
|
+
product: "core" | "replay";
|
|
63673
|
+
};
|
|
63559
63674
|
CustomerInformation: {
|
|
63560
63675
|
/** Currency code in ISO 4217 format. */
|
|
63561
63676
|
currency?: string;
|
|
@@ -68117,7 +68232,10 @@ export interface storefrontComponents {
|
|
|
68117
68232
|
transactionId?: string | null;
|
|
68118
68233
|
/** ID of the payout request that received the merged amount. */
|
|
68119
68234
|
mergedIntoPayoutRequestId?: string;
|
|
68120
|
-
/**
|
|
68235
|
+
/**
|
|
68236
|
+
* ID of the transfer that reserves the payout funds.
|
|
68237
|
+
* This value is `null` if no transfer exists.
|
|
68238
|
+
*/
|
|
68121
68239
|
replayTransferId?: string | null;
|
|
68122
68240
|
/** Specifies whether the allocation is created automatically. */
|
|
68123
68241
|
isAutoAllocation?: boolean;
|
|
@@ -76504,7 +76622,11 @@ export interface reportsComponents {
|
|
|
76504
76622
|
/** Specifies if the order is a new order. */
|
|
76505
76623
|
isNewOrder?: boolean;
|
|
76506
76624
|
customerId: reportsComponents["schemas"]["CustomerId"];
|
|
76507
|
-
/**
|
|
76625
|
+
/**
|
|
76626
|
+
* Up to 10 of the most recent transactions for the invoice.
|
|
76627
|
+
* To retrieve transactions for an invoice, use [Retrieve transactions](https://www.rebilly.com/catalog/all/transactions/gettransactioncollection) with the `invoiceIds` filter.
|
|
76628
|
+
* Search results can lag briefly behind a write.
|
|
76629
|
+
*/
|
|
76508
76630
|
transactions?: reportsComponents["schemas"]["Transaction"][];
|
|
76509
76631
|
/**
|
|
76510
76632
|
* Invoice payment retry instruction.
|
|
@@ -90326,7 +90448,8 @@ export interface reportsComponents {
|
|
|
90326
90448
|
* Event types that trigger the webhook.
|
|
90327
90449
|
* If empty, all event types trigger the webhook.
|
|
90328
90450
|
*/
|
|
90329
|
-
eventsFilter?: reportsComponents["schemas"]["GlobalEventType"]
|
|
90451
|
+
eventsFilter?: (Partial<reportsComponents["schemas"]["GlobalEventType"]> &
|
|
90452
|
+
Partial<string>)[];
|
|
90330
90453
|
status?: "active" | "inactive";
|
|
90331
90454
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
90332
90455
|
/** URL that receives requests when a specified event occurs. */
|
|
@@ -90607,6 +90730,16 @@ export interface reportsComponents {
|
|
|
90607
90730
|
customerId?: string;
|
|
90608
90731
|
_links?: reportsComponents["schemas"]["SelfLink"];
|
|
90609
90732
|
};
|
|
90733
|
+
/**
|
|
90734
|
+
* Date and time when the resource is created.
|
|
90735
|
+
* This value is set automatically when the resource is created.
|
|
90736
|
+
*/
|
|
90737
|
+
CreatedTimeNoSort: string;
|
|
90738
|
+
/**
|
|
90739
|
+
* Date and time when the resource is updated.
|
|
90740
|
+
* This value is set automatically when the resource is updated.
|
|
90741
|
+
*/
|
|
90742
|
+
UpdatedTimeNoSort: string;
|
|
90610
90743
|
/**
|
|
90611
90744
|
* Webhook tracking log.
|
|
90612
90745
|
* This log contains information about a webhook request and its response.
|
|
@@ -90633,15 +90766,16 @@ export interface reportsComponents {
|
|
|
90633
90766
|
/** ID of the main entity related to the event type. */
|
|
90634
90767
|
entityId?: string;
|
|
90635
90768
|
organizationId?: reportsComponents["schemas"]["OrganizationId"];
|
|
90636
|
-
eventType?: reportsComponents["schemas"]["GlobalEventType"]
|
|
90769
|
+
eventType?: Partial<reportsComponents["schemas"]["GlobalEventType"]> &
|
|
90770
|
+
Partial<string>;
|
|
90637
90771
|
/** Source that triggered the webhook. */
|
|
90638
90772
|
source?: "webhooks" | "rules";
|
|
90639
90773
|
/** Number of attempts to send the webhook. */
|
|
90640
90774
|
attempt?: number;
|
|
90641
90775
|
/** Date and time when the webhook is sent. */
|
|
90642
90776
|
sentTime?: reportsComponents["schemas"]["ServerTimestamp"];
|
|
90643
|
-
createdTime?: reportsComponents["schemas"]["
|
|
90644
|
-
updatedTime?: reportsComponents["schemas"]["
|
|
90777
|
+
createdTime?: reportsComponents["schemas"]["CreatedTimeNoSort"];
|
|
90778
|
+
updatedTime?: reportsComponents["schemas"]["UpdatedTimeNoSort"];
|
|
90645
90779
|
_links?: reportsComponents["schemas"]["SelfLink"];
|
|
90646
90780
|
};
|
|
90647
90781
|
User: {
|
|
@@ -90699,6 +90833,15 @@ export interface reportsComponents {
|
|
|
90699
90833
|
allowedIps?: reportsComponents["schemas"]["AllowedIps"];
|
|
90700
90834
|
_links?: reportsComponents["schemas"]["SelfLink"];
|
|
90701
90835
|
};
|
|
90836
|
+
WebhookEvent: {
|
|
90837
|
+
/** Event type that a webhook can subscribe to. */
|
|
90838
|
+
eventType: string;
|
|
90839
|
+
/**
|
|
90840
|
+
* Product in which the event occurs.
|
|
90841
|
+
* Use this value to distinguish between Replay events and non-Replay events.
|
|
90842
|
+
*/
|
|
90843
|
+
product: "core" | "replay";
|
|
90844
|
+
};
|
|
90702
90845
|
CustomerInformation: {
|
|
90703
90846
|
/** Currency code in ISO 4217 format. */
|
|
90704
90847
|
currency?: string;
|
|
@@ -95260,7 +95403,10 @@ export interface reportsComponents {
|
|
|
95260
95403
|
transactionId?: string | null;
|
|
95261
95404
|
/** ID of the payout request that received the merged amount. */
|
|
95262
95405
|
mergedIntoPayoutRequestId?: string;
|
|
95263
|
-
/**
|
|
95406
|
+
/**
|
|
95407
|
+
* ID of the transfer that reserves the payout funds.
|
|
95408
|
+
* This value is `null` if no transfer exists.
|
|
95409
|
+
*/
|
|
95264
95410
|
replayTransferId?: string | null;
|
|
95265
95411
|
/** Specifies whether the allocation is created automatically. */
|
|
95266
95412
|
isAutoAllocation?: boolean;
|
|
@@ -101088,6 +101234,9 @@ declare module "rebilly-js-sdk" {
|
|
|
101088
101234
|
export type CreateWebhookRequest = rebilly.CreateWebhookRequest;
|
|
101089
101235
|
export type PostWebhookResponse = rebilly.PostWebhookResponse;
|
|
101090
101236
|
export type PostWebhookResponsePromise = rebilly.PostWebhookResponsePromise;
|
|
101237
|
+
export type GetWebhookEventCollectionRequest = rebilly.GetWebhookEventCollectionRequest;
|
|
101238
|
+
export type GetWebhookEventCollectionResponse = rebilly.GetWebhookEventCollectionResponse;
|
|
101239
|
+
export type GetWebhookEventCollectionResponsePromise = rebilly.GetWebhookEventCollectionResponsePromise;
|
|
101091
101240
|
export type GetWebhookRequest = rebilly.GetWebhookRequest;
|
|
101092
101241
|
export type GetWebhookResponse = rebilly.GetWebhookResponse;
|
|
101093
101242
|
export type GetWebhookResponsePromise = rebilly.GetWebhookResponsePromise;
|
|
@@ -103585,7 +103734,7 @@ declare module "resources/tracking-resource" {
|
|
|
103585
103734
|
id: any;
|
|
103586
103735
|
}): rebilly.GetTrackingTaxResponsePromise;
|
|
103587
103736
|
getAllListsChangesHistory({ limit, offset, sort, filter, q, }?: rebilly.GetTrackingListCollectionRequest): rebilly.GetTrackingListCollectionResponsePromise;
|
|
103588
|
-
getAllWebhookTrackingLogs({ limit, offset,
|
|
103737
|
+
getAllWebhookTrackingLogs({ limit, offset, filter, q, }?: rebilly.GetTrackingWebhookCollectionRequest): rebilly.GetTrackingWebhookCollectionResponsePromise;
|
|
103589
103738
|
getWebhookTrackingLog({ id }: {
|
|
103590
103739
|
id: any;
|
|
103591
103740
|
}): rebilly.GetTrackingWebhookResponsePromise;
|
|
@@ -103676,6 +103825,13 @@ declare module "resources/users-resource" {
|
|
|
103676
103825
|
}): rebilly.PutUserResponsePromise;
|
|
103677
103826
|
};
|
|
103678
103827
|
}
|
|
103828
|
+
declare module "resources/webhook-events-resource" {
|
|
103829
|
+
export default function WebhookEventsResource({ apiHandler }: {
|
|
103830
|
+
apiHandler: any;
|
|
103831
|
+
}): {
|
|
103832
|
+
getAll({ limit, offset, filter, q }?: rebilly.GetWebhookEventCollectionRequest): rebilly.GetWebhookEventCollectionResponsePromise;
|
|
103833
|
+
};
|
|
103834
|
+
}
|
|
103679
103835
|
declare module "resources/webhooks-resource" {
|
|
103680
103836
|
export default function WebhooksResource({ apiHandler }: {
|
|
103681
103837
|
apiHandler: any;
|
|
@@ -105255,7 +105411,7 @@ declare module "resources/api-instance" {
|
|
|
105255
105411
|
id: any;
|
|
105256
105412
|
}): rebilly.GetTrackingTaxResponsePromise;
|
|
105257
105413
|
getAllListsChangesHistory({ limit, offset, sort, filter, q, }?: rebilly.GetTrackingListCollectionRequest): rebilly.GetTrackingListCollectionResponsePromise;
|
|
105258
|
-
getAllWebhookTrackingLogs({ limit, offset,
|
|
105414
|
+
getAllWebhookTrackingLogs({ limit, offset, filter, q, }?: rebilly.GetTrackingWebhookCollectionRequest): rebilly.GetTrackingWebhookCollectionResponsePromise;
|
|
105259
105415
|
getWebhookTrackingLog({ id }: {
|
|
105260
105416
|
id: any;
|
|
105261
105417
|
}): rebilly.GetTrackingWebhookResponsePromise;
|
|
@@ -105333,6 +105489,9 @@ declare module "resources/api-instance" {
|
|
|
105333
105489
|
data: any;
|
|
105334
105490
|
}): rebilly.PutUserResponsePromise;
|
|
105335
105491
|
};
|
|
105492
|
+
webhookEvents: {
|
|
105493
|
+
getAll({ limit, offset, filter, q }?: rebilly.GetWebhookEventCollectionRequest): rebilly.GetWebhookEventCollectionResponsePromise;
|
|
105494
|
+
};
|
|
105336
105495
|
webhooks: {
|
|
105337
105496
|
getAll({ limit, offset, filter }?: rebilly.GetWebhookCollectionRequest): rebilly.GetWebhookCollectionResponsePromise;
|
|
105338
105497
|
create({ id, data }: rebilly.CreateWebhookRequest): rebilly.PostWebhookResponsePromise;
|