rebilly-js-sdk 62.196.0 → 62.196.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.
@@ -3162,7 +3162,11 @@ export interface corePaths {
3162
3162
  };
3163
3163
  };
3164
3164
  "/invoices/{id}/abandon": {
3165
- /** Abandons an invoice with a specified ID. */
3165
+ /**
3166
+ * Abandons an invoice with a specified ID.
3167
+ * This operation removes credit memo allocations from the invoice.
3168
+ * Unused credit returns to the credit memo.
3169
+ */
3166
3170
  post: operations["PostInvoiceAbandonment"];
3167
3171
  parameters: {
3168
3172
  path: {
@@ -3172,7 +3176,11 @@ export interface corePaths {
3172
3176
  };
3173
3177
  };
3174
3178
  "/invoices/{id}/void": {
3175
- /** Voids an invoice with a specified ID. */
3179
+ /**
3180
+ * Voids an invoice with a specified ID.
3181
+ * This operation removes credit memo allocations from the invoice.
3182
+ * Unused credit returns to the credit memo.
3183
+ */
3176
3184
  post: operations["PostInvoiceVoid"];
3177
3185
  parameters: {
3178
3186
  path: {
@@ -13682,9 +13690,19 @@ export interface coreComponents {
13682
13690
  recentInvoiceId?: string | null;
13683
13691
  /** Details of items in the order. */
13684
13692
  items: coreComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
13685
- /** Delivery address of the order. */
13693
+ /**
13694
+ * Delivery address of the order.
13695
+ * Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
13696
+ * Issued invoices are not updated unless the order is `pending`.
13697
+ * 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).
13698
+ */
13686
13699
  deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
13687
- /** Billing address of the order. */
13700
+ /**
13701
+ * Billing address of the order.
13702
+ * Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
13703
+ * Issued invoices are not updated unless the order is `pending`.
13704
+ * 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).
13705
+ */
13688
13706
  billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
13689
13707
  /** Date and time when the order is activated. */
13690
13708
  activationTime?: string | null;
@@ -14310,9 +14328,19 @@ export interface coreComponents {
14310
14328
  poNumber?: string | null;
14311
14329
  /** Notes for the customer that are displayed on the order invoice. */
14312
14330
  notes?: string;
14313
- /** Billing address of the order. */
14331
+ /**
14332
+ * Billing address of the order.
14333
+ * Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
14334
+ * Issued invoices are not updated unless the order is `pending`.
14335
+ * 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).
14336
+ */
14314
14337
  billingAddress?: coreComponents["schemas"]["ContactObject"] | null;
14315
- /** Delivery address of the order. */
14338
+ /**
14339
+ * Delivery address of the order.
14340
+ * Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
14341
+ * Issued invoices are not updated unless the order is `pending`.
14342
+ * 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).
14343
+ */
14316
14344
  deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
14317
14345
  /**
14318
14346
  * Length of time, in ISO-8601 durations format,
@@ -33346,7 +33374,11 @@ export interface operations {
33346
33374
  };
33347
33375
  };
33348
33376
  };
33349
- /** Abandons an invoice with a specified ID. */
33377
+ /**
33378
+ * Abandons an invoice with a specified ID.
33379
+ * This operation removes credit memo allocations from the invoice.
33380
+ * Unused credit returns to the credit memo.
33381
+ */
33350
33382
  PostInvoiceAbandonment: {
33351
33383
  parameters: {
33352
33384
  path: {
@@ -33368,7 +33400,11 @@ export interface operations {
33368
33400
  429: coreComponents["responses"]["TooManyRequests"];
33369
33401
  };
33370
33402
  };
33371
- /** Voids an invoice with a specified ID. */
33403
+ /**
33404
+ * Voids an invoice with a specified ID.
33405
+ * This operation removes credit memo allocations from the invoice.
33406
+ * Unused credit returns to the credit memo.
33407
+ */
33372
33408
  PostInvoiceVoid: {
33373
33409
  parameters: {
33374
33410
  path: {
@@ -53427,9 +53463,19 @@ export interface storefrontComponents {
53427
53463
  recentInvoiceId?: string | null;
53428
53464
  /** Details of items in the order. */
53429
53465
  items: storefrontComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
53430
- /** Delivery address of the order. */
53466
+ /**
53467
+ * Delivery address of the order.
53468
+ * Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
53469
+ * Issued invoices are not updated unless the order is `pending`.
53470
+ * 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).
53471
+ */
53431
53472
  deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
53432
- /** Billing address of the order. */
53473
+ /**
53474
+ * Billing address of the order.
53475
+ * Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
53476
+ * Issued invoices are not updated unless the order is `pending`.
53477
+ * 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).
53478
+ */
53433
53479
  billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
53434
53480
  /** Date and time when the order is activated. */
53435
53481
  activationTime?: string | null;
@@ -54055,9 +54101,19 @@ export interface storefrontComponents {
54055
54101
  poNumber?: string | null;
54056
54102
  /** Notes for the customer that are displayed on the order invoice. */
54057
54103
  notes?: string;
54058
- /** Billing address of the order. */
54104
+ /**
54105
+ * Billing address of the order.
54106
+ * Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
54107
+ * Issued invoices are not updated unless the order is `pending`.
54108
+ * 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).
54109
+ */
54059
54110
  billingAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
54060
- /** Delivery address of the order. */
54111
+ /**
54112
+ * Delivery address of the order.
54113
+ * Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
54114
+ * Issued invoices are not updated unless the order is `pending`.
54115
+ * 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).
54116
+ */
54061
54117
  deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
54062
54118
  /**
54063
54119
  * Length of time, in ISO-8601 durations format,
@@ -80122,9 +80178,19 @@ export interface reportsComponents {
80122
80178
  recentInvoiceId?: string | null;
80123
80179
  /** Details of items in the order. */
80124
80180
  items: reportsComponents["schemas"]["SubscriptionOrOneTimeSaleItem"][];
80125
- /** Delivery address of the order. */
80181
+ /**
80182
+ * Delivery address of the order.
80183
+ * Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
80184
+ * Issued invoices are not updated unless the order is `pending`.
80185
+ * 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).
80186
+ */
80126
80187
  deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
80127
- /** Billing address of the order. */
80188
+ /**
80189
+ * Billing address of the order.
80190
+ * Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
80191
+ * Issued invoices are not updated unless the order is `pending`.
80192
+ * 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).
80193
+ */
80128
80194
  billingAddress?: reportsComponents["schemas"]["ContactObject"] | null;
80129
80195
  /** Date and time when the order is activated. */
80130
80196
  activationTime?: string | null;
@@ -80750,9 +80816,19 @@ export interface reportsComponents {
80750
80816
  poNumber?: string | null;
80751
80817
  /** Notes for the customer that are displayed on the order invoice. */
80752
80818
  notes?: string;
80753
- /** Billing address of the order. */
80819
+ /**
80820
+ * Billing address of the order.
80821
+ * Changes to the billing address apply to the upcoming invoice and to invoices created after the change.
80822
+ * Issued invoices are not updated unless the order is `pending`.
80823
+ * 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).
80824
+ */
80754
80825
  billingAddress?: reportsComponents["schemas"]["ContactObject"] | null;
80755
- /** Delivery address of the order. */
80826
+ /**
80827
+ * Delivery address of the order.
80828
+ * Changes to the delivery address apply to the upcoming invoice and to invoices created after the change.
80829
+ * Issued invoices are not updated unless the order is `pending`.
80830
+ * 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).
80831
+ */
80756
80832
  deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
80757
80833
  /**
80758
80834
  * Length of time, in ISO-8601 durations format,
@@ -105027,7 +105103,7 @@ declare module "resources/experimental/subscriptions-resource" {
105027
105103
  }): rebilly.GetSubscriptionSummaryMetricReportResponsePromise;
105028
105104
  };
105029
105105
  }
105030
- declare module "resources/experimental/timelines-resource" {
105106
+ declare module "experimental/timelines-resource" {
105031
105107
  export default function TimelinesResource({ apiHandler }: {
105032
105108
  apiHandler: any;
105033
105109
  }): {
@@ -105036,7 +105112,7 @@ declare module "resources/experimental/timelines-resource" {
105036
105112
  limit?: number;
105037
105113
  offset?: number;
105038
105114
  }): any;
105039
- getTransaction({ id, eventTypes, limit, offset }: {
105115
+ getTransaction({ id, eventTypes, limit, offset, }: {
105040
105116
  id?: string;
105041
105117
  eventTypes?: any;
105042
105118
  limit?: number;
@@ -105050,14 +105126,14 @@ declare module "resources/experimental/timelines-resource" {
105050
105126
  }): any;
105051
105127
  };
105052
105128
  }
105053
- declare module "resources/experimental/location-resource" {
105129
+ declare module "experimental/location-resource" {
105054
105130
  export default function LocationResource({ apiHandler }: {
105055
105131
  apiHandler: any;
105056
105132
  }): {
105057
105133
  query(): any;
105058
105134
  };
105059
105135
  }
105060
- declare module "resources/experimental/experimental-resources" {
105136
+ declare module "experimental/experimental-resources" {
105061
105137
  export class ExperimentalApiInstance {
105062
105138
  constructor({ apiHandler }: {
105063
105139
  apiHandler: any;
@@ -105333,7 +105409,7 @@ declare module "resources/experimental/experimental-resources" {
105333
105409
  limit?: number;
105334
105410
  offset?: number;
105335
105411
  }): any;
105336
- getTransaction({ id, eventTypes, limit, offset }: {
105412
+ getTransaction({ id, eventTypes, limit, offset, }: {
105337
105413
  id?: string;
105338
105414
  eventTypes?: any;
105339
105415
  limit?: number;
@@ -106043,7 +106119,7 @@ declare module "create-api-instance" {
106043
106119
  apiHandler: any;
106044
106120
  }): StorefrontApiInstance;
106045
106121
  import { ApiInstance } from "resources/api-instance";
106046
- import { ExperimentalApiInstance } from "resources/experimental/experimental-resources";
106122
+ import { ExperimentalApiInstance } from "experimental/experimental-resources";
106047
106123
  import { StorefrontApiInstance } from "resources/storefront/storefront-api-instance";
106048
106124
  }
106049
106125
  declare module "rebilly-js-sdk" {
@@ -106069,7 +106145,7 @@ declare module "rebilly-js-sdk" {
106069
106145
  internalOptions?: InternalOptions;
106070
106146
  };
106071
106147
  import Errors from "errors/errors";
106072
- export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("resources/experimental/experimental-resources").ExperimentalApiInstance;
106148
+ export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("experimental/experimental-resources").ExperimentalApiInstance;
106073
106149
  export function RebillyStorefrontAPI({ publishableKey, jwt, sandbox, timeout, organizationId, urls, internalOptions, }?: StorefrontApiParams): import("resources/storefront/storefront-api-instance").StorefrontApiInstance;
106074
106150
  import cancellation from "cancellation";
106075
106151
  export { Errors as RebillyErrors, cancellation };
@@ -106079,3 +106155,8 @@ declare module "request-headers" {
106079
106155
  let Accept: string;
106080
106156
  }
106081
106157
  }
106158
+
106159
+ /** @deprecated Import from "experimental/experimental-resources" instead. */
106160
+ declare module "resources/experimental/experimental-resources" {
106161
+ export * from "experimental/experimental-resources";
106162
+ }
@@ -489,7 +489,7 @@ function O({ options: t }) {
489
489
  }
490
490
  function o() {
491
491
  const a = {
492
- "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m) => m).join("/")}@c669bc3`
492
+ "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m) => m).join("/")}@c040b79`
493
493
  };
494
494
  return t.apiKey && (a["REB-APIKEY"] = t.apiKey), a;
495
495
  }
@@ -4882,7 +4882,12 @@ function qs({ apiHandler: t }) {
4882
4882
  };
4883
4883
  return t.getAll("activity-feed", n);
4884
4884
  },
4885
- getTransaction({ id: e = "", eventTypes: s = null, limit: r = 1e3, offset: n = 0 }) {
4885
+ getTransaction({
4886
+ id: e = "",
4887
+ eventTypes: s = null,
4888
+ limit: r = 1e3,
4889
+ offset: n = 0
4890
+ }) {
4886
4891
  const u = {
4887
4892
  eventTypes: s,
4888
4893
  limit: r,
@@ -4918,11 +4923,17 @@ const b = {
4918
4923
  };
4919
4924
  class Ts {
4920
4925
  constructor({ apiHandler: e }) {
4921
- this.customers = b.CustomersResource({ apiHandler: e }), this.dataExports = b.DataExportsResource({
4926
+ this.customers = b.CustomersResource({
4927
+ apiHandler: e
4928
+ }), this.dataExports = b.DataExportsResource({
4929
+ apiHandler: e
4930
+ }), this.histograms = b.HistogramsResource({
4931
+ apiHandler: e
4932
+ }), this.reports = b.ReportsResource({ apiHandler: e }), this.subscriptions = b.SubscriptionsResource({
4922
4933
  apiHandler: e
4923
- }), this.histograms = b.HistogramsResource({ apiHandler: e }), this.reports = b.ReportsResource({ apiHandler: e }), this.subscriptions = b.SubscriptionsResource({
4934
+ }), this.timelines = b.TimelinesResource({
4924
4935
  apiHandler: e
4925
- }), this.timelines = b.TimelinesResource({ apiHandler: e }), this.location = b.LocationResource({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken;
4936
+ }), this.location = b.LocationResource({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken;
4926
4937
  }
4927
4938
  }
4928
4939
  function Is({ apiHandler: t }) {