rebilly-js-sdk 62.205.0 → 62.207.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 +2 -4
- package/dist/rebilly-js-sdk.d.cts +337 -0
- package/dist/rebilly-js-sdk.d.mts +337 -0
- package/dist/rebilly-js-sdk.d.ts +337 -0
- package/dist/rebilly-js-sdk.es.mjs +46 -31
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/resources/storefront/order-changes-resource.js +20 -0
- package/src/resources/storefront/storefront-api-instance.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2141,6 +2141,14 @@ declare namespace rebilly {
|
|
|
2141
2141
|
type StorefrontPostSubscriptionItemsChangeResponse = operations['StorefrontPostSubscriptionItemsChange']['responses']['201']['content']['application/json']
|
|
2142
2142
|
type StorefrontPostSubscriptionItemsChangeResponsePromise = Promise<{fields: StorefrontPostSubscriptionItemsChangeResponse}>
|
|
2143
2143
|
|
|
2144
|
+
type StorefrontGetOrderChangeCollectionRequest = operations['StorefrontGetOrderChangeCollection']['parameters']["query"] & (operations['StorefrontGetOrderChangeCollection']['parameters'] extends {path: {}} ? operations['StorefrontGetOrderChangeCollection']['parameters']["path"] : {})
|
|
2145
|
+
|
|
2146
|
+
type StorefrontGetOrderChangeCollectionResponse = operations['StorefrontGetOrderChangeCollection']['responses']['200']['content']['application/json'][0]
|
|
2147
|
+
type StorefrontGetOrderChangeCollectionResponsePromise = Promise<{ items: {fields: StorefrontGetOrderChangeCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
|
|
2148
|
+
|
|
2149
|
+
type StorefrontDeleteOrderChangeResponse = operations['StorefrontDeleteOrderChange']['responses']['204']
|
|
2150
|
+
type StorefrontDeleteOrderChangeResponsePromise = Promise<{fields: StorefrontDeleteOrderChangeResponse}>
|
|
2151
|
+
|
|
2144
2152
|
type StorefrontPostSubscriptionReactivationRequest = operations['StorefrontPostSubscriptionReactivation']['requestBody']['content']['application/json']
|
|
2145
2153
|
type StorefrontCreateSubscriptionReactivationRequest = { id?: string, data: StorefrontPostSubscriptionReactivationRequest, expand?: string }
|
|
2146
2154
|
type StorefrontPostSubscriptionReactivationResponse = operations['StorefrontPostSubscriptionReactivation']['responses']['201']['content']['application/json']
|
|
@@ -7300,6 +7308,7 @@ export interface coreComponents {
|
|
|
7300
7308
|
| "Telr"
|
|
7301
7309
|
| "Terminaly-RF"
|
|
7302
7310
|
| "Tether"
|
|
7311
|
+
| "Thunes-Checkout"
|
|
7303
7312
|
| "ToditoCash-card"
|
|
7304
7313
|
| "Trustly"
|
|
7305
7314
|
| "Tupay"
|
|
@@ -8607,6 +8616,7 @@ export interface coreComponents {
|
|
|
8607
8616
|
| "Tabby"
|
|
8608
8617
|
| "Telr"
|
|
8609
8618
|
| "TestProcessor"
|
|
8619
|
+
| "Thunes"
|
|
8610
8620
|
| "ToditoCash"
|
|
8611
8621
|
| "Triple000"
|
|
8612
8622
|
| "Truevo"
|
|
@@ -8825,6 +8835,7 @@ export interface coreComponents {
|
|
|
8825
8835
|
| "TBI"
|
|
8826
8836
|
| "Telr"
|
|
8827
8837
|
| "TestProcessor"
|
|
8838
|
+
| "Thunes"
|
|
8828
8839
|
| "ToditoCash"
|
|
8829
8840
|
| "Triple000"
|
|
8830
8841
|
| "Truevo"
|
|
@@ -11500,6 +11511,7 @@ export interface coreComponents {
|
|
|
11500
11511
|
| "swift-dbt"
|
|
11501
11512
|
| "Tele2"
|
|
11502
11513
|
| "Terminaly-RF"
|
|
11514
|
+
| "Thunes-Checkout"
|
|
11503
11515
|
| "ToditoCash-card"
|
|
11504
11516
|
| "Trustly"
|
|
11505
11517
|
| "Tupay"
|
|
@@ -21571,6 +21583,25 @@ export interface coreComponents {
|
|
|
21571
21583
|
TestProcessor: coreComponents["schemas"]["GatewayAccount"] & {
|
|
21572
21584
|
threeDSecureServer?: coreComponents["schemas"]["ThreeDSecureIO3dsServer"];
|
|
21573
21585
|
};
|
|
21586
|
+
/** Thunes gateway configuration. */
|
|
21587
|
+
Thunes: coreComponents["schemas"]["GatewayAccount"] & {
|
|
21588
|
+
/** Thunes credentials object. */
|
|
21589
|
+
credentials: {
|
|
21590
|
+
/** Thunes API key used for HTTP basic authentication. */
|
|
21591
|
+
apiKey: string;
|
|
21592
|
+
/** Thunes API secret used for HTTP basic authentication. */
|
|
21593
|
+
apiSecret: string;
|
|
21594
|
+
/** Thunes merchant identifier. */
|
|
21595
|
+
merchantId: string;
|
|
21596
|
+
/** Thunes payment page identifier for hosted checkout. */
|
|
21597
|
+
paymentPageId: string;
|
|
21598
|
+
};
|
|
21599
|
+
/** Thunes settings object. */
|
|
21600
|
+
settings: {
|
|
21601
|
+
/** Payer type for the Thunes payment order. */
|
|
21602
|
+
transactionType: "C2B" | "B2B";
|
|
21603
|
+
};
|
|
21604
|
+
};
|
|
21574
21605
|
/** ToditoCash gateway configuration. */
|
|
21575
21606
|
ToditoCash: coreComponents["schemas"]["GatewayAccount"] & {
|
|
21576
21607
|
/** ToditoCash credentials object. */
|
|
@@ -26945,6 +26976,59 @@ export interface coreComponents {
|
|
|
26945
26976
|
invoice?: { [key: string]: any };
|
|
26946
26977
|
};
|
|
26947
26978
|
};
|
|
26979
|
+
/**
|
|
26980
|
+
* Change to the items of a recurring order of the customer.
|
|
26981
|
+
* A change with `applyAt` set to `nextRenewal` records the new items and applies them at the next renewal.
|
|
26982
|
+
* The current items remain until the next renewal, when the new items are applied and billed on the renewal invoice.
|
|
26983
|
+
*/
|
|
26984
|
+
StorefrontOrderChange: {
|
|
26985
|
+
/** ID of the order change. */
|
|
26986
|
+
id: string;
|
|
26987
|
+
/** ID of the order. */
|
|
26988
|
+
orderId: string;
|
|
26989
|
+
/** Status of the order change. */
|
|
26990
|
+
status: "pending" | "applied" | "canceled" | "superseded";
|
|
26991
|
+
/**
|
|
26992
|
+
* Time when the new items are applied.
|
|
26993
|
+
*
|
|
26994
|
+
* - `now`: The items change immediately.
|
|
26995
|
+
* - `nextRenewal`: The current items stay until the next renewal.
|
|
26996
|
+
* The new items are billed on the next renewal invoice.
|
|
26997
|
+
* To cancel a pending change, use the `DELETE /storefront/order-changes/{id}` operation.
|
|
26998
|
+
*/
|
|
26999
|
+
applyAt: "now" | "nextRenewal";
|
|
27000
|
+
/**
|
|
27001
|
+
* Date and time when the change is applied.
|
|
27002
|
+
* If `applyAt` is set to `nextRenewal`, this value equals the renewal time of the order.
|
|
27003
|
+
*/
|
|
27004
|
+
effectiveTime: string;
|
|
27005
|
+
/**
|
|
27006
|
+
* Date and time when the items of a pending change are billed.
|
|
27007
|
+
* After this time, the change is locked and cannot be modified until the renewal.
|
|
27008
|
+
*/
|
|
27009
|
+
lockedTime?: string | null;
|
|
27010
|
+
/** Date and time when the items of the order are replaced. */
|
|
27011
|
+
appliedTime?: string | null;
|
|
27012
|
+
/**
|
|
27013
|
+
* ID of the quote that is used to create the change.
|
|
27014
|
+
* This value is `null` if the change is not created from a quote.
|
|
27015
|
+
*/
|
|
27016
|
+
quoteId?: string | null;
|
|
27017
|
+
/** New items for the order. */
|
|
27018
|
+
items: {
|
|
27019
|
+
/** Plan details. */
|
|
27020
|
+
plan:
|
|
27021
|
+
| coreComponents["schemas"]["OriginalPlan"]
|
|
27022
|
+
| coreComponents["schemas"]["FlexiblePlan"];
|
|
27023
|
+
/** Number of units of the product on the given plan. */
|
|
27024
|
+
quantity?: number;
|
|
27025
|
+
usageLimits?: coreComponents["schemas"]["UsageLimits"] | null;
|
|
27026
|
+
/** Specifies if this item is excluded from monthly recurring revenue calculations. */
|
|
27027
|
+
excludeFromMrr?: boolean | null;
|
|
27028
|
+
}[];
|
|
27029
|
+
createdTime: coreComponents["schemas"]["CreatedTime"];
|
|
27030
|
+
updatedTime: coreComponents["schemas"]["UpdatedTime"];
|
|
27031
|
+
};
|
|
26948
27032
|
/** Reactivate customer subscription. */
|
|
26949
27033
|
PostSubscriptionReactivation: {
|
|
26950
27034
|
/** ID of the order associated with the reactivation quote. */
|
|
@@ -45274,6 +45358,27 @@ export interface storefrontPaths {
|
|
|
45274
45358
|
};
|
|
45275
45359
|
};
|
|
45276
45360
|
};
|
|
45361
|
+
"/order-changes": {
|
|
45362
|
+
/**
|
|
45363
|
+
* Retrieves a list of changes to the items of the orders of the customer.
|
|
45364
|
+
* To find the pending change of an order, use `filter=orderId:{orderId};status:pending`.
|
|
45365
|
+
*/
|
|
45366
|
+
get: operations["StorefrontGetOrderChangeCollection"];
|
|
45367
|
+
};
|
|
45368
|
+
"/order-changes/{id}": {
|
|
45369
|
+
/**
|
|
45370
|
+
* Cancels a pending change to the items of an order of the customer.
|
|
45371
|
+
* The current items of the order stay as they are.
|
|
45372
|
+
* A change cannot be canceled after it is locked by an issued invoice, applied, canceled, or superseded.
|
|
45373
|
+
*/
|
|
45374
|
+
delete: operations["StorefrontDeleteOrderChange"];
|
|
45375
|
+
parameters: {
|
|
45376
|
+
path: {
|
|
45377
|
+
/** ID of the resource. */
|
|
45378
|
+
id: storefrontComponents["parameters"]["resourceId"];
|
|
45379
|
+
};
|
|
45380
|
+
};
|
|
45381
|
+
};
|
|
45277
45382
|
"/subscription-reactivations": {
|
|
45278
45383
|
/**
|
|
45279
45384
|
* Creates a quote for requested reactivation.
|
|
@@ -46970,6 +47075,7 @@ export interface storefrontComponents {
|
|
|
46970
47075
|
| "Telr"
|
|
46971
47076
|
| "Terminaly-RF"
|
|
46972
47077
|
| "Tether"
|
|
47078
|
+
| "Thunes-Checkout"
|
|
46973
47079
|
| "ToditoCash-card"
|
|
46974
47080
|
| "Trustly"
|
|
46975
47081
|
| "Tupay"
|
|
@@ -48277,6 +48383,7 @@ export interface storefrontComponents {
|
|
|
48277
48383
|
| "Tabby"
|
|
48278
48384
|
| "Telr"
|
|
48279
48385
|
| "TestProcessor"
|
|
48386
|
+
| "Thunes"
|
|
48280
48387
|
| "ToditoCash"
|
|
48281
48388
|
| "Triple000"
|
|
48282
48389
|
| "Truevo"
|
|
@@ -48495,6 +48602,7 @@ export interface storefrontComponents {
|
|
|
48495
48602
|
| "TBI"
|
|
48496
48603
|
| "Telr"
|
|
48497
48604
|
| "TestProcessor"
|
|
48605
|
+
| "Thunes"
|
|
48498
48606
|
| "ToditoCash"
|
|
48499
48607
|
| "Triple000"
|
|
48500
48608
|
| "Truevo"
|
|
@@ -51170,6 +51278,7 @@ export interface storefrontComponents {
|
|
|
51170
51278
|
| "swift-dbt"
|
|
51171
51279
|
| "Tele2"
|
|
51172
51280
|
| "Terminaly-RF"
|
|
51281
|
+
| "Thunes-Checkout"
|
|
51173
51282
|
| "ToditoCash-card"
|
|
51174
51283
|
| "Trustly"
|
|
51175
51284
|
| "Tupay"
|
|
@@ -61241,6 +61350,25 @@ export interface storefrontComponents {
|
|
|
61241
61350
|
TestProcessor: storefrontComponents["schemas"]["GatewayAccount"] & {
|
|
61242
61351
|
threeDSecureServer?: storefrontComponents["schemas"]["ThreeDSecureIO3dsServer"];
|
|
61243
61352
|
};
|
|
61353
|
+
/** Thunes gateway configuration. */
|
|
61354
|
+
Thunes: storefrontComponents["schemas"]["GatewayAccount"] & {
|
|
61355
|
+
/** Thunes credentials object. */
|
|
61356
|
+
credentials: {
|
|
61357
|
+
/** Thunes API key used for HTTP basic authentication. */
|
|
61358
|
+
apiKey: string;
|
|
61359
|
+
/** Thunes API secret used for HTTP basic authentication. */
|
|
61360
|
+
apiSecret: string;
|
|
61361
|
+
/** Thunes merchant identifier. */
|
|
61362
|
+
merchantId: string;
|
|
61363
|
+
/** Thunes payment page identifier for hosted checkout. */
|
|
61364
|
+
paymentPageId: string;
|
|
61365
|
+
};
|
|
61366
|
+
/** Thunes settings object. */
|
|
61367
|
+
settings: {
|
|
61368
|
+
/** Payer type for the Thunes payment order. */
|
|
61369
|
+
transactionType: "C2B" | "B2B";
|
|
61370
|
+
};
|
|
61371
|
+
};
|
|
61244
61372
|
/** ToditoCash gateway configuration. */
|
|
61245
61373
|
ToditoCash: storefrontComponents["schemas"]["GatewayAccount"] & {
|
|
61246
61374
|
/** ToditoCash credentials object. */
|
|
@@ -66615,6 +66743,59 @@ export interface storefrontComponents {
|
|
|
66615
66743
|
invoice?: { [key: string]: any };
|
|
66616
66744
|
};
|
|
66617
66745
|
};
|
|
66746
|
+
/**
|
|
66747
|
+
* Change to the items of a recurring order of the customer.
|
|
66748
|
+
* A change with `applyAt` set to `nextRenewal` records the new items and applies them at the next renewal.
|
|
66749
|
+
* The current items remain until the next renewal, when the new items are applied and billed on the renewal invoice.
|
|
66750
|
+
*/
|
|
66751
|
+
StorefrontOrderChange: {
|
|
66752
|
+
/** ID of the order change. */
|
|
66753
|
+
id: string;
|
|
66754
|
+
/** ID of the order. */
|
|
66755
|
+
orderId: string;
|
|
66756
|
+
/** Status of the order change. */
|
|
66757
|
+
status: "pending" | "applied" | "canceled" | "superseded";
|
|
66758
|
+
/**
|
|
66759
|
+
* Time when the new items are applied.
|
|
66760
|
+
*
|
|
66761
|
+
* - `now`: The items change immediately.
|
|
66762
|
+
* - `nextRenewal`: The current items stay until the next renewal.
|
|
66763
|
+
* The new items are billed on the next renewal invoice.
|
|
66764
|
+
* To cancel a pending change, use the `DELETE /storefront/order-changes/{id}` operation.
|
|
66765
|
+
*/
|
|
66766
|
+
applyAt: "now" | "nextRenewal";
|
|
66767
|
+
/**
|
|
66768
|
+
* Date and time when the change is applied.
|
|
66769
|
+
* If `applyAt` is set to `nextRenewal`, this value equals the renewal time of the order.
|
|
66770
|
+
*/
|
|
66771
|
+
effectiveTime: string;
|
|
66772
|
+
/**
|
|
66773
|
+
* Date and time when the items of a pending change are billed.
|
|
66774
|
+
* After this time, the change is locked and cannot be modified until the renewal.
|
|
66775
|
+
*/
|
|
66776
|
+
lockedTime?: string | null;
|
|
66777
|
+
/** Date and time when the items of the order are replaced. */
|
|
66778
|
+
appliedTime?: string | null;
|
|
66779
|
+
/**
|
|
66780
|
+
* ID of the quote that is used to create the change.
|
|
66781
|
+
* This value is `null` if the change is not created from a quote.
|
|
66782
|
+
*/
|
|
66783
|
+
quoteId?: string | null;
|
|
66784
|
+
/** New items for the order. */
|
|
66785
|
+
items: {
|
|
66786
|
+
/** Plan details. */
|
|
66787
|
+
plan:
|
|
66788
|
+
| storefrontComponents["schemas"]["OriginalPlan"]
|
|
66789
|
+
| storefrontComponents["schemas"]["FlexiblePlan"];
|
|
66790
|
+
/** Number of units of the product on the given plan. */
|
|
66791
|
+
quantity?: number;
|
|
66792
|
+
usageLimits?: storefrontComponents["schemas"]["UsageLimits"] | null;
|
|
66793
|
+
/** Specifies if this item is excluded from monthly recurring revenue calculations. */
|
|
66794
|
+
excludeFromMrr?: boolean | null;
|
|
66795
|
+
}[];
|
|
66796
|
+
createdTime: storefrontComponents["schemas"]["CreatedTime"];
|
|
66797
|
+
updatedTime: storefrontComponents["schemas"]["UpdatedTime"];
|
|
66798
|
+
};
|
|
66618
66799
|
/** Reactivate customer subscription. */
|
|
66619
66800
|
PostSubscriptionReactivation: {
|
|
66620
66801
|
/** ID of the order associated with the reactivation quote. */
|
|
@@ -71279,6 +71460,65 @@ export interface operations {
|
|
|
71279
71460
|
};
|
|
71280
71461
|
};
|
|
71281
71462
|
};
|
|
71463
|
+
/**
|
|
71464
|
+
* Retrieves a list of changes to the items of the orders of the customer.
|
|
71465
|
+
* To find the pending change of an order, use `filter=orderId:{orderId};status:pending`.
|
|
71466
|
+
*/
|
|
71467
|
+
StorefrontGetOrderChangeCollection: {
|
|
71468
|
+
parameters: {
|
|
71469
|
+
query: {
|
|
71470
|
+
/**
|
|
71471
|
+
* Limit the number of collection items to be returned.
|
|
71472
|
+
* Use `0` to return an empty collection and still receive the count of matching items in `Pagination-Total`.
|
|
71473
|
+
*/
|
|
71474
|
+
limit?: storefrontComponents["parameters"]["collectionLimit"];
|
|
71475
|
+
/** Specifies the starting point within the collection of items to be returned. */
|
|
71476
|
+
offset?: storefrontComponents["parameters"]["collectionOffset"];
|
|
71477
|
+
/**
|
|
71478
|
+
* Criteria for filtering collection items.
|
|
71479
|
+
* This field requires a special format.
|
|
71480
|
+
* Use `,` to specify multiple allowed values.
|
|
71481
|
+
* Use `;` to specify multiple fields.
|
|
71482
|
+
*
|
|
71483
|
+
* For more information, see [Search filters](https://www.rebilly.com/docs/dev-docs/search-filters).
|
|
71484
|
+
*/
|
|
71485
|
+
filter?: storefrontComponents["parameters"]["collectionFilter"];
|
|
71486
|
+
};
|
|
71487
|
+
};
|
|
71488
|
+
responses: {
|
|
71489
|
+
/** List of order changes retrieved. */
|
|
71490
|
+
200: {
|
|
71491
|
+
headers: {};
|
|
71492
|
+
content: {
|
|
71493
|
+
"application/json": storefrontComponents["schemas"]["StorefrontOrderChange"][];
|
|
71494
|
+
};
|
|
71495
|
+
};
|
|
71496
|
+
401: storefrontComponents["responses"]["Unauthorized"];
|
|
71497
|
+
403: storefrontComponents["responses"]["Forbidden"];
|
|
71498
|
+
};
|
|
71499
|
+
};
|
|
71500
|
+
/**
|
|
71501
|
+
* Cancels a pending change to the items of an order of the customer.
|
|
71502
|
+
* The current items of the order stay as they are.
|
|
71503
|
+
* A change cannot be canceled after it is locked by an issued invoice, applied, canceled, or superseded.
|
|
71504
|
+
*/
|
|
71505
|
+
StorefrontDeleteOrderChange: {
|
|
71506
|
+
parameters: {
|
|
71507
|
+
path: {
|
|
71508
|
+
/** ID of the resource. */
|
|
71509
|
+
id: storefrontComponents["parameters"]["resourceId"];
|
|
71510
|
+
};
|
|
71511
|
+
};
|
|
71512
|
+
responses: {
|
|
71513
|
+
/** Order change canceled. */
|
|
71514
|
+
204: never;
|
|
71515
|
+
401: storefrontComponents["responses"]["Unauthorized"];
|
|
71516
|
+
403: storefrontComponents["responses"]["Forbidden"];
|
|
71517
|
+
404: storefrontComponents["responses"]["NotFound"];
|
|
71518
|
+
409: storefrontComponents["responses"]["Conflict"];
|
|
71519
|
+
429: storefrontComponents["responses"]["TooManyRequests"];
|
|
71520
|
+
};
|
|
71521
|
+
};
|
|
71282
71522
|
/**
|
|
71283
71523
|
* Creates a quote for requested reactivation.
|
|
71284
71524
|
* The quote invoice includes items from outstanding unpaid and past-due invoices for the related order.
|
|
@@ -73886,6 +74126,7 @@ export interface reportsComponents {
|
|
|
73886
74126
|
| "Telr"
|
|
73887
74127
|
| "Terminaly-RF"
|
|
73888
74128
|
| "Tether"
|
|
74129
|
+
| "Thunes-Checkout"
|
|
73889
74130
|
| "ToditoCash-card"
|
|
73890
74131
|
| "Trustly"
|
|
73891
74132
|
| "Tupay"
|
|
@@ -75193,6 +75434,7 @@ export interface reportsComponents {
|
|
|
75193
75434
|
| "Tabby"
|
|
75194
75435
|
| "Telr"
|
|
75195
75436
|
| "TestProcessor"
|
|
75437
|
+
| "Thunes"
|
|
75196
75438
|
| "ToditoCash"
|
|
75197
75439
|
| "Triple000"
|
|
75198
75440
|
| "Truevo"
|
|
@@ -75411,6 +75653,7 @@ export interface reportsComponents {
|
|
|
75411
75653
|
| "TBI"
|
|
75412
75654
|
| "Telr"
|
|
75413
75655
|
| "TestProcessor"
|
|
75656
|
+
| "Thunes"
|
|
75414
75657
|
| "ToditoCash"
|
|
75415
75658
|
| "Triple000"
|
|
75416
75659
|
| "Truevo"
|
|
@@ -78086,6 +78329,7 @@ export interface reportsComponents {
|
|
|
78086
78329
|
| "swift-dbt"
|
|
78087
78330
|
| "Tele2"
|
|
78088
78331
|
| "Terminaly-RF"
|
|
78332
|
+
| "Thunes-Checkout"
|
|
78089
78333
|
| "ToditoCash-card"
|
|
78090
78334
|
| "Trustly"
|
|
78091
78335
|
| "Tupay"
|
|
@@ -88157,6 +88401,25 @@ export interface reportsComponents {
|
|
|
88157
88401
|
TestProcessor: reportsComponents["schemas"]["GatewayAccount"] & {
|
|
88158
88402
|
threeDSecureServer?: reportsComponents["schemas"]["ThreeDSecureIO3dsServer"];
|
|
88159
88403
|
};
|
|
88404
|
+
/** Thunes gateway configuration. */
|
|
88405
|
+
Thunes: reportsComponents["schemas"]["GatewayAccount"] & {
|
|
88406
|
+
/** Thunes credentials object. */
|
|
88407
|
+
credentials: {
|
|
88408
|
+
/** Thunes API key used for HTTP basic authentication. */
|
|
88409
|
+
apiKey: string;
|
|
88410
|
+
/** Thunes API secret used for HTTP basic authentication. */
|
|
88411
|
+
apiSecret: string;
|
|
88412
|
+
/** Thunes merchant identifier. */
|
|
88413
|
+
merchantId: string;
|
|
88414
|
+
/** Thunes payment page identifier for hosted checkout. */
|
|
88415
|
+
paymentPageId: string;
|
|
88416
|
+
};
|
|
88417
|
+
/** Thunes settings object. */
|
|
88418
|
+
settings: {
|
|
88419
|
+
/** Payer type for the Thunes payment order. */
|
|
88420
|
+
transactionType: "C2B" | "B2B";
|
|
88421
|
+
};
|
|
88422
|
+
};
|
|
88160
88423
|
/** ToditoCash gateway configuration. */
|
|
88161
88424
|
ToditoCash: reportsComponents["schemas"]["GatewayAccount"] & {
|
|
88162
88425
|
/** ToditoCash credentials object. */
|
|
@@ -93531,6 +93794,59 @@ export interface reportsComponents {
|
|
|
93531
93794
|
invoice?: { [key: string]: any };
|
|
93532
93795
|
};
|
|
93533
93796
|
};
|
|
93797
|
+
/**
|
|
93798
|
+
* Change to the items of a recurring order of the customer.
|
|
93799
|
+
* A change with `applyAt` set to `nextRenewal` records the new items and applies them at the next renewal.
|
|
93800
|
+
* The current items remain until the next renewal, when the new items are applied and billed on the renewal invoice.
|
|
93801
|
+
*/
|
|
93802
|
+
StorefrontOrderChange: {
|
|
93803
|
+
/** ID of the order change. */
|
|
93804
|
+
id: string;
|
|
93805
|
+
/** ID of the order. */
|
|
93806
|
+
orderId: string;
|
|
93807
|
+
/** Status of the order change. */
|
|
93808
|
+
status: "pending" | "applied" | "canceled" | "superseded";
|
|
93809
|
+
/**
|
|
93810
|
+
* Time when the new items are applied.
|
|
93811
|
+
*
|
|
93812
|
+
* - `now`: The items change immediately.
|
|
93813
|
+
* - `nextRenewal`: The current items stay until the next renewal.
|
|
93814
|
+
* The new items are billed on the next renewal invoice.
|
|
93815
|
+
* To cancel a pending change, use the `DELETE /storefront/order-changes/{id}` operation.
|
|
93816
|
+
*/
|
|
93817
|
+
applyAt: "now" | "nextRenewal";
|
|
93818
|
+
/**
|
|
93819
|
+
* Date and time when the change is applied.
|
|
93820
|
+
* If `applyAt` is set to `nextRenewal`, this value equals the renewal time of the order.
|
|
93821
|
+
*/
|
|
93822
|
+
effectiveTime: string;
|
|
93823
|
+
/**
|
|
93824
|
+
* Date and time when the items of a pending change are billed.
|
|
93825
|
+
* After this time, the change is locked and cannot be modified until the renewal.
|
|
93826
|
+
*/
|
|
93827
|
+
lockedTime?: string | null;
|
|
93828
|
+
/** Date and time when the items of the order are replaced. */
|
|
93829
|
+
appliedTime?: string | null;
|
|
93830
|
+
/**
|
|
93831
|
+
* ID of the quote that is used to create the change.
|
|
93832
|
+
* This value is `null` if the change is not created from a quote.
|
|
93833
|
+
*/
|
|
93834
|
+
quoteId?: string | null;
|
|
93835
|
+
/** New items for the order. */
|
|
93836
|
+
items: {
|
|
93837
|
+
/** Plan details. */
|
|
93838
|
+
plan:
|
|
93839
|
+
| reportsComponents["schemas"]["OriginalPlan"]
|
|
93840
|
+
| reportsComponents["schemas"]["FlexiblePlan"];
|
|
93841
|
+
/** Number of units of the product on the given plan. */
|
|
93842
|
+
quantity?: number;
|
|
93843
|
+
usageLimits?: reportsComponents["schemas"]["UsageLimits"] | null;
|
|
93844
|
+
/** Specifies if this item is excluded from monthly recurring revenue calculations. */
|
|
93845
|
+
excludeFromMrr?: boolean | null;
|
|
93846
|
+
}[];
|
|
93847
|
+
createdTime: reportsComponents["schemas"]["CreatedTime"];
|
|
93848
|
+
updatedTime: reportsComponents["schemas"]["UpdatedTime"];
|
|
93849
|
+
};
|
|
93534
93850
|
/** Reactivate customer subscription. */
|
|
93535
93851
|
PostSubscriptionReactivation: {
|
|
93536
93852
|
/** ID of the order associated with the reactivation quote. */
|
|
@@ -100786,6 +101102,11 @@ declare module "rebilly-js-sdk" {
|
|
|
100786
101102
|
export type StorefrontCreateSubscriptionItemsChangeRequest = rebilly.StorefrontCreateSubscriptionItemsChangeRequest;
|
|
100787
101103
|
export type StorefrontPostSubscriptionItemsChangeResponse = rebilly.StorefrontPostSubscriptionItemsChangeResponse;
|
|
100788
101104
|
export type StorefrontPostSubscriptionItemsChangeResponsePromise = rebilly.StorefrontPostSubscriptionItemsChangeResponsePromise;
|
|
101105
|
+
export type StorefrontGetOrderChangeCollectionRequest = rebilly.StorefrontGetOrderChangeCollectionRequest;
|
|
101106
|
+
export type StorefrontGetOrderChangeCollectionResponse = rebilly.StorefrontGetOrderChangeCollectionResponse;
|
|
101107
|
+
export type StorefrontGetOrderChangeCollectionResponsePromise = rebilly.StorefrontGetOrderChangeCollectionResponsePromise;
|
|
101108
|
+
export type StorefrontDeleteOrderChangeResponse = rebilly.StorefrontDeleteOrderChangeResponse;
|
|
101109
|
+
export type StorefrontDeleteOrderChangeResponsePromise = rebilly.StorefrontDeleteOrderChangeResponsePromise;
|
|
100789
101110
|
export type StorefrontPostSubscriptionReactivationRequest = rebilly.StorefrontPostSubscriptionReactivationRequest;
|
|
100790
101111
|
export type StorefrontCreateSubscriptionReactivationRequest = rebilly.StorefrontCreateSubscriptionReactivationRequest;
|
|
100791
101112
|
export type StorefrontPostSubscriptionReactivationResponse = rebilly.StorefrontPostSubscriptionReactivationResponse;
|
|
@@ -105671,6 +105992,16 @@ declare module "resources/storefront/kyc-requests-resource" {
|
|
|
105671
105992
|
}): rebilly.StorefrontGetKycRequestResponsePromise;
|
|
105672
105993
|
};
|
|
105673
105994
|
}
|
|
105995
|
+
declare module "resources/storefront/order-changes-resource" {
|
|
105996
|
+
export default function OrderChangesResource({ apiHandler }: {
|
|
105997
|
+
apiHandler: any;
|
|
105998
|
+
}): {
|
|
105999
|
+
getAll({ limit, offset, filter }?: rebilly.StorefrontGetOrderChangeCollectionRequest): rebilly.StorefrontGetOrderChangeCollectionResponsePromise;
|
|
106000
|
+
delete({ id }: {
|
|
106001
|
+
id: any;
|
|
106002
|
+
}): any;
|
|
106003
|
+
};
|
|
106004
|
+
}
|
|
105674
106005
|
declare module "resources/storefront/orders-resource" {
|
|
105675
106006
|
export default function OrdersResource({ apiHandler }: {
|
|
105676
106007
|
apiHandler: any;
|
|
@@ -105998,6 +106329,12 @@ declare module "resources/storefront/storefront-api-instance" {
|
|
|
105998
106329
|
expand?: any;
|
|
105999
106330
|
}): rebilly.StorefrontGetKycRequestResponsePromise;
|
|
106000
106331
|
};
|
|
106332
|
+
orderChanges: {
|
|
106333
|
+
getAll({ limit, offset, filter }?: rebilly.StorefrontGetOrderChangeCollectionRequest): rebilly.StorefrontGetOrderChangeCollectionResponsePromise;
|
|
106334
|
+
delete({ id }: {
|
|
106335
|
+
id: any;
|
|
106336
|
+
}): any;
|
|
106337
|
+
};
|
|
106001
106338
|
orders: {
|
|
106002
106339
|
getUpcomingInvoice({ id, expand }: {
|
|
106003
106340
|
id: any;
|