@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
package/build/es/meta.mjs CHANGED
@@ -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,129 @@ function allowOneTimePurchases(payload) {
407
307
  }
408
308
  return __allowOneTimePurchases;
409
309
  }
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
+ }
410
433
 
411
434
  // src/stores-v1-subscription-option-subscription-options.types.ts
412
435
  var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
@@ -425,57 +448,55 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
425
448
  })(DiscountType || {});
426
449
 
427
450
  // src/stores-v1-subscription-option-subscription-options.meta.ts
428
- function getSubscriptionOption2() {
429
- const payload = { id: ":id" };
430
- const getRequestOptions = getSubscriptionOption(payload);
451
+ function createSubscriptionOption2() {
452
+ const payload = {};
453
+ const getRequestOptions = createSubscriptionOption(payload);
431
454
  const getUrl = (context) => {
432
455
  const { url } = getRequestOptions(context);
433
456
  return url;
434
457
  };
435
458
  return {
436
459
  getUrl,
437
- httpMethod: "GET",
438
- path: "/v1/subscription-options/{id}",
439
- pathParams: { id: "id" },
460
+ httpMethod: "POST",
461
+ path: "/v1/subscription-options",
462
+ pathParams: {},
440
463
  __requestType: null,
441
464
  __originalRequestType: null,
442
465
  __responseType: null,
443
466
  __originalResponseType: null
444
467
  };
445
468
  }
446
- function getSubscriptionOptionsForProduct2() {
447
- const payload = { productId: ":productId" };
448
- const getRequestOptions = getSubscriptionOptionsForProduct(
449
- payload
450
- );
469
+ function updateSubscriptionOption2() {
470
+ const payload = {
471
+ subscriptionOption: { id: ":subscriptionOptionId" }
472
+ };
473
+ const getRequestOptions = updateSubscriptionOption(payload);
451
474
  const getUrl = (context) => {
452
475
  const { url } = getRequestOptions(context);
453
476
  return url;
454
477
  };
455
478
  return {
456
479
  getUrl,
457
- httpMethod: "GET",
458
- path: "/v1/subscription-options/byProduct/{productId}",
459
- pathParams: { productId: "productId" },
480
+ httpMethod: "PATCH",
481
+ path: "/v1/subscription-options/{subscriptionOption.id}",
482
+ pathParams: { subscriptionOptionId: "subscriptionOptionId" },
460
483
  __requestType: null,
461
484
  __originalRequestType: null,
462
485
  __responseType: null,
463
486
  __originalResponseType: null
464
487
  };
465
488
  }
466
- function getProductIdsForSubscriptionOption2() {
489
+ function deleteSubscriptionOption2() {
467
490
  const payload = { id: ":id" };
468
- const getRequestOptions = getProductIdsForSubscriptionOption(
469
- payload
470
- );
491
+ const getRequestOptions = deleteSubscriptionOption(payload);
471
492
  const getUrl = (context) => {
472
493
  const { url } = getRequestOptions(context);
473
494
  return url;
474
495
  };
475
496
  return {
476
497
  getUrl,
477
- httpMethod: "GET",
478
- path: "/v1/subscription-options/{id}/productIds",
498
+ httpMethod: "DELETE",
499
+ path: "/v1/subscription-options/{id}",
479
500
  pathParams: { id: "id" },
480
501
  __requestType: null,
481
502
  __originalRequestType: null,
@@ -483,34 +504,38 @@ function getProductIdsForSubscriptionOption2() {
483
504
  __originalResponseType: null
484
505
  };
485
506
  }
486
- function getOneTimePurchasesStatus2() {
487
- const payload = { productId: ":productId" };
488
- const getRequestOptions = getOneTimePurchasesStatus(payload);
507
+ function bulkCreateSubscriptionOptions2() {
508
+ const payload = {};
509
+ const getRequestOptions = bulkCreateSubscriptionOptions(
510
+ payload
511
+ );
489
512
  const getUrl = (context) => {
490
513
  const { url } = getRequestOptions(context);
491
514
  return url;
492
515
  };
493
516
  return {
494
517
  getUrl,
495
- httpMethod: "GET",
496
- path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
497
- pathParams: { productId: "productId" },
518
+ httpMethod: "POST",
519
+ path: "/v1/subscription-options/createBulk",
520
+ pathParams: {},
498
521
  __requestType: null,
499
522
  __originalRequestType: null,
500
523
  __responseType: null,
501
524
  __originalResponseType: null
502
525
  };
503
526
  }
504
- function createSubscriptionOption2() {
527
+ function bulkUpdateSubscriptionOptions2() {
505
528
  const payload = {};
506
- const getRequestOptions = createSubscriptionOption(payload);
529
+ const getRequestOptions = bulkUpdateSubscriptionOptions(
530
+ payload
531
+ );
507
532
  const getUrl = (context) => {
508
533
  const { url } = getRequestOptions(context);
509
534
  return url;
510
535
  };
511
536
  return {
512
537
  getUrl,
513
- httpMethod: "POST",
538
+ httpMethod: "PATCH",
514
539
  path: "/v1/subscription-options",
515
540
  pathParams: {},
516
541
  __requestType: null,
@@ -519,69 +544,67 @@ function createSubscriptionOption2() {
519
544
  __originalResponseType: null
520
545
  };
521
546
  }
522
- function updateSubscriptionOption2() {
523
- const payload = {
524
- subscriptionOption: { id: ":subscriptionOptionId" }
525
- };
526
- const getRequestOptions = updateSubscriptionOption(payload);
547
+ function bulkDeleteSubscriptionOptions2() {
548
+ const payload = {};
549
+ const getRequestOptions = bulkDeleteSubscriptionOptions(
550
+ payload
551
+ );
527
552
  const getUrl = (context) => {
528
553
  const { url } = getRequestOptions(context);
529
554
  return url;
530
555
  };
531
556
  return {
532
557
  getUrl,
533
- httpMethod: "PATCH",
534
- path: "/v1/subscription-options/{subscriptionOption.id}",
535
- pathParams: { subscriptionOptionId: "subscriptionOptionId" },
558
+ httpMethod: "POST",
559
+ path: "/v1/subscription-options/deleteBulk",
560
+ pathParams: {},
536
561
  __requestType: null,
537
562
  __originalRequestType: null,
538
563
  __responseType: null,
539
564
  __originalResponseType: null
540
565
  };
541
566
  }
542
- function deleteSubscriptionOption2() {
543
- const payload = { id: ":id" };
544
- const getRequestOptions = deleteSubscriptionOption(payload);
567
+ function assignSubscriptionOptionsToProduct2() {
568
+ const payload = { productId: ":productId" };
569
+ const getRequestOptions = assignSubscriptionOptionsToProduct(
570
+ payload
571
+ );
545
572
  const getUrl = (context) => {
546
573
  const { url } = getRequestOptions(context);
547
574
  return url;
548
575
  };
549
576
  return {
550
577
  getUrl,
551
- httpMethod: "DELETE",
552
- path: "/v1/subscription-options/{id}",
553
- pathParams: { id: "id" },
578
+ httpMethod: "POST",
579
+ path: "/v1/subscription-options/product/{productId}/assign",
580
+ pathParams: { productId: "productId" },
554
581
  __requestType: null,
555
582
  __originalRequestType: null,
556
583
  __responseType: null,
557
584
  __originalResponseType: null
558
585
  };
559
586
  }
560
- function bulkCreateSubscriptionOptions2() {
561
- const payload = {};
562
- const getRequestOptions = bulkCreateSubscriptionOptions(
563
- payload
564
- );
587
+ function allowOneTimePurchases2() {
588
+ const payload = { productId: ":productId" };
589
+ const getRequestOptions = allowOneTimePurchases(payload);
565
590
  const getUrl = (context) => {
566
591
  const { url } = getRequestOptions(context);
567
592
  return url;
568
593
  };
569
594
  return {
570
595
  getUrl,
571
- httpMethod: "POST",
572
- path: "/v1/subscription-options/createBulk",
573
- pathParams: {},
596
+ httpMethod: "PATCH",
597
+ path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
598
+ pathParams: { productId: "productId" },
574
599
  __requestType: null,
575
600
  __originalRequestType: null,
576
601
  __responseType: null,
577
602
  __originalResponseType: null
578
603
  };
579
604
  }
580
- function bulkUpdateSubscriptionOptions2() {
581
- const payload = {};
582
- const getRequestOptions = bulkUpdateSubscriptionOptions(
583
- payload
584
- );
605
+ function enableCustomerCancellation2() {
606
+ const payload = { productId: ":productId" };
607
+ const getRequestOptions = enableCustomerCancellation(payload);
585
608
  const getUrl = (context) => {
586
609
  const { url } = getRequestOptions(context);
587
610
  return url;
@@ -589,37 +612,35 @@ function bulkUpdateSubscriptionOptions2() {
589
612
  return {
590
613
  getUrl,
591
614
  httpMethod: "PATCH",
592
- path: "/v1/subscription-options",
593
- pathParams: {},
615
+ path: "/v1/subscription-options/product/{productId}/enableCustomerCancellation",
616
+ pathParams: { productId: "productId" },
594
617
  __requestType: null,
595
618
  __originalRequestType: null,
596
619
  __responseType: null,
597
620
  __originalResponseType: null
598
621
  };
599
622
  }
600
- function bulkDeleteSubscriptionOptions2() {
601
- const payload = {};
602
- const getRequestOptions = bulkDeleteSubscriptionOptions(
603
- payload
604
- );
623
+ function getSubscriptionOption2() {
624
+ const payload = { id: ":id" };
625
+ const getRequestOptions = getSubscriptionOption(payload);
605
626
  const getUrl = (context) => {
606
627
  const { url } = getRequestOptions(context);
607
628
  return url;
608
629
  };
609
630
  return {
610
631
  getUrl,
611
- httpMethod: "POST",
612
- path: "/v1/subscription-options/deleteBulk",
613
- pathParams: {},
632
+ httpMethod: "GET",
633
+ path: "/v1/subscription-options/{id}",
634
+ pathParams: { id: "id" },
614
635
  __requestType: null,
615
636
  __originalRequestType: null,
616
637
  __responseType: null,
617
638
  __originalResponseType: null
618
639
  };
619
640
  }
620
- function assignSubscriptionOptionsToProduct2() {
641
+ function getSubscriptionOptionsForProduct2() {
621
642
  const payload = { productId: ":productId" };
622
- const getRequestOptions = assignSubscriptionOptionsToProduct(
643
+ const getRequestOptions = getSubscriptionOptionsForProduct(
623
644
  payload
624
645
  );
625
646
  const getUrl = (context) => {
@@ -628,8 +649,8 @@ function assignSubscriptionOptionsToProduct2() {
628
649
  };
629
650
  return {
630
651
  getUrl,
631
- httpMethod: "POST",
632
- path: "/v1/subscription-options/product/{productId}/assign",
652
+ httpMethod: "GET",
653
+ path: "/v1/subscription-options/byProduct/{productId}",
633
654
  pathParams: { productId: "productId" },
634
655
  __requestType: null,
635
656
  __originalRequestType: null,
@@ -637,17 +658,37 @@ function assignSubscriptionOptionsToProduct2() {
637
658
  __originalResponseType: null
638
659
  };
639
660
  }
640
- function allowOneTimePurchases2() {
661
+ function getProductIdsForSubscriptionOption2() {
662
+ const payload = { id: ":id" };
663
+ const getRequestOptions = getProductIdsForSubscriptionOption(
664
+ payload
665
+ );
666
+ const getUrl = (context) => {
667
+ const { url } = getRequestOptions(context);
668
+ return url;
669
+ };
670
+ return {
671
+ getUrl,
672
+ httpMethod: "GET",
673
+ path: "/v1/subscription-options/{id}/productIds",
674
+ pathParams: { id: "id" },
675
+ __requestType: null,
676
+ __originalRequestType: null,
677
+ __responseType: null,
678
+ __originalResponseType: null
679
+ };
680
+ }
681
+ function getOneTimePurchasesStatus2() {
641
682
  const payload = { productId: ":productId" };
642
- const getRequestOptions = allowOneTimePurchases(payload);
683
+ const getRequestOptions = getOneTimePurchasesStatus(payload);
643
684
  const getUrl = (context) => {
644
685
  const { url } = getRequestOptions(context);
645
686
  return url;
646
687
  };
647
688
  return {
648
689
  getUrl,
649
- httpMethod: "PATCH",
650
- path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
690
+ httpMethod: "GET",
691
+ path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
651
692
  pathParams: { productId: "productId" },
652
693
  __requestType: null,
653
694
  __originalRequestType: null,
@@ -665,6 +706,7 @@ export {
665
706
  bulkUpdateSubscriptionOptions2 as bulkUpdateSubscriptionOptions,
666
707
  createSubscriptionOption2 as createSubscriptionOption,
667
708
  deleteSubscriptionOption2 as deleteSubscriptionOption,
709
+ enableCustomerCancellation2 as enableCustomerCancellation,
668
710
  getOneTimePurchasesStatus2 as getOneTimePurchasesStatus,
669
711
  getProductIdsForSubscriptionOption2 as getProductIdsForSubscriptionOption,
670
712
  getSubscriptionOption2 as getSubscriptionOption,