@wix/auto_sdk_stores_subscription-options 1.0.28 → 1.0.30

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 +45 -45
  2. package/build/cjs/index.js +276 -276
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +157 -157
  5. package/build/cjs/index.typings.js +230 -230
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +108 -108
  8. package/build/cjs/meta.js +204 -204
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +45 -45
  11. package/build/es/index.mjs +276 -276
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +157 -157
  14. package/build/es/index.typings.mjs +230 -230
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +108 -108
  17. package/build/es/meta.mjs +204 -204
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +45 -45
  20. package/build/internal/cjs/index.js +276 -276
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +157 -157
  23. package/build/internal/cjs/index.typings.js +230 -230
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +108 -108
  26. package/build/internal/cjs/meta.js +204 -204
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +45 -45
  29. package/build/internal/es/index.mjs +276 -276
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +157 -157
  32. package/build/internal/es/index.typings.mjs +230 -230
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +108 -108
  35. package/build/internal/es/meta.mjs +204 -204
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -43,76 +43,76 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
43
43
  var import_float2 = require("@wix/sdk-runtime/transformations/float");
44
44
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
45
45
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
46
- function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
46
+ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
47
47
  const domainToMappings = {
48
48
  "api._api_base_domain_": [
49
49
  {
50
- srcPath: "/wix-ecommerce-plans",
50
+ srcPath: "/wix-ecommerce-plans-reader",
51
51
  destPath: ""
52
52
  }
53
53
  ],
54
- "www.wixapis.com": [
54
+ "www._base_domain_": [
55
55
  {
56
- srcPath: "/stores/v1/subscription-options",
57
- destPath: "/v1/subscription-options"
56
+ srcPath: "/_api/wix-ecommerce-plans-reader",
57
+ destPath: ""
58
58
  }
59
59
  ],
60
- "www._base_domain_": [
60
+ _: [
61
61
  {
62
- srcPath: "/_api/subscription-options-server",
62
+ srcPath: "/_api/subscription-options-reader-server",
63
63
  destPath: ""
64
64
  }
65
65
  ],
66
- "editor._base_domain_": [
66
+ "manage._base_domain_": [
67
67
  {
68
- srcPath: "/_api/subscription-options-server",
68
+ srcPath: "/_api/subscription-options-reader-server",
69
69
  destPath: ""
70
70
  }
71
- ],
72
- "blocks._base_domain_": [
71
+ ]
72
+ };
73
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
74
+ }
75
+ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
76
+ const domainToMappings = {
77
+ "api._api_base_domain_": [
73
78
  {
74
- srcPath: "/_api/subscription-options-server",
79
+ srcPath: "/wix-ecommerce-plans",
75
80
  destPath: ""
76
81
  }
77
82
  ],
78
- "create.editorx": [
83
+ "www.wixapis.com": [
79
84
  {
80
- srcPath: "/_api/subscription-options-server",
81
- destPath: ""
85
+ srcPath: "/stores/v1/subscription-options",
86
+ destPath: "/v1/subscription-options"
82
87
  }
83
88
  ],
84
- "manage._base_domain_": [
89
+ "www._base_domain_": [
85
90
  {
86
91
  srcPath: "/_api/subscription-options-server",
87
92
  destPath: ""
88
93
  }
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_": [
94
+ ],
95
+ "editor._base_domain_": [
96
96
  {
97
- srcPath: "/wix-ecommerce-plans-reader",
97
+ srcPath: "/_api/subscription-options-server",
98
98
  destPath: ""
99
99
  }
100
100
  ],
101
- "www._base_domain_": [
101
+ "blocks._base_domain_": [
102
102
  {
103
- srcPath: "/_api/wix-ecommerce-plans-reader",
103
+ srcPath: "/_api/subscription-options-server",
104
104
  destPath: ""
105
105
  }
106
106
  ],
107
- _: [
107
+ "create.editorx": [
108
108
  {
109
- srcPath: "/_api/subscription-options-reader-server",
109
+ srcPath: "/_api/subscription-options-server",
110
110
  destPath: ""
111
111
  }
112
112
  ],
113
113
  "manage._base_domain_": [
114
114
  {
115
- srcPath: "/_api/subscription-options-reader-server",
115
+ srcPath: "/_api/subscription-options-server",
116
116
  destPath: ""
117
117
  }
118
118
  ]
@@ -120,106 +120,6 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl
120
120
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
121
121
  }
122
122
  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
123
  function createSubscriptionOption(payload) {
224
124
  function __createSubscriptionOption({ host }) {
225
125
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -446,6 +346,106 @@ function allowOneTimePurchases(payload) {
446
346
  }
447
347
  return __allowOneTimePurchases;
448
348
  }
349
+ function getSubscriptionOption(payload) {
350
+ function __getSubscriptionOption({ host }) {
351
+ const metadata = {
352
+ entityFqdn: "wix.stores.v1.subscription_option",
353
+ method: "GET",
354
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
355
+ packageName: PACKAGE_NAME,
356
+ migrationOptions: {
357
+ optInTransformResponse: true
358
+ },
359
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
360
+ { protoPath: "/v1/subscription-options/{id}", data: payload, host }
361
+ ),
362
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
363
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
364
+ {
365
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
366
+ paths: [{ path: "subscriptionOption.discount.value" }]
367
+ }
368
+ ])
369
+ };
370
+ return metadata;
371
+ }
372
+ return __getSubscriptionOption;
373
+ }
374
+ function getSubscriptionOptionsForProduct(payload) {
375
+ function __getSubscriptionOptionsForProduct({ host }) {
376
+ const metadata = {
377
+ entityFqdn: "wix.stores.v1.subscription_option",
378
+ method: "GET",
379
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
380
+ packageName: PACKAGE_NAME,
381
+ migrationOptions: {
382
+ optInTransformResponse: true
383
+ },
384
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
385
+ {
386
+ protoPath: "/v1/subscription-options/byProduct/{productId}",
387
+ data: payload,
388
+ host
389
+ }
390
+ ),
391
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
392
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
393
+ {
394
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
395
+ paths: [{ path: "subscriptionOptions.discount.value" }]
396
+ }
397
+ ])
398
+ };
399
+ return metadata;
400
+ }
401
+ return __getSubscriptionOptionsForProduct;
402
+ }
403
+ function getProductIdsForSubscriptionOption(payload) {
404
+ function __getProductIdsForSubscriptionOption({ host }) {
405
+ const metadata = {
406
+ entityFqdn: "wix.stores.v1.subscription_option",
407
+ method: "GET",
408
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
409
+ packageName: PACKAGE_NAME,
410
+ migrationOptions: {
411
+ optInTransformResponse: true
412
+ },
413
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
414
+ {
415
+ protoPath: "/v1/subscription-options/{id}/productIds",
416
+ data: payload,
417
+ host
418
+ }
419
+ ),
420
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
421
+ };
422
+ return metadata;
423
+ }
424
+ return __getProductIdsForSubscriptionOption;
425
+ }
426
+ function getOneTimePurchasesStatus(payload) {
427
+ function __getOneTimePurchasesStatus({ host }) {
428
+ const metadata = {
429
+ entityFqdn: "wix.stores.v1.subscription_option",
430
+ method: "GET",
431
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
432
+ packageName: PACKAGE_NAME,
433
+ migrationOptions: {
434
+ optInTransformResponse: true
435
+ },
436
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
437
+ {
438
+ protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
439
+ data: payload,
440
+ host
441
+ }
442
+ ),
443
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
444
+ };
445
+ return metadata;
446
+ }
447
+ return __getOneTimePurchasesStatus;
448
+ }
449
449
 
450
450
  // src/stores-v1-subscription-option-subscription-options.types.ts
451
451
  var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
@@ -464,57 +464,55 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
464
464
  })(DiscountType || {});
465
465
 
466
466
  // src/stores-v1-subscription-option-subscription-options.meta.ts
467
- function getSubscriptionOption2() {
468
- const payload = { id: ":id" };
469
- const getRequestOptions = getSubscriptionOption(payload);
467
+ function createSubscriptionOption2() {
468
+ const payload = {};
469
+ const getRequestOptions = createSubscriptionOption(payload);
470
470
  const getUrl = (context) => {
471
471
  const { url } = getRequestOptions(context);
472
472
  return url;
473
473
  };
474
474
  return {
475
475
  getUrl,
476
- httpMethod: "GET",
477
- path: "/v1/subscription-options/{id}",
478
- pathParams: { id: "id" },
476
+ httpMethod: "POST",
477
+ path: "/v1/subscription-options",
478
+ pathParams: {},
479
479
  __requestType: null,
480
480
  __originalRequestType: null,
481
481
  __responseType: null,
482
482
  __originalResponseType: null
483
483
  };
484
484
  }
485
- function getSubscriptionOptionsForProduct2() {
486
- const payload = { productId: ":productId" };
487
- const getRequestOptions = getSubscriptionOptionsForProduct(
488
- payload
489
- );
485
+ function updateSubscriptionOption2() {
486
+ const payload = {
487
+ subscriptionOption: { id: ":subscriptionOptionId" }
488
+ };
489
+ const getRequestOptions = updateSubscriptionOption(payload);
490
490
  const getUrl = (context) => {
491
491
  const { url } = getRequestOptions(context);
492
492
  return url;
493
493
  };
494
494
  return {
495
495
  getUrl,
496
- httpMethod: "GET",
497
- path: "/v1/subscription-options/byProduct/{productId}",
498
- pathParams: { productId: "productId" },
496
+ httpMethod: "PATCH",
497
+ path: "/v1/subscription-options/{subscriptionOption.id}",
498
+ pathParams: { subscriptionOptionId: "subscriptionOptionId" },
499
499
  __requestType: null,
500
500
  __originalRequestType: null,
501
501
  __responseType: null,
502
502
  __originalResponseType: null
503
503
  };
504
504
  }
505
- function getProductIdsForSubscriptionOption2() {
505
+ function deleteSubscriptionOption2() {
506
506
  const payload = { id: ":id" };
507
- const getRequestOptions = getProductIdsForSubscriptionOption(
508
- payload
509
- );
507
+ const getRequestOptions = deleteSubscriptionOption(payload);
510
508
  const getUrl = (context) => {
511
509
  const { url } = getRequestOptions(context);
512
510
  return url;
513
511
  };
514
512
  return {
515
513
  getUrl,
516
- httpMethod: "GET",
517
- path: "/v1/subscription-options/{id}/productIds",
514
+ httpMethod: "DELETE",
515
+ path: "/v1/subscription-options/{id}",
518
516
  pathParams: { id: "id" },
519
517
  __requestType: null,
520
518
  __originalRequestType: null,
@@ -522,34 +520,38 @@ function getProductIdsForSubscriptionOption2() {
522
520
  __originalResponseType: null
523
521
  };
524
522
  }
525
- function getOneTimePurchasesStatus2() {
526
- const payload = { productId: ":productId" };
527
- const getRequestOptions = getOneTimePurchasesStatus(payload);
523
+ function bulkCreateSubscriptionOptions2() {
524
+ const payload = {};
525
+ const getRequestOptions = bulkCreateSubscriptionOptions(
526
+ payload
527
+ );
528
528
  const getUrl = (context) => {
529
529
  const { url } = getRequestOptions(context);
530
530
  return url;
531
531
  };
532
532
  return {
533
533
  getUrl,
534
- httpMethod: "GET",
535
- path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
536
- pathParams: { productId: "productId" },
534
+ httpMethod: "POST",
535
+ path: "/v1/subscription-options/createBulk",
536
+ pathParams: {},
537
537
  __requestType: null,
538
538
  __originalRequestType: null,
539
539
  __responseType: null,
540
540
  __originalResponseType: null
541
541
  };
542
542
  }
543
- function createSubscriptionOption2() {
543
+ function bulkUpdateSubscriptionOptions2() {
544
544
  const payload = {};
545
- const getRequestOptions = createSubscriptionOption(payload);
545
+ const getRequestOptions = bulkUpdateSubscriptionOptions(
546
+ payload
547
+ );
546
548
  const getUrl = (context) => {
547
549
  const { url } = getRequestOptions(context);
548
550
  return url;
549
551
  };
550
552
  return {
551
553
  getUrl,
552
- httpMethod: "POST",
554
+ httpMethod: "PATCH",
553
555
  path: "/v1/subscription-options",
554
556
  pathParams: {},
555
557
  __requestType: null,
@@ -558,87 +560,85 @@ function createSubscriptionOption2() {
558
560
  __originalResponseType: null
559
561
  };
560
562
  }
561
- function updateSubscriptionOption2() {
562
- const payload = {
563
- subscriptionOption: { id: ":subscriptionOptionId" }
564
- };
565
- const getRequestOptions = updateSubscriptionOption(payload);
563
+ function bulkDeleteSubscriptionOptions2() {
564
+ const payload = {};
565
+ const getRequestOptions = bulkDeleteSubscriptionOptions(
566
+ payload
567
+ );
566
568
  const getUrl = (context) => {
567
569
  const { url } = getRequestOptions(context);
568
570
  return url;
569
571
  };
570
572
  return {
571
573
  getUrl,
572
- httpMethod: "PATCH",
573
- path: "/v1/subscription-options/{subscriptionOption.id}",
574
- pathParams: { subscriptionOptionId: "subscriptionOptionId" },
574
+ httpMethod: "POST",
575
+ path: "/v1/subscription-options/deleteBulk",
576
+ pathParams: {},
575
577
  __requestType: null,
576
578
  __originalRequestType: null,
577
579
  __responseType: null,
578
580
  __originalResponseType: null
579
581
  };
580
582
  }
581
- function deleteSubscriptionOption2() {
582
- const payload = { id: ":id" };
583
- const getRequestOptions = deleteSubscriptionOption(payload);
583
+ function assignSubscriptionOptionsToProduct2() {
584
+ const payload = { productId: ":productId" };
585
+ const getRequestOptions = assignSubscriptionOptionsToProduct(
586
+ payload
587
+ );
584
588
  const getUrl = (context) => {
585
589
  const { url } = getRequestOptions(context);
586
590
  return url;
587
591
  };
588
592
  return {
589
593
  getUrl,
590
- httpMethod: "DELETE",
591
- path: "/v1/subscription-options/{id}",
592
- pathParams: { id: "id" },
594
+ httpMethod: "POST",
595
+ path: "/v1/subscription-options/product/{productId}/assign",
596
+ pathParams: { productId: "productId" },
593
597
  __requestType: null,
594
598
  __originalRequestType: null,
595
599
  __responseType: null,
596
600
  __originalResponseType: null
597
601
  };
598
602
  }
599
- function bulkCreateSubscriptionOptions2() {
600
- const payload = {};
601
- const getRequestOptions = bulkCreateSubscriptionOptions(
602
- payload
603
- );
603
+ function allowOneTimePurchases2() {
604
+ const payload = { productId: ":productId" };
605
+ const getRequestOptions = allowOneTimePurchases(payload);
604
606
  const getUrl = (context) => {
605
607
  const { url } = getRequestOptions(context);
606
608
  return url;
607
609
  };
608
610
  return {
609
611
  getUrl,
610
- httpMethod: "POST",
611
- path: "/v1/subscription-options/createBulk",
612
- pathParams: {},
612
+ httpMethod: "PATCH",
613
+ path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
614
+ pathParams: { productId: "productId" },
613
615
  __requestType: null,
614
616
  __originalRequestType: null,
615
617
  __responseType: null,
616
618
  __originalResponseType: null
617
619
  };
618
620
  }
619
- function bulkUpdateSubscriptionOptions2() {
620
- const payload = {};
621
- const getRequestOptions = bulkUpdateSubscriptionOptions(
622
- payload
623
- );
621
+ function getSubscriptionOption2() {
622
+ const payload = { id: ":id" };
623
+ const getRequestOptions = getSubscriptionOption(payload);
624
624
  const getUrl = (context) => {
625
625
  const { url } = getRequestOptions(context);
626
626
  return url;
627
627
  };
628
628
  return {
629
629
  getUrl,
630
- httpMethod: "PATCH",
631
- path: "/v1/subscription-options",
632
- pathParams: {},
630
+ httpMethod: "GET",
631
+ path: "/v1/subscription-options/{id}",
632
+ pathParams: { id: "id" },
633
633
  __requestType: null,
634
634
  __originalRequestType: null,
635
635
  __responseType: null,
636
636
  __originalResponseType: null
637
637
  };
638
638
  }
639
- function bulkDeleteSubscriptionOptions2() {
640
- const payload = {};
641
- const getRequestOptions = bulkDeleteSubscriptionOptions(
639
+ function getSubscriptionOptionsForProduct2() {
640
+ const payload = { productId: ":productId" };
641
+ const getRequestOptions = getSubscriptionOptionsForProduct(
642
642
  payload
643
643
  );
644
644
  const getUrl = (context) => {
@@ -647,18 +647,18 @@ function bulkDeleteSubscriptionOptions2() {
647
647
  };
648
648
  return {
649
649
  getUrl,
650
- httpMethod: "POST",
651
- path: "/v1/subscription-options/deleteBulk",
652
- pathParams: {},
650
+ httpMethod: "GET",
651
+ path: "/v1/subscription-options/byProduct/{productId}",
652
+ pathParams: { productId: "productId" },
653
653
  __requestType: null,
654
654
  __originalRequestType: null,
655
655
  __responseType: null,
656
656
  __originalResponseType: null
657
657
  };
658
658
  }
659
- function assignSubscriptionOptionsToProduct2() {
660
- const payload = { productId: ":productId" };
661
- const getRequestOptions = assignSubscriptionOptionsToProduct(
659
+ function getProductIdsForSubscriptionOption2() {
660
+ const payload = { id: ":id" };
661
+ const getRequestOptions = getProductIdsForSubscriptionOption(
662
662
  payload
663
663
  );
664
664
  const getUrl = (context) => {
@@ -667,26 +667,26 @@ function assignSubscriptionOptionsToProduct2() {
667
667
  };
668
668
  return {
669
669
  getUrl,
670
- httpMethod: "POST",
671
- path: "/v1/subscription-options/product/{productId}/assign",
672
- pathParams: { productId: "productId" },
670
+ httpMethod: "GET",
671
+ path: "/v1/subscription-options/{id}/productIds",
672
+ pathParams: { id: "id" },
673
673
  __requestType: null,
674
674
  __originalRequestType: null,
675
675
  __responseType: null,
676
676
  __originalResponseType: null
677
677
  };
678
678
  }
679
- function allowOneTimePurchases2() {
679
+ function getOneTimePurchasesStatus2() {
680
680
  const payload = { productId: ":productId" };
681
- const getRequestOptions = allowOneTimePurchases(payload);
681
+ const getRequestOptions = getOneTimePurchasesStatus(payload);
682
682
  const getUrl = (context) => {
683
683
  const { url } = getRequestOptions(context);
684
684
  return url;
685
685
  };
686
686
  return {
687
687
  getUrl,
688
- httpMethod: "PATCH",
689
- path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
688
+ httpMethod: "GET",
689
+ path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
690
690
  pathParams: { productId: "productId" },
691
691
  __requestType: null,
692
692
  __originalRequestType: null,