rebilly-js-sdk 55.24.1 → 56.0.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 CHANGED
@@ -1,3 +1,21 @@
1
+ ## [56.0.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v55.25.0...rebilly-js-sdk-v56.0.0) (2024-02-28)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * **rebilly-js-sdk:** Remove expand on experimental/billing-portals (#3772)
7
+
8
+ ### Features
9
+
10
+ * **rebilly-js-sdk:** Remove expand on experimental/billing-portals ([#3772](https://github.com/Rebilly/rebilly/issues/3772)) ([ad33427](https://github.com/Rebilly/rebilly/commit/ad33427ef3f41092a05c6cfd20a3fada43d80e1e))
11
+
12
+ ## [55.25.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v55.24.1...rebilly-js-sdk-v55.25.0) (2024-02-28)
13
+
14
+
15
+ ### Features
16
+
17
+ * **deps:** bump vite to v5 ([#3741](https://github.com/Rebilly/rebilly/issues/3741)) ([184db2e](https://github.com/Rebilly/rebilly/commit/184db2ee9b5dac4742421208ac2e4fd92a71c2cc))
18
+
1
19
  ## [55.24.1](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v55.24.0...rebilly-js-sdk-v55.24.1) (2024-02-22)
2
20
 
3
21
 
@@ -1843,8 +1843,8 @@ declare module rebilly {
1843
1843
  type StorefrontGetBillingPortalResponse = operations['StorefrontGetBillingPortal']['responses']['200']['content']['application/json']
1844
1844
  type StorefrontGetBillingPortalResponsePromise = Promise<{fields: StorefrontGetBillingPortalResponse}>
1845
1845
 
1846
- type StorefrontGetExperimentalBillingPortalRequest = operations['StorefrontGetExperimentalBillingPortal']['parameters'] & { slug : String }
1847
-
1846
+ type StorefrontGetExperimentalBillingPortalRequest = { slug : String }
1847
+
1848
1848
  type StorefrontGetExperimentalBillingPortalResponse = operations['StorefrontGetExperimentalBillingPortal']['responses']['200']['content']['application/json']
1849
1849
  type StorefrontGetExperimentalBillingPortalResponsePromise = Promise<{fields: StorefrontGetExperimentalBillingPortalResponse}>
1850
1850
 
@@ -8540,7 +8540,6 @@ export interface coreComponents {
8540
8540
  organizationId?: coreComponents["schemas"]["OrganizationId"];
8541
8541
  /**
8542
8542
  * Date and time when the related order is considered delinquent, and is canceled.
8543
- * The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
8544
8543
  * If this value is `null`, no delinquency time is configured.
8545
8544
  * If the `dueTime` of the order becomes greater than the `delinquencyTime` value,
8546
8545
  * the `delinquencyTime` value becomes equal to `dueTime`.
@@ -12202,7 +12201,6 @@ export interface coreComponents {
12202
12201
  * Length of time, in ISO-8601 durations format,
12203
12202
  * which is added to the due time of the order when setting the delinquency time for all related invoices.
12204
12203
  * When the delinquency time of an invoice is reached, the order is automatically canceled.
12205
- * The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
12206
12204
  *
12207
12205
  * If the provided value is `null`, the order does not change state.
12208
12206
  */
@@ -12261,8 +12259,6 @@ export interface coreComponents {
12261
12259
  * If this value is `null`, this field uses risk metadata that is captured when creating the payment token.
12262
12260
  */
12263
12261
  riskMetadata?: coreComponents["schemas"]["RiskMetadata"] | null;
12264
- /** ID of the billing portal. */
12265
- billingPortalId: string;
12266
12262
  customFields?: coreComponents["schemas"]["ResourceCustomFields"];
12267
12263
  createdTime?: coreComponents["schemas"]["CreatedTime"];
12268
12264
  updatedTime?: coreComponents["schemas"]["UpdatedTime"];
@@ -13760,26 +13756,6 @@ export interface coreComponents {
13760
13756
  * the billing portal URL results in a 404 error.
13761
13757
  */
13762
13758
  status: "active" | "inactive";
13763
- /** Details of selected plans. */
13764
- plans?: {
13765
- plan?: coreComponents["schemas"]["FlexiblePlan"];
13766
- /**
13767
- * Status of the plan in the billing portal.
13768
- * If the status is `archived`, customers can continue using the billing portal,
13769
- * but can not select it as a new item.
13770
- */
13771
- status: "active" | "archived";
13772
- }[];
13773
- /** Details of selected add-ons. */
13774
- addons: {
13775
- plan?: coreComponents["schemas"]["FlexiblePlan"];
13776
- /**
13777
- * Status of the plan in the billing portal.
13778
- * If the status is `archived`, customers can continue using the billing portal,
13779
- * but can not select it as a new item.
13780
- */
13781
- status: "active" | "archived";
13782
- }[];
13783
13759
  createdTime?: coreComponents["schemas"]["CreatedTime"];
13784
13760
  updatedTime?: coreComponents["schemas"]["UpdatedTime"];
13785
13761
  _links?: coreComponents["schemas"]["SelfLink"];
@@ -21021,10 +20997,6 @@ export interface coreComponents {
21021
20997
  termsOfService?: string;
21022
20998
  };
21023
20999
  };
21024
- /** Details of selected plans. */
21025
- plans?: coreComponents["schemas"]["FlexiblePlan"][];
21026
- /** Details of selected add-ons. */
21027
- addons: coreComponents["schemas"]["FlexiblePlan"][];
21028
21000
  createdTime?: coreComponents["schemas"]["CreatedTime"];
21029
21001
  updatedTime?: coreComponents["schemas"]["UpdatedTime"];
21030
21002
  /** Related links. */
@@ -24331,6 +24303,12 @@ export interface coreComponents {
24331
24303
  PatchOrder: {
24332
24304
  content: {
24333
24305
  "application/json": {
24306
+ /**
24307
+ * Specifies if payment attempts are made automatically.
24308
+ * If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
24309
+ * or the default payment instrument on the subscription.
24310
+ */
24311
+ autopay?: boolean;
24334
24312
  /** Order delivery address. */
24335
24313
  deliveryAddress?: coreComponents["schemas"]["ContactObject"] | null;
24336
24314
  /** Order billing address. */
@@ -25152,7 +25130,10 @@ export interface coreComponents {
25152
25130
  /** ID of the payout request. */
25153
25131
  payoutRequestId?: string;
25154
25132
  /** Type of webhook event. */
25155
- eventType?: "payout-request-created" | "payout-request-modified";
25133
+ eventType?:
25134
+ | "payout-request-created"
25135
+ | "payout-request-modified"
25136
+ | "payout-request-canceled";
25156
25137
  /** Embedded objects. */
25157
25138
  _embedded?: {
25158
25139
  payoutRequest?: coreComponents["schemas"]["PayoutRequest"];
@@ -41105,7 +41086,6 @@ export interface storefrontComponents {
41105
41086
  organizationId?: storefrontComponents["schemas"]["OrganizationId"];
41106
41087
  /**
41107
41088
  * Date and time when the related order is considered delinquent, and is canceled.
41108
- * The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
41109
41089
  * If this value is `null`, no delinquency time is configured.
41110
41090
  * If the `dueTime` of the order becomes greater than the `delinquencyTime` value,
41111
41091
  * the `delinquencyTime` value becomes equal to `dueTime`.
@@ -44767,7 +44747,6 @@ export interface storefrontComponents {
44767
44747
  * Length of time, in ISO-8601 durations format,
44768
44748
  * which is added to the due time of the order when setting the delinquency time for all related invoices.
44769
44749
  * When the delinquency time of an invoice is reached, the order is automatically canceled.
44770
- * The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
44771
44750
  *
44772
44751
  * If the provided value is `null`, the order does not change state.
44773
44752
  */
@@ -44826,8 +44805,6 @@ export interface storefrontComponents {
44826
44805
  * If this value is `null`, this field uses risk metadata that is captured when creating the payment token.
44827
44806
  */
44828
44807
  riskMetadata?: storefrontComponents["schemas"]["RiskMetadata"] | null;
44829
- /** ID of the billing portal. */
44830
- billingPortalId: string;
44831
44808
  customFields?: storefrontComponents["schemas"]["ResourceCustomFields"];
44832
44809
  createdTime?: storefrontComponents["schemas"]["CreatedTime"];
44833
44810
  updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
@@ -46325,26 +46302,6 @@ export interface storefrontComponents {
46325
46302
  * the billing portal URL results in a 404 error.
46326
46303
  */
46327
46304
  status: "active" | "inactive";
46328
- /** Details of selected plans. */
46329
- plans?: {
46330
- plan?: storefrontComponents["schemas"]["FlexiblePlan"];
46331
- /**
46332
- * Status of the plan in the billing portal.
46333
- * If the status is `archived`, customers can continue using the billing portal,
46334
- * but can not select it as a new item.
46335
- */
46336
- status: "active" | "archived";
46337
- }[];
46338
- /** Details of selected add-ons. */
46339
- addons: {
46340
- plan?: storefrontComponents["schemas"]["FlexiblePlan"];
46341
- /**
46342
- * Status of the plan in the billing portal.
46343
- * If the status is `archived`, customers can continue using the billing portal,
46344
- * but can not select it as a new item.
46345
- */
46346
- status: "active" | "archived";
46347
- }[];
46348
46305
  createdTime?: storefrontComponents["schemas"]["CreatedTime"];
46349
46306
  updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
46350
46307
  _links?: storefrontComponents["schemas"]["SelfLink"];
@@ -53586,10 +53543,6 @@ export interface storefrontComponents {
53586
53543
  termsOfService?: string;
53587
53544
  };
53588
53545
  };
53589
- /** Details of selected plans. */
53590
- plans?: storefrontComponents["schemas"]["FlexiblePlan"][];
53591
- /** Details of selected add-ons. */
53592
- addons: storefrontComponents["schemas"]["FlexiblePlan"][];
53593
53546
  createdTime?: storefrontComponents["schemas"]["CreatedTime"];
53594
53547
  updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
53595
53548
  /** Related links. */
@@ -56896,6 +56849,12 @@ export interface storefrontComponents {
56896
56849
  PatchOrder: {
56897
56850
  content: {
56898
56851
  "application/json": {
56852
+ /**
56853
+ * Specifies if payment attempts are made automatically.
56854
+ * If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
56855
+ * or the default payment instrument on the subscription.
56856
+ */
56857
+ autopay?: boolean;
56899
56858
  /** Order delivery address. */
56900
56859
  deliveryAddress?: storefrontComponents["schemas"]["ContactObject"] | null;
56901
56860
  /** Order billing address. */
@@ -57717,7 +57676,10 @@ export interface storefrontComponents {
57717
57676
  /** ID of the payout request. */
57718
57677
  payoutRequestId?: string;
57719
57678
  /** Type of webhook event. */
57720
- eventType?: "payout-request-created" | "payout-request-modified";
57679
+ eventType?:
57680
+ | "payout-request-created"
57681
+ | "payout-request-modified"
57682
+ | "payout-request-canceled";
57721
57683
  /** Embedded objects. */
57722
57684
  _embedded?: {
57723
57685
  payoutRequest?: storefrontComponents["schemas"]["PayoutRequest"];
@@ -58054,16 +58016,6 @@ export interface operations {
58054
58016
  /** Resource slug. */
58055
58017
  slug: string;
58056
58018
  };
58057
- query: {
58058
- /**
58059
- * Expands a request to include embedded objects within the `_embedded`
58060
- * property of the response. This field accepts a comma-separated list of objects.
58061
- *
58062
- * For more information, see
58063
- * [Expand to include embedded objects](https://www.rebilly.com/catalog/all/#section/Expand-to-include-embedded-objects).
58064
- */
58065
- expand?: storefrontComponents["parameters"]["collectionExpand"];
58066
- };
58067
58019
  };
58068
58020
  responses: {
58069
58021
  /** Billing portal retrieved. */
@@ -63004,7 +62956,6 @@ export interface reportsComponents {
63004
62956
  organizationId?: reportsComponents["schemas"]["OrganizationId"];
63005
62957
  /**
63006
62958
  * Date and time when the related order is considered delinquent, and is canceled.
63007
- * The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
63008
62959
  * If this value is `null`, no delinquency time is configured.
63009
62960
  * If the `dueTime` of the order becomes greater than the `delinquencyTime` value,
63010
62961
  * the `delinquencyTime` value becomes equal to `dueTime`.
@@ -66666,7 +66617,6 @@ export interface reportsComponents {
66666
66617
  * Length of time, in ISO-8601 durations format,
66667
66618
  * which is added to the due time of the order when setting the delinquency time for all related invoices.
66668
66619
  * When the delinquency time of an invoice is reached, the order is automatically canceled.
66669
- * The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
66670
66620
  *
66671
66621
  * If the provided value is `null`, the order does not change state.
66672
66622
  */
@@ -66725,8 +66675,6 @@ export interface reportsComponents {
66725
66675
  * If this value is `null`, this field uses risk metadata that is captured when creating the payment token.
66726
66676
  */
66727
66677
  riskMetadata?: reportsComponents["schemas"]["RiskMetadata"] | null;
66728
- /** ID of the billing portal. */
66729
- billingPortalId: string;
66730
66678
  customFields?: reportsComponents["schemas"]["ResourceCustomFields"];
66731
66679
  createdTime?: reportsComponents["schemas"]["CreatedTime"];
66732
66680
  updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
@@ -68224,26 +68172,6 @@ export interface reportsComponents {
68224
68172
  * the billing portal URL results in a 404 error.
68225
68173
  */
68226
68174
  status: "active" | "inactive";
68227
- /** Details of selected plans. */
68228
- plans?: {
68229
- plan?: reportsComponents["schemas"]["FlexiblePlan"];
68230
- /**
68231
- * Status of the plan in the billing portal.
68232
- * If the status is `archived`, customers can continue using the billing portal,
68233
- * but can not select it as a new item.
68234
- */
68235
- status: "active" | "archived";
68236
- }[];
68237
- /** Details of selected add-ons. */
68238
- addons: {
68239
- plan?: reportsComponents["schemas"]["FlexiblePlan"];
68240
- /**
68241
- * Status of the plan in the billing portal.
68242
- * If the status is `archived`, customers can continue using the billing portal,
68243
- * but can not select it as a new item.
68244
- */
68245
- status: "active" | "archived";
68246
- }[];
68247
68175
  createdTime?: reportsComponents["schemas"]["CreatedTime"];
68248
68176
  updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
68249
68177
  _links?: reportsComponents["schemas"]["SelfLink"];
@@ -75485,10 +75413,6 @@ export interface reportsComponents {
75485
75413
  termsOfService?: string;
75486
75414
  };
75487
75415
  };
75488
- /** Details of selected plans. */
75489
- plans?: reportsComponents["schemas"]["FlexiblePlan"][];
75490
- /** Details of selected add-ons. */
75491
- addons: reportsComponents["schemas"]["FlexiblePlan"][];
75492
75416
  createdTime?: reportsComponents["schemas"]["CreatedTime"];
75493
75417
  updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
75494
75418
  /** Related links. */
@@ -78795,6 +78719,12 @@ export interface reportsComponents {
78795
78719
  PatchOrder: {
78796
78720
  content: {
78797
78721
  "application/json": {
78722
+ /**
78723
+ * Specifies if payment attempts are made automatically.
78724
+ * If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
78725
+ * or the default payment instrument on the subscription.
78726
+ */
78727
+ autopay?: boolean;
78798
78728
  /** Order delivery address. */
78799
78729
  deliveryAddress?: reportsComponents["schemas"]["ContactObject"] | null;
78800
78730
  /** Order billing address. */
@@ -79616,7 +79546,10 @@ export interface reportsComponents {
79616
79546
  /** ID of the payout request. */
79617
79547
  payoutRequestId?: string;
79618
79548
  /** Type of webhook event. */
79619
- eventType?: "payout-request-created" | "payout-request-modified";
79549
+ eventType?:
79550
+ | "payout-request-created"
79551
+ | "payout-request-modified"
79552
+ | "payout-request-canceled";
79620
79553
  /** Embedded objects. */
79621
79554
  _embedded?: {
79622
79555
  payoutRequest?: reportsComponents["schemas"]["PayoutRequest"];
@@ -85517,9 +85450,8 @@ declare module "resources/storefront/experimental-resource" {
85517
85450
  export default function ExperimentalResource({ apiHandler }: {
85518
85451
  apiHandler: any;
85519
85452
  }): {
85520
- get({ slug, expand }: {
85453
+ get({ slug }: {
85521
85454
  slug: any;
85522
- expand?: any;
85523
85455
  }): rebilly.StorefrontGetExperimentalBillingPortalResponsePromise;
85524
85456
  };
85525
85457
  }
@@ -85826,9 +85758,8 @@ declare module "resources/storefront/storefront-api-instance" {
85826
85758
  }): rebilly.StorefrontGetDepositStrategyResponsePromise;
85827
85759
  };
85828
85760
  experimental: {
85829
- get({ slug, expand }: {
85761
+ get({ slug }: {
85830
85762
  slug: any;
85831
- expand?: any;
85832
85763
  }): rebilly.StorefrontGetExperimentalBillingPortalResponsePromise;
85833
85764
  };
85834
85765
  invoices: {