rebilly-js-sdk 45.1.0 → 45.2.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.
@@ -543,6 +543,9 @@ declare module rebilly {
543
543
  type DeleteSubscriptionResponse = operations['DeleteSubscription']['responses']['204']
544
544
  type DeleteSubscriptionResponsePromise = Promise<{fields: DeleteSubscriptionResponse}>
545
545
 
546
+ type PostSubscriptionVoidResponse = operations['PostSubscriptionVoid']['responses']['201']['content']['application/json']
547
+ type PostSubscriptionVoidResponsePromise = Promise<{fields: PostSubscriptionVoidResponse}>
548
+
546
549
  type PostSubscriptionItemsChangeRequest = operations['PostSubscriptionItemsChange']['requestBody']['content']['application/json']
547
550
  type CreateSubscriptionItemsChangeRequest = { id: String, data: PostSubscriptionItemsChangeRequest, expand?: String }
548
551
  type PostSubscriptionItemsChangeResponse = operations['PostSubscriptionItemsChange']['responses']['201']['content']['application/json']
@@ -3162,7 +3165,7 @@ export interface corePaths {
3162
3165
  get: operations["GetSubscription"];
3163
3166
  /** Create or update an order with predefined identifier string. */
3164
3167
  put: operations["PutSubscription"];
3165
- /** Void a pending subscription with predefined identifier string. */
3168
+ /** Delete a pending order with predefined identifier string. */
3166
3169
  delete: operations["DeleteSubscription"];
3167
3170
  parameters: {
3168
3171
  path: {
@@ -3179,6 +3182,24 @@ export interface corePaths {
3179
3182
  };
3180
3183
  };
3181
3184
  };
3185
+ "/subscriptions/{id}/void": {
3186
+ /** Void a pending order with predefined identifier string. */
3187
+ post: operations["PostSubscriptionVoid"];
3188
+ parameters: {
3189
+ path: {
3190
+ /** The resource identifier string. */
3191
+ id: coreComponents["parameters"]["resourceId"];
3192
+ };
3193
+ header: {
3194
+ /**
3195
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
3196
+ *
3197
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
3198
+ */
3199
+ "Organization-Id"?: coreComponents["parameters"]["organizationId"];
3200
+ };
3201
+ };
3202
+ };
3182
3203
  "/subscriptions/{id}/change-items": {
3183
3204
  /** Change an order's items or quantities and designate when and if there should be pro-rata credits given. */
3184
3205
  post: operations["PostSubscriptionItemsChange"];
@@ -8978,7 +8999,8 @@ export interface coreComponents {
8978
8999
  | "cancellation"
8979
9000
  | "one-time"
8980
9001
  | "refund"
8981
- | "charge";
9002
+ | "charge"
9003
+ | "one-time-sale";
8982
9004
  /** Time past due reminder event will be triggered. */
8983
9005
  dueReminderTime?: coreComponents["schemas"]["ServerTimestamp"] | null;
8984
9006
  /** Number of past due reminder events triggered. */
@@ -15951,7 +15973,7 @@ export interface operations {
15951
15973
  };
15952
15974
  requestBody: coreComponents["requestBodies"]["Subscription"];
15953
15975
  };
15954
- /** Void a pending subscription with predefined identifier string. */
15976
+ /** Delete a pending order with predefined identifier string. */
15955
15977
  DeleteSubscription: {
15956
15978
  parameters: {
15957
15979
  path: {
@@ -15968,7 +15990,7 @@ export interface operations {
15968
15990
  };
15969
15991
  };
15970
15992
  responses: {
15971
- /** Pending subscription was voided. */
15993
+ /** Pending order was deleted. */
15972
15994
  204: never;
15973
15995
  401: coreComponents["responses"]["Unauthorized"];
15974
15996
  403: coreComponents["responses"]["Forbidden"];
@@ -15976,6 +15998,35 @@ export interface operations {
15976
15998
  409: coreComponents["responses"]["Conflict"];
15977
15999
  };
15978
16000
  };
16001
+ /** Void a pending order with predefined identifier string. */
16002
+ PostSubscriptionVoid: {
16003
+ parameters: {
16004
+ path: {
16005
+ /** The resource identifier string. */
16006
+ id: coreComponents["parameters"]["resourceId"];
16007
+ };
16008
+ header: {
16009
+ /**
16010
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
16011
+ *
16012
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
16013
+ */
16014
+ "Organization-Id"?: coreComponents["parameters"]["organizationId"];
16015
+ };
16016
+ };
16017
+ responses: {
16018
+ /** Order was voided successfully. */
16019
+ 201: {
16020
+ content: {
16021
+ "application/json": coreComponents["schemas"]["Subscription"];
16022
+ };
16023
+ };
16024
+ 401: coreComponents["responses"]["Unauthorized"];
16025
+ 403: coreComponents["responses"]["Forbidden"];
16026
+ 404: coreComponents["responses"]["NotFound"];
16027
+ 409: coreComponents["responses"]["Conflict"];
16028
+ };
16029
+ };
15979
16030
  /** Change an order's items or quantities and designate when and if there should be pro-rata credits given. */
15980
16031
  PostSubscriptionItemsChange: {
15981
16032
  parameters: {
@@ -24170,7 +24221,8 @@ export interface usersComponents {
24170
24221
  | "cancellation"
24171
24222
  | "one-time"
24172
24223
  | "refund"
24173
- | "charge";
24224
+ | "charge"
24225
+ | "one-time-sale";
24174
24226
  /** Time past due reminder event will be triggered. */
24175
24227
  dueReminderTime?: usersComponents["schemas"]["ServerTimestamp"] | null;
24176
24228
  /** Number of past due reminder events triggered. */
@@ -38679,6 +38731,9 @@ declare module "resources/subscriptions-resource" {
38679
38731
  delete({ id }: {
38680
38732
  id: any;
38681
38733
  }): any;
38734
+ void({ id }: {
38735
+ id: any;
38736
+ }): any;
38682
38737
  changeItems({ id, data }: {
38683
38738
  id: any;
38684
38739
  data: any;
@@ -40257,6 +40312,9 @@ declare module "resources/api-instance" {
40257
40312
  delete({ id }: {
40258
40313
  id: any;
40259
40314
  }): any;
40315
+ void({ id }: {
40316
+ id: any;
40317
+ }): any;
40260
40318
  changeItems({ id, data }: {
40261
40319
  id: any;
40262
40320
  data: any;