@wix/pricing-plans 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/build/cjs/context.d.ts +2 -2
  2. package/build/cjs/context.js +2 -2
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +2 -2
  5. package/build/cjs/index.js +2 -2
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +2 -2
  8. package/build/cjs/meta.js +2 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +2 -2
  11. package/build/es/context.js +2 -2
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +2 -2
  14. package/build/es/index.js +2 -2
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +2 -2
  17. package/build/es/meta.js +2 -2
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +12 -9
  20. package/build/cjs/index.typings.d.ts +0 -2
  21. package/build/cjs/index.typings.js +0 -29
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/pricing-plans-v2-order.context.d.ts +0 -15
  24. package/build/cjs/src/pricing-plans-v2-order.context.js +0 -148
  25. package/build/cjs/src/pricing-plans-v2-order.context.js.map +0 -1
  26. package/build/cjs/src/pricing-plans-v2-order.http.d.ts +0 -165
  27. package/build/cjs/src/pricing-plans-v2-order.http.js +0 -818
  28. package/build/cjs/src/pricing-plans-v2-order.http.js.map +0 -1
  29. package/build/cjs/src/pricing-plans-v2-order.meta.d.ts +0 -41
  30. package/build/cjs/src/pricing-plans-v2-order.meta.js +0 -275
  31. package/build/cjs/src/pricing-plans-v2-order.meta.js.map +0 -1
  32. package/build/cjs/src/pricing-plans-v2-order.public.d.ts +0 -104
  33. package/build/cjs/src/pricing-plans-v2-order.public.js +0 -110
  34. package/build/cjs/src/pricing-plans-v2-order.public.js.map +0 -1
  35. package/build/cjs/src/pricing-plans-v2-order.types.d.ts +0 -1801
  36. package/build/cjs/src/pricing-plans-v2-order.types.js +0 -135
  37. package/build/cjs/src/pricing-plans-v2-order.types.js.map +0 -1
  38. package/build/cjs/src/pricing-plans-v2-order.universal.d.ts +0 -2225
  39. package/build/cjs/src/pricing-plans-v2-order.universal.js +0 -1151
  40. package/build/cjs/src/pricing-plans-v2-order.universal.js.map +0 -1
  41. package/build/cjs/src/pricing-plans-v2-plan.context.d.ts +0 -14
  42. package/build/cjs/src/pricing-plans-v2-plan.context.js +0 -137
  43. package/build/cjs/src/pricing-plans-v2-plan.context.js.map +0 -1
  44. package/build/cjs/src/pricing-plans-v2-plan.http.d.ts +0 -134
  45. package/build/cjs/src/pricing-plans-v2-plan.http.js +0 -544
  46. package/build/cjs/src/pricing-plans-v2-plan.http.js.map +0 -1
  47. package/build/cjs/src/pricing-plans-v2-plan.meta.d.ts +0 -34
  48. package/build/cjs/src/pricing-plans-v2-plan.meta.js +0 -256
  49. package/build/cjs/src/pricing-plans-v2-plan.meta.js.map +0 -1
  50. package/build/cjs/src/pricing-plans-v2-plan.public.d.ts +0 -86
  51. package/build/cjs/src/pricing-plans-v2-plan.public.js +0 -89
  52. package/build/cjs/src/pricing-plans-v2-plan.public.js.map +0 -1
  53. package/build/cjs/src/pricing-plans-v2-plan.types.d.ts +0 -732
  54. package/build/cjs/src/pricing-plans-v2-plan.types.js +0 -41
  55. package/build/cjs/src/pricing-plans-v2-plan.types.js.map +0 -1
  56. package/build/cjs/src/pricing-plans-v2-plan.universal.d.ts +0 -1176
  57. package/build/cjs/src/pricing-plans-v2-plan.universal.js +0 -913
  58. package/build/cjs/src/pricing-plans-v2-plan.universal.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -2
  60. package/build/es/index.typings.js +0 -3
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/src/pricing-plans-v2-order.context.d.ts +0 -15
  63. package/build/es/src/pricing-plans-v2-order.context.js +0 -132
  64. package/build/es/src/pricing-plans-v2-order.context.js.map +0 -1
  65. package/build/es/src/pricing-plans-v2-order.http.d.ts +0 -165
  66. package/build/es/src/pricing-plans-v2-order.http.js +0 -802
  67. package/build/es/src/pricing-plans-v2-order.http.js.map +0 -1
  68. package/build/es/src/pricing-plans-v2-order.meta.d.ts +0 -41
  69. package/build/es/src/pricing-plans-v2-order.meta.js +0 -236
  70. package/build/es/src/pricing-plans-v2-order.meta.js.map +0 -1
  71. package/build/es/src/pricing-plans-v2-order.public.d.ts +0 -104
  72. package/build/es/src/pricing-plans-v2-order.public.js +0 -70
  73. package/build/es/src/pricing-plans-v2-order.public.js.map +0 -1
  74. package/build/es/src/pricing-plans-v2-order.types.d.ts +0 -1801
  75. package/build/es/src/pricing-plans-v2-order.types.js +0 -132
  76. package/build/es/src/pricing-plans-v2-order.types.js.map +0 -1
  77. package/build/es/src/pricing-plans-v2-order.universal.d.ts +0 -2225
  78. package/build/es/src/pricing-plans-v2-order.universal.js +0 -1112
  79. package/build/es/src/pricing-plans-v2-order.universal.js.map +0 -1
  80. package/build/es/src/pricing-plans-v2-plan.context.d.ts +0 -14
  81. package/build/es/src/pricing-plans-v2-plan.context.js +0 -122
  82. package/build/es/src/pricing-plans-v2-plan.context.js.map +0 -1
  83. package/build/es/src/pricing-plans-v2-plan.http.d.ts +0 -134
  84. package/build/es/src/pricing-plans-v2-plan.http.js +0 -529
  85. package/build/es/src/pricing-plans-v2-plan.http.js.map +0 -1
  86. package/build/es/src/pricing-plans-v2-plan.meta.d.ts +0 -34
  87. package/build/es/src/pricing-plans-v2-plan.meta.js +0 -218
  88. package/build/es/src/pricing-plans-v2-plan.meta.js.map +0 -1
  89. package/build/es/src/pricing-plans-v2-plan.public.d.ts +0 -86
  90. package/build/es/src/pricing-plans-v2-plan.public.js +0 -65
  91. package/build/es/src/pricing-plans-v2-plan.public.js.map +0 -1
  92. package/build/es/src/pricing-plans-v2-plan.types.d.ts +0 -732
  93. package/build/es/src/pricing-plans-v2-plan.types.js +0 -38
  94. package/build/es/src/pricing-plans-v2-plan.types.js.map +0 -1
  95. package/build/es/src/pricing-plans-v2-plan.universal.d.ts +0 -1176
  96. package/build/es/src/pricing-plans-v2-plan.universal.js +0 -875
  97. package/build/es/src/pricing-plans-v2-plan.universal.js.map +0 -1
@@ -1,732 +0,0 @@
1
- /** Information about the pricing plan. */
2
- export interface Plan {
3
- /**
4
- * Plan ID.
5
- * @readonly
6
- */
7
- id?: string;
8
- /** Plan name. */
9
- name?: string | null;
10
- /** Plan description. */
11
- description?: string | null;
12
- /** What is included with this plan (e.g., 1 weekly entrance to a specific class). */
13
- perks?: StringList;
14
- /** Plan price, payment schedule, and expiration. */
15
- pricing?: Pricing;
16
- /** Whether the plan is public (visible to site visitors and members). */
17
- public?: boolean | null;
18
- /**
19
- * Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.
20
- * @readonly
21
- */
22
- archived?: boolean;
23
- /**
24
- * Whether the plan is marked as primary.
25
- * @readonly
26
- */
27
- primary?: boolean;
28
- /**
29
- * Whether the plan has any orders (including pending and unpaid orders).
30
- * @readonly
31
- */
32
- hasOrders?: boolean;
33
- /**
34
- * Date plan was created.
35
- * @readonly
36
- */
37
- createdDate?: Date;
38
- /**
39
- * Date plan was last updated.
40
- * @readonly
41
- */
42
- updatedDate?: Date;
43
- /**
44
- * URL-friendly version of plan name. Unique across all plans in the same site.
45
- * @readonly
46
- */
47
- slug?: string | null;
48
- /**
49
- * Number of times the same buyer can purchase the plan. Currently limited to support:
50
- * - Empty value or a value of `0`, meaning no limitation.
51
- * - Value of `1`, meaning limited to one purchase per buyer.
52
- */
53
- maxPurchasesPerBuyer?: number | null;
54
- /** Whether the buyer can start the plan at a later date. Defaults to false. */
55
- allowFutureStartDate?: boolean | null;
56
- /** Whether the buyer is allowed to cancel their plan. Defaults to false. */
57
- buyerCanCancel?: boolean | null;
58
- /** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
59
- termsAndConditions?: string | null;
60
- /**
61
- * ID of the form associated with the plan at checkout.
62
- *
63
- * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
64
- */
65
- formId?: string | null;
66
- }
67
- /** This wrapper type exist in order to distinguish an empty string list from no list at all in update requests. */
68
- export interface StringList {
69
- /** List of strings */
70
- values?: string[];
71
- }
72
- /** Plan pricing information. Includes the price of the plan and payment details. */
73
- export interface Pricing extends PricingPricingModelOneOf {
74
- /** Plan has recurring payments. */
75
- subscription?: Recurrence;
76
- /** One time payment, plan is valid for the specified duration. */
77
- singlePaymentForDuration?: Duration;
78
- /** One time payment, plan is valid until it is canceled. */
79
- singlePaymentUnlimited?: boolean | null;
80
- /** Amount for a single payment (or the whole subscription if it's not a recurring plan) */
81
- price?: Money;
82
- /** Free trial period for the plan in days. It’s available only for recurring plans. Set to 0 to remove free trial. */
83
- freeTrialDays?: number | null;
84
- }
85
- /** @oneof */
86
- export interface PricingPricingModelOneOf {
87
- /** Plan has recurring payments. */
88
- subscription?: Recurrence;
89
- /** One time payment, plan is valid for the specified duration. */
90
- singlePaymentForDuration?: Duration;
91
- /** One time payment, plan is valid until it is canceled. */
92
- singlePaymentUnlimited?: boolean | null;
93
- }
94
- /** An object specifying how often and for how long payments recur (may be forever). */
95
- export interface Recurrence {
96
- /** Length of one payment cycle. */
97
- cycleDuration?: Duration;
98
- /**
99
- * Amount of payment cycles this subscription is valid for.
100
- *
101
- * `0` for unlimited or until-canceled.
102
- */
103
- cycleCount?: number | null;
104
- }
105
- /** A duration expressed in number of time units. */
106
- export interface Duration {
107
- /**
108
- * The amount of a duration `unit` in a single payment cycle.
109
- *
110
- * Currently limited to support only `1`.
111
- */
112
- count?: number | null;
113
- /** Unit of time for the cycle duration. */
114
- unit?: PeriodUnit;
115
- }
116
- export declare enum PeriodUnit {
117
- UNDEFINED = "UNDEFINED",
118
- DAY = "DAY",
119
- WEEK = "WEEK",
120
- MONTH = "MONTH",
121
- YEAR = "YEAR"
122
- }
123
- export interface Money {
124
- /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). */
125
- value?: string;
126
- /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
127
- currency?: string;
128
- }
129
- export interface FeeConfig {
130
- fee?: Fee;
131
- /** The time this fee will be charged */
132
- appliedAt?: AppliedAt;
133
- }
134
- export interface Fee {
135
- /** Fee name */
136
- name?: string;
137
- /** Amount of fee to be charged */
138
- amount?: string;
139
- }
140
- export declare enum AppliedAt {
141
- UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
142
- /** Will charge the fee on first payment. If order has a free trial meaning it will charge after the free trial. */
143
- FIRST_PAYMENT = "FIRST_PAYMENT"
144
- }
145
- export interface ListPublicPlansRequest {
146
- /** Number of items to list. Defaults to 75. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
147
- limit?: number | null;
148
- /** Number of items to skip. Defaults to 0. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
149
- offset?: number | null;
150
- /** IDs of plans to list. Non-existent IDs will be ignored and won't cause errors. You can pass a maximum of 100 IDs. */
151
- planIds?: string[];
152
- }
153
- export interface ListPublicPlansResponse {
154
- /** List of public pricing plans. */
155
- plans?: PublicPlan[];
156
- /** Object containing paging-related data (number of plans returned, offset). */
157
- pagingMetadata?: PagingMetadataV2;
158
- }
159
- /** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
160
- export interface PublicPlan {
161
- /** Plan ID. */
162
- id?: string;
163
- /** Plan name. */
164
- name?: string | null;
165
- /** Plan description. */
166
- description?: string | null;
167
- /** What is included with this plan (e.g., 1 weekly entrance to a specific class). */
168
- perks?: StringList;
169
- /** Plan price, payment schedule, and expiration. */
170
- pricing?: Pricing;
171
- /** Whether the plan is marked as primary. */
172
- primary?: boolean;
173
- /** Date plan was created. */
174
- createdDate?: Date;
175
- /** Date plan was last updated. */
176
- updatedDate?: Date;
177
- /** URL-friendly version of plan name. Unique across all plans in the same site. */
178
- slug?: string | null;
179
- /** Number of times the same buyer can purchase the plan. An empty value or a value of zero means no limitation. */
180
- maxPurchasesPerBuyer?: number | null;
181
- /** Whether the buyer can start the plan at a later date. Defaults to false. */
182
- allowFutureStartDate?: boolean | null;
183
- /** Whether the buyer is allowed to cancel their plan. Defaults to false. */
184
- buyerCanCancel?: boolean | null;
185
- /** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
186
- termsAndConditions?: string | null;
187
- /**
188
- * ID of the form associated with the plan at checkout.
189
- *
190
- * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
191
- */
192
- formId?: string | null;
193
- }
194
- export interface PagingMetadataV2 {
195
- /** Number of items returned in the response. */
196
- count?: number | null;
197
- /** Offset that was requested. */
198
- offset?: number | null;
199
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
200
- total?: number | null;
201
- /** Flag that indicates the server failed to calculate the `total` field. */
202
- tooManyToCount?: boolean | null;
203
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
204
- cursors?: Cursors;
205
- }
206
- export interface Cursors {
207
- /** Cursor string pointing to the next page in the list of results. */
208
- next?: string | null;
209
- /** Cursor pointing to the previous page in the list of results. */
210
- prev?: string | null;
211
- }
212
- export interface QueryPublicPlansRequest {
213
- query?: QueryV2;
214
- }
215
- export interface QueryV2 {
216
- /** A filter object. See [supported fields and operators](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans) */
217
- filter?: Record<string, any> | null;
218
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
219
- sort?: Sorting[];
220
- /** Pointer to page of results using offset. Can not be used together with 'cursorPaging' */
221
- paging?: Paging;
222
- }
223
- export interface Sorting {
224
- /** Name of the field to sort by. */
225
- fieldName?: string;
226
- /** Sort order. */
227
- order?: SortOrder;
228
- }
229
- export declare enum SortOrder {
230
- ASC = "ASC",
231
- DESC = "DESC"
232
- }
233
- export interface Paging {
234
- /** Number of items to load. */
235
- limit?: number | null;
236
- /** Number of items to skip in the current sort order. */
237
- offset?: number | null;
238
- }
239
- export interface QueryPublicPlansResponse {
240
- /** List of public pricing plans that match the specified query. */
241
- plans?: PublicPlan[];
242
- /** Object containing paging-related data (number of plans returned, offset). */
243
- pagingMetadata?: PagingMetadataV2;
244
- }
245
- export interface GetPlanRequest {
246
- /** Plan ID. */
247
- id: string;
248
- }
249
- export interface GetPlanResponse {
250
- /** Pricing plan. */
251
- plan?: Plan;
252
- }
253
- export interface ListPlansRequest {
254
- /** Archived filter. Defaults to ACTIVE (not archived) only. */
255
- archived?: ArchivedFilter;
256
- /** Visibility filter. Defaults to PUBLIC_AND_HIDDEN (meaning, both are listed). */
257
- public?: PublicFilter;
258
- /** Number of pricing plans to list. Defaults to 75. */
259
- limit?: number | null;
260
- /** Number of pricing plans to skip. Defaults to 0. */
261
- offset?: number | null;
262
- /** Plan ID filter. Non-existent IDs are ignored, and won't cause errors. You can pass a maximum of 100 IDs. */
263
- planIds?: string[];
264
- }
265
- export declare enum ArchivedFilter {
266
- /** Returns all plans that are active. */
267
- ACTIVE = "ACTIVE",
268
- /** Returns all plans that are archived. */
269
- ARCHIVED = "ARCHIVED",
270
- /** Returns all plans that are active and archived. */
271
- ARCHIVED_AND_ACTIVE = "ARCHIVED_AND_ACTIVE"
272
- }
273
- export declare enum PublicFilter {
274
- /** Returns all public and hidden plans. */
275
- PUBLIC_AND_HIDDEN = "PUBLIC_AND_HIDDEN",
276
- /** Returns only public plans. */
277
- PUBLIC = "PUBLIC",
278
- /** Returns only hidden plans. */
279
- HIDDEN = "HIDDEN"
280
- }
281
- export interface ListPlansResponse {
282
- /** List of all public and hidden pricing plans. */
283
- plans?: Plan[];
284
- /** Object containing paging-related data (number of plans returned, offset). */
285
- pagingMetadata?: PagingMetadataV2;
286
- }
287
- export interface GetPlanStatsRequest {
288
- }
289
- export interface GetPlanStatsResponse {
290
- /** Total number of plans created, including active plans (both public and hidden) and archived plans. */
291
- totalPlans?: number;
292
- }
293
- export interface CreatePlanRequest {
294
- plan: Plan;
295
- }
296
- export interface CreatePlanResponse {
297
- plan?: Plan;
298
- }
299
- export interface UpdatePlanRequest {
300
- plan: Plan;
301
- }
302
- export interface UpdatePlanResponse {
303
- plan?: Plan;
304
- }
305
- export interface BuyerCanCancelUpdated {
306
- plan?: Plan;
307
- }
308
- export interface SetPlanVisibilityRequest {
309
- id: string;
310
- visible: boolean;
311
- }
312
- export interface SetPlanVisibilityResponse {
313
- plan?: Plan;
314
- }
315
- export interface MakePlanPrimaryRequest {
316
- id: string;
317
- }
318
- export interface MakePlanPrimaryResponse {
319
- plan?: Plan;
320
- }
321
- export interface ClearPrimaryRequest {
322
- }
323
- export interface ClearPrimaryResponse {
324
- }
325
- export interface ArchivePlanRequest {
326
- id: string;
327
- }
328
- export interface ArchivePlanResponse {
329
- plan?: Plan;
330
- }
331
- export interface PlanArchived {
332
- plan?: Plan;
333
- }
334
- export interface BulkArchivePlanRequest {
335
- /** List of Plan IDs. */
336
- ids?: string[];
337
- /** Set to true to return Plan entity in response. */
338
- returnFullEntity?: boolean;
339
- }
340
- export interface BulkArchivePlanResponse {
341
- results?: BulkPlanResult[];
342
- bulkActionMetadata?: BulkActionMetadata;
343
- }
344
- export interface BulkPlanResult {
345
- itemMetadata?: ItemMetadata;
346
- plan?: Plan;
347
- }
348
- export interface ItemMetadata {
349
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
350
- id?: string | null;
351
- /** Index of the item within the request array. Allows for correlation between request and response items. */
352
- originalIndex?: number;
353
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
354
- success?: boolean;
355
- /** Details about the error in case of failure. */
356
- error?: ApplicationError;
357
- }
358
- export interface ApplicationError {
359
- /** Error code. */
360
- code?: string;
361
- /** Description of the error. */
362
- description?: string;
363
- /** Data related to the error. */
364
- data?: Record<string, any> | null;
365
- }
366
- export interface BulkActionMetadata {
367
- /** Number of items that were successfully processed. */
368
- totalSuccesses?: number;
369
- /** Number of items that couldn't be processed. */
370
- totalFailures?: number;
371
- /** Number of failures without details because detailed failure threshold was exceeded. */
372
- undetailedFailures?: number;
373
- }
374
- export interface ArrangePlansRequest {
375
- ids: string[];
376
- }
377
- export interface ArrangePlansResponse {
378
- }
379
- export interface DomainEvent extends DomainEventBodyOneOf {
380
- createdEvent?: EntityCreatedEvent;
381
- updatedEvent?: EntityUpdatedEvent;
382
- deletedEvent?: EntityDeletedEvent;
383
- actionEvent?: ActionEvent;
384
- /**
385
- * Unique event ID.
386
- * Allows clients to ignore duplicate webhooks.
387
- */
388
- id?: string;
389
- /**
390
- * Assumes actions are also always typed to an entity_type
391
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
392
- */
393
- entityFqdn?: string;
394
- /**
395
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
396
- * This is although the created/updated/deleted notion is duplication of the oneof types
397
- * Example: created/updated/deleted/started/completed/email_opened
398
- */
399
- slug?: string;
400
- /** ID of the entity associated with the event. */
401
- entityId?: string;
402
- /** Event timestamp. */
403
- eventTime?: Date;
404
- /**
405
- * Whether the event was triggered as a result of a privacy regulation application
406
- * (for example, GDPR).
407
- */
408
- triggeredByAnonymizeRequest?: boolean | null;
409
- /** If present, indicates the action that triggered the event. */
410
- originatedFrom?: string | null;
411
- /**
412
- * A sequence number defining the order of updates to the underlying entity.
413
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
414
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
415
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
416
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
417
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
418
- */
419
- entityEventSequence?: string | null;
420
- }
421
- /** @oneof */
422
- export interface DomainEventBodyOneOf {
423
- createdEvent?: EntityCreatedEvent;
424
- updatedEvent?: EntityUpdatedEvent;
425
- deletedEvent?: EntityDeletedEvent;
426
- actionEvent?: ActionEvent;
427
- }
428
- export interface EntityCreatedEvent {
429
- entityAsJson?: string;
430
- }
431
- export interface EntityUpdatedEvent {
432
- /**
433
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
434
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
435
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
436
- */
437
- currentEntityAsJson?: string;
438
- }
439
- export interface EntityDeletedEvent {
440
- /** Entity that was deleted */
441
- deletedEntityAsJson?: string | null;
442
- }
443
- export interface ActionEvent {
444
- bodyAsJson?: string;
445
- }
446
- export interface ListPublicPlansResponseNonNullableFields {
447
- plans: {
448
- id: string;
449
- perks?: {
450
- values: string[];
451
- };
452
- pricing?: {
453
- subscription?: {
454
- cycleDuration?: {
455
- unit: PeriodUnit;
456
- };
457
- };
458
- singlePaymentForDuration?: {
459
- unit: PeriodUnit;
460
- };
461
- price?: {
462
- value: string;
463
- currency: string;
464
- };
465
- feeConfigs: {
466
- fee?: {
467
- name: string;
468
- amount: string;
469
- };
470
- appliedAt: AppliedAt;
471
- }[];
472
- };
473
- primary: boolean;
474
- }[];
475
- }
476
- export interface QueryPublicPlansResponseNonNullableFields {
477
- plans: {
478
- id: string;
479
- perks?: {
480
- values: string[];
481
- };
482
- pricing?: {
483
- subscription?: {
484
- cycleDuration?: {
485
- unit: PeriodUnit;
486
- };
487
- };
488
- singlePaymentForDuration?: {
489
- unit: PeriodUnit;
490
- };
491
- price?: {
492
- value: string;
493
- currency: string;
494
- };
495
- feeConfigs: {
496
- fee?: {
497
- name: string;
498
- amount: string;
499
- };
500
- appliedAt: AppliedAt;
501
- }[];
502
- };
503
- primary: boolean;
504
- }[];
505
- }
506
- export interface GetPlanResponseNonNullableFields {
507
- plan?: {
508
- id: string;
509
- perks?: {
510
- values: string[];
511
- };
512
- pricing?: {
513
- subscription?: {
514
- cycleDuration?: {
515
- unit: PeriodUnit;
516
- };
517
- };
518
- singlePaymentForDuration?: {
519
- unit: PeriodUnit;
520
- };
521
- price?: {
522
- value: string;
523
- currency: string;
524
- };
525
- feeConfigs: {
526
- fee?: {
527
- name: string;
528
- amount: string;
529
- };
530
- appliedAt: AppliedAt;
531
- }[];
532
- };
533
- archived: boolean;
534
- primary: boolean;
535
- hasOrders: boolean;
536
- };
537
- }
538
- export interface ListPlansResponseNonNullableFields {
539
- plans: {
540
- id: string;
541
- perks?: {
542
- values: string[];
543
- };
544
- pricing?: {
545
- subscription?: {
546
- cycleDuration?: {
547
- unit: PeriodUnit;
548
- };
549
- };
550
- singlePaymentForDuration?: {
551
- unit: PeriodUnit;
552
- };
553
- price?: {
554
- value: string;
555
- currency: string;
556
- };
557
- feeConfigs: {
558
- fee?: {
559
- name: string;
560
- amount: string;
561
- };
562
- appliedAt: AppliedAt;
563
- }[];
564
- };
565
- archived: boolean;
566
- primary: boolean;
567
- hasOrders: boolean;
568
- }[];
569
- }
570
- export interface GetPlanStatsResponseNonNullableFields {
571
- totalPlans: number;
572
- }
573
- export interface CreatePlanResponseNonNullableFields {
574
- plan?: {
575
- id: string;
576
- perks?: {
577
- values: string[];
578
- };
579
- pricing?: {
580
- subscription?: {
581
- cycleDuration?: {
582
- unit: PeriodUnit;
583
- };
584
- };
585
- singlePaymentForDuration?: {
586
- unit: PeriodUnit;
587
- };
588
- price?: {
589
- value: string;
590
- currency: string;
591
- };
592
- feeConfigs: {
593
- fee?: {
594
- name: string;
595
- amount: string;
596
- };
597
- appliedAt: AppliedAt;
598
- }[];
599
- };
600
- archived: boolean;
601
- primary: boolean;
602
- hasOrders: boolean;
603
- };
604
- }
605
- export interface UpdatePlanResponseNonNullableFields {
606
- plan?: {
607
- id: string;
608
- perks?: {
609
- values: string[];
610
- };
611
- pricing?: {
612
- subscription?: {
613
- cycleDuration?: {
614
- unit: PeriodUnit;
615
- };
616
- };
617
- singlePaymentForDuration?: {
618
- unit: PeriodUnit;
619
- };
620
- price?: {
621
- value: string;
622
- currency: string;
623
- };
624
- feeConfigs: {
625
- fee?: {
626
- name: string;
627
- amount: string;
628
- };
629
- appliedAt: AppliedAt;
630
- }[];
631
- };
632
- archived: boolean;
633
- primary: boolean;
634
- hasOrders: boolean;
635
- };
636
- }
637
- export interface SetPlanVisibilityResponseNonNullableFields {
638
- plan?: {
639
- id: string;
640
- perks?: {
641
- values: string[];
642
- };
643
- pricing?: {
644
- subscription?: {
645
- cycleDuration?: {
646
- unit: PeriodUnit;
647
- };
648
- };
649
- singlePaymentForDuration?: {
650
- unit: PeriodUnit;
651
- };
652
- price?: {
653
- value: string;
654
- currency: string;
655
- };
656
- feeConfigs: {
657
- fee?: {
658
- name: string;
659
- amount: string;
660
- };
661
- appliedAt: AppliedAt;
662
- }[];
663
- };
664
- archived: boolean;
665
- primary: boolean;
666
- hasOrders: boolean;
667
- };
668
- }
669
- export interface MakePlanPrimaryResponseNonNullableFields {
670
- plan?: {
671
- id: string;
672
- perks?: {
673
- values: string[];
674
- };
675
- pricing?: {
676
- subscription?: {
677
- cycleDuration?: {
678
- unit: PeriodUnit;
679
- };
680
- };
681
- singlePaymentForDuration?: {
682
- unit: PeriodUnit;
683
- };
684
- price?: {
685
- value: string;
686
- currency: string;
687
- };
688
- feeConfigs: {
689
- fee?: {
690
- name: string;
691
- amount: string;
692
- };
693
- appliedAt: AppliedAt;
694
- }[];
695
- };
696
- archived: boolean;
697
- primary: boolean;
698
- hasOrders: boolean;
699
- };
700
- }
701
- export interface ArchivePlanResponseNonNullableFields {
702
- plan?: {
703
- id: string;
704
- perks?: {
705
- values: string[];
706
- };
707
- pricing?: {
708
- subscription?: {
709
- cycleDuration?: {
710
- unit: PeriodUnit;
711
- };
712
- };
713
- singlePaymentForDuration?: {
714
- unit: PeriodUnit;
715
- };
716
- price?: {
717
- value: string;
718
- currency: string;
719
- };
720
- feeConfigs: {
721
- fee?: {
722
- name: string;
723
- amount: string;
724
- };
725
- appliedAt: AppliedAt;
726
- }[];
727
- };
728
- archived: boolean;
729
- primary: boolean;
730
- hasOrders: boolean;
731
- };
732
- }