@wix/auto_sdk_stores_subscription-options 1.0.29 → 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 +2 -2
@@ -4,76 +4,76 @@ 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 resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
7
+ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
8
8
  const domainToMappings = {
9
9
  "api._api_base_domain_": [
10
10
  {
11
- srcPath: "/wix-ecommerce-plans",
11
+ srcPath: "/wix-ecommerce-plans-reader",
12
12
  destPath: ""
13
13
  }
14
14
  ],
15
- "www.wixapis.com": [
15
+ "www._base_domain_": [
16
16
  {
17
- srcPath: "/stores/v1/subscription-options",
18
- destPath: "/v1/subscription-options"
17
+ srcPath: "/_api/wix-ecommerce-plans-reader",
18
+ destPath: ""
19
19
  }
20
20
  ],
21
- "www._base_domain_": [
21
+ _: [
22
22
  {
23
- srcPath: "/_api/subscription-options-server",
23
+ srcPath: "/_api/subscription-options-reader-server",
24
24
  destPath: ""
25
25
  }
26
26
  ],
27
- "editor._base_domain_": [
27
+ "manage._base_domain_": [
28
28
  {
29
- srcPath: "/_api/subscription-options-server",
29
+ srcPath: "/_api/subscription-options-reader-server",
30
30
  destPath: ""
31
31
  }
32
- ],
33
- "blocks._base_domain_": [
32
+ ]
33
+ };
34
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
35
+ }
36
+ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
37
+ const domainToMappings = {
38
+ "api._api_base_domain_": [
34
39
  {
35
- srcPath: "/_api/subscription-options-server",
40
+ srcPath: "/wix-ecommerce-plans",
36
41
  destPath: ""
37
42
  }
38
43
  ],
39
- "create.editorx": [
44
+ "www.wixapis.com": [
40
45
  {
41
- srcPath: "/_api/subscription-options-server",
42
- destPath: ""
46
+ srcPath: "/stores/v1/subscription-options",
47
+ destPath: "/v1/subscription-options"
43
48
  }
44
49
  ],
45
- "manage._base_domain_": [
50
+ "www._base_domain_": [
46
51
  {
47
52
  srcPath: "/_api/subscription-options-server",
48
53
  destPath: ""
49
54
  }
50
- ]
51
- };
52
- return resolveUrl(Object.assign(opts, { domainToMappings }));
53
- }
54
- function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
55
- const domainToMappings = {
56
- "api._api_base_domain_": [
55
+ ],
56
+ "editor._base_domain_": [
57
57
  {
58
- srcPath: "/wix-ecommerce-plans-reader",
58
+ srcPath: "/_api/subscription-options-server",
59
59
  destPath: ""
60
60
  }
61
61
  ],
62
- "www._base_domain_": [
62
+ "blocks._base_domain_": [
63
63
  {
64
- srcPath: "/_api/wix-ecommerce-plans-reader",
64
+ srcPath: "/_api/subscription-options-server",
65
65
  destPath: ""
66
66
  }
67
67
  ],
68
- _: [
68
+ "create.editorx": [
69
69
  {
70
- srcPath: "/_api/subscription-options-reader-server",
70
+ srcPath: "/_api/subscription-options-server",
71
71
  destPath: ""
72
72
  }
73
73
  ],
74
74
  "manage._base_domain_": [
75
75
  {
76
- srcPath: "/_api/subscription-options-reader-server",
76
+ srcPath: "/_api/subscription-options-server",
77
77
  destPath: ""
78
78
  }
79
79
  ]
@@ -81,106 +81,6 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl
81
81
  return resolveUrl(Object.assign(opts, { domainToMappings }));
82
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
- }
184
84
  function createSubscriptionOption(payload) {
185
85
  function __createSubscriptionOption({ host }) {
186
86
  const serializedData = transformPaths(payload, [
@@ -407,6 +307,106 @@ function allowOneTimePurchases(payload) {
407
307
  }
408
308
  return __allowOneTimePurchases;
409
309
  }
310
+ function getSubscriptionOption(payload) {
311
+ function __getSubscriptionOption({ host }) {
312
+ const metadata = {
313
+ entityFqdn: "wix.stores.v1.subscription_option",
314
+ method: "GET",
315
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
316
+ packageName: PACKAGE_NAME,
317
+ migrationOptions: {
318
+ optInTransformResponse: true
319
+ },
320
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
321
+ { protoPath: "/v1/subscription-options/{id}", data: payload, host }
322
+ ),
323
+ params: toURLSearchParams(payload),
324
+ transformResponse: (payload2) => transformPaths(payload2, [
325
+ {
326
+ transformFn: transformRESTFloatToSDKFloat,
327
+ paths: [{ path: "subscriptionOption.discount.value" }]
328
+ }
329
+ ])
330
+ };
331
+ return metadata;
332
+ }
333
+ return __getSubscriptionOption;
334
+ }
335
+ function getSubscriptionOptionsForProduct(payload) {
336
+ function __getSubscriptionOptionsForProduct({ host }) {
337
+ const metadata = {
338
+ entityFqdn: "wix.stores.v1.subscription_option",
339
+ method: "GET",
340
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
341
+ packageName: PACKAGE_NAME,
342
+ migrationOptions: {
343
+ optInTransformResponse: true
344
+ },
345
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
346
+ {
347
+ protoPath: "/v1/subscription-options/byProduct/{productId}",
348
+ data: payload,
349
+ host
350
+ }
351
+ ),
352
+ params: toURLSearchParams(payload),
353
+ transformResponse: (payload2) => transformPaths(payload2, [
354
+ {
355
+ transformFn: transformRESTFloatToSDKFloat,
356
+ paths: [{ path: "subscriptionOptions.discount.value" }]
357
+ }
358
+ ])
359
+ };
360
+ return metadata;
361
+ }
362
+ return __getSubscriptionOptionsForProduct;
363
+ }
364
+ function getProductIdsForSubscriptionOption(payload) {
365
+ function __getProductIdsForSubscriptionOption({ host }) {
366
+ const metadata = {
367
+ entityFqdn: "wix.stores.v1.subscription_option",
368
+ method: "GET",
369
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
370
+ packageName: PACKAGE_NAME,
371
+ migrationOptions: {
372
+ optInTransformResponse: true
373
+ },
374
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
375
+ {
376
+ protoPath: "/v1/subscription-options/{id}/productIds",
377
+ data: payload,
378
+ host
379
+ }
380
+ ),
381
+ params: toURLSearchParams(payload)
382
+ };
383
+ return metadata;
384
+ }
385
+ return __getProductIdsForSubscriptionOption;
386
+ }
387
+ function getOneTimePurchasesStatus(payload) {
388
+ function __getOneTimePurchasesStatus({ host }) {
389
+ const metadata = {
390
+ entityFqdn: "wix.stores.v1.subscription_option",
391
+ method: "GET",
392
+ methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
393
+ packageName: PACKAGE_NAME,
394
+ migrationOptions: {
395
+ optInTransformResponse: true
396
+ },
397
+ url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
398
+ {
399
+ protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
400
+ data: payload,
401
+ host
402
+ }
403
+ ),
404
+ params: toURLSearchParams(payload)
405
+ };
406
+ return metadata;
407
+ }
408
+ return __getOneTimePurchasesStatus;
409
+ }
410
410
 
411
411
  // src/stores-v1-subscription-option-subscription-options.types.ts
412
412
  var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
@@ -425,57 +425,55 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
425
425
  })(DiscountType || {});
426
426
 
427
427
  // src/stores-v1-subscription-option-subscription-options.meta.ts
428
- function getSubscriptionOption2() {
429
- const payload = { id: ":id" };
430
- const getRequestOptions = getSubscriptionOption(payload);
428
+ function createSubscriptionOption2() {
429
+ const payload = {};
430
+ const getRequestOptions = createSubscriptionOption(payload);
431
431
  const getUrl = (context) => {
432
432
  const { url } = getRequestOptions(context);
433
433
  return url;
434
434
  };
435
435
  return {
436
436
  getUrl,
437
- httpMethod: "GET",
438
- path: "/v1/subscription-options/{id}",
439
- pathParams: { id: "id" },
437
+ httpMethod: "POST",
438
+ path: "/v1/subscription-options",
439
+ pathParams: {},
440
440
  __requestType: null,
441
441
  __originalRequestType: null,
442
442
  __responseType: null,
443
443
  __originalResponseType: null
444
444
  };
445
445
  }
446
- function getSubscriptionOptionsForProduct2() {
447
- const payload = { productId: ":productId" };
448
- const getRequestOptions = getSubscriptionOptionsForProduct(
449
- payload
450
- );
446
+ function updateSubscriptionOption2() {
447
+ const payload = {
448
+ subscriptionOption: { id: ":subscriptionOptionId" }
449
+ };
450
+ const getRequestOptions = updateSubscriptionOption(payload);
451
451
  const getUrl = (context) => {
452
452
  const { url } = getRequestOptions(context);
453
453
  return url;
454
454
  };
455
455
  return {
456
456
  getUrl,
457
- httpMethod: "GET",
458
- path: "/v1/subscription-options/byProduct/{productId}",
459
- pathParams: { productId: "productId" },
457
+ httpMethod: "PATCH",
458
+ path: "/v1/subscription-options/{subscriptionOption.id}",
459
+ pathParams: { subscriptionOptionId: "subscriptionOptionId" },
460
460
  __requestType: null,
461
461
  __originalRequestType: null,
462
462
  __responseType: null,
463
463
  __originalResponseType: null
464
464
  };
465
465
  }
466
- function getProductIdsForSubscriptionOption2() {
466
+ function deleteSubscriptionOption2() {
467
467
  const payload = { id: ":id" };
468
- const getRequestOptions = getProductIdsForSubscriptionOption(
469
- payload
470
- );
468
+ const getRequestOptions = deleteSubscriptionOption(payload);
471
469
  const getUrl = (context) => {
472
470
  const { url } = getRequestOptions(context);
473
471
  return url;
474
472
  };
475
473
  return {
476
474
  getUrl,
477
- httpMethod: "GET",
478
- path: "/v1/subscription-options/{id}/productIds",
475
+ httpMethod: "DELETE",
476
+ path: "/v1/subscription-options/{id}",
479
477
  pathParams: { id: "id" },
480
478
  __requestType: null,
481
479
  __originalRequestType: null,
@@ -483,34 +481,38 @@ function getProductIdsForSubscriptionOption2() {
483
481
  __originalResponseType: null
484
482
  };
485
483
  }
486
- function getOneTimePurchasesStatus2() {
487
- const payload = { productId: ":productId" };
488
- const getRequestOptions = getOneTimePurchasesStatus(payload);
484
+ function bulkCreateSubscriptionOptions2() {
485
+ const payload = {};
486
+ const getRequestOptions = bulkCreateSubscriptionOptions(
487
+ payload
488
+ );
489
489
  const getUrl = (context) => {
490
490
  const { url } = getRequestOptions(context);
491
491
  return url;
492
492
  };
493
493
  return {
494
494
  getUrl,
495
- httpMethod: "GET",
496
- path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
497
- pathParams: { productId: "productId" },
495
+ httpMethod: "POST",
496
+ path: "/v1/subscription-options/createBulk",
497
+ pathParams: {},
498
498
  __requestType: null,
499
499
  __originalRequestType: null,
500
500
  __responseType: null,
501
501
  __originalResponseType: null
502
502
  };
503
503
  }
504
- function createSubscriptionOption2() {
504
+ function bulkUpdateSubscriptionOptions2() {
505
505
  const payload = {};
506
- const getRequestOptions = createSubscriptionOption(payload);
506
+ const getRequestOptions = bulkUpdateSubscriptionOptions(
507
+ payload
508
+ );
507
509
  const getUrl = (context) => {
508
510
  const { url } = getRequestOptions(context);
509
511
  return url;
510
512
  };
511
513
  return {
512
514
  getUrl,
513
- httpMethod: "POST",
515
+ httpMethod: "PATCH",
514
516
  path: "/v1/subscription-options",
515
517
  pathParams: {},
516
518
  __requestType: null,
@@ -519,87 +521,85 @@ function createSubscriptionOption2() {
519
521
  __originalResponseType: null
520
522
  };
521
523
  }
522
- function updateSubscriptionOption2() {
523
- const payload = {
524
- subscriptionOption: { id: ":subscriptionOptionId" }
525
- };
526
- const getRequestOptions = updateSubscriptionOption(payload);
524
+ function bulkDeleteSubscriptionOptions2() {
525
+ const payload = {};
526
+ const getRequestOptions = bulkDeleteSubscriptionOptions(
527
+ payload
528
+ );
527
529
  const getUrl = (context) => {
528
530
  const { url } = getRequestOptions(context);
529
531
  return url;
530
532
  };
531
533
  return {
532
534
  getUrl,
533
- httpMethod: "PATCH",
534
- path: "/v1/subscription-options/{subscriptionOption.id}",
535
- pathParams: { subscriptionOptionId: "subscriptionOptionId" },
535
+ httpMethod: "POST",
536
+ path: "/v1/subscription-options/deleteBulk",
537
+ pathParams: {},
536
538
  __requestType: null,
537
539
  __originalRequestType: null,
538
540
  __responseType: null,
539
541
  __originalResponseType: null
540
542
  };
541
543
  }
542
- function deleteSubscriptionOption2() {
543
- const payload = { id: ":id" };
544
- const getRequestOptions = deleteSubscriptionOption(payload);
544
+ function assignSubscriptionOptionsToProduct2() {
545
+ const payload = { productId: ":productId" };
546
+ const getRequestOptions = assignSubscriptionOptionsToProduct(
547
+ payload
548
+ );
545
549
  const getUrl = (context) => {
546
550
  const { url } = getRequestOptions(context);
547
551
  return url;
548
552
  };
549
553
  return {
550
554
  getUrl,
551
- httpMethod: "DELETE",
552
- path: "/v1/subscription-options/{id}",
553
- pathParams: { id: "id" },
555
+ httpMethod: "POST",
556
+ path: "/v1/subscription-options/product/{productId}/assign",
557
+ pathParams: { productId: "productId" },
554
558
  __requestType: null,
555
559
  __originalRequestType: null,
556
560
  __responseType: null,
557
561
  __originalResponseType: null
558
562
  };
559
563
  }
560
- function bulkCreateSubscriptionOptions2() {
561
- const payload = {};
562
- const getRequestOptions = bulkCreateSubscriptionOptions(
563
- payload
564
- );
564
+ function allowOneTimePurchases2() {
565
+ const payload = { productId: ":productId" };
566
+ const getRequestOptions = allowOneTimePurchases(payload);
565
567
  const getUrl = (context) => {
566
568
  const { url } = getRequestOptions(context);
567
569
  return url;
568
570
  };
569
571
  return {
570
572
  getUrl,
571
- httpMethod: "POST",
572
- path: "/v1/subscription-options/createBulk",
573
- pathParams: {},
573
+ httpMethod: "PATCH",
574
+ path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
575
+ pathParams: { productId: "productId" },
574
576
  __requestType: null,
575
577
  __originalRequestType: null,
576
578
  __responseType: null,
577
579
  __originalResponseType: null
578
580
  };
579
581
  }
580
- function bulkUpdateSubscriptionOptions2() {
581
- const payload = {};
582
- const getRequestOptions = bulkUpdateSubscriptionOptions(
583
- payload
584
- );
582
+ function getSubscriptionOption2() {
583
+ const payload = { id: ":id" };
584
+ const getRequestOptions = getSubscriptionOption(payload);
585
585
  const getUrl = (context) => {
586
586
  const { url } = getRequestOptions(context);
587
587
  return url;
588
588
  };
589
589
  return {
590
590
  getUrl,
591
- httpMethod: "PATCH",
592
- path: "/v1/subscription-options",
593
- pathParams: {},
591
+ httpMethod: "GET",
592
+ path: "/v1/subscription-options/{id}",
593
+ pathParams: { id: "id" },
594
594
  __requestType: null,
595
595
  __originalRequestType: null,
596
596
  __responseType: null,
597
597
  __originalResponseType: null
598
598
  };
599
599
  }
600
- function bulkDeleteSubscriptionOptions2() {
601
- const payload = {};
602
- const getRequestOptions = bulkDeleteSubscriptionOptions(
600
+ function getSubscriptionOptionsForProduct2() {
601
+ const payload = { productId: ":productId" };
602
+ const getRequestOptions = getSubscriptionOptionsForProduct(
603
603
  payload
604
604
  );
605
605
  const getUrl = (context) => {
@@ -608,18 +608,18 @@ function bulkDeleteSubscriptionOptions2() {
608
608
  };
609
609
  return {
610
610
  getUrl,
611
- httpMethod: "POST",
612
- path: "/v1/subscription-options/deleteBulk",
613
- pathParams: {},
611
+ httpMethod: "GET",
612
+ path: "/v1/subscription-options/byProduct/{productId}",
613
+ pathParams: { productId: "productId" },
614
614
  __requestType: null,
615
615
  __originalRequestType: null,
616
616
  __responseType: null,
617
617
  __originalResponseType: null
618
618
  };
619
619
  }
620
- function assignSubscriptionOptionsToProduct2() {
621
- const payload = { productId: ":productId" };
622
- const getRequestOptions = assignSubscriptionOptionsToProduct(
620
+ function getProductIdsForSubscriptionOption2() {
621
+ const payload = { id: ":id" };
622
+ const getRequestOptions = getProductIdsForSubscriptionOption(
623
623
  payload
624
624
  );
625
625
  const getUrl = (context) => {
@@ -628,26 +628,26 @@ function assignSubscriptionOptionsToProduct2() {
628
628
  };
629
629
  return {
630
630
  getUrl,
631
- httpMethod: "POST",
632
- path: "/v1/subscription-options/product/{productId}/assign",
633
- pathParams: { productId: "productId" },
631
+ httpMethod: "GET",
632
+ path: "/v1/subscription-options/{id}/productIds",
633
+ pathParams: { id: "id" },
634
634
  __requestType: null,
635
635
  __originalRequestType: null,
636
636
  __responseType: null,
637
637
  __originalResponseType: null
638
638
  };
639
639
  }
640
- function allowOneTimePurchases2() {
640
+ function getOneTimePurchasesStatus2() {
641
641
  const payload = { productId: ":productId" };
642
- const getRequestOptions = allowOneTimePurchases(payload);
642
+ const getRequestOptions = getOneTimePurchasesStatus(payload);
643
643
  const getUrl = (context) => {
644
644
  const { url } = getRequestOptions(context);
645
645
  return url;
646
646
  };
647
647
  return {
648
648
  getUrl,
649
- httpMethod: "PATCH",
650
- path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
649
+ httpMethod: "GET",
650
+ path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
651
651
  pathParams: { productId: "productId" },
652
652
  __requestType: null,
653
653
  __originalRequestType: null,