rebilly-js-sdk 62.212.0 → 62.212.2

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 CHANGED
@@ -1,3 +1,3 @@
1
- ## 62.212.0 (2026-10-09)
1
+ ## 62.212.2 (2026-10-09)
2
2
 
3
3
  This was a version bump only for rebilly-js-sdk to align it with other projects, there were no code changes.
@@ -1728,10 +1728,10 @@ declare namespace rebilly {
1728
1728
  type PatchPayoutRequestAllocationResponse = operations['PatchPayoutRequestAllocation']['responses']['200']['content']['application/json']
1729
1729
  type PatchPayoutRequestAllocationResponsePromise = Promise<{fields: PatchPayoutRequestAllocationResponse}>
1730
1730
 
1731
- type PostPayoutRequestAllocationsProcessRequest = operations['PostPayoutRequestAllocationsProcess']['requestBody']['content']['application/json']
1732
- type CreatePayoutRequestAllocationsProcessRequest = { id?: string, data: PostPayoutRequestAllocationsProcessRequest, expand?: string }
1733
- type PostPayoutRequestAllocationsProcessResponse = operations['PostPayoutRequestAllocationsProcess']['responses']['204']
1734
- type PostPayoutRequestAllocationsProcessResponsePromise = Promise<{fields: PostPayoutRequestAllocationsProcessResponse}>
1731
+ type PostPayoutRequestAllocationOperationsRequest = operations['PostPayoutRequestAllocationOperations']['requestBody']['content']['application/json']
1732
+ type CreatePayoutRequestAllocationOperationsRequest = { id?: string, data: PostPayoutRequestAllocationOperationsRequest, expand?: string }
1733
+ type PostPayoutRequestAllocationOperationsResponse = operations['PostPayoutRequestAllocationOperations']['responses']['200']['content']['application/json']
1734
+ type PostPayoutRequestAllocationOperationsResponsePromise = Promise<{fields: PostPayoutRequestAllocationOperationsResponse}>
1735
1735
 
1736
1736
  type PostPayoutRequestBatchOperationsRequest = operations['PostPayoutRequestBatchOperations']['requestBody']['content']['application/json']
1737
1737
  type CreatePayoutRequestBatchOperationsRequest = { id?: string, data: PostPayoutRequestBatchOperationsRequest, expand?: string }
@@ -5540,16 +5540,20 @@ export interface corePaths {
5540
5540
  };
5541
5541
  };
5542
5542
  };
5543
- "/payout-request-allocations/process": {
5543
+ "/payout-request-allocation-operations": {
5544
5544
  /**
5545
- * Initiates the processing of one or more payout request allocations.
5545
+ * Creates a payout request allocation operation and queues the given allocations for processing.
5546
+ *
5547
+ * The `type` field specifies the action:
5548
+ * - `process`: Queues the given allocations for processing.
5546
5549
  *
5547
5550
  * Only allocations with status `pending` are processed.
5548
- * Each allocation is processed by creating a transaction.
5549
5551
  * Rejects the request without queueing allocations when any allocation uses an inactive gateway account
5550
5552
  * or a gateway account with payout instruction `none`.
5553
+ * Poll the allocation status for the result.
5554
+ * The operation completes before the response returns.
5551
5555
  */
5552
- post: operations["PostPayoutRequestAllocationsProcess"];
5556
+ post: operations["PostPayoutRequestAllocationOperations"];
5553
5557
  };
5554
5558
  "/payout-request-batch-operations": {
5555
5559
  /**
@@ -5736,7 +5740,10 @@ export interface corePaths {
5736
5740
  get: operations["GetTrackingListCollection"];
5737
5741
  };
5738
5742
  "/tracking/webhooks": {
5739
- /** Retrieves webhook tracking logs. */
5743
+ /**
5744
+ * Retrieves webhook tracking logs.
5745
+ * Logs are sorted by creation time in descending order.
5746
+ */
5740
5747
  get: operations["GetTrackingWebhookCollection"];
5741
5748
  };
5742
5749
  "/tracking/webhooks/{id}": {
@@ -22980,6 +22987,26 @@ export interface coreComponents {
22980
22987
  status?: number;
22981
22988
  invalidFields?: coreComponents["schemas"]["InvalidFields"];
22982
22989
  } & coreComponents["schemas"]["BaseProblem"];
22990
+ ProcessPayoutRequestAllocationOperation: {
22991
+ /** Type of operation that queues the given allocations for processing. */
22992
+ type: "process";
22993
+ /** Array of allocation IDs to process. */
22994
+ allocationIds: string[];
22995
+ };
22996
+ /** Action to apply to payout request allocations. */
22997
+ PayoutRequestAllocationOperationRequest: coreComponents["schemas"]["ProcessPayoutRequestAllocationOperation"];
22998
+ /** Action applied to a set of payout request allocations. */
22999
+ PayoutRequestAllocationOperation: {
23000
+ /** Type of action applied to the allocations. */
23001
+ type: "process";
23002
+ /** IDs of the payout request allocations in the operation. */
23003
+ allocationIds: string[];
23004
+ /**
23005
+ * Status of the operation.
23006
+ * The operation completes before the response returns, so the status is always `completed`.
23007
+ */
23008
+ status: "completed";
23009
+ };
22983
23010
  ApprovePayoutRequestBatchOperation: {
22984
23011
  /** Type of operation that approves payout requests in the batch. */
22985
23012
  type: "approve";
@@ -23699,6 +23726,16 @@ export interface coreComponents {
23699
23726
  customerId?: string;
23700
23727
  _links?: coreComponents["schemas"]["SelfLink"];
23701
23728
  };
23729
+ /**
23730
+ * Date and time when the resource is created.
23731
+ * This value is set automatically when the resource is created.
23732
+ */
23733
+ CreatedTimeNoSort: string;
23734
+ /**
23735
+ * Date and time when the resource is updated.
23736
+ * This value is set automatically when the resource is updated.
23737
+ */
23738
+ UpdatedTimeNoSort: string;
23702
23739
  /**
23703
23740
  * Webhook tracking log.
23704
23741
  * This log contains information about a webhook request and its response.
@@ -23733,8 +23770,8 @@ export interface coreComponents {
23733
23770
  attempt?: number;
23734
23771
  /** Date and time when the webhook is sent. */
23735
23772
  sentTime?: coreComponents["schemas"]["ServerTimestamp"];
23736
- createdTime?: coreComponents["schemas"]["CreatedTime"];
23737
- updatedTime?: coreComponents["schemas"]["UpdatedTime"];
23773
+ createdTime?: coreComponents["schemas"]["CreatedTimeNoSort"];
23774
+ updatedTime?: coreComponents["schemas"]["UpdatedTimeNoSort"];
23738
23775
  _links?: coreComponents["schemas"]["SelfLink"];
23739
23776
  };
23740
23777
  User: {
@@ -29303,8 +29340,9 @@ export interface coreComponents {
29303
29340
  * ID of the payout request for which the transaction is fully allocated.
29304
29341
  *
29305
29342
  * > **Note:** Use the payout request allocation flow instead of this field.
29306
- * Create an allocation with `POST /payout-request-allocations`,
29307
- * then initiate processing with `POST /payout-request-allocations/process`.
29343
+ * Create an allocation with `POST /payout-request-allocations`.
29344
+ * To process a selected set, send `POST /payout-request-allocation-operations` with `type` set to `process`.
29345
+ * To process a batch, send `POST /payout-request-batch-operations` with `type` set to `process`.
29308
29346
  */
29309
29347
  payoutRequestId?: string;
29310
29348
  };
@@ -43402,29 +43440,35 @@ export interface operations {
43402
43440
  };
43403
43441
  };
43404
43442
  /**
43405
- * Initiates the processing of one or more payout request allocations.
43443
+ * Creates a payout request allocation operation and queues the given allocations for processing.
43444
+ *
43445
+ * The `type` field specifies the action:
43446
+ * - `process`: Queues the given allocations for processing.
43406
43447
  *
43407
43448
  * Only allocations with status `pending` are processed.
43408
- * Each allocation is processed by creating a transaction.
43409
43449
  * Rejects the request without queueing allocations when any allocation uses an inactive gateway account
43410
43450
  * or a gateway account with payout instruction `none`.
43451
+ * Poll the allocation status for the result.
43452
+ * The operation completes before the response returns.
43411
43453
  */
43412
- PostPayoutRequestAllocationsProcess: {
43454
+ PostPayoutRequestAllocationOperations: {
43413
43455
  responses: {
43414
- /** Allocation processing has been initiated. */
43415
- 204: never;
43456
+ /** Allocation operation completed. */
43457
+ 200: {
43458
+ headers: {};
43459
+ content: {
43460
+ "application/json": coreComponents["schemas"]["PayoutRequestAllocationOperation"];
43461
+ };
43462
+ };
43416
43463
  401: coreComponents["responses"]["Unauthorized"];
43417
43464
  403: coreComponents["responses"]["Forbidden"];
43418
43465
  422: coreComponents["responses"]["ValidationError"];
43419
43466
  429: coreComponents["responses"]["TooManyRequests"];
43420
43467
  };
43421
- /** Allocation processing options. */
43468
+ /** Action to apply to payout request allocations. */
43422
43469
  requestBody: {
43423
43470
  content: {
43424
- "application/json": {
43425
- /** Array of allocation IDs to process. */
43426
- allocationIds: string[];
43427
- };
43471
+ "application/json": coreComponents["schemas"]["PayoutRequestAllocationOperationRequest"];
43428
43472
  };
43429
43473
  };
43430
43474
  };
@@ -44236,7 +44280,10 @@ export interface operations {
44236
44280
  403: coreComponents["responses"]["Forbidden"];
44237
44281
  };
44238
44282
  };
44239
- /** Retrieves webhook tracking logs. */
44283
+ /**
44284
+ * Retrieves webhook tracking logs.
44285
+ * Logs are sorted by creation time in descending order.
44286
+ */
44240
44287
  GetTrackingWebhookCollection: {
44241
44288
  parameters: {
44242
44289
  query: {
@@ -44247,11 +44294,6 @@ export interface operations {
44247
44294
  limit?: coreComponents["parameters"]["collectionLimit"];
44248
44295
  /** Specifies the starting point within the collection of items to be returned. */
44249
44296
  offset?: coreComponents["parameters"]["collectionOffset"];
44250
- /**
44251
- * Sorts and orders the collection of items. To sort in descending
44252
- * order, prefix with `-`. Multiple fields can be sorted by separating each with `,`.
44253
- */
44254
- sort?: coreComponents["parameters"]["collectionSort"];
44255
44297
  /**
44256
44298
  * Criteria for filtering collection items.
44257
44299
  * This field requires a special format.
@@ -62829,6 +62871,26 @@ export interface storefrontComponents {
62829
62871
  status?: number;
62830
62872
  invalidFields?: storefrontComponents["schemas"]["InvalidFields"];
62831
62873
  } & storefrontComponents["schemas"]["BaseProblem"];
62874
+ ProcessPayoutRequestAllocationOperation: {
62875
+ /** Type of operation that queues the given allocations for processing. */
62876
+ type: "process";
62877
+ /** Array of allocation IDs to process. */
62878
+ allocationIds: string[];
62879
+ };
62880
+ /** Action to apply to payout request allocations. */
62881
+ PayoutRequestAllocationOperationRequest: storefrontComponents["schemas"]["ProcessPayoutRequestAllocationOperation"];
62882
+ /** Action applied to a set of payout request allocations. */
62883
+ PayoutRequestAllocationOperation: {
62884
+ /** Type of action applied to the allocations. */
62885
+ type: "process";
62886
+ /** IDs of the payout request allocations in the operation. */
62887
+ allocationIds: string[];
62888
+ /**
62889
+ * Status of the operation.
62890
+ * The operation completes before the response returns, so the status is always `completed`.
62891
+ */
62892
+ status: "completed";
62893
+ };
62832
62894
  ApprovePayoutRequestBatchOperation: {
62833
62895
  /** Type of operation that approves payout requests in the batch. */
62834
62896
  type: "approve";
@@ -63548,6 +63610,16 @@ export interface storefrontComponents {
63548
63610
  customerId?: string;
63549
63611
  _links?: storefrontComponents["schemas"]["SelfLink"];
63550
63612
  };
63613
+ /**
63614
+ * Date and time when the resource is created.
63615
+ * This value is set automatically when the resource is created.
63616
+ */
63617
+ CreatedTimeNoSort: string;
63618
+ /**
63619
+ * Date and time when the resource is updated.
63620
+ * This value is set automatically when the resource is updated.
63621
+ */
63622
+ UpdatedTimeNoSort: string;
63551
63623
  /**
63552
63624
  * Webhook tracking log.
63553
63625
  * This log contains information about a webhook request and its response.
@@ -63582,8 +63654,8 @@ export interface storefrontComponents {
63582
63654
  attempt?: number;
63583
63655
  /** Date and time when the webhook is sent. */
63584
63656
  sentTime?: storefrontComponents["schemas"]["ServerTimestamp"];
63585
- createdTime?: storefrontComponents["schemas"]["CreatedTime"];
63586
- updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
63657
+ createdTime?: storefrontComponents["schemas"]["CreatedTimeNoSort"];
63658
+ updatedTime?: storefrontComponents["schemas"]["UpdatedTimeNoSort"];
63587
63659
  _links?: storefrontComponents["schemas"]["SelfLink"];
63588
63660
  };
63589
63661
  User: {
@@ -69152,8 +69224,9 @@ export interface storefrontComponents {
69152
69224
  * ID of the payout request for which the transaction is fully allocated.
69153
69225
  *
69154
69226
  * > **Note:** Use the payout request allocation flow instead of this field.
69155
- * Create an allocation with `POST /payout-request-allocations`,
69156
- * then initiate processing with `POST /payout-request-allocations/process`.
69227
+ * Create an allocation with `POST /payout-request-allocations`.
69228
+ * To process a selected set, send `POST /payout-request-allocation-operations` with `type` set to `process`.
69229
+ * To process a batch, send `POST /payout-request-batch-operations` with `type` set to `process`.
69157
69230
  */
69158
69231
  payoutRequestId?: string;
69159
69232
  };
@@ -89990,6 +90063,26 @@ export interface reportsComponents {
89990
90063
  status?: number;
89991
90064
  invalidFields?: reportsComponents["schemas"]["InvalidFields"];
89992
90065
  } & reportsComponents["schemas"]["BaseProblem"];
90066
+ ProcessPayoutRequestAllocationOperation: {
90067
+ /** Type of operation that queues the given allocations for processing. */
90068
+ type: "process";
90069
+ /** Array of allocation IDs to process. */
90070
+ allocationIds: string[];
90071
+ };
90072
+ /** Action to apply to payout request allocations. */
90073
+ PayoutRequestAllocationOperationRequest: reportsComponents["schemas"]["ProcessPayoutRequestAllocationOperation"];
90074
+ /** Action applied to a set of payout request allocations. */
90075
+ PayoutRequestAllocationOperation: {
90076
+ /** Type of action applied to the allocations. */
90077
+ type: "process";
90078
+ /** IDs of the payout request allocations in the operation. */
90079
+ allocationIds: string[];
90080
+ /**
90081
+ * Status of the operation.
90082
+ * The operation completes before the response returns, so the status is always `completed`.
90083
+ */
90084
+ status: "completed";
90085
+ };
89993
90086
  ApprovePayoutRequestBatchOperation: {
89994
90087
  /** Type of operation that approves payout requests in the batch. */
89995
90088
  type: "approve";
@@ -90709,6 +90802,16 @@ export interface reportsComponents {
90709
90802
  customerId?: string;
90710
90803
  _links?: reportsComponents["schemas"]["SelfLink"];
90711
90804
  };
90805
+ /**
90806
+ * Date and time when the resource is created.
90807
+ * This value is set automatically when the resource is created.
90808
+ */
90809
+ CreatedTimeNoSort: string;
90810
+ /**
90811
+ * Date and time when the resource is updated.
90812
+ * This value is set automatically when the resource is updated.
90813
+ */
90814
+ UpdatedTimeNoSort: string;
90712
90815
  /**
90713
90816
  * Webhook tracking log.
90714
90817
  * This log contains information about a webhook request and its response.
@@ -90743,8 +90846,8 @@ export interface reportsComponents {
90743
90846
  attempt?: number;
90744
90847
  /** Date and time when the webhook is sent. */
90745
90848
  sentTime?: reportsComponents["schemas"]["ServerTimestamp"];
90746
- createdTime?: reportsComponents["schemas"]["CreatedTime"];
90747
- updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
90849
+ createdTime?: reportsComponents["schemas"]["CreatedTimeNoSort"];
90850
+ updatedTime?: reportsComponents["schemas"]["UpdatedTimeNoSort"];
90748
90851
  _links?: reportsComponents["schemas"]["SelfLink"];
90749
90852
  };
90750
90853
  User: {
@@ -96313,8 +96416,9 @@ export interface reportsComponents {
96313
96416
  * ID of the payout request for which the transaction is fully allocated.
96314
96417
  *
96315
96418
  * > **Note:** Use the payout request allocation flow instead of this field.
96316
- * Create an allocation with `POST /payout-request-allocations`,
96317
- * then initiate processing with `POST /payout-request-allocations/process`.
96419
+ * Create an allocation with `POST /payout-request-allocations`.
96420
+ * To process a selected set, send `POST /payout-request-allocation-operations` with `type` set to `process`.
96421
+ * To process a batch, send `POST /payout-request-batch-operations` with `type` set to `process`.
96318
96422
  */
96319
96423
  payoutRequestId?: string;
96320
96424
  };
@@ -101090,10 +101194,10 @@ declare module "rebilly-js-sdk" {
101090
101194
  export type PatchPayoutRequestAllocationRequest = rebilly.PatchPayoutRequestAllocationRequest;
101091
101195
  export type PatchPayoutRequestAllocationResponse = rebilly.PatchPayoutRequestAllocationResponse;
101092
101196
  export type PatchPayoutRequestAllocationResponsePromise = rebilly.PatchPayoutRequestAllocationResponsePromise;
101093
- export type PostPayoutRequestAllocationsProcessRequest = rebilly.PostPayoutRequestAllocationsProcessRequest;
101094
- export type CreatePayoutRequestAllocationsProcessRequest = rebilly.CreatePayoutRequestAllocationsProcessRequest;
101095
- export type PostPayoutRequestAllocationsProcessResponse = rebilly.PostPayoutRequestAllocationsProcessResponse;
101096
- export type PostPayoutRequestAllocationsProcessResponsePromise = rebilly.PostPayoutRequestAllocationsProcessResponsePromise;
101197
+ export type PostPayoutRequestAllocationOperationsRequest = rebilly.PostPayoutRequestAllocationOperationsRequest;
101198
+ export type CreatePayoutRequestAllocationOperationsRequest = rebilly.CreatePayoutRequestAllocationOperationsRequest;
101199
+ export type PostPayoutRequestAllocationOperationsResponse = rebilly.PostPayoutRequestAllocationOperationsResponse;
101200
+ export type PostPayoutRequestAllocationOperationsResponsePromise = rebilly.PostPayoutRequestAllocationOperationsResponsePromise;
101097
101201
  export type PostPayoutRequestBatchOperationsRequest = rebilly.PostPayoutRequestBatchOperationsRequest;
101098
101202
  export type CreatePayoutRequestBatchOperationsRequest = rebilly.CreatePayoutRequestBatchOperationsRequest;
101099
101203
  export type PostPayoutRequestBatchOperationsResponse = rebilly.PostPayoutRequestBatchOperationsResponse;
@@ -103081,6 +103185,15 @@ declare module "resources/payment-tokens-resource" {
103081
103185
  }): rebilly.GetTokenResponsePromise;
103082
103186
  };
103083
103187
  }
103188
+ declare module "resources/payout-request-allocation-operations-resource" {
103189
+ export default function PayoutRequestAllocationOperationsResource({ apiHandler, }: {
103190
+ apiHandler: any;
103191
+ }): {
103192
+ create({ data }: {
103193
+ data: any;
103194
+ }): any;
103195
+ };
103196
+ }
103084
103197
  declare module "resources/payout-request-allocations-resource" {
103085
103198
  export default function PayoutRequestAllocationsResource({ apiHandler }: {
103086
103199
  apiHandler: any;
@@ -103096,9 +103209,6 @@ declare module "resources/payout-request-allocations-resource" {
103096
103209
  id: any;
103097
103210
  data: any;
103098
103211
  }): any;
103099
- process({ data }: {
103100
- data: any;
103101
- }): any;
103102
103212
  };
103103
103213
  }
103104
103214
  declare module "resources/payout-request-auto-allocations-resource" {
@@ -103703,7 +103813,7 @@ declare module "resources/tracking-resource" {
103703
103813
  id: any;
103704
103814
  }): rebilly.GetTrackingTaxResponsePromise;
103705
103815
  getAllListsChangesHistory({ limit, offset, sort, filter, q, }?: rebilly.GetTrackingListCollectionRequest): rebilly.GetTrackingListCollectionResponsePromise;
103706
- getAllWebhookTrackingLogs({ limit, offset, sort, filter, q, }?: rebilly.GetTrackingWebhookCollectionRequest): rebilly.GetTrackingWebhookCollectionResponsePromise;
103816
+ getAllWebhookTrackingLogs({ limit, offset, filter, q, }?: rebilly.GetTrackingWebhookCollectionRequest): rebilly.GetTrackingWebhookCollectionResponsePromise;
103707
103817
  getWebhookTrackingLog({ id }: {
103708
103818
  id: any;
103709
103819
  }): rebilly.GetTrackingWebhookResponsePromise;
@@ -104881,6 +104991,11 @@ declare module "resources/api-instance" {
104881
104991
  token: any;
104882
104992
  }): rebilly.GetTokenResponsePromise;
104883
104993
  };
104994
+ payoutRequestAllocationOperations: {
104995
+ create({ data }: {
104996
+ data: any;
104997
+ }): any;
104998
+ };
104884
104999
  payoutRequestAllocations: {
104885
105000
  getAll({ limit, offset, filter, sort }?: rebilly.GetPayoutRequestAllocationCollectionRequest): rebilly.GetPayoutRequestAllocationCollectionResponsePromise;
104886
105001
  create({ data }: {
@@ -104893,9 +105008,6 @@ declare module "resources/api-instance" {
104893
105008
  id: any;
104894
105009
  data: any;
104895
105010
  }): any;
104896
- process({ data }: {
104897
- data: any;
104898
- }): any;
104899
105011
  };
104900
105012
  payoutRequestAutoAllocations: {
104901
105013
  create({ data }: {
@@ -105380,7 +105492,7 @@ declare module "resources/api-instance" {
105380
105492
  id: any;
105381
105493
  }): rebilly.GetTrackingTaxResponsePromise;
105382
105494
  getAllListsChangesHistory({ limit, offset, sort, filter, q, }?: rebilly.GetTrackingListCollectionRequest): rebilly.GetTrackingListCollectionResponsePromise;
105383
- getAllWebhookTrackingLogs({ limit, offset, sort, filter, q, }?: rebilly.GetTrackingWebhookCollectionRequest): rebilly.GetTrackingWebhookCollectionResponsePromise;
105495
+ getAllWebhookTrackingLogs({ limit, offset, filter, q, }?: rebilly.GetTrackingWebhookCollectionRequest): rebilly.GetTrackingWebhookCollectionResponsePromise;
105384
105496
  getWebhookTrackingLog({ id }: {
105385
105497
  id: any;
105386
105498
  }): rebilly.GetTrackingWebhookResponsePromise;