@wix/auto_sdk_pricing-plans_plans 1.0.78 → 1.0.80

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.
@@ -170,6 +170,32 @@ interface Money {
170
170
  */
171
171
  currency?: string;
172
172
  }
173
+ interface FeeConfig {
174
+ /** Fee configuration. */
175
+ fee?: Fee;
176
+ /** The time this fee will be charged. */
177
+ appliedAt?: AppliedAtWithLiterals;
178
+ }
179
+ interface Fee {
180
+ /**
181
+ * Fee name
182
+ * @minLength 1
183
+ * @maxLength 40
184
+ */
185
+ name?: string;
186
+ /**
187
+ * Amount of fee to be charged
188
+ * @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }
189
+ */
190
+ amount?: string;
191
+ }
192
+ declare enum AppliedAt {
193
+ UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
194
+ /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */
195
+ FIRST_PAYMENT = "FIRST_PAYMENT"
196
+ }
197
+ /** @enumType */
198
+ type AppliedAtWithLiterals = AppliedAt | 'UNKNOWN_CHARGE_EVENT' | 'FIRST_PAYMENT';
173
199
  interface ListPublicPlansRequest {
174
200
  /**
175
201
  * Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)).
@@ -383,6 +409,10 @@ interface UpdatePlanResponse {
383
409
  /** Updated plan. */
384
410
  plan?: Plan;
385
411
  }
412
+ interface BuyerCanCancelUpdated {
413
+ /** Pricing plan. */
414
+ plan?: Plan;
415
+ }
386
416
  interface SetPlanVisibilityRequest {
387
417
  /**
388
418
  * The ID of the plan to either display or hide on a site page.
@@ -422,6 +452,408 @@ interface ArchivePlanResponse {
422
452
  /** Archived plan. */
423
453
  plan?: Plan;
424
454
  }
455
+ interface PlanArchived {
456
+ /** Pricing plan. */
457
+ plan?: Plan;
458
+ }
459
+ interface BulkArchivePlanRequest {
460
+ /**
461
+ * List of Plan IDs to archive.
462
+ * @format GUID
463
+ * @minSize 1
464
+ * @maxSize 100
465
+ */
466
+ ids?: string[];
467
+ /** Set to `true` to return the `Plan` entity in the response. */
468
+ returnFullEntity?: boolean;
469
+ }
470
+ interface BulkArchivePlanResponse {
471
+ /** Plans to be archived. */
472
+ results?: BulkPlanResult[];
473
+ /** Bulk action metadata. */
474
+ bulkActionMetadata?: BulkActionMetadata;
475
+ }
476
+ interface BulkPlanResult {
477
+ /** Item metadata. */
478
+ itemMetadata?: ItemMetadata;
479
+ /** Pricing plan. */
480
+ plan?: Plan;
481
+ }
482
+ interface ItemMetadata {
483
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
484
+ id?: string | null;
485
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
486
+ originalIndex?: number;
487
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
488
+ success?: boolean;
489
+ /** Details about the error in case of failure. */
490
+ error?: ApplicationError;
491
+ }
492
+ interface ApplicationError {
493
+ /** Error code. */
494
+ code?: string;
495
+ /** Description of the error. */
496
+ description?: string;
497
+ /** Data related to the error. */
498
+ data?: Record<string, any> | null;
499
+ }
500
+ interface BulkActionMetadata {
501
+ /** Number of items that were successfully processed. */
502
+ totalSuccesses?: number;
503
+ /** Number of items that couldn't be processed. */
504
+ totalFailures?: number;
505
+ /** Number of failures without details because detailed failure threshold was exceeded. */
506
+ undetailedFailures?: number;
507
+ }
508
+ interface ArrangePlansRequest {
509
+ /**
510
+ * IDs of all non-archived plans in the order you want them arranged.
511
+ * @format GUID
512
+ * @minSize 1
513
+ */
514
+ ids?: string[];
515
+ }
516
+ interface ArrangePlansResponse {
517
+ }
518
+ interface CountPlansRequest {
519
+ /** The filter. */
520
+ filter?: Record<string, any> | null;
521
+ /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */
522
+ visibility?: boolean | null;
523
+ }
524
+ interface CountPlansResponse {
525
+ /** Number of plans in the response. */
526
+ count?: number;
527
+ }
528
+ interface GetPlansPremiumStatusRequest {
529
+ }
530
+ interface GetPlansPremiumStatusResponse {
531
+ /** True if a site has non-free, non-template plans. */
532
+ hasPaidPlans?: boolean;
533
+ /** True if a site has plans that were created before Pricing Plans became a premium app. */
534
+ hasOldPlans?: boolean;
535
+ }
536
+ interface SearchPlansRequest {
537
+ /** Query options. */
538
+ query?: QueryV2;
539
+ /**
540
+ * Search phrase for the plan name.
541
+ * @maxLength 50
542
+ */
543
+ searchPhrase?: string | null;
544
+ }
545
+ interface SearchPlansResponse {
546
+ /** List of pricing plans that match the specified filter and search phrase. */
547
+ plans?: Plan[];
548
+ /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
549
+ pagingMetadata?: PagingMetadataV2;
550
+ }
551
+ interface DomainEvent extends DomainEventBodyOneOf {
552
+ createdEvent?: EntityCreatedEvent;
553
+ updatedEvent?: EntityUpdatedEvent;
554
+ deletedEvent?: EntityDeletedEvent;
555
+ actionEvent?: ActionEvent;
556
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
557
+ id?: string;
558
+ /**
559
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
560
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
561
+ */
562
+ entityFqdn?: string;
563
+ /**
564
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
565
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
566
+ */
567
+ slug?: string;
568
+ /** ID of the entity associated with the event. */
569
+ entityId?: string;
570
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
571
+ eventTime?: Date | null;
572
+ /**
573
+ * Whether the event was triggered as a result of a privacy regulation application
574
+ * (for example, GDPR).
575
+ */
576
+ triggeredByAnonymizeRequest?: boolean | null;
577
+ /** If present, indicates the action that triggered the event. */
578
+ originatedFrom?: string | null;
579
+ /**
580
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
581
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
582
+ */
583
+ entityEventSequence?: string | null;
584
+ }
585
+ /** @oneof */
586
+ interface DomainEventBodyOneOf {
587
+ createdEvent?: EntityCreatedEvent;
588
+ updatedEvent?: EntityUpdatedEvent;
589
+ deletedEvent?: EntityDeletedEvent;
590
+ actionEvent?: ActionEvent;
591
+ }
592
+ interface EntityCreatedEvent {
593
+ entityAsJson?: string;
594
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
595
+ restoreInfo?: RestoreInfo;
596
+ }
597
+ interface RestoreInfo {
598
+ deletedDate?: Date | null;
599
+ }
600
+ interface EntityUpdatedEvent {
601
+ /**
602
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
603
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
604
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
605
+ */
606
+ currentEntityAsJson?: string;
607
+ }
608
+ interface EntityDeletedEvent {
609
+ /** Entity that was deleted. */
610
+ deletedEntityAsJson?: string | null;
611
+ }
612
+ interface ActionEvent {
613
+ bodyAsJson?: string;
614
+ }
615
+ interface MessageEnvelope {
616
+ /**
617
+ * App instance ID.
618
+ * @format GUID
619
+ */
620
+ instanceId?: string | null;
621
+ /**
622
+ * Event type.
623
+ * @maxLength 150
624
+ */
625
+ eventType?: string;
626
+ /** The identification type and identity data. */
627
+ identity?: IdentificationData;
628
+ /** Stringify payload. */
629
+ data?: string;
630
+ }
631
+ interface IdentificationData extends IdentificationDataIdOneOf {
632
+ /**
633
+ * ID of a site visitor that has not logged in to the site.
634
+ * @format GUID
635
+ */
636
+ anonymousVisitorId?: string;
637
+ /**
638
+ * ID of a site visitor that has logged in to the site.
639
+ * @format GUID
640
+ */
641
+ memberId?: string;
642
+ /**
643
+ * ID of a Wix user (site owner, contributor, etc.).
644
+ * @format GUID
645
+ */
646
+ wixUserId?: string;
647
+ /**
648
+ * ID of an app.
649
+ * @format GUID
650
+ */
651
+ appId?: string;
652
+ /** @readonly */
653
+ identityType?: WebhookIdentityTypeWithLiterals;
654
+ }
655
+ /** @oneof */
656
+ interface IdentificationDataIdOneOf {
657
+ /**
658
+ * ID of a site visitor that has not logged in to the site.
659
+ * @format GUID
660
+ */
661
+ anonymousVisitorId?: string;
662
+ /**
663
+ * ID of a site visitor that has logged in to the site.
664
+ * @format GUID
665
+ */
666
+ memberId?: string;
667
+ /**
668
+ * ID of a Wix user (site owner, contributor, etc.).
669
+ * @format GUID
670
+ */
671
+ wixUserId?: string;
672
+ /**
673
+ * ID of an app.
674
+ * @format GUID
675
+ */
676
+ appId?: string;
677
+ }
678
+ declare enum WebhookIdentityType {
679
+ UNKNOWN = "UNKNOWN",
680
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
681
+ MEMBER = "MEMBER",
682
+ WIX_USER = "WIX_USER",
683
+ APP = "APP"
684
+ }
685
+ /** @enumType */
686
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
687
+ /** @docsIgnore */
688
+ type ListPublicPlansApplicationErrors = {
689
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
690
+ description?: string;
691
+ data?: Record<string, any>;
692
+ };
693
+ /** @docsIgnore */
694
+ type QueryPublicPlansApplicationErrors = {
695
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
696
+ description?: string;
697
+ data?: Record<string, any>;
698
+ };
699
+ /** @docsIgnore */
700
+ type QueryPublicPlansValidationErrors = {
701
+ ruleName?: 'PAGING_LIMIT_OUT_OF_RANGE';
702
+ };
703
+ /** @docsIgnore */
704
+ type GetPlanApplicationErrors = {
705
+ code?: 'plan_not_found';
706
+ description?: string;
707
+ data?: Record<string, any>;
708
+ } | {
709
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
710
+ description?: string;
711
+ data?: Record<string, any>;
712
+ };
713
+ /** @docsIgnore */
714
+ type ListPlansApplicationErrors = {
715
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
716
+ description?: string;
717
+ data?: Record<string, any>;
718
+ };
719
+ /** @docsIgnore */
720
+ type ListPlansValidationErrors = {
721
+ ruleName?: 'INVALID_ARCHIVE_FILTER';
722
+ } | {
723
+ ruleName?: 'INVALID_VISIBLE_FILTER';
724
+ };
725
+ /** @docsIgnore */
726
+ type GetPlanStatsApplicationErrors = {
727
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
728
+ description?: string;
729
+ data?: Record<string, any>;
730
+ };
731
+ /** @docsIgnore */
732
+ type CreatePlanApplicationErrors = {
733
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
734
+ description?: string;
735
+ data?: Record<string, any>;
736
+ };
737
+ /** @docsIgnore */
738
+ type CreatePlanValidationErrors = {
739
+ ruleName?: 'PLAN_NAME_BLANK';
740
+ } | {
741
+ ruleName?: 'PLAN_FEE_NAME_BLANK';
742
+ } | {
743
+ ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';
744
+ } | {
745
+ ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';
746
+ } | {
747
+ ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';
748
+ } | {
749
+ ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';
750
+ } | {
751
+ ruleName?: 'SINGLE_PAYMENT_DURATION_TOO_SHORT';
752
+ } | {
753
+ ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';
754
+ } | {
755
+ ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';
756
+ } | {
757
+ ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';
758
+ } | {
759
+ ruleName?: 'invalid_duration_unit';
760
+ } | {
761
+ ruleName?: 'client_data_is_invalid';
762
+ };
763
+ /** @docsIgnore */
764
+ type UpdatePlanApplicationErrors = {
765
+ code?: 'plan_not_found';
766
+ description?: string;
767
+ data?: Record<string, any>;
768
+ } | {
769
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
770
+ description?: string;
771
+ data?: Record<string, any>;
772
+ };
773
+ /** @docsIgnore */
774
+ type UpdatePlanValidationErrors = {
775
+ ruleName?: 'MISSING_PLAN_ID';
776
+ } | {
777
+ ruleName?: 'PLAN_NAME_BLANK';
778
+ } | {
779
+ ruleName?: 'PLAN_FEE_NAME_BLANK';
780
+ } | {
781
+ ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';
782
+ } | {
783
+ ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';
784
+ } | {
785
+ ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';
786
+ } | {
787
+ ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';
788
+ } | {
789
+ ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';
790
+ } | {
791
+ ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';
792
+ } | {
793
+ ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';
794
+ } | {
795
+ ruleName?: 'INVALID_DURATION_UNIT';
796
+ } | {
797
+ ruleName?: 'update_not_supported';
798
+ } | {
799
+ ruleName?: 'invalid_period_amount';
800
+ } | {
801
+ ruleName?: 'price_missing';
802
+ } | {
803
+ ruleName?: 'duration_missing';
804
+ } | {
805
+ ruleName?: 'free_trial_not_supported';
806
+ } | {
807
+ ruleName?: 'client_data_is_invalid';
808
+ };
809
+ /** @docsIgnore */
810
+ type SetPlanVisibilityApplicationErrors = {
811
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
812
+ description?: string;
813
+ data?: Record<string, any>;
814
+ } | {
815
+ code?: 'plan_not_found';
816
+ description?: string;
817
+ data?: Record<string, any>;
818
+ } | {
819
+ code?: 'set_visibility_not_supported';
820
+ description?: string;
821
+ data?: Record<string, any>;
822
+ };
823
+ /** @docsIgnore */
824
+ type MakePlanPrimaryApplicationErrors = {
825
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
826
+ description?: string;
827
+ data?: Record<string, any>;
828
+ } | {
829
+ code?: 'plan_not_found';
830
+ description?: string;
831
+ data?: Record<string, any>;
832
+ } | {
833
+ code?: 'set_primary_not_supported';
834
+ description?: string;
835
+ data?: Record<string, any>;
836
+ };
837
+ /** @docsIgnore */
838
+ type ClearPrimaryApplicationErrors = {
839
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
840
+ description?: string;
841
+ data?: Record<string, any>;
842
+ };
843
+ /** @docsIgnore */
844
+ type ArchivePlanApplicationErrors = {
845
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
846
+ description?: string;
847
+ data?: Record<string, any>;
848
+ } | {
849
+ code?: 'plan_not_found';
850
+ description?: string;
851
+ data?: Record<string, any>;
852
+ } | {
853
+ code?: 'already_archived';
854
+ description?: string;
855
+ data?: Record<string, any>;
856
+ };
425
857
 
426
858
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
427
859
  getUrl: (context: any) => string;
@@ -455,4 +887,4 @@ declare function archivePlan(): __PublicMethodMetaInfo<'POST', {
455
887
  id: string;
456
888
  }, ArchivePlanRequest$1, ArchivePlanRequest, ArchivePlanResponse$1, ArchivePlanResponse>;
457
889
 
458
- export { type __PublicMethodMetaInfo, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, queryPublicPlans, setPlanVisibility, updatePlan };
890
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, AppliedAt as AppliedAtOriginal, type AppliedAtWithLiterals as AppliedAtWithLiteralsOriginal, type ArchivePlanApplicationErrors as ArchivePlanApplicationErrorsOriginal, type ArchivePlanRequest as ArchivePlanRequestOriginal, type ArchivePlanResponse as ArchivePlanResponseOriginal, ArchivedFilter as ArchivedFilterOriginal, type ArchivedFilterWithLiterals as ArchivedFilterWithLiteralsOriginal, type ArrangePlansRequest as ArrangePlansRequestOriginal, type ArrangePlansResponse as ArrangePlansResponseOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkArchivePlanRequest as BulkArchivePlanRequestOriginal, type BulkArchivePlanResponse as BulkArchivePlanResponseOriginal, type BulkPlanResult as BulkPlanResultOriginal, type BuyerCanCancelUpdated as BuyerCanCancelUpdatedOriginal, type ClearPrimaryApplicationErrors as ClearPrimaryApplicationErrorsOriginal, type ClearPrimaryRequest as ClearPrimaryRequestOriginal, type ClearPrimaryResponse as ClearPrimaryResponseOriginal, type CountPlansRequest as CountPlansRequestOriginal, type CountPlansResponse as CountPlansResponseOriginal, type CreatePlanApplicationErrors as CreatePlanApplicationErrorsOriginal, type CreatePlanRequest as CreatePlanRequestOriginal, type CreatePlanResponse as CreatePlanResponseOriginal, type CreatePlanValidationErrors as CreatePlanValidationErrorsOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FeeConfig as FeeConfigOriginal, type Fee as FeeOriginal, type GetPlanApplicationErrors as GetPlanApplicationErrorsOriginal, type GetPlanRequest as GetPlanRequestOriginal, type GetPlanResponse as GetPlanResponseOriginal, type GetPlanStatsApplicationErrors as GetPlanStatsApplicationErrorsOriginal, type GetPlanStatsRequest as GetPlanStatsRequestOriginal, type GetPlanStatsResponse as GetPlanStatsResponseOriginal, type GetPlansPremiumStatusRequest as GetPlansPremiumStatusRequestOriginal, type GetPlansPremiumStatusResponse as GetPlansPremiumStatusResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListPlansApplicationErrors as ListPlansApplicationErrorsOriginal, type ListPlansRequest as ListPlansRequestOriginal, type ListPlansResponse as ListPlansResponseOriginal, type ListPlansValidationErrors as ListPlansValidationErrorsOriginal, type ListPublicPlansApplicationErrors as ListPublicPlansApplicationErrorsOriginal, type ListPublicPlansRequest as ListPublicPlansRequestOriginal, type ListPublicPlansResponse as ListPublicPlansResponseOriginal, type MakePlanPrimaryApplicationErrors as MakePlanPrimaryApplicationErrorsOriginal, type MakePlanPrimaryRequest as MakePlanPrimaryRequestOriginal, type MakePlanPrimaryResponse as MakePlanPrimaryResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Money as MoneyOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PeriodUnit as PeriodUnitOriginal, type PeriodUnitWithLiterals as PeriodUnitWithLiteralsOriginal, type PlanArchived as PlanArchivedOriginal, type Plan as PlanOriginal, type Pricing as PricingOriginal, type PricingPricingModelOneOf as PricingPricingModelOneOfOriginal, PublicFilter as PublicFilterOriginal, type PublicFilterWithLiterals as PublicFilterWithLiteralsOriginal, type PublicPlan as PublicPlanOriginal, type QueryPublicPlansApplicationErrors as QueryPublicPlansApplicationErrorsOriginal, type QueryPublicPlansRequest as QueryPublicPlansRequestOriginal, type QueryPublicPlansResponse as QueryPublicPlansResponseOriginal, type QueryPublicPlansValidationErrors as QueryPublicPlansValidationErrorsOriginal, type QueryV2 as QueryV2Original, type Recurrence as RecurrenceOriginal, type RestoreInfo as RestoreInfoOriginal, type SearchPlansRequest as SearchPlansRequestOriginal, type SearchPlansResponse as SearchPlansResponseOriginal, type SetPlanVisibilityApplicationErrors as SetPlanVisibilityApplicationErrorsOriginal, type SetPlanVisibilityRequest as SetPlanVisibilityRequestOriginal, type SetPlanVisibilityResponse as SetPlanVisibilityResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StringList as StringListOriginal, type UpdatePlanApplicationErrors as UpdatePlanApplicationErrorsOriginal, type UpdatePlanRequest as UpdatePlanRequestOriginal, type UpdatePlanResponse as UpdatePlanResponseOriginal, type UpdatePlanValidationErrors as UpdatePlanValidationErrorsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, queryPublicPlans, setPlanVisibility, updatePlan };
@@ -112,6 +112,9 @@ function listPublicPlans(payload) {
112
112
  method: "GET",
113
113
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans",
114
114
  packageName: PACKAGE_NAME,
115
+ migrationOptions: {
116
+ optInTransformResponse: true
117
+ },
115
118
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
116
119
  protoPath: "/v2/plans/public",
117
120
  data: payload,
@@ -139,6 +142,9 @@ function queryPublicPlans(payload) {
139
142
  method: "POST",
140
143
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans",
141
144
  packageName: PACKAGE_NAME,
145
+ migrationOptions: {
146
+ optInTransformResponse: true
147
+ },
142
148
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
143
149
  protoPath: "/v2/plans/public/query",
144
150
  data: payload,
@@ -166,6 +172,9 @@ function getPlan(payload) {
166
172
  method: "GET",
167
173
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan",
168
174
  packageName: PACKAGE_NAME,
175
+ migrationOptions: {
176
+ optInTransformResponse: true
177
+ },
169
178
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
170
179
  protoPath: "/v2/plans/{id}",
171
180
  data: payload,
@@ -190,6 +199,9 @@ function listPlans(payload) {
190
199
  method: "GET",
191
200
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans",
192
201
  packageName: PACKAGE_NAME,
202
+ migrationOptions: {
203
+ optInTransformResponse: true
204
+ },
193
205
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
194
206
  protoPath: "/v2/plans",
195
207
  data: payload,
@@ -217,6 +229,9 @@ function getPlanStats(payload) {
217
229
  method: "GET",
218
230
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats",
219
231
  packageName: PACKAGE_NAME,
232
+ migrationOptions: {
233
+ optInTransformResponse: true
234
+ },
220
235
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
221
236
  protoPath: "/v2/plans/stats",
222
237
  data: payload,
@@ -241,6 +256,9 @@ function createPlan(payload) {
241
256
  method: "POST",
242
257
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan",
243
258
  packageName: PACKAGE_NAME,
259
+ migrationOptions: {
260
+ optInTransformResponse: true
261
+ },
244
262
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
245
263
  protoPath: "/v2/plans",
246
264
  data: serializedData,
@@ -275,6 +293,9 @@ function updatePlan(payload) {
275
293
  method: "PATCH",
276
294
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan",
277
295
  packageName: PACKAGE_NAME,
296
+ migrationOptions: {
297
+ optInTransformResponse: true
298
+ },
278
299
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
279
300
  protoPath: "/v2/plans/{plan.id}",
280
301
  data: serializedData,
@@ -299,6 +320,9 @@ function setPlanVisibility(payload) {
299
320
  method: "PUT",
300
321
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility",
301
322
  packageName: PACKAGE_NAME,
323
+ migrationOptions: {
324
+ optInTransformResponse: true
325
+ },
302
326
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
303
327
  protoPath: "/v2/plans/{id}/visibility",
304
328
  data: payload,
@@ -323,6 +347,9 @@ function makePlanPrimary(payload) {
323
347
  method: "POST",
324
348
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary",
325
349
  packageName: PACKAGE_NAME,
350
+ migrationOptions: {
351
+ optInTransformResponse: true
352
+ },
326
353
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
327
354
  protoPath: "/v2/plans/{id}/make-primary",
328
355
  data: payload,
@@ -347,6 +374,9 @@ function clearPrimary(payload) {
347
374
  method: "POST",
348
375
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary",
349
376
  packageName: PACKAGE_NAME,
377
+ migrationOptions: {
378
+ optInTransformResponse: true
379
+ },
350
380
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
351
381
  protoPath: "/v2/plans/clear-primary",
352
382
  data: payload,
@@ -365,6 +395,9 @@ function archivePlan(payload) {
365
395
  method: "POST",
366
396
  methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan",
367
397
  packageName: PACKAGE_NAME,
398
+ migrationOptions: {
399
+ optInTransformResponse: true
400
+ },
368
401
  url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
369
402
  protoPath: "/v2/plans/{id}/archive",
370
403
  data: payload,
@@ -383,6 +416,46 @@ function archivePlan(payload) {
383
416
  return __archivePlan;
384
417
  }
385
418
 
419
+ // src/pricing-plans-v2-plan-plans.types.ts
420
+ var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
421
+ PeriodUnit2["UNDEFINED"] = "UNDEFINED";
422
+ PeriodUnit2["DAY"] = "DAY";
423
+ PeriodUnit2["WEEK"] = "WEEK";
424
+ PeriodUnit2["MONTH"] = "MONTH";
425
+ PeriodUnit2["YEAR"] = "YEAR";
426
+ return PeriodUnit2;
427
+ })(PeriodUnit || {});
428
+ var AppliedAt = /* @__PURE__ */ ((AppliedAt2) => {
429
+ AppliedAt2["UNKNOWN_CHARGE_EVENT"] = "UNKNOWN_CHARGE_EVENT";
430
+ AppliedAt2["FIRST_PAYMENT"] = "FIRST_PAYMENT";
431
+ return AppliedAt2;
432
+ })(AppliedAt || {});
433
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
434
+ SortOrder2["ASC"] = "ASC";
435
+ SortOrder2["DESC"] = "DESC";
436
+ return SortOrder2;
437
+ })(SortOrder || {});
438
+ var ArchivedFilter = /* @__PURE__ */ ((ArchivedFilter2) => {
439
+ ArchivedFilter2["ACTIVE"] = "ACTIVE";
440
+ ArchivedFilter2["ARCHIVED"] = "ARCHIVED";
441
+ ArchivedFilter2["ARCHIVED_AND_ACTIVE"] = "ARCHIVED_AND_ACTIVE";
442
+ return ArchivedFilter2;
443
+ })(ArchivedFilter || {});
444
+ var PublicFilter = /* @__PURE__ */ ((PublicFilter2) => {
445
+ PublicFilter2["PUBLIC_AND_HIDDEN"] = "PUBLIC_AND_HIDDEN";
446
+ PublicFilter2["PUBLIC"] = "PUBLIC";
447
+ PublicFilter2["HIDDEN"] = "HIDDEN";
448
+ return PublicFilter2;
449
+ })(PublicFilter || {});
450
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
451
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
452
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
453
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
454
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
455
+ WebhookIdentityType2["APP"] = "APP";
456
+ return WebhookIdentityType2;
457
+ })(WebhookIdentityType || {});
458
+
386
459
  // src/pricing-plans-v2-plan-plans.meta.ts
387
460
  function listPublicPlans2() {
388
461
  const payload = {};
@@ -583,6 +656,12 @@ function archivePlan2() {
583
656
  };
584
657
  }
585
658
  export {
659
+ AppliedAt as AppliedAtOriginal,
660
+ ArchivedFilter as ArchivedFilterOriginal,
661
+ PeriodUnit as PeriodUnitOriginal,
662
+ PublicFilter as PublicFilterOriginal,
663
+ SortOrder as SortOrderOriginal,
664
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
586
665
  archivePlan2 as archivePlan,
587
666
  clearPrimary2 as clearPrimary,
588
667
  createPlan2 as createPlan,