@wix/auto_sdk_pricing-plans_pricing-plans-settings 1.0.2 → 1.0.4

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.
@@ -1 +1,219 @@
1
- export { ActionEvent, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetPricingPlansSettingsRequest, GetPricingPlansSettingsResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, PricingPlansSettings, RestoreInfo, TaxableAddress, TaxableAddressWithLiterals, UpdatePricingPlansSettingsRequest, UpdatePricingPlansSettingsResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.mjs';
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ interface PricingPlansSettings {
4
+ /**
5
+ * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.
6
+ * Ignored when creating a PricingPlans settings.
7
+ * @readonly
8
+ */
9
+ revision?: string | null;
10
+ /**
11
+ * Date and time the PricingPlansSettings was created.
12
+ * @readonly
13
+ */
14
+ _createdDate?: Date | null;
15
+ /**
16
+ * Date and time the PricingPlansSettings was last updated.
17
+ * @readonly
18
+ */
19
+ _updatedDate?: Date | null;
20
+ /** Site's taxable address, which determines how tax is calculated for pricing plans. */
21
+ taxableAddress?: TaxableAddressWithLiterals;
22
+ /** Data Extensions */
23
+ extendedFields?: ExtendedFields;
24
+ }
25
+ declare enum TaxableAddress {
26
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
27
+ BILLING = "BILLING",
28
+ BUSINESS = "BUSINESS"
29
+ }
30
+ /** @enumType */
31
+ type TaxableAddressWithLiterals = TaxableAddress | 'UNKNOWN_TYPE' | 'BILLING' | 'BUSINESS';
32
+ interface ExtendedFields {
33
+ /**
34
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
35
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
36
+ *
37
+ * You can only access fields for which you have the appropriate permissions.
38
+ *
39
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
40
+ */
41
+ namespaces?: Record<string, Record<string, any>>;
42
+ }
43
+ interface GetPricingPlansSettingsRequest {
44
+ }
45
+ interface GetPricingPlansSettingsResponse {
46
+ /** Pricing Plans settings */
47
+ pricingPlansSettings?: PricingPlansSettings;
48
+ }
49
+ interface UpdatePricingPlansSettingsRequest {
50
+ /** PricingPlansSettings to be updated, may be partial. */
51
+ pricingPlansSettings: PricingPlansSettings;
52
+ }
53
+ interface UpdatePricingPlansSettingsResponse {
54
+ /** Updated PricingPlansSettings. */
55
+ pricingPlansSettings?: PricingPlansSettings;
56
+ }
57
+ interface DomainEvent extends DomainEventBodyOneOf {
58
+ createdEvent?: EntityCreatedEvent;
59
+ updatedEvent?: EntityUpdatedEvent;
60
+ deletedEvent?: EntityDeletedEvent;
61
+ actionEvent?: ActionEvent;
62
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
63
+ _id?: string;
64
+ /**
65
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
66
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
67
+ */
68
+ entityFqdn?: string;
69
+ /**
70
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
71
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
72
+ */
73
+ slug?: string;
74
+ /** ID of the entity associated with the event. */
75
+ entityId?: string;
76
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
77
+ eventTime?: Date | null;
78
+ /**
79
+ * Whether the event was triggered as a result of a privacy regulation application
80
+ * (for example, GDPR).
81
+ */
82
+ triggeredByAnonymizeRequest?: boolean | null;
83
+ /** If present, indicates the action that triggered the event. */
84
+ originatedFrom?: string | null;
85
+ /**
86
+ * 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.
87
+ * 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.
88
+ */
89
+ entityEventSequence?: string | null;
90
+ }
91
+ /** @oneof */
92
+ interface DomainEventBodyOneOf {
93
+ createdEvent?: EntityCreatedEvent;
94
+ updatedEvent?: EntityUpdatedEvent;
95
+ deletedEvent?: EntityDeletedEvent;
96
+ actionEvent?: ActionEvent;
97
+ }
98
+ interface EntityCreatedEvent {
99
+ entity?: string;
100
+ }
101
+ interface RestoreInfo {
102
+ deletedDate?: Date | null;
103
+ }
104
+ interface EntityUpdatedEvent {
105
+ /**
106
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
107
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
108
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
109
+ */
110
+ currentEntity?: string;
111
+ }
112
+ interface EntityDeletedEvent {
113
+ /** Entity that was deleted. */
114
+ deletedEntity?: string | null;
115
+ }
116
+ interface ActionEvent {
117
+ body?: string;
118
+ }
119
+ interface MessageEnvelope {
120
+ /**
121
+ * App instance ID.
122
+ * @format GUID
123
+ */
124
+ instanceId?: string | null;
125
+ /**
126
+ * Event type.
127
+ * @maxLength 150
128
+ */
129
+ eventType?: string;
130
+ /** The identification type and identity data. */
131
+ identity?: IdentificationData;
132
+ /** Stringify payload. */
133
+ data?: string;
134
+ }
135
+ interface IdentificationData extends IdentificationDataIdOneOf {
136
+ /**
137
+ * ID of a site visitor that has not logged in to the site.
138
+ * @format GUID
139
+ */
140
+ anonymousVisitorId?: string;
141
+ /**
142
+ * ID of a site visitor that has logged in to the site.
143
+ * @format GUID
144
+ */
145
+ memberId?: string;
146
+ /**
147
+ * ID of a Wix user (site owner, contributor, etc.).
148
+ * @format GUID
149
+ */
150
+ wixUserId?: string;
151
+ /**
152
+ * ID of an app.
153
+ * @format GUID
154
+ */
155
+ appId?: string;
156
+ /** @readonly */
157
+ identityType?: WebhookIdentityTypeWithLiterals;
158
+ }
159
+ /** @oneof */
160
+ interface IdentificationDataIdOneOf {
161
+ /**
162
+ * ID of a site visitor that has not logged in to the site.
163
+ * @format GUID
164
+ */
165
+ anonymousVisitorId?: string;
166
+ /**
167
+ * ID of a site visitor that has logged in to the site.
168
+ * @format GUID
169
+ */
170
+ memberId?: string;
171
+ /**
172
+ * ID of a Wix user (site owner, contributor, etc.).
173
+ * @format GUID
174
+ */
175
+ wixUserId?: string;
176
+ /**
177
+ * ID of an app.
178
+ * @format GUID
179
+ */
180
+ appId?: string;
181
+ }
182
+ declare enum WebhookIdentityType {
183
+ UNKNOWN = "UNKNOWN",
184
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
185
+ MEMBER = "MEMBER",
186
+ WIX_USER = "WIX_USER",
187
+ APP = "APP"
188
+ }
189
+ /** @enumType */
190
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
191
+ /**
192
+ * Retrieves a site's Pricing Plans Settings.
193
+ * @public
194
+ * @documentationMaturity preview
195
+ * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_READ
196
+ * @applicableIdentity APP
197
+ * @returns Pricing Plans settings
198
+ * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings
199
+ */
200
+ declare function getPricingPlansSettings(): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;
201
+ /**
202
+ * Updates a site's Pricing Plans settings, or creates them if none exist.
203
+ *
204
+ * Each time the Pricing Plans settings are updated, `revision` increments by 1.
205
+ * The current `revision` must be passed when updating the Pricing Plans settings.
206
+ * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.
207
+ * @param pricingPlansSettings - PricingPlansSettings to be updated, may be partial.
208
+ * @public
209
+ * @documentationMaturity preview
210
+ * @requiredField pricingPlansSettings
211
+ * @requiredField pricingPlansSettings.revision
212
+ * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_UPDATE
213
+ * @applicableIdentity APP
214
+ * @returns Updated PricingPlansSettings.
215
+ * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings
216
+ */
217
+ declare function updatePricingPlansSettings(pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;
218
+
219
+ export { type ActionEvent, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPricingPlansSettingsRequest, type GetPricingPlansSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, type PricingPlansSettings, type RestoreInfo, TaxableAddress, type TaxableAddressWithLiterals, type UpdatePricingPlansSettingsRequest, type UpdatePricingPlansSettingsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getPricingPlansSettings, updatePricingPlansSettings };
@@ -19,6 +19,24 @@ function resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(opts) {
19
19
  srcPath: "/_api/pricing-plans-settings",
20
20
  destPath: ""
21
21
  }
22
+ ],
23
+ "*.dev.wix-code.com": [
24
+ {
25
+ srcPath: "/_api/pricing-plans-settings",
26
+ destPath: ""
27
+ }
28
+ ],
29
+ _: [
30
+ {
31
+ srcPath: "/_api/pricing-plans-settings",
32
+ destPath: ""
33
+ }
34
+ ],
35
+ "www.wixapis.com": [
36
+ {
37
+ srcPath: "/pricing-plans/settings/v1",
38
+ destPath: ""
39
+ }
22
40
  ]
23
41
  };
24
42
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.ts","../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettings from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.js';\n\nexport interface PricingPlansSettings {\n /**\n * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.\n * Ignored when creating a PricingPlans settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the PricingPlansSettings was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PricingPlansSettings was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Site's taxable address, which determines how tax is calculated for pricing plans. */\n taxableAddress?: TaxableAddressWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n}\n\nexport enum TaxableAddress {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n BILLING = 'BILLING',\n BUSINESS = 'BUSINESS',\n}\n\n/** @enumType */\nexport type TaxableAddressWithLiterals =\n | TaxableAddress\n | 'UNKNOWN_TYPE'\n | 'BILLING'\n | 'BUSINESS';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetPricingPlansSettingsRequest {}\n\nexport interface GetPricingPlansSettingsResponse {\n /** Pricing Plans settings */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsRequest {\n /** PricingPlansSettings to be updated, may be partial. */\n pricingPlansSettings: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsResponse {\n /** Updated PricingPlansSettings. */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\n/**\n * Retrieves a site's Pricing Plans Settings.\n * @internal\n * @documentationMaturity preview\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_READ\n * @applicableIdentity APP\n * @returns Pricing Plans settings\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings\n */\nexport async function getPricingPlansSettings(): Promise<\n NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.getPricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n * @param pricingPlansSettings - PricingPlansSettings to be updated, may be partial.\n * @internal\n * @documentationMaturity preview\n * @requiredField pricingPlansSettings\n * @requiredField pricingPlansSettings.revision\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_UPDATE\n * @applicableIdentity APP\n * @returns Updated PricingPlansSettings.\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings\n */\nexport async function updatePricingPlansSettings(\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pricingPlansSettings: pricingPlansSettings,\n });\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.updatePricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pricingPlansSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pricingPlansSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_pricing-plans-settings';\n\n/** Retrieves a site's Pricing Plans Settings. */\nexport function getPricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPricingPlansSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPricingPlansSettings;\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n */\nexport function updatePricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePricingPlansSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePricingPlansSettings;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,+DAA+D;AAAA,QAClE,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,QAAQ,kBAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACA,aAClB,eAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,mCAAmC;AAAA,YAC3C,EAAE,MAAM,mCAAmC;AAAA,UAC7C;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AASO,SAAS,2BAC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AAU,sCAAsC,CAAC,CAAC;AAExD,QAAM,UACoD;AAAA,IACtD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,CAAC;AAAA,QAC3B,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC;AAAA,IACH;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAkBA,eAAsBC,4BACpB,sBACsE;AAEtE,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACoD;AAAA,IACtD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,sBAAsB,OAAO;AAAA,QACzD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,sBAAsB;AAAA,IACzB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","TaxableAddress","WebhookIdentityType","getPricingPlansSettings","updatePricingPlansSettings"]}
1
+ {"version":3,"sources":["../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.ts","../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettings from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.js';\n\nexport interface PricingPlansSettings {\n /**\n * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.\n * Ignored when creating a PricingPlans settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the PricingPlansSettings was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PricingPlansSettings was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Site's taxable address, which determines how tax is calculated for pricing plans. */\n taxableAddress?: TaxableAddressWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n}\n\nexport enum TaxableAddress {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n BILLING = 'BILLING',\n BUSINESS = 'BUSINESS',\n}\n\n/** @enumType */\nexport type TaxableAddressWithLiterals =\n | TaxableAddress\n | 'UNKNOWN_TYPE'\n | 'BILLING'\n | 'BUSINESS';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetPricingPlansSettingsRequest {}\n\nexport interface GetPricingPlansSettingsResponse {\n /** Pricing Plans settings */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsRequest {\n /** PricingPlansSettings to be updated, may be partial. */\n pricingPlansSettings: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsResponse {\n /** Updated PricingPlansSettings. */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\n/**\n * Retrieves a site's Pricing Plans Settings.\n * @public\n * @documentationMaturity preview\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_READ\n * @applicableIdentity APP\n * @returns Pricing Plans settings\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings\n */\nexport async function getPricingPlansSettings(): Promise<\n NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.getPricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n * @param pricingPlansSettings - PricingPlansSettings to be updated, may be partial.\n * @public\n * @documentationMaturity preview\n * @requiredField pricingPlansSettings\n * @requiredField pricingPlansSettings.revision\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_UPDATE\n * @applicableIdentity APP\n * @returns Updated PricingPlansSettings.\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings\n */\nexport async function updatePricingPlansSettings(\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pricingPlansSettings: pricingPlansSettings,\n });\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.updatePricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pricingPlansSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pricingPlansSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/settings/v1',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_pricing-plans-settings';\n\n/** Retrieves a site's Pricing Plans Settings. */\nexport function getPricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPricingPlansSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPricingPlansSettings;\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n */\nexport function updatePricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePricingPlansSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePricingPlansSettings;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK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,EAAE,sBAAsB,OAAO;AAAA,QACzD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,sBAAsB;AAAA,IACzB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","TaxableAddress","WebhookIdentityType","getPricingPlansSettings","updatePricingPlansSettings"]}
@@ -1,4 +1,5 @@
1
- import { GetPricingPlansSettingsRequest as GetPricingPlansSettingsRequest$1, GetPricingPlansSettingsResponse as GetPricingPlansSettingsResponse$1, UpdatePricingPlansSettingsRequest as UpdatePricingPlansSettingsRequest$1, UpdatePricingPlansSettingsResponse as UpdatePricingPlansSettingsResponse$1 } from './index.mjs';
1
+ import { GetPricingPlansSettingsRequest as GetPricingPlansSettingsRequest$1, GetPricingPlansSettingsResponse as GetPricingPlansSettingsResponse$1, UpdatePricingPlansSettingsRequest as UpdatePricingPlansSettingsRequest$1, UpdatePricingPlansSettingsResponse as UpdatePricingPlansSettingsResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
2
3
 
3
4
  interface PricingPlansSettings {
4
5
  /**
package/build/es/meta.mjs CHANGED
@@ -12,6 +12,24 @@ function resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(opts) {
12
12
  srcPath: "/_api/pricing-plans-settings",
13
13
  destPath: ""
14
14
  }
15
+ ],
16
+ "*.dev.wix-code.com": [
17
+ {
18
+ srcPath: "/_api/pricing-plans-settings",
19
+ destPath: ""
20
+ }
21
+ ],
22
+ _: [
23
+ {
24
+ srcPath: "/_api/pricing-plans-settings",
25
+ destPath: ""
26
+ }
27
+ ],
28
+ "www.wixapis.com": [
29
+ {
30
+ srcPath: "/pricing-plans/settings/v1",
31
+ destPath: ""
32
+ }
15
33
  ]
16
34
  };
17
35
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.ts","../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.types.ts","../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_pricing-plans-settings';\n\n/** Retrieves a site's Pricing Plans Settings. */\nexport function getPricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPricingPlansSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPricingPlansSettings;\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n */\nexport function updatePricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePricingPlansSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePricingPlansSettings;\n}\n","export interface PricingPlansSettings {\n /**\n * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.\n * Ignored when creating a PricingPlans settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the PricingPlansSettings was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the PricingPlansSettings was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Site's taxable address, which determines how tax is calculated for pricing plans. */\n taxableAddress?: TaxableAddressWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n}\n\nexport enum TaxableAddress {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n BILLING = 'BILLING',\n BUSINESS = 'BUSINESS',\n}\n\n/** @enumType */\nexport type TaxableAddressWithLiterals =\n | TaxableAddress\n | 'UNKNOWN_TYPE'\n | 'BILLING'\n | 'BUSINESS';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetPricingPlansSettingsRequest {}\n\nexport interface GetPricingPlansSettingsResponse {\n /** Pricing Plans settings */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsRequest {\n /** PricingPlansSettings to be updated, may be partial. */\n pricingPlansSettings: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsResponse {\n /** Updated PricingPlansSettings. */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixPricingPlansSettingsV1PricingPlansSettings from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.js';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.types.js';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getPricingPlansSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.GetPricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.GetPricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.GetPricingPlansSettingsResponse,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.GetPricingPlansSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.getPricingPlansSettings(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/pricing-plans-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePricingPlansSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.UpdatePricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.UpdatePricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.UpdatePricingPlansSettingsResponse,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.UpdatePricingPlansSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.updatePricingPlansSettings(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/pricing-plans-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n PricingPlansSettings as PricingPlansSettingsOriginal,\n TaxableAddress as TaxableAddressOriginal,\n TaxableAddressWithLiterals as TaxableAddressWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n GetPricingPlansSettingsRequest as GetPricingPlansSettingsRequestOriginal,\n GetPricingPlansSettingsResponse as GetPricingPlansSettingsResponseOriginal,\n UpdatePricingPlansSettingsRequest as UpdatePricingPlansSettingsRequestOriginal,\n UpdatePricingPlansSettingsResponse as UpdatePricingPlansSettingsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,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,EACT;AAEA,SAAO;AACT;;;AChGO,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,cAAW;AAHD,SAAAA;AAAA,GAAA;AAmLL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,SAAM;AALI,SAAAA;AAAA,GAAA;;;ACpLL,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACoD;AAAA,IACtD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACoD;AAAA,IACtD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","TaxableAddress","WebhookIdentityType","getPricingPlansSettings","updatePricingPlansSettings"]}
1
+ {"version":3,"sources":["../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.ts","../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.types.ts","../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/settings/v1',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_pricing-plans-settings';\n\n/** Retrieves a site's Pricing Plans Settings. */\nexport function getPricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPricingPlansSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPricingPlansSettings;\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n */\nexport function updatePricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePricingPlansSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePricingPlansSettings;\n}\n","export interface PricingPlansSettings {\n /**\n * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.\n * Ignored when creating a PricingPlans settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the PricingPlansSettings was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the PricingPlansSettings was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Site's taxable address, which determines how tax is calculated for pricing plans. */\n taxableAddress?: TaxableAddressWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n}\n\nexport enum TaxableAddress {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n BILLING = 'BILLING',\n BUSINESS = 'BUSINESS',\n}\n\n/** @enumType */\nexport type TaxableAddressWithLiterals =\n | TaxableAddress\n | 'UNKNOWN_TYPE'\n | 'BILLING'\n | 'BUSINESS';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetPricingPlansSettingsRequest {}\n\nexport interface GetPricingPlansSettingsResponse {\n /** Pricing Plans settings */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsRequest {\n /** PricingPlansSettings to be updated, may be partial. */\n pricingPlansSettings: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsResponse {\n /** Updated PricingPlansSettings. */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixPricingPlansSettingsV1PricingPlansSettings from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.js';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.types.js';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getPricingPlansSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.GetPricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.GetPricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.GetPricingPlansSettingsResponse,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.GetPricingPlansSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.getPricingPlansSettings(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/pricing-plans-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePricingPlansSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.UpdatePricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.UpdatePricingPlansSettingsRequest,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsUniversalTypes.UpdatePricingPlansSettingsResponse,\n ambassadorWixPricingPlansSettingsV1PricingPlansSettingsTypes.UpdatePricingPlansSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.updatePricingPlansSettings(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/pricing-plans-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n PricingPlansSettings as PricingPlansSettingsOriginal,\n TaxableAddress as TaxableAddressOriginal,\n TaxableAddressWithLiterals as TaxableAddressWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n GetPricingPlansSettingsRequest as GetPricingPlansSettingsRequestOriginal,\n GetPricingPlansSettingsResponse as GetPricingPlansSettingsResponseOriginal,\n UpdatePricingPlansSettingsRequest as UpdatePricingPlansSettingsRequestOriginal,\n UpdatePricingPlansSettingsResponse as UpdatePricingPlansSettingsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT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IACtD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","TaxableAddress","WebhookIdentityType","getPricingPlansSettings","updatePricingPlansSettings"]}
@@ -2,7 +2,6 @@ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@
2
2
  import { PricingPlansSettings } from './index.typings.js';
3
3
  export { ActionEvent, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetPricingPlansSettingsRequest, GetPricingPlansSettingsResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, RestoreInfo, TaxableAddress, TaxableAddressWithLiterals, UpdatePricingPlansSettingsRequest, UpdatePricingPlansSettingsResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
- /** @internal */
6
5
  declare function getPricingPlansSettings$1(httpClient: HttpClient): GetPricingPlansSettingsSignature;
7
6
  interface GetPricingPlansSettingsSignature {
8
7
  /**
@@ -11,7 +10,6 @@ interface GetPricingPlansSettingsSignature {
11
10
  */
12
11
  (): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;
13
12
  }
14
- /** @internal */
15
13
  declare function updatePricingPlansSettings$1(httpClient: HttpClient): UpdatePricingPlansSettingsSignature;
16
14
  interface UpdatePricingPlansSettingsSignature {
17
15
  /**
@@ -26,9 +24,7 @@ interface UpdatePricingPlansSettingsSignature {
26
24
  (pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;
27
25
  }
28
26
 
29
- /** @internal */
30
27
  declare const getPricingPlansSettings: MaybeContext<BuildRESTFunction<typeof getPricingPlansSettings$1> & typeof getPricingPlansSettings$1>;
31
- /** @internal */
32
28
  declare const updatePricingPlansSettings: MaybeContext<BuildRESTFunction<typeof updatePricingPlansSettings$1> & typeof updatePricingPlansSettings$1>;
33
29
 
34
30
  export { PricingPlansSettings, getPricingPlansSettings, updatePricingPlansSettings };
@@ -45,6 +45,24 @@ function resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(opts) {
45
45
  srcPath: "/_api/pricing-plans-settings",
46
46
  destPath: ""
47
47
  }
48
+ ],
49
+ "*.dev.wix-code.com": [
50
+ {
51
+ srcPath: "/_api/pricing-plans-settings",
52
+ destPath: ""
53
+ }
54
+ ],
55
+ _: [
56
+ {
57
+ srcPath: "/_api/pricing-plans-settings",
58
+ destPath: ""
59
+ }
60
+ ],
61
+ "www.wixapis.com": [
62
+ {
63
+ srcPath: "/pricing-plans/settings/v1",
64
+ destPath: ""
65
+ }
48
66
  ]
49
67
  };
50
68
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));