rebilly-js-sdk 62.195.0 → 62.196.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/README.md +12 -9
- package/dist/rebilly-js-sdk.d.cts +116 -19
- package/dist/rebilly-js-sdk.d.mts +116 -19
- package/dist/rebilly-js-sdk.d.ts +116 -19
- package/dist/rebilly-js-sdk.es.mjs +164 -119
- package/dist/rebilly-js-sdk.umd.js +3 -3
- package/package.json +1 -1
- package/scripts/merge-types.js +11 -1
- package/src/create-api-instance.js +1 -1
- package/src/experimental/experimental-resources.js +51 -0
- package/src/{resources/experimental → experimental}/location-resource.js +3 -3
- package/src/{resources/experimental → experimental}/timelines-resource.js +14 -9
- package/src/resources/api-instance.js +2 -0
- package/src/resources/order-changes-resource.js +39 -0
- package/src/resources/experimental/experimental-resources.js +0 -43
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,42 +19,45 @@ To install and use the JS SDK, see the [JS SDK quickstart](https://www.rebilly.c
|
|
|
19
19
|
|
|
20
20
|
## Development
|
|
21
21
|
|
|
22
|
+
The resources in `src/resources` are generated from the API definitions by `js-sdk-generator:generate-sdk-code` and are not committed.
|
|
23
|
+
Run the commands below through Nx, which generates them first.
|
|
24
|
+
|
|
22
25
|
Build development `dist` folder without sourcemap
|
|
23
26
|
|
|
24
27
|
```
|
|
25
|
-
|
|
28
|
+
pnpm nx run rebilly-js-sdk:build:dev
|
|
26
29
|
```
|
|
27
30
|
|
|
28
|
-
Build release `dist` folder with sourcemap
|
|
31
|
+
Build release `dist` folder with sourcemap and types
|
|
29
32
|
|
|
30
33
|
```
|
|
31
|
-
|
|
34
|
+
pnpm nx run rebilly-js-sdk:build
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
Run all unit tests
|
|
35
38
|
|
|
36
39
|
```
|
|
37
|
-
|
|
40
|
+
pnpm nx run rebilly-js-sdk:test:unit
|
|
38
41
|
```
|
|
39
42
|
|
|
40
43
|
Watch unit tests and re-run on change
|
|
41
44
|
|
|
42
45
|
```
|
|
43
|
-
|
|
46
|
+
pnpm nx run rebilly-js-sdk:test:unit:watch
|
|
44
47
|
```
|
|
45
48
|
|
|
46
49
|
Generate coverage report
|
|
47
50
|
|
|
48
51
|
```
|
|
49
|
-
|
|
52
|
+
pnpm nx run rebilly-js-sdk:test:unit:coverage
|
|
50
53
|
```
|
|
51
54
|
|
|
52
|
-
Check that the generated typescript type file is valid (
|
|
55
|
+
Check that the generated typescript type file is valid (build first, which also runs this check)
|
|
53
56
|
|
|
54
57
|
```
|
|
55
|
-
|
|
58
|
+
pnpm nx run rebilly-js-sdk:test:check-build-types
|
|
56
59
|
```
|
|
57
60
|
|
|
58
61
|
## Typescript types generation
|
|
59
62
|
|
|
60
|
-
Types are automatically created because `
|
|
63
|
+
Types are automatically created because `ts:bundle-types` is called as part of `build`.
|
|
@@ -13682,9 +13682,19 @@ export interface coreComponents {
|
|
|
13682
13682
|
recentInvoiceId?: string | null;
|
|
13683
13683
|
/** Details of items in the order. */
|
|
13684
13684
|
items: coreComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
|
|
13685
|
-
/**
|
|
13685
|
+
/**
|
|
13686
|
+
* Delivery address of the order.
|
|
13687
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
13688
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
13689
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
13690
|
+
*/
|
|
13686
13691
|
deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
13687
|
-
/**
|
|
13692
|
+
/**
|
|
13693
|
+
* Billing address of the order.
|
|
13694
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
13695
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
13696
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
13697
|
+
*/
|
|
13688
13698
|
billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
13689
13699
|
/** Date and time when the order is activated. */
|
|
13690
13700
|
activationTime?: string | null;
|
|
@@ -14310,9 +14320,19 @@ export interface coreComponents {
|
|
|
14310
14320
|
poNumber?: string | null;
|
|
14311
14321
|
/** Notes for the customer that are displayed on the order invoice. */
|
|
14312
14322
|
notes?: string;
|
|
14313
|
-
/**
|
|
14323
|
+
/**
|
|
14324
|
+
* Billing address of the order.
|
|
14325
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
14326
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
14327
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
14328
|
+
*/
|
|
14314
14329
|
billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
14315
|
-
/**
|
|
14330
|
+
/**
|
|
14331
|
+
* Delivery address of the order.
|
|
14332
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
14333
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
14334
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
14335
|
+
*/
|
|
14316
14336
|
deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
14317
14337
|
/**
|
|
14318
14338
|
* Length of time, in ISO-8601 durations format,
|
|
@@ -53427,9 +53447,19 @@ export interface storefrontComponents {
|
|
|
53427
53447
|
recentInvoiceId?: string | null;
|
|
53428
53448
|
/** Details of items in the order. */
|
|
53429
53449
|
items: storefrontComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
|
|
53430
|
-
/**
|
|
53450
|
+
/**
|
|
53451
|
+
* Delivery address of the order.
|
|
53452
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
53453
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
53454
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
53455
|
+
*/
|
|
53431
53456
|
deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
53432
|
-
/**
|
|
53457
|
+
/**
|
|
53458
|
+
* Billing address of the order.
|
|
53459
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
53460
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
53461
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
53462
|
+
*/
|
|
53433
53463
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
53434
53464
|
/** Date and time when the order is activated. */
|
|
53435
53465
|
activationTime?: string | null;
|
|
@@ -54055,9 +54085,19 @@ export interface storefrontComponents {
|
|
|
54055
54085
|
poNumber?: string | null;
|
|
54056
54086
|
/** Notes for the customer that are displayed on the order invoice. */
|
|
54057
54087
|
notes?: string;
|
|
54058
|
-
/**
|
|
54088
|
+
/**
|
|
54089
|
+
* Billing address of the order.
|
|
54090
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
54091
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
54092
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
54093
|
+
*/
|
|
54059
54094
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
54060
|
-
/**
|
|
54095
|
+
/**
|
|
54096
|
+
* Delivery address of the order.
|
|
54097
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
54098
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
54099
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
54100
|
+
*/
|
|
54061
54101
|
deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
54062
54102
|
/**
|
|
54063
54103
|
* Length of time, in ISO-8601 durations format,
|
|
@@ -80122,9 +80162,19 @@ export interface reportsComponents {
|
|
|
80122
80162
|
recentInvoiceId?: string | null;
|
|
80123
80163
|
/** Details of items in the order. */
|
|
80124
80164
|
items: reportsComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
|
|
80125
|
-
/**
|
|
80165
|
+
/**
|
|
80166
|
+
* Delivery address of the order.
|
|
80167
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
80168
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80169
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
80170
|
+
*/
|
|
80126
80171
|
deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80127
|
-
/**
|
|
80172
|
+
/**
|
|
80173
|
+
* Billing address of the order.
|
|
80174
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
80175
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80176
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
80177
|
+
*/
|
|
80128
80178
|
billingAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80129
80179
|
/** Date and time when the order is activated. */
|
|
80130
80180
|
activationTime?: string | null;
|
|
@@ -80750,9 +80800,19 @@ export interface reportsComponents {
|
|
|
80750
80800
|
poNumber?: string | null;
|
|
80751
80801
|
/** Notes for the customer that are displayed on the order invoice. */
|
|
80752
80802
|
notes?: string;
|
|
80753
|
-
/**
|
|
80803
|
+
/**
|
|
80804
|
+
* Billing address of the order.
|
|
80805
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
80806
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80807
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
80808
|
+
*/
|
|
80754
80809
|
billingAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80755
|
-
/**
|
|
80810
|
+
/**
|
|
80811
|
+
* Delivery address of the order.
|
|
80812
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
80813
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80814
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
80815
|
+
*/
|
|
80756
80816
|
deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80757
80817
|
/**
|
|
80758
80818
|
* Length of time, in ISO-8601 durations format,
|
|
@@ -102098,6 +102158,24 @@ declare module "resources/order-cancellations-resource" {
|
|
|
102098
102158
|
}): any;
|
|
102099
102159
|
};
|
|
102100
102160
|
}
|
|
102161
|
+
declare module "resources/order-changes-resource" {
|
|
102162
|
+
export default function OrderChangesResource({ apiHandler }: {
|
|
102163
|
+
apiHandler: any;
|
|
102164
|
+
}): {
|
|
102165
|
+
getAll({ limit, offset, filter, sort }?: rebilly.GetOrderChangeCollectionRequest): rebilly.GetOrderChangeCollectionResponsePromise;
|
|
102166
|
+
create({ id, data }: rebilly.CreateOrderChangeRequest): rebilly.PostOrderChangeResponsePromise;
|
|
102167
|
+
get({ id }: {
|
|
102168
|
+
id: any;
|
|
102169
|
+
}): rebilly.GetOrderChangeResponsePromise;
|
|
102170
|
+
update({ id, data }: {
|
|
102171
|
+
id: any;
|
|
102172
|
+
data: any;
|
|
102173
|
+
}): rebilly.PutOrderChangeResponsePromise;
|
|
102174
|
+
delete({ id }: {
|
|
102175
|
+
id: any;
|
|
102176
|
+
}): any;
|
|
102177
|
+
};
|
|
102178
|
+
}
|
|
102101
102179
|
declare module "resources/order-pauses-resource" {
|
|
102102
102180
|
export default function OrderPausesResource({ apiHandler }: {
|
|
102103
102181
|
apiHandler: any;
|
|
@@ -103947,6 +104025,20 @@ declare module "resources/api-instance" {
|
|
|
103947
104025
|
data: any;
|
|
103948
104026
|
}): any;
|
|
103949
104027
|
};
|
|
104028
|
+
orderChanges: {
|
|
104029
|
+
getAll({ limit, offset, filter, sort }?: rebilly.GetOrderChangeCollectionRequest): rebilly.GetOrderChangeCollectionResponsePromise;
|
|
104030
|
+
create({ id, data }: rebilly.CreateOrderChangeRequest): rebilly.PostOrderChangeResponsePromise;
|
|
104031
|
+
get({ id }: {
|
|
104032
|
+
id: any;
|
|
104033
|
+
}): rebilly.GetOrderChangeResponsePromise;
|
|
104034
|
+
update({ id, data }: {
|
|
104035
|
+
id: any;
|
|
104036
|
+
data: any;
|
|
104037
|
+
}): rebilly.PutOrderChangeResponsePromise;
|
|
104038
|
+
delete({ id }: {
|
|
104039
|
+
id: any;
|
|
104040
|
+
}): any;
|
|
104041
|
+
};
|
|
103950
104042
|
orderPauses: {
|
|
103951
104043
|
getAll({ limit, offset, filter, sort }?: rebilly.GetOrderPauseCollectionRequest): rebilly.GetOrderPauseCollectionResponsePromise;
|
|
103952
104044
|
pause({ id, data }: rebilly.CreateOrderPauseRequest): rebilly.PostOrderPauseResponsePromise;
|
|
@@ -104995,7 +105087,7 @@ declare module "resources/experimental/subscriptions-resource" {
|
|
|
104995
105087
|
}): rebilly.GetSubscriptionSummaryMetricReportResponsePromise;
|
|
104996
105088
|
};
|
|
104997
105089
|
}
|
|
104998
|
-
declare module "
|
|
105090
|
+
declare module "experimental/timelines-resource" {
|
|
104999
105091
|
export default function TimelinesResource({ apiHandler }: {
|
|
105000
105092
|
apiHandler: any;
|
|
105001
105093
|
}): {
|
|
@@ -105004,7 +105096,7 @@ declare module "resources/experimental/timelines-resource" {
|
|
|
105004
105096
|
limit?: number;
|
|
105005
105097
|
offset?: number;
|
|
105006
105098
|
}): any;
|
|
105007
|
-
getTransaction({ id, eventTypes, limit, offset }: {
|
|
105099
|
+
getTransaction({ id, eventTypes, limit, offset, }: {
|
|
105008
105100
|
id?: string;
|
|
105009
105101
|
eventTypes?: any;
|
|
105010
105102
|
limit?: number;
|
|
@@ -105018,14 +105110,14 @@ declare module "resources/experimental/timelines-resource" {
|
|
|
105018
105110
|
}): any;
|
|
105019
105111
|
};
|
|
105020
105112
|
}
|
|
105021
|
-
declare module "
|
|
105113
|
+
declare module "experimental/location-resource" {
|
|
105022
105114
|
export default function LocationResource({ apiHandler }: {
|
|
105023
105115
|
apiHandler: any;
|
|
105024
105116
|
}): {
|
|
105025
105117
|
query(): any;
|
|
105026
105118
|
};
|
|
105027
105119
|
}
|
|
105028
|
-
declare module "
|
|
105120
|
+
declare module "experimental/experimental-resources" {
|
|
105029
105121
|
export class ExperimentalApiInstance {
|
|
105030
105122
|
constructor({ apiHandler }: {
|
|
105031
105123
|
apiHandler: any;
|
|
@@ -105301,7 +105393,7 @@ declare module "resources/experimental/experimental-resources" {
|
|
|
105301
105393
|
limit?: number;
|
|
105302
105394
|
offset?: number;
|
|
105303
105395
|
}): any;
|
|
105304
|
-
getTransaction({ id, eventTypes, limit, offset }: {
|
|
105396
|
+
getTransaction({ id, eventTypes, limit, offset, }: {
|
|
105305
105397
|
id?: string;
|
|
105306
105398
|
eventTypes?: any;
|
|
105307
105399
|
limit?: number;
|
|
@@ -106011,7 +106103,7 @@ declare module "create-api-instance" {
|
|
|
106011
106103
|
apiHandler: any;
|
|
106012
106104
|
}): StorefrontApiInstance;
|
|
106013
106105
|
import { ApiInstance } from "resources/api-instance";
|
|
106014
|
-
import { ExperimentalApiInstance } from "
|
|
106106
|
+
import { ExperimentalApiInstance } from "experimental/experimental-resources";
|
|
106015
106107
|
import { StorefrontApiInstance } from "resources/storefront/storefront-api-instance";
|
|
106016
106108
|
}
|
|
106017
106109
|
declare module "rebilly-js-sdk" {
|
|
@@ -106037,7 +106129,7 @@ declare module "rebilly-js-sdk" {
|
|
|
106037
106129
|
internalOptions?: InternalOptions;
|
|
106038
106130
|
};
|
|
106039
106131
|
import Errors from "errors/errors";
|
|
106040
|
-
export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("
|
|
106132
|
+
export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("experimental/experimental-resources").ExperimentalApiInstance;
|
|
106041
106133
|
export function RebillyStorefrontAPI({ publishableKey, jwt, sandbox, timeout, organizationId, urls, internalOptions, }?: StorefrontApiParams): import("resources/storefront/storefront-api-instance").StorefrontApiInstance;
|
|
106042
106134
|
import cancellation from "cancellation";
|
|
106043
106135
|
export { Errors as RebillyErrors, cancellation };
|
|
@@ -106047,3 +106139,8 @@ declare module "request-headers" {
|
|
|
106047
106139
|
let Accept: string;
|
|
106048
106140
|
}
|
|
106049
106141
|
}
|
|
106142
|
+
|
|
106143
|
+
/** @deprecated Import from "experimental/experimental-resources" instead. */
|
|
106144
|
+
declare module "resources/experimental/experimental-resources" {
|
|
106145
|
+
export * from "experimental/experimental-resources";
|
|
106146
|
+
}
|
|
@@ -13682,9 +13682,19 @@ export interface coreComponents {
|
|
|
13682
13682
|
recentInvoiceId?: string | null;
|
|
13683
13683
|
/** Details of items in the order. */
|
|
13684
13684
|
items: coreComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
|
|
13685
|
-
/**
|
|
13685
|
+
/**
|
|
13686
|
+
* Delivery address of the order.
|
|
13687
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
13688
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
13689
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
13690
|
+
*/
|
|
13686
13691
|
deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
13687
|
-
/**
|
|
13692
|
+
/**
|
|
13693
|
+
* Billing address of the order.
|
|
13694
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
13695
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
13696
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
13697
|
+
*/
|
|
13688
13698
|
billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
13689
13699
|
/** Date and time when the order is activated. */
|
|
13690
13700
|
activationTime?: string | null;
|
|
@@ -14310,9 +14320,19 @@ export interface coreComponents {
|
|
|
14310
14320
|
poNumber?: string | null;
|
|
14311
14321
|
/** Notes for the customer that are displayed on the order invoice. */
|
|
14312
14322
|
notes?: string;
|
|
14313
|
-
/**
|
|
14323
|
+
/**
|
|
14324
|
+
* Billing address of the order.
|
|
14325
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
14326
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
14327
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
14328
|
+
*/
|
|
14314
14329
|
billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
14315
|
-
/**
|
|
14330
|
+
/**
|
|
14331
|
+
* Delivery address of the order.
|
|
14332
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
14333
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
14334
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
14335
|
+
*/
|
|
14316
14336
|
deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
|
|
14317
14337
|
/**
|
|
14318
14338
|
* Length of time, in ISO-8601 durations format,
|
|
@@ -53427,9 +53447,19 @@ export interface storefrontComponents {
|
|
|
53427
53447
|
recentInvoiceId?: string | null;
|
|
53428
53448
|
/** Details of items in the order. */
|
|
53429
53449
|
items: storefrontComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
|
|
53430
|
-
/**
|
|
53450
|
+
/**
|
|
53451
|
+
* Delivery address of the order.
|
|
53452
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
53453
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
53454
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
53455
|
+
*/
|
|
53431
53456
|
deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
53432
|
-
/**
|
|
53457
|
+
/**
|
|
53458
|
+
* Billing address of the order.
|
|
53459
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
53460
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
53461
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
53462
|
+
*/
|
|
53433
53463
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
53434
53464
|
/** Date and time when the order is activated. */
|
|
53435
53465
|
activationTime?: string | null;
|
|
@@ -54055,9 +54085,19 @@ export interface storefrontComponents {
|
|
|
54055
54085
|
poNumber?: string | null;
|
|
54056
54086
|
/** Notes for the customer that are displayed on the order invoice. */
|
|
54057
54087
|
notes?: string;
|
|
54058
|
-
/**
|
|
54088
|
+
/**
|
|
54089
|
+
* Billing address of the order.
|
|
54090
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
54091
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
54092
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
54093
|
+
*/
|
|
54059
54094
|
billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
54060
|
-
/**
|
|
54095
|
+
/**
|
|
54096
|
+
* Delivery address of the order.
|
|
54097
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
54098
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
54099
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
54100
|
+
*/
|
|
54061
54101
|
deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
|
|
54062
54102
|
/**
|
|
54063
54103
|
* Length of time, in ISO-8601 durations format,
|
|
@@ -80122,9 +80162,19 @@ export interface reportsComponents {
|
|
|
80122
80162
|
recentInvoiceId?: string | null;
|
|
80123
80163
|
/** Details of items in the order. */
|
|
80124
80164
|
items: reportsComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
|
|
80125
|
-
/**
|
|
80165
|
+
/**
|
|
80166
|
+
* Delivery address of the order.
|
|
80167
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
80168
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80169
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
80170
|
+
*/
|
|
80126
80171
|
deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80127
|
-
/**
|
|
80172
|
+
/**
|
|
80173
|
+
* Billing address of the order.
|
|
80174
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
80175
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80176
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
80177
|
+
*/
|
|
80128
80178
|
billingAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80129
80179
|
/** Date and time when the order is activated. */
|
|
80130
80180
|
activationTime?: string | null;
|
|
@@ -80750,9 +80800,19 @@ export interface reportsComponents {
|
|
|
80750
80800
|
poNumber?: string | null;
|
|
80751
80801
|
/** Notes for the customer that are displayed on the order invoice. */
|
|
80752
80802
|
notes?: string;
|
|
80753
|
-
/**
|
|
80803
|
+
/**
|
|
80804
|
+
* Billing address of the order.
|
|
80805
|
+
* Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
|
|
80806
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80807
|
+
* To change the billing address on an issued invoice that has no payment attempts or applied credits, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=billingaddress).
|
|
80808
|
+
*/
|
|
80754
80809
|
billingAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80755
|
-
/**
|
|
80810
|
+
/**
|
|
80811
|
+
* Delivery address of the order.
|
|
80812
|
+
* Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
|
|
80813
|
+
* Issued invoices are not updated unless the order is `pending`.
|
|
80814
|
+
* To change the delivery address on an unpaid, past-due, or partially paid invoice, use the [upsert an invoice API operation](https://www.rebilly.com/catalog/all/invoices/putinvoice#invoices/putinvoice/t=request&path=deliveryaddress).
|
|
80815
|
+
*/
|
|
80756
80816
|
deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
|
|
80757
80817
|
/**
|
|
80758
80818
|
* Length of time, in ISO-8601 durations format,
|
|
@@ -102098,6 +102158,24 @@ declare module "resources/order-cancellations-resource" {
|
|
|
102098
102158
|
}): any;
|
|
102099
102159
|
};
|
|
102100
102160
|
}
|
|
102161
|
+
declare module "resources/order-changes-resource" {
|
|
102162
|
+
export default function OrderChangesResource({ apiHandler }: {
|
|
102163
|
+
apiHandler: any;
|
|
102164
|
+
}): {
|
|
102165
|
+
getAll({ limit, offset, filter, sort }?: rebilly.GetOrderChangeCollectionRequest): rebilly.GetOrderChangeCollectionResponsePromise;
|
|
102166
|
+
create({ id, data }: rebilly.CreateOrderChangeRequest): rebilly.PostOrderChangeResponsePromise;
|
|
102167
|
+
get({ id }: {
|
|
102168
|
+
id: any;
|
|
102169
|
+
}): rebilly.GetOrderChangeResponsePromise;
|
|
102170
|
+
update({ id, data }: {
|
|
102171
|
+
id: any;
|
|
102172
|
+
data: any;
|
|
102173
|
+
}): rebilly.PutOrderChangeResponsePromise;
|
|
102174
|
+
delete({ id }: {
|
|
102175
|
+
id: any;
|
|
102176
|
+
}): any;
|
|
102177
|
+
};
|
|
102178
|
+
}
|
|
102101
102179
|
declare module "resources/order-pauses-resource" {
|
|
102102
102180
|
export default function OrderPausesResource({ apiHandler }: {
|
|
102103
102181
|
apiHandler: any;
|
|
@@ -103947,6 +104025,20 @@ declare module "resources/api-instance" {
|
|
|
103947
104025
|
data: any;
|
|
103948
104026
|
}): any;
|
|
103949
104027
|
};
|
|
104028
|
+
orderChanges: {
|
|
104029
|
+
getAll({ limit, offset, filter, sort }?: rebilly.GetOrderChangeCollectionRequest): rebilly.GetOrderChangeCollectionResponsePromise;
|
|
104030
|
+
create({ id, data }: rebilly.CreateOrderChangeRequest): rebilly.PostOrderChangeResponsePromise;
|
|
104031
|
+
get({ id }: {
|
|
104032
|
+
id: any;
|
|
104033
|
+
}): rebilly.GetOrderChangeResponsePromise;
|
|
104034
|
+
update({ id, data }: {
|
|
104035
|
+
id: any;
|
|
104036
|
+
data: any;
|
|
104037
|
+
}): rebilly.PutOrderChangeResponsePromise;
|
|
104038
|
+
delete({ id }: {
|
|
104039
|
+
id: any;
|
|
104040
|
+
}): any;
|
|
104041
|
+
};
|
|
103950
104042
|
orderPauses: {
|
|
103951
104043
|
getAll({ limit, offset, filter, sort }?: rebilly.GetOrderPauseCollectionRequest): rebilly.GetOrderPauseCollectionResponsePromise;
|
|
103952
104044
|
pause({ id, data }: rebilly.CreateOrderPauseRequest): rebilly.PostOrderPauseResponsePromise;
|
|
@@ -104995,7 +105087,7 @@ declare module "resources/experimental/subscriptions-resource" {
|
|
|
104995
105087
|
}): rebilly.GetSubscriptionSummaryMetricReportResponsePromise;
|
|
104996
105088
|
};
|
|
104997
105089
|
}
|
|
104998
|
-
declare module "
|
|
105090
|
+
declare module "experimental/timelines-resource" {
|
|
104999
105091
|
export default function TimelinesResource({ apiHandler }: {
|
|
105000
105092
|
apiHandler: any;
|
|
105001
105093
|
}): {
|
|
@@ -105004,7 +105096,7 @@ declare module "resources/experimental/timelines-resource" {
|
|
|
105004
105096
|
limit?: number;
|
|
105005
105097
|
offset?: number;
|
|
105006
105098
|
}): any;
|
|
105007
|
-
getTransaction({ id, eventTypes, limit, offset }: {
|
|
105099
|
+
getTransaction({ id, eventTypes, limit, offset, }: {
|
|
105008
105100
|
id?: string;
|
|
105009
105101
|
eventTypes?: any;
|
|
105010
105102
|
limit?: number;
|
|
@@ -105018,14 +105110,14 @@ declare module "resources/experimental/timelines-resource" {
|
|
|
105018
105110
|
}): any;
|
|
105019
105111
|
};
|
|
105020
105112
|
}
|
|
105021
|
-
declare module "
|
|
105113
|
+
declare module "experimental/location-resource" {
|
|
105022
105114
|
export default function LocationResource({ apiHandler }: {
|
|
105023
105115
|
apiHandler: any;
|
|
105024
105116
|
}): {
|
|
105025
105117
|
query(): any;
|
|
105026
105118
|
};
|
|
105027
105119
|
}
|
|
105028
|
-
declare module "
|
|
105120
|
+
declare module "experimental/experimental-resources" {
|
|
105029
105121
|
export class ExperimentalApiInstance {
|
|
105030
105122
|
constructor({ apiHandler }: {
|
|
105031
105123
|
apiHandler: any;
|
|
@@ -105301,7 +105393,7 @@ declare module "resources/experimental/experimental-resources" {
|
|
|
105301
105393
|
limit?: number;
|
|
105302
105394
|
offset?: number;
|
|
105303
105395
|
}): any;
|
|
105304
|
-
getTransaction({ id, eventTypes, limit, offset }: {
|
|
105396
|
+
getTransaction({ id, eventTypes, limit, offset, }: {
|
|
105305
105397
|
id?: string;
|
|
105306
105398
|
eventTypes?: any;
|
|
105307
105399
|
limit?: number;
|
|
@@ -106011,7 +106103,7 @@ declare module "create-api-instance" {
|
|
|
106011
106103
|
apiHandler: any;
|
|
106012
106104
|
}): StorefrontApiInstance;
|
|
106013
106105
|
import { ApiInstance } from "resources/api-instance";
|
|
106014
|
-
import { ExperimentalApiInstance } from "
|
|
106106
|
+
import { ExperimentalApiInstance } from "experimental/experimental-resources";
|
|
106015
106107
|
import { StorefrontApiInstance } from "resources/storefront/storefront-api-instance";
|
|
106016
106108
|
}
|
|
106017
106109
|
declare module "rebilly-js-sdk" {
|
|
@@ -106037,7 +106129,7 @@ declare module "rebilly-js-sdk" {
|
|
|
106037
106129
|
internalOptions?: InternalOptions;
|
|
106038
106130
|
};
|
|
106039
106131
|
import Errors from "errors/errors";
|
|
106040
|
-
export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("
|
|
106132
|
+
export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("experimental/experimental-resources").ExperimentalApiInstance;
|
|
106041
106133
|
export function RebillyStorefrontAPI({ publishableKey, jwt, sandbox, timeout, organizationId, urls, internalOptions, }?: StorefrontApiParams): import("resources/storefront/storefront-api-instance").StorefrontApiInstance;
|
|
106042
106134
|
import cancellation from "cancellation";
|
|
106043
106135
|
export { Errors as RebillyErrors, cancellation };
|
|
@@ -106047,3 +106139,8 @@ declare module "request-headers" {
|
|
|
106047
106139
|
let Accept: string;
|
|
106048
106140
|
}
|
|
106049
106141
|
}
|
|
106142
|
+
|
|
106143
|
+
/** @deprecated Import from "experimental/experimental-resources" instead. */
|
|
106144
|
+
declare module "resources/experimental/experimental-resources" {
|
|
106145
|
+
export * from "experimental/experimental-resources";
|
|
106146
|
+
}
|