@wix/auto_sdk_stores_subscription-options 1.0.29 → 1.0.31

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +58 -47
  2. package/build/cjs/index.js +333 -274
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +183 -158
  5. package/build/cjs/index.typings.js +273 -223
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +123 -109
  8. package/build/cjs/meta.js +246 -203
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +58 -47
  11. package/build/es/index.mjs +332 -274
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +183 -158
  14. package/build/es/index.typings.mjs +272 -223
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +123 -109
  17. package/build/es/meta.mjs +245 -203
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +58 -47
  20. package/build/internal/cjs/index.js +333 -274
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +183 -158
  23. package/build/internal/cjs/index.typings.js +273 -223
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +123 -109
  26. package/build/internal/cjs/meta.js +246 -203
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +58 -47
  29. package/build/internal/es/index.mjs +332 -274
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +183 -158
  32. package/build/internal/es/index.typings.mjs +272 -223
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +123 -109
  35. package/build/internal/es/meta.mjs +245 -203
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -29,6 +29,7 @@ __export(meta_exports, {
29
29
  bulkUpdateSubscriptionOptions: () => bulkUpdateSubscriptionOptions2,
30
30
  createSubscriptionOption: () => createSubscriptionOption2,
31
31
  deleteSubscriptionOption: () => deleteSubscriptionOption2,
32
+ enableCustomerCancellation: () => enableCustomerCancellation2,
32
33
  getOneTimePurchasesStatus: () => getOneTimePurchasesStatus2,
33
34
  getProductIdsForSubscriptionOption: () => getProductIdsForSubscriptionOption2,
34
35
  getSubscriptionOption: () => getSubscriptionOption2,
@@ -43,76 +44,76 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
43
44
  var import_float2 = require("@wix/sdk-runtime/transformations/float");
44
45
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
45
46
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
46
- function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
47
+ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
47
48
  const domainToMappings = {
48
49
  "api._api_base_domain_": [
49
50
  {
50
- srcPath: "/wix-ecommerce-plans",
51
+ srcPath: "/wix-ecommerce-plans-reader",
51
52
  destPath: ""
52
53
  }
53
54
  ],
54
- "www.wixapis.com": [
55
+ "www._base_domain_": [
55
56
  {
56
- srcPath: "/stores/v1/subscription-options",
57
- destPath: "/v1/subscription-options"
57
+ srcPath: "/_api/wix-ecommerce-plans-reader",
58
+ destPath: ""
58
59
  }
59
60
  ],
60
- "www._base_domain_": [
61
+ _: [
61
62
  {
62
- srcPath: "/_api/subscription-options-server",
63
+ srcPath: "/_api/subscription-options-reader-server",
63
64
  destPath: ""
64
65
  }
65
66
  ],
66
- "editor._base_domain_": [
67
+ "manage._base_domain_": [
67
68
  {
68
- srcPath: "/_api/subscription-options-server",
69
+ srcPath: "/_api/subscription-options-reader-server",
69
70
  destPath: ""
70
71
  }
71
- ],
72
- "blocks._base_domain_": [
72
+ ]
73
+ };
74
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
75
+ }
76
+ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
77
+ const domainToMappings = {
78
+ "api._api_base_domain_": [
73
79
  {
74
- srcPath: "/_api/subscription-options-server",
80
+ srcPath: "/wix-ecommerce-plans",
75
81
  destPath: ""
76
82
  }
77
83
  ],
78
- "create.editorx": [
84
+ "www.wixapis.com": [
79
85
  {
80
- srcPath: "/_api/subscription-options-server",
81
- destPath: ""
86
+ srcPath: "/stores/v1/subscription-options",
87
+ destPath: "/v1/subscription-options"
82
88
  }
83
89
  ],
84
- "manage._base_domain_": [
90
+ "www._base_domain_": [
85
91
  {
86
92
  srcPath: "/_api/subscription-options-server",
87
93
  destPath: ""
88
94
  }
89
- ]
90
- };
91
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
92
- }
93
- function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
94
- const domainToMappings = {
95
- "api._api_base_domain_": [
95
+ ],
96
+ "editor._base_domain_": [
96
97
  {
97
- srcPath: "/wix-ecommerce-plans-reader",
98
+ srcPath: "/_api/subscription-options-server",
98
99
  destPath: ""
99
100
  }
100
101
  ],
101
- "www._base_domain_": [
102
+ "blocks._base_domain_": [
102
103
  {
103
- srcPath: "/_api/wix-ecommerce-plans-reader",
104
+ srcPath: "/_api/subscription-options-server",
104
105
  destPath: ""
105
106
  }
106
107
  ],
107
- _: [
108
+ "create.editorx": [
108
109
  {
109
- srcPath: "/_api/subscription-options-reader-server",
110
+ srcPath: "/_api/subscription-options-server",
110
111
  destPath: ""
111
112
  }
112
113
  ],
113
114
  "manage._base_domain_": [
114
115
  {
115
- srcPath: "/_api/subscription-options-reader-server",
116
+ srcPath: "/_api/subscription-options-server",
116
117
  destPath: ""
117
118
  }
118
119
  ]
@@ -120,106 +121,6 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl
120
121
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
121
122
  }
122
123
  var PACKAGE_NAME = "@wix/auto_sdk_stores_subscription-options";
123
- function getSubscriptionOption(payload) {
124
- function __getSubscriptionOption({ host }) {
125
- const metadata = {
126
- entityFqdn: "wix.stores.v1.subscription_option",
127
- method: "GET",
128
- methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
129
- packageName: PACKAGE_NAME,
130
- migrationOptions: {
131
- optInTransformResponse: true
132
- },
133
- url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
134
- { protoPath: "/v1/subscription-options/{id}", data: payload, host }
135
- ),
136
- params: (0, import_rest_modules.toURLSearchParams)(payload),
137
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
138
- {
139
- transformFn: import_float2.transformRESTFloatToSDKFloat,
140
- paths: [{ path: "subscriptionOption.discount.value" }]
141
- }
142
- ])
143
- };
144
- return metadata;
145
- }
146
- return __getSubscriptionOption;
147
- }
148
- function getSubscriptionOptionsForProduct(payload) {
149
- function __getSubscriptionOptionsForProduct({ host }) {
150
- const metadata = {
151
- entityFqdn: "wix.stores.v1.subscription_option",
152
- method: "GET",
153
- methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
154
- packageName: PACKAGE_NAME,
155
- migrationOptions: {
156
- optInTransformResponse: true
157
- },
158
- url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
159
- {
160
- protoPath: "/v1/subscription-options/byProduct/{productId}",
161
- data: payload,
162
- host
163
- }
164
- ),
165
- params: (0, import_rest_modules.toURLSearchParams)(payload),
166
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
167
- {
168
- transformFn: import_float2.transformRESTFloatToSDKFloat,
169
- paths: [{ path: "subscriptionOptions.discount.value" }]
170
- }
171
- ])
172
- };
173
- return metadata;
174
- }
175
- return __getSubscriptionOptionsForProduct;
176
- }
177
- function getProductIdsForSubscriptionOption(payload) {
178
- function __getProductIdsForSubscriptionOption({ host }) {
179
- const metadata = {
180
- entityFqdn: "wix.stores.v1.subscription_option",
181
- method: "GET",
182
- methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
183
- packageName: PACKAGE_NAME,
184
- migrationOptions: {
185
- optInTransformResponse: true
186
- },
187
- url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
188
- {
189
- protoPath: "/v1/subscription-options/{id}/productIds",
190
- data: payload,
191
- host
192
- }
193
- ),
194
- params: (0, import_rest_modules.toURLSearchParams)(payload)
195
- };
196
- return metadata;
197
- }
198
- return __getProductIdsForSubscriptionOption;
199
- }
200
- function getOneTimePurchasesStatus(payload) {
201
- function __getOneTimePurchasesStatus({ host }) {
202
- const metadata = {
203
- entityFqdn: "wix.stores.v1.subscription_option",
204
- method: "GET",
205
- methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
206
- packageName: PACKAGE_NAME,
207
- migrationOptions: {
208
- optInTransformResponse: true
209
- },
210
- url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
211
- {
212
- protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
213
- data: payload,
214
- host
215
- }
216
- ),
217
- params: (0, import_rest_modules.toURLSearchParams)(payload)
218
- };
219
- return metadata;
220
- }
221
- return __getOneTimePurchasesStatus;
222
- }
223
124
  function createSubscriptionOption(payload) {
224
125
  function __createSubscriptionOption({ host }) {
225
126
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -446,6 +347,129 @@ function allowOneTimePurchases(payload) {
446
347
  }
447
348
  return __allowOneTimePurchases;
448
349
  }
350
+ function enableCustomerCancellation(payload) {
351
+ function __enableCustomerCancellation({ host }) {
352
+ const metadata = {
353
+ entityFqdn: "wix.stores.v1.subscription_option",
354
+ method: "PATCH",
355
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.EnableCustomerCancellation",
356
+ packageName: PACKAGE_NAME,
357
+ migrationOptions: {
358
+ optInTransformResponse: true
359
+ },
360
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
361
+ {
362
+ protoPath: "/v1/subscription-options/product/{productId}/enableCustomerCancellation",
363
+ data: payload,
364
+ host
365
+ }
366
+ ),
367
+ data: payload
368
+ };
369
+ return metadata;
370
+ }
371
+ return __enableCustomerCancellation;
372
+ }
373
+ function getSubscriptionOption(payload) {
374
+ function __getSubscriptionOption({ host }) {
375
+ const metadata = {
376
+ entityFqdn: "wix.stores.v1.subscription_option",
377
+ method: "GET",
378
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
379
+ packageName: PACKAGE_NAME,
380
+ migrationOptions: {
381
+ optInTransformResponse: true
382
+ },
383
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
384
+ { protoPath: "/v1/subscription-options/{id}", data: payload, host }
385
+ ),
386
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
387
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
388
+ {
389
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
390
+ paths: [{ path: "subscriptionOption.discount.value" }]
391
+ }
392
+ ])
393
+ };
394
+ return metadata;
395
+ }
396
+ return __getSubscriptionOption;
397
+ }
398
+ function getSubscriptionOptionsForProduct(payload) {
399
+ function __getSubscriptionOptionsForProduct({ host }) {
400
+ const metadata = {
401
+ entityFqdn: "wix.stores.v1.subscription_option",
402
+ method: "GET",
403
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
404
+ packageName: PACKAGE_NAME,
405
+ migrationOptions: {
406
+ optInTransformResponse: true
407
+ },
408
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
409
+ {
410
+ protoPath: "/v1/subscription-options/byProduct/{productId}",
411
+ data: payload,
412
+ host
413
+ }
414
+ ),
415
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
416
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
417
+ {
418
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
419
+ paths: [{ path: "subscriptionOptions.discount.value" }]
420
+ }
421
+ ])
422
+ };
423
+ return metadata;
424
+ }
425
+ return __getSubscriptionOptionsForProduct;
426
+ }
427
+ function getProductIdsForSubscriptionOption(payload) {
428
+ function __getProductIdsForSubscriptionOption({ host }) {
429
+ const metadata = {
430
+ entityFqdn: "wix.stores.v1.subscription_option",
431
+ method: "GET",
432
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
433
+ packageName: PACKAGE_NAME,
434
+ migrationOptions: {
435
+ optInTransformResponse: true
436
+ },
437
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
438
+ {
439
+ protoPath: "/v1/subscription-options/{id}/productIds",
440
+ data: payload,
441
+ host
442
+ }
443
+ ),
444
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
445
+ };
446
+ return metadata;
447
+ }
448
+ return __getProductIdsForSubscriptionOption;
449
+ }
450
+ function getOneTimePurchasesStatus(payload) {
451
+ function __getOneTimePurchasesStatus({ host }) {
452
+ const metadata = {
453
+ entityFqdn: "wix.stores.v1.subscription_option",
454
+ method: "GET",
455
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
456
+ packageName: PACKAGE_NAME,
457
+ migrationOptions: {
458
+ optInTransformResponse: true
459
+ },
460
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
461
+ {
462
+ protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
463
+ data: payload,
464
+ host
465
+ }
466
+ ),
467
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
468
+ };
469
+ return metadata;
470
+ }
471
+ return __getOneTimePurchasesStatus;
472
+ }
449
473
 
450
474
  // src/stores-v1-subscription-option-subscription-options.types.ts
451
475
  var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
@@ -464,57 +488,55 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
464
488
  })(DiscountType || {});
465
489
 
466
490
  // src/stores-v1-subscription-option-subscription-options.meta.ts
467
- function getSubscriptionOption2() {
468
- const payload = { id: ":id" };
469
- const getRequestOptions = getSubscriptionOption(payload);
491
+ function createSubscriptionOption2() {
492
+ const payload = {};
493
+ const getRequestOptions = createSubscriptionOption(payload);
470
494
  const getUrl = (context) => {
471
495
  const { url } = getRequestOptions(context);
472
496
  return url;
473
497
  };
474
498
  return {
475
499
  getUrl,
476
- httpMethod: "GET",
477
- path: "/v1/subscription-options/{id}",
478
- pathParams: { id: "id" },
500
+ httpMethod: "POST",
501
+ path: "/v1/subscription-options",
502
+ pathParams: {},
479
503
  __requestType: null,
480
504
  __originalRequestType: null,
481
505
  __responseType: null,
482
506
  __originalResponseType: null
483
507
  };
484
508
  }
485
- function getSubscriptionOptionsForProduct2() {
486
- const payload = { productId: ":productId" };
487
- const getRequestOptions = getSubscriptionOptionsForProduct(
488
- payload
489
- );
509
+ function updateSubscriptionOption2() {
510
+ const payload = {
511
+ subscriptionOption: { id: ":subscriptionOptionId" }
512
+ };
513
+ const getRequestOptions = updateSubscriptionOption(payload);
490
514
  const getUrl = (context) => {
491
515
  const { url } = getRequestOptions(context);
492
516
  return url;
493
517
  };
494
518
  return {
495
519
  getUrl,
496
- httpMethod: "GET",
497
- path: "/v1/subscription-options/byProduct/{productId}",
498
- pathParams: { productId: "productId" },
520
+ httpMethod: "PATCH",
521
+ path: "/v1/subscription-options/{subscriptionOption.id}",
522
+ pathParams: { subscriptionOptionId: "subscriptionOptionId" },
499
523
  __requestType: null,
500
524
  __originalRequestType: null,
501
525
  __responseType: null,
502
526
  __originalResponseType: null
503
527
  };
504
528
  }
505
- function getProductIdsForSubscriptionOption2() {
529
+ function deleteSubscriptionOption2() {
506
530
  const payload = { id: ":id" };
507
- const getRequestOptions = getProductIdsForSubscriptionOption(
508
- payload
509
- );
531
+ const getRequestOptions = deleteSubscriptionOption(payload);
510
532
  const getUrl = (context) => {
511
533
  const { url } = getRequestOptions(context);
512
534
  return url;
513
535
  };
514
536
  return {
515
537
  getUrl,
516
- httpMethod: "GET",
517
- path: "/v1/subscription-options/{id}/productIds",
538
+ httpMethod: "DELETE",
539
+ path: "/v1/subscription-options/{id}",
518
540
  pathParams: { id: "id" },
519
541
  __requestType: null,
520
542
  __originalRequestType: null,
@@ -522,34 +544,38 @@ function getProductIdsForSubscriptionOption2() {
522
544
  __originalResponseType: null
523
545
  };
524
546
  }
525
- function getOneTimePurchasesStatus2() {
526
- const payload = { productId: ":productId" };
527
- const getRequestOptions = getOneTimePurchasesStatus(payload);
547
+ function bulkCreateSubscriptionOptions2() {
548
+ const payload = {};
549
+ const getRequestOptions = bulkCreateSubscriptionOptions(
550
+ payload
551
+ );
528
552
  const getUrl = (context) => {
529
553
  const { url } = getRequestOptions(context);
530
554
  return url;
531
555
  };
532
556
  return {
533
557
  getUrl,
534
- httpMethod: "GET",
535
- path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
536
- pathParams: { productId: "productId" },
558
+ httpMethod: "POST",
559
+ path: "/v1/subscription-options/createBulk",
560
+ pathParams: {},
537
561
  __requestType: null,
538
562
  __originalRequestType: null,
539
563
  __responseType: null,
540
564
  __originalResponseType: null
541
565
  };
542
566
  }
543
- function createSubscriptionOption2() {
567
+ function bulkUpdateSubscriptionOptions2() {
544
568
  const payload = {};
545
- const getRequestOptions = createSubscriptionOption(payload);
569
+ const getRequestOptions = bulkUpdateSubscriptionOptions(
570
+ payload
571
+ );
546
572
  const getUrl = (context) => {
547
573
  const { url } = getRequestOptions(context);
548
574
  return url;
549
575
  };
550
576
  return {
551
577
  getUrl,
552
- httpMethod: "POST",
578
+ httpMethod: "PATCH",
553
579
  path: "/v1/subscription-options",
554
580
  pathParams: {},
555
581
  __requestType: null,
@@ -558,69 +584,67 @@ function createSubscriptionOption2() {
558
584
  __originalResponseType: null
559
585
  };
560
586
  }
561
- function updateSubscriptionOption2() {
562
- const payload = {
563
- subscriptionOption: { id: ":subscriptionOptionId" }
564
- };
565
- const getRequestOptions = updateSubscriptionOption(payload);
587
+ function bulkDeleteSubscriptionOptions2() {
588
+ const payload = {};
589
+ const getRequestOptions = bulkDeleteSubscriptionOptions(
590
+ payload
591
+ );
566
592
  const getUrl = (context) => {
567
593
  const { url } = getRequestOptions(context);
568
594
  return url;
569
595
  };
570
596
  return {
571
597
  getUrl,
572
- httpMethod: "PATCH",
573
- path: "/v1/subscription-options/{subscriptionOption.id}",
574
- pathParams: { subscriptionOptionId: "subscriptionOptionId" },
598
+ httpMethod: "POST",
599
+ path: "/v1/subscription-options/deleteBulk",
600
+ pathParams: {},
575
601
  __requestType: null,
576
602
  __originalRequestType: null,
577
603
  __responseType: null,
578
604
  __originalResponseType: null
579
605
  };
580
606
  }
581
- function deleteSubscriptionOption2() {
582
- const payload = { id: ":id" };
583
- const getRequestOptions = deleteSubscriptionOption(payload);
607
+ function assignSubscriptionOptionsToProduct2() {
608
+ const payload = { productId: ":productId" };
609
+ const getRequestOptions = assignSubscriptionOptionsToProduct(
610
+ payload
611
+ );
584
612
  const getUrl = (context) => {
585
613
  const { url } = getRequestOptions(context);
586
614
  return url;
587
615
  };
588
616
  return {
589
617
  getUrl,
590
- httpMethod: "DELETE",
591
- path: "/v1/subscription-options/{id}",
592
- pathParams: { id: "id" },
618
+ httpMethod: "POST",
619
+ path: "/v1/subscription-options/product/{productId}/assign",
620
+ pathParams: { productId: "productId" },
593
621
  __requestType: null,
594
622
  __originalRequestType: null,
595
623
  __responseType: null,
596
624
  __originalResponseType: null
597
625
  };
598
626
  }
599
- function bulkCreateSubscriptionOptions2() {
600
- const payload = {};
601
- const getRequestOptions = bulkCreateSubscriptionOptions(
602
- payload
603
- );
627
+ function allowOneTimePurchases2() {
628
+ const payload = { productId: ":productId" };
629
+ const getRequestOptions = allowOneTimePurchases(payload);
604
630
  const getUrl = (context) => {
605
631
  const { url } = getRequestOptions(context);
606
632
  return url;
607
633
  };
608
634
  return {
609
635
  getUrl,
610
- httpMethod: "POST",
611
- path: "/v1/subscription-options/createBulk",
612
- pathParams: {},
636
+ httpMethod: "PATCH",
637
+ path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
638
+ pathParams: { productId: "productId" },
613
639
  __requestType: null,
614
640
  __originalRequestType: null,
615
641
  __responseType: null,
616
642
  __originalResponseType: null
617
643
  };
618
644
  }
619
- function bulkUpdateSubscriptionOptions2() {
620
- const payload = {};
621
- const getRequestOptions = bulkUpdateSubscriptionOptions(
622
- payload
623
- );
645
+ function enableCustomerCancellation2() {
646
+ const payload = { productId: ":productId" };
647
+ const getRequestOptions = enableCustomerCancellation(payload);
624
648
  const getUrl = (context) => {
625
649
  const { url } = getRequestOptions(context);
626
650
  return url;
@@ -628,37 +652,35 @@ function bulkUpdateSubscriptionOptions2() {
628
652
  return {
629
653
  getUrl,
630
654
  httpMethod: "PATCH",
631
- path: "/v1/subscription-options",
632
- pathParams: {},
655
+ path: "/v1/subscription-options/product/{productId}/enableCustomerCancellation",
656
+ pathParams: { productId: "productId" },
633
657
  __requestType: null,
634
658
  __originalRequestType: null,
635
659
  __responseType: null,
636
660
  __originalResponseType: null
637
661
  };
638
662
  }
639
- function bulkDeleteSubscriptionOptions2() {
640
- const payload = {};
641
- const getRequestOptions = bulkDeleteSubscriptionOptions(
642
- payload
643
- );
663
+ function getSubscriptionOption2() {
664
+ const payload = { id: ":id" };
665
+ const getRequestOptions = getSubscriptionOption(payload);
644
666
  const getUrl = (context) => {
645
667
  const { url } = getRequestOptions(context);
646
668
  return url;
647
669
  };
648
670
  return {
649
671
  getUrl,
650
- httpMethod: "POST",
651
- path: "/v1/subscription-options/deleteBulk",
652
- pathParams: {},
672
+ httpMethod: "GET",
673
+ path: "/v1/subscription-options/{id}",
674
+ pathParams: { id: "id" },
653
675
  __requestType: null,
654
676
  __originalRequestType: null,
655
677
  __responseType: null,
656
678
  __originalResponseType: null
657
679
  };
658
680
  }
659
- function assignSubscriptionOptionsToProduct2() {
681
+ function getSubscriptionOptionsForProduct2() {
660
682
  const payload = { productId: ":productId" };
661
- const getRequestOptions = assignSubscriptionOptionsToProduct(
683
+ const getRequestOptions = getSubscriptionOptionsForProduct(
662
684
  payload
663
685
  );
664
686
  const getUrl = (context) => {
@@ -667,8 +689,8 @@ function assignSubscriptionOptionsToProduct2() {
667
689
  };
668
690
  return {
669
691
  getUrl,
670
- httpMethod: "POST",
671
- path: "/v1/subscription-options/product/{productId}/assign",
692
+ httpMethod: "GET",
693
+ path: "/v1/subscription-options/byProduct/{productId}",
672
694
  pathParams: { productId: "productId" },
673
695
  __requestType: null,
674
696
  __originalRequestType: null,
@@ -676,17 +698,37 @@ function assignSubscriptionOptionsToProduct2() {
676
698
  __originalResponseType: null
677
699
  };
678
700
  }
679
- function allowOneTimePurchases2() {
701
+ function getProductIdsForSubscriptionOption2() {
702
+ const payload = { id: ":id" };
703
+ const getRequestOptions = getProductIdsForSubscriptionOption(
704
+ payload
705
+ );
706
+ const getUrl = (context) => {
707
+ const { url } = getRequestOptions(context);
708
+ return url;
709
+ };
710
+ return {
711
+ getUrl,
712
+ httpMethod: "GET",
713
+ path: "/v1/subscription-options/{id}/productIds",
714
+ pathParams: { id: "id" },
715
+ __requestType: null,
716
+ __originalRequestType: null,
717
+ __responseType: null,
718
+ __originalResponseType: null
719
+ };
720
+ }
721
+ function getOneTimePurchasesStatus2() {
680
722
  const payload = { productId: ":productId" };
681
- const getRequestOptions = allowOneTimePurchases(payload);
723
+ const getRequestOptions = getOneTimePurchasesStatus(payload);
682
724
  const getUrl = (context) => {
683
725
  const { url } = getRequestOptions(context);
684
726
  return url;
685
727
  };
686
728
  return {
687
729
  getUrl,
688
- httpMethod: "PATCH",
689
- path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
730
+ httpMethod: "GET",
731
+ path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
690
732
  pathParams: { productId: "productId" },
691
733
  __requestType: null,
692
734
  __originalRequestType: null,
@@ -705,6 +747,7 @@ function allowOneTimePurchases2() {
705
747
  bulkUpdateSubscriptionOptions,
706
748
  createSubscriptionOption,
707
749
  deleteSubscriptionOption,
750
+ enableCustomerCancellation,
708
751
  getOneTimePurchasesStatus,
709
752
  getProductIdsForSubscriptionOption,
710
753
  getSubscriptionOption,