@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.d.ts +2 -0
  11. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js +23 -0
  12. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js.map +1 -0
  13. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.d.ts +40 -0
  14. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js +249 -0
  15. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js.map +1 -0
  16. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.d.ts +25 -0
  17. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js +173 -0
  18. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js.map +1 -0
  19. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.d.ts +4 -0
  20. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js +58 -0
  21. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js.map +1 -0
  22. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.d.ts +403 -0
  23. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js +17 -0
  24. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js.map +1 -0
  25. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.d.ts +500 -0
  26. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js +334 -0
  27. package/build/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.d.ts +2 -0
  39. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js +18 -0
  40. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js.map +1 -0
  41. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.d.ts +40 -0
  42. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js +239 -0
  43. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js.map +1 -0
  44. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.d.ts +25 -0
  45. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js +140 -0
  46. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js.map +1 -0
  47. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.d.ts +4 -0
  48. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js +46 -0
  49. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js.map +1 -0
  50. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.d.ts +403 -0
  51. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js +14 -0
  52. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js.map +1 -0
  53. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.d.ts +500 -0
  54. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js +301 -0
  55. package/build/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.d.ts +18 -0
  66. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js +23 -0
  67. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js.map +1 -0
  68. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.d.ts +40 -0
  69. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js +249 -0
  70. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js.map +1 -0
  71. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.d.ts +25 -0
  72. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js +173 -0
  73. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js.map +1 -0
  74. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.d.ts +88 -0
  75. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js +58 -0
  76. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js.map +1 -0
  77. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.d.ts +403 -0
  78. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js +17 -0
  79. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js.map +1 -0
  80. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.d.ts +590 -0
  81. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js +334 -0
  82. package/build/internal/cjs/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.d.ts +18 -0
  93. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js +18 -0
  94. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.js.map +1 -0
  95. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.d.ts +40 -0
  96. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js +239 -0
  97. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.http.js.map +1 -0
  98. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.d.ts +25 -0
  99. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js +140 -0
  100. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.meta.js.map +1 -0
  101. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.d.ts +88 -0
  102. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js +46 -0
  103. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.public.js.map +1 -0
  104. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.d.ts +403 -0
  105. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js +14 -0
  106. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.types.js.map +1 -0
  107. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.d.ts +590 -0
  108. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js +301 -0
  109. package/build/internal/es/src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,500 @@
1
+ /** PaymentAcceptanceConfiguration */
2
+ export interface PaymentAcceptanceConfiguration {
3
+ /**
4
+ * id
5
+ * @readonly
6
+ */
7
+ _id?: string | null;
8
+ /** app_id */
9
+ appId?: string | null;
10
+ /** rules */
11
+ rules?: PaymentAcceptanceRule[];
12
+ /**
13
+ * revision
14
+ * @readonly
15
+ */
16
+ revision?: string | null;
17
+ /**
18
+ * Date when PaymentAcceptanceConfiguration was created
19
+ * @readonly
20
+ */
21
+ _createdDate?: Date | null;
22
+ /**
23
+ * Date when PaymentAcceptanceConfiguration was updated
24
+ * @readonly
25
+ */
26
+ _updatedDate?: Date | null;
27
+ /** Data Extensions */
28
+ extendedFields?: ExtendedFields;
29
+ /** Tags */
30
+ tags?: Tags;
31
+ }
32
+ export interface PaymentAcceptanceRule {
33
+ /** payment_method_type_id */
34
+ paymentMethodTypeId?: string;
35
+ /** account_connection_id */
36
+ accountConnectionId?: string;
37
+ /** merchant_enabled */
38
+ merchantEnabled?: boolean;
39
+ }
40
+ export interface ExtendedFields {
41
+ /**
42
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
43
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
44
+ *
45
+ * You can only access fields for which you have the appropriate permissions.
46
+ *
47
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
48
+ */
49
+ namespaces?: Record<string, Record<string, any>>;
50
+ }
51
+ /**
52
+ * Common object for tags.
53
+ * Should be use as in this example:
54
+ * message Foo {
55
+ * string id = 1;
56
+ * ...
57
+ * Tags tags = 5
58
+ * }
59
+ *
60
+ * example of taggable entity
61
+ * {
62
+ * id: "123"
63
+ * tags: {
64
+ * tags: {
65
+ * tag_ids:["11","22"]
66
+ * },
67
+ * private_tags: {
68
+ * tag_ids: ["33", "44"]
69
+ * }
70
+ * }
71
+ * }
72
+ */
73
+ export interface Tags {
74
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
75
+ tags?: TagList;
76
+ }
77
+ export interface TagList {
78
+ /** List of tag IDs */
79
+ tagIds?: string[];
80
+ }
81
+ export interface CreatePaymentAcceptanceConfigurationRequest {
82
+ /** PaymentAcceptanceConfiguration to be created. */
83
+ paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration;
84
+ }
85
+ export interface CreatePaymentAcceptanceConfigurationResponse {
86
+ /** The created PaymentAcceptanceConfiguration. */
87
+ paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
88
+ }
89
+ export interface GetPaymentAcceptanceConfigurationRequest {
90
+ /** ID of the PaymentAcceptanceConfiguration to retrieve. */
91
+ paymentAcceptanceConfigurationId: string;
92
+ }
93
+ export interface GetPaymentAcceptanceConfigurationResponse {
94
+ /** The requested PaymentAcceptanceConfiguration. */
95
+ paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
96
+ }
97
+ export interface UpdatePaymentAcceptanceConfigurationRequest {
98
+ /** PaymentAcceptanceConfiguration to be updated, may be partial. */
99
+ paymentAcceptanceConfiguration: PaymentAcceptanceConfiguration;
100
+ }
101
+ export interface UpdatePaymentAcceptanceConfigurationResponse {
102
+ /** Updated PaymentAcceptanceConfiguration. */
103
+ paymentAcceptanceConfiguration?: PaymentAcceptanceConfiguration;
104
+ }
105
+ export interface DeletePaymentAcceptanceConfigurationRequest {
106
+ /** Id of payment acceptance configuration to delete */
107
+ paymentAcceptanceConfigurationId: string;
108
+ }
109
+ export interface DeletePaymentAcceptanceConfigurationResponse {
110
+ }
111
+ export interface QueryPaymentAcceptanceConfigurationsRequest {
112
+ /** WQL expression. */
113
+ query?: CursorQuery;
114
+ }
115
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
116
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
117
+ cursorPaging?: CursorPaging;
118
+ /**
119
+ * Filter object in the following format:
120
+ * `"filter" : {
121
+ * "fieldName1": "value1",
122
+ * "fieldName2":{"$operator":"value2"}
123
+ * }`
124
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
125
+ */
126
+ filter?: Record<string, any> | null;
127
+ /**
128
+ * Sort object in the following format:
129
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
130
+ */
131
+ sort?: Sorting[];
132
+ }
133
+ /** @oneof */
134
+ export interface CursorQueryPagingMethodOneOf {
135
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
136
+ cursorPaging?: CursorPaging;
137
+ }
138
+ export interface Sorting {
139
+ /** Name of the field to sort by. */
140
+ fieldName?: string;
141
+ /** Sort order. */
142
+ order?: SortOrder;
143
+ }
144
+ export declare enum SortOrder {
145
+ ASC = "ASC",
146
+ DESC = "DESC"
147
+ }
148
+ export interface CursorPaging {
149
+ /** Maximum number of items to return in the results. */
150
+ limit?: number | null;
151
+ /**
152
+ * Pointer to the next or previous page in the list of results.
153
+ *
154
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
155
+ * Not relevant for the first request.
156
+ */
157
+ cursor?: string | null;
158
+ }
159
+ export interface QueryPaymentAcceptanceConfigurationsResponse {
160
+ /** List of PaymentAcceptanceConfigurations. */
161
+ paymentAcceptanceConfigurations?: PaymentAcceptanceConfiguration[];
162
+ /** Paging metadata */
163
+ pagingMetadata?: CursorPagingMetadata;
164
+ }
165
+ export interface CursorPagingMetadata {
166
+ /** Number of items returned in the response. */
167
+ count?: number | null;
168
+ /** Cursor strings that point to the next page, previous page, or both. */
169
+ cursors?: Cursors;
170
+ /**
171
+ * Whether there are more pages to retrieve following the current page.
172
+ *
173
+ * + `true`: Another page of results can be retrieved.
174
+ * + `false`: This is the last page.
175
+ */
176
+ hasNext?: boolean | null;
177
+ }
178
+ export interface Cursors {
179
+ /** Cursor string pointing to the next page in the list of results. */
180
+ next?: string | null;
181
+ /** Cursor pointing to the previous page in the list of results. */
182
+ prev?: string | null;
183
+ }
184
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsRequest {
185
+ /** List of NileProtoTagsEntities that their tags will update. */
186
+ ids: string[];
187
+ /** List of Tags to assign */
188
+ assignTags?: Tags;
189
+ /** List of Tags to unAssign */
190
+ unassignTags?: Tags;
191
+ }
192
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsResponse {
193
+ /** Results */
194
+ results?: BulkUpdatePaymentAcceptanceConfigurationTagsResult[];
195
+ /** Metadata regarding the bulk update operation */
196
+ bulkActionMetadata?: BulkActionMetadata;
197
+ }
198
+ export interface ItemMetadata {
199
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
200
+ _id?: string | null;
201
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
202
+ originalIndex?: number;
203
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
204
+ success?: boolean;
205
+ /** Details about the error in case of failure. */
206
+ error?: ApplicationError;
207
+ }
208
+ export interface ApplicationError {
209
+ /** Error code. */
210
+ code?: string;
211
+ /** Description of the error. */
212
+ description?: string;
213
+ /** Data related to the error. */
214
+ data?: Record<string, any> | null;
215
+ }
216
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsResult {
217
+ /** Metadata regarding the specific single update operation */
218
+ itemMetadata?: ItemMetadata;
219
+ }
220
+ export interface BulkActionMetadata {
221
+ /** Number of items that were successfully processed. */
222
+ totalSuccesses?: number;
223
+ /** Number of items that couldn't be processed. */
224
+ totalFailures?: number;
225
+ /** Number of failures without details because detailed failure threshold was exceeded. */
226
+ undetailedFailures?: number;
227
+ }
228
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterRequest {
229
+ /** Filter */
230
+ filter: Record<string, any> | null;
231
+ /** List of Tags to assign */
232
+ assignTags?: Tags;
233
+ /** List of Tags to unAssign */
234
+ unassignTags?: Tags;
235
+ }
236
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponse {
237
+ /** Job ID */
238
+ jobId?: string;
239
+ }
240
+ export interface DomainEvent extends DomainEventBodyOneOf {
241
+ createdEvent?: EntityCreatedEvent;
242
+ updatedEvent?: EntityUpdatedEvent;
243
+ deletedEvent?: EntityDeletedEvent;
244
+ actionEvent?: ActionEvent;
245
+ /**
246
+ * Unique event ID.
247
+ * Allows clients to ignore duplicate webhooks.
248
+ */
249
+ _id?: string;
250
+ /**
251
+ * Assumes actions are also always typed to an entity_type
252
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
253
+ */
254
+ entityFqdn?: string;
255
+ /**
256
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
257
+ * This is although the created/updated/deleted notion is duplication of the oneof types
258
+ * Example: created/updated/deleted/started/completed/email_opened
259
+ */
260
+ slug?: string;
261
+ /** ID of the entity associated with the event. */
262
+ entityId?: string;
263
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
264
+ eventTime?: Date | null;
265
+ /**
266
+ * Whether the event was triggered as a result of a privacy regulation application
267
+ * (for example, GDPR).
268
+ */
269
+ triggeredByAnonymizeRequest?: boolean | null;
270
+ /** If present, indicates the action that triggered the event. */
271
+ originatedFrom?: string | null;
272
+ /**
273
+ * A sequence number defining the order of updates to the underlying entity.
274
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
275
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
276
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
277
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
278
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
279
+ */
280
+ entityEventSequence?: string | null;
281
+ }
282
+ /** @oneof */
283
+ export interface DomainEventBodyOneOf {
284
+ createdEvent?: EntityCreatedEvent;
285
+ updatedEvent?: EntityUpdatedEvent;
286
+ deletedEvent?: EntityDeletedEvent;
287
+ actionEvent?: ActionEvent;
288
+ }
289
+ export interface EntityCreatedEvent {
290
+ entity?: string;
291
+ }
292
+ export interface RestoreInfo {
293
+ deletedDate?: Date | null;
294
+ }
295
+ export interface EntityUpdatedEvent {
296
+ /**
297
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
298
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
299
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
300
+ */
301
+ currentEntity?: string;
302
+ }
303
+ export interface EntityDeletedEvent {
304
+ /** Entity that was deleted */
305
+ deletedEntity?: string | null;
306
+ }
307
+ export interface ActionEvent {
308
+ body?: string;
309
+ }
310
+ export interface MessageEnvelope {
311
+ /** App instance ID. */
312
+ instanceId?: string | null;
313
+ /** Event type. */
314
+ eventType?: string;
315
+ /** The identification type and identity data. */
316
+ identity?: IdentificationData;
317
+ /** Stringify payload. */
318
+ data?: string;
319
+ }
320
+ export interface IdentificationData extends IdentificationDataIdOneOf {
321
+ /** ID of a site visitor that has not logged in to the site. */
322
+ anonymousVisitorId?: string;
323
+ /** ID of a site visitor that has logged in to the site. */
324
+ memberId?: string;
325
+ /** ID of a Wix user (site owner, contributor, etc.). */
326
+ wixUserId?: string;
327
+ /** ID of an app. */
328
+ appId?: string;
329
+ /** @readonly */
330
+ identityType?: WebhookIdentityType;
331
+ }
332
+ /** @oneof */
333
+ export interface IdentificationDataIdOneOf {
334
+ /** ID of a site visitor that has not logged in to the site. */
335
+ anonymousVisitorId?: string;
336
+ /** ID of a site visitor that has logged in to the site. */
337
+ memberId?: string;
338
+ /** ID of a Wix user (site owner, contributor, etc.). */
339
+ wixUserId?: string;
340
+ /** ID of an app. */
341
+ appId?: string;
342
+ }
343
+ export declare enum WebhookIdentityType {
344
+ UNKNOWN = "UNKNOWN",
345
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
346
+ MEMBER = "MEMBER",
347
+ WIX_USER = "WIX_USER",
348
+ APP = "APP"
349
+ }
350
+ interface PaymentAcceptanceRuleNonNullableFields {
351
+ paymentMethodTypeId: string;
352
+ accountConnectionId: string;
353
+ merchantEnabled: boolean;
354
+ }
355
+ interface TagListNonNullableFields {
356
+ tagIds: string[];
357
+ }
358
+ interface TagsNonNullableFields {
359
+ tags?: TagListNonNullableFields;
360
+ }
361
+ export interface PaymentAcceptanceConfigurationNonNullableFields {
362
+ rules: PaymentAcceptanceRuleNonNullableFields[];
363
+ tags?: TagsNonNullableFields;
364
+ }
365
+ export interface CreatePaymentAcceptanceConfigurationResponseNonNullableFields {
366
+ paymentAcceptanceConfiguration?: PaymentAcceptanceConfigurationNonNullableFields;
367
+ }
368
+ export interface GetPaymentAcceptanceConfigurationResponseNonNullableFields {
369
+ paymentAcceptanceConfiguration?: PaymentAcceptanceConfigurationNonNullableFields;
370
+ }
371
+ export interface UpdatePaymentAcceptanceConfigurationResponseNonNullableFields {
372
+ paymentAcceptanceConfiguration?: PaymentAcceptanceConfigurationNonNullableFields;
373
+ }
374
+ export interface QueryPaymentAcceptanceConfigurationsResponseNonNullableFields {
375
+ paymentAcceptanceConfigurations: PaymentAcceptanceConfigurationNonNullableFields[];
376
+ }
377
+ interface ApplicationErrorNonNullableFields {
378
+ code: string;
379
+ description: string;
380
+ }
381
+ interface ItemMetadataNonNullableFields {
382
+ originalIndex: number;
383
+ success: boolean;
384
+ error?: ApplicationErrorNonNullableFields;
385
+ }
386
+ interface BulkUpdatePaymentAcceptanceConfigurationTagsResultNonNullableFields {
387
+ itemMetadata?: ItemMetadataNonNullableFields;
388
+ }
389
+ interface BulkActionMetadataNonNullableFields {
390
+ totalSuccesses: number;
391
+ totalFailures: number;
392
+ undetailedFailures: number;
393
+ }
394
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsResponseNonNullableFields {
395
+ results: BulkUpdatePaymentAcceptanceConfigurationTagsResultNonNullableFields[];
396
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
397
+ }
398
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterResponseNonNullableFields {
399
+ jobId: string;
400
+ }
401
+ export interface UpdatePaymentAcceptanceConfiguration {
402
+ /**
403
+ * id
404
+ * @readonly
405
+ */
406
+ _id?: string | null;
407
+ /** app_id */
408
+ appId?: string | null;
409
+ /** rules */
410
+ rules?: PaymentAcceptanceRule[];
411
+ /**
412
+ * revision
413
+ * @readonly
414
+ */
415
+ revision?: string | null;
416
+ /**
417
+ * Date when PaymentAcceptanceConfiguration was created
418
+ * @readonly
419
+ */
420
+ _createdDate?: Date | null;
421
+ /**
422
+ * Date when PaymentAcceptanceConfiguration was updated
423
+ * @readonly
424
+ */
425
+ _updatedDate?: Date | null;
426
+ /** Data Extensions */
427
+ extendedFields?: ExtendedFields;
428
+ /** Tags */
429
+ tags?: Tags;
430
+ }
431
+ interface QueryCursorResult {
432
+ cursors: Cursors;
433
+ hasNext: () => boolean;
434
+ hasPrev: () => boolean;
435
+ length: number;
436
+ pageSize: number;
437
+ }
438
+ export interface PaymentAcceptanceConfigurationsQueryResult extends QueryCursorResult {
439
+ items: PaymentAcceptanceConfiguration[];
440
+ query: PaymentAcceptanceConfigurationsQueryBuilder;
441
+ next: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;
442
+ prev: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;
443
+ }
444
+ export interface PaymentAcceptanceConfigurationsQueryBuilder {
445
+ /** @param propertyName - Property whose value is compared with `value`.
446
+ * @param value - Value to compare against.
447
+ * @documentationMaturity preview
448
+ */
449
+ eq: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled', value: any) => PaymentAcceptanceConfigurationsQueryBuilder;
450
+ /** @param propertyName - Property whose value is compared with `value`.
451
+ * @param value - Value to compare against.
452
+ * @documentationMaturity preview
453
+ */
454
+ ne: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled', value: any) => PaymentAcceptanceConfigurationsQueryBuilder;
455
+ /** @param propertyName - Property whose value is compared with `string`.
456
+ * @param string - String to compare against. Case-insensitive.
457
+ * @documentationMaturity preview
458
+ */
459
+ startsWith: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId', value: string) => PaymentAcceptanceConfigurationsQueryBuilder;
460
+ /** @param propertyName - Property whose value is compared with `values`.
461
+ * @param values - List of values to compare against.
462
+ * @documentationMaturity preview
463
+ */
464
+ hasSome: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled', value: any[]) => PaymentAcceptanceConfigurationsQueryBuilder;
465
+ /** @documentationMaturity preview */
466
+ in: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled', value: any) => PaymentAcceptanceConfigurationsQueryBuilder;
467
+ /** @documentationMaturity preview */
468
+ exists: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled', value: boolean) => PaymentAcceptanceConfigurationsQueryBuilder;
469
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
470
+ * @documentationMaturity preview
471
+ */
472
+ ascending: (...propertyNames: Array<'_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled'>) => PaymentAcceptanceConfigurationsQueryBuilder;
473
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
474
+ * @documentationMaturity preview
475
+ */
476
+ descending: (...propertyNames: Array<'_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantEnabled'>) => PaymentAcceptanceConfigurationsQueryBuilder;
477
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
478
+ * @documentationMaturity preview
479
+ */
480
+ limit: (limit: number) => PaymentAcceptanceConfigurationsQueryBuilder;
481
+ /** @param cursor - A pointer to specific record
482
+ * @documentationMaturity preview
483
+ */
484
+ skipTo: (cursor: string) => PaymentAcceptanceConfigurationsQueryBuilder;
485
+ /** @documentationMaturity preview */
486
+ find: () => Promise<PaymentAcceptanceConfigurationsQueryResult>;
487
+ }
488
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsOptions {
489
+ /** List of Tags to assign */
490
+ assignTags?: Tags;
491
+ /** List of Tags to unAssign */
492
+ unassignTags?: Tags;
493
+ }
494
+ export interface BulkUpdatePaymentAcceptanceConfigurationTagsByFilterOptions {
495
+ /** List of Tags to assign */
496
+ assignTags?: Tags;
497
+ /** List of Tags to unAssign */
498
+ unassignTags?: Tags;
499
+ }
500
+ export {};