@wix/auto_sdk_stores_subscription-options 1.0.39 → 1.0.41

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