@wix/auto_sdk_ecom_order-payment-requests 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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +11 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js +17 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +33 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js +266 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +27 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +163 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +76 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js +52 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +1 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +399 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js +24 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +639 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +405 -0
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +11 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js +11 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +1 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +33 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js +256 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +1 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +27 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +130 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +1 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +76 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js +39 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +1 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +399 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js +21 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +639 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +372 -0
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +11 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js +17 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +33 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js +266 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +27 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +163 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +76 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js +52 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +399 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js +24 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +639 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +405 -0
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +11 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js +11 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +33 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js +256 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +27 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +130 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +76 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js +39 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +1 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +399 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js +21 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +639 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +372 -0
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
export interface OrderPaymentRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Order payment request ID.
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
id?: string | null;
|
|
7
|
+
/** Additional parameters to identify the source of the order payment request. */
|
|
8
|
+
source?: Source;
|
|
9
|
+
/**
|
|
10
|
+
* status.
|
|
11
|
+
* @readonly
|
|
12
|
+
*/
|
|
13
|
+
status?: Status;
|
|
14
|
+
/** Order ID. */
|
|
15
|
+
orderId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Order number.
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
orderNumber?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Amount to collect.
|
|
23
|
+
* > **Note:** The amount can only be set once.
|
|
24
|
+
*/
|
|
25
|
+
amount?: Price;
|
|
26
|
+
/**
|
|
27
|
+
* Currency code. The value will always match the currency used in the order.
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
currency?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Payment gateway order id which is associated with this payment request
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
paymentGatewayOrderId?: string | null;
|
|
36
|
+
/** Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for. */
|
|
37
|
+
title?: string;
|
|
38
|
+
/** Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for. */
|
|
39
|
+
description?: string | null;
|
|
40
|
+
/** Image to be displayed to the customer on the payment page. */
|
|
41
|
+
image?: Image;
|
|
42
|
+
/** Time and date the order payment request expires. */
|
|
43
|
+
expirationDate?: Date | null;
|
|
44
|
+
/** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls. */
|
|
45
|
+
extendedFields?: ExtendedFields;
|
|
46
|
+
/**
|
|
47
|
+
* Date and time the OrderPaymentRequest was created.
|
|
48
|
+
* @readonly
|
|
49
|
+
*/
|
|
50
|
+
createdDate?: Date | null;
|
|
51
|
+
/**
|
|
52
|
+
* Date and time the OrderPaymentRequest was last updated.
|
|
53
|
+
* @readonly
|
|
54
|
+
*/
|
|
55
|
+
updatedDate?: Date | null;
|
|
56
|
+
}
|
|
57
|
+
export interface Source {
|
|
58
|
+
/** App Def ID that created the order payment request. */
|
|
59
|
+
appId?: string | null;
|
|
60
|
+
/** Reference to an ID from an external system, indicating the original source of the order payment request. */
|
|
61
|
+
externalId?: string;
|
|
62
|
+
}
|
|
63
|
+
export declare enum Status {
|
|
64
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
65
|
+
UNPAID = "UNPAID",
|
|
66
|
+
PAID = "PAID",
|
|
67
|
+
EXPIRED = "EXPIRED"
|
|
68
|
+
}
|
|
69
|
+
export interface Price {
|
|
70
|
+
/** Amount. */
|
|
71
|
+
amount?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Amount formatted with currency symbol.
|
|
74
|
+
* @readonly
|
|
75
|
+
*/
|
|
76
|
+
formattedAmount?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface Image {
|
|
79
|
+
/** WixMedia image ID. */
|
|
80
|
+
id?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Original image height.
|
|
83
|
+
* @readonly
|
|
84
|
+
*/
|
|
85
|
+
height?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Original image width.
|
|
88
|
+
* @readonly
|
|
89
|
+
*/
|
|
90
|
+
width?: number;
|
|
91
|
+
/** Image alt text. */
|
|
92
|
+
altText?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Image filename.
|
|
95
|
+
* @readonly
|
|
96
|
+
*/
|
|
97
|
+
filename?: string | null;
|
|
98
|
+
}
|
|
99
|
+
export interface ExtendedFields {
|
|
100
|
+
/**
|
|
101
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
102
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
103
|
+
*
|
|
104
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
105
|
+
*
|
|
106
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
107
|
+
*/
|
|
108
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
109
|
+
}
|
|
110
|
+
/** Triggered when the the order payment request status changes to paid */
|
|
111
|
+
export interface OrderPaymentRequestPaid {
|
|
112
|
+
/** The order that was updated */
|
|
113
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
114
|
+
}
|
|
115
|
+
/** Triggered when the the order payment request status changes to expired */
|
|
116
|
+
export interface OrderPaymentRequestExpired {
|
|
117
|
+
/** The order that was updated */
|
|
118
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
119
|
+
}
|
|
120
|
+
export interface CreateOrderPaymentRequestRequest {
|
|
121
|
+
/** OrderPaymentRequest to be created. */
|
|
122
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
123
|
+
}
|
|
124
|
+
export interface CreateOrderPaymentRequestResponse {
|
|
125
|
+
/** The created OrderPaymentRequest. */
|
|
126
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
127
|
+
/** Order payment request URL. */
|
|
128
|
+
orderPaymentRequestUrl?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface GetOrderPaymentRequestRequest {
|
|
131
|
+
/** ID of the OrderPaymentRequest to retrieve. */
|
|
132
|
+
orderPaymentRequestId: string;
|
|
133
|
+
}
|
|
134
|
+
export interface GetOrderPaymentRequestResponse {
|
|
135
|
+
/** The requested OrderPaymentRequest. */
|
|
136
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
137
|
+
}
|
|
138
|
+
export interface UpdateOrderPaymentRequestRequest {
|
|
139
|
+
/** OrderPaymentRequest to be updated, may be partial. */
|
|
140
|
+
orderPaymentRequest: OrderPaymentRequest;
|
|
141
|
+
}
|
|
142
|
+
export interface UpdateOrderPaymentRequestResponse {
|
|
143
|
+
/** Updated OrderPaymentRequest. */
|
|
144
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
145
|
+
}
|
|
146
|
+
export interface DeleteOrderPaymentRequestRequest {
|
|
147
|
+
/** Id of the OrderPaymentRequest to delete. */
|
|
148
|
+
orderPaymentRequestId: string;
|
|
149
|
+
}
|
|
150
|
+
export interface DeleteOrderPaymentRequestResponse {
|
|
151
|
+
}
|
|
152
|
+
export interface QueryOrderPaymentRequestsRequest {
|
|
153
|
+
/** WQL expression. */
|
|
154
|
+
query?: CursorQuery;
|
|
155
|
+
}
|
|
156
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
157
|
+
/** 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`. */
|
|
158
|
+
cursorPaging?: CursorPaging;
|
|
159
|
+
/**
|
|
160
|
+
* Filter object in the following format:
|
|
161
|
+
* `"filter" : {
|
|
162
|
+
* "fieldName1": "value1",
|
|
163
|
+
* "fieldName2":{"$operator":"value2"}
|
|
164
|
+
* }`
|
|
165
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
166
|
+
*/
|
|
167
|
+
filter?: Record<string, any> | null;
|
|
168
|
+
/**
|
|
169
|
+
* Sort object in the following format:
|
|
170
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
171
|
+
*/
|
|
172
|
+
sort?: Sorting[];
|
|
173
|
+
}
|
|
174
|
+
/** @oneof */
|
|
175
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
176
|
+
/** 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`. */
|
|
177
|
+
cursorPaging?: CursorPaging;
|
|
178
|
+
}
|
|
179
|
+
export interface Sorting {
|
|
180
|
+
/** Name of the field to sort by. */
|
|
181
|
+
fieldName?: string;
|
|
182
|
+
/** Sort order. */
|
|
183
|
+
order?: SortOrder;
|
|
184
|
+
}
|
|
185
|
+
export declare enum SortOrder {
|
|
186
|
+
ASC = "ASC",
|
|
187
|
+
DESC = "DESC"
|
|
188
|
+
}
|
|
189
|
+
export interface CursorPaging {
|
|
190
|
+
/** Maximum number of items to return in the results. */
|
|
191
|
+
limit?: number | null;
|
|
192
|
+
/**
|
|
193
|
+
* Pointer to the next or previous page in the list of results.
|
|
194
|
+
*
|
|
195
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
196
|
+
* Not relevant for the first request.
|
|
197
|
+
*/
|
|
198
|
+
cursor?: string | null;
|
|
199
|
+
}
|
|
200
|
+
export interface QueryOrderPaymentRequestsResponse {
|
|
201
|
+
/** List of payment requests. */
|
|
202
|
+
orderPaymentRequests?: OrderPaymentRequest[];
|
|
203
|
+
/** Paging metadata */
|
|
204
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
205
|
+
}
|
|
206
|
+
export interface CursorPagingMetadata {
|
|
207
|
+
/** Number of items returned in the response. */
|
|
208
|
+
count?: number | null;
|
|
209
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
210
|
+
cursors?: Cursors;
|
|
211
|
+
/**
|
|
212
|
+
* Whether there are more pages to retrieve following the current page.
|
|
213
|
+
*
|
|
214
|
+
* + `true`: Another page of results can be retrieved.
|
|
215
|
+
* + `false`: This is the last page.
|
|
216
|
+
*/
|
|
217
|
+
hasNext?: boolean | null;
|
|
218
|
+
}
|
|
219
|
+
export interface Cursors {
|
|
220
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
221
|
+
next?: string | null;
|
|
222
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
223
|
+
prev?: string | null;
|
|
224
|
+
}
|
|
225
|
+
export interface GetOrderPaymentRequestURLRequest {
|
|
226
|
+
/** Order Payment Request ID. */
|
|
227
|
+
orderPaymentRequestId: string;
|
|
228
|
+
}
|
|
229
|
+
export interface GetOrderPaymentRequestURLResponse {
|
|
230
|
+
/** Order Payment Request URL. */
|
|
231
|
+
orderPaymentRequestUrl?: string;
|
|
232
|
+
}
|
|
233
|
+
export interface UpdateExtendedFieldsRequest {
|
|
234
|
+
/** ID of the entity to update. */
|
|
235
|
+
id: string;
|
|
236
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
237
|
+
namespace: string;
|
|
238
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
239
|
+
namespaceData: Record<string, any> | null;
|
|
240
|
+
}
|
|
241
|
+
export interface UpdateExtendedFieldsResponse {
|
|
242
|
+
/** Updated OrderPaymentRequest. */
|
|
243
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
244
|
+
}
|
|
245
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
246
|
+
createdEvent?: EntityCreatedEvent;
|
|
247
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
248
|
+
deletedEvent?: EntityDeletedEvent;
|
|
249
|
+
actionEvent?: ActionEvent;
|
|
250
|
+
/**
|
|
251
|
+
* Unique event ID.
|
|
252
|
+
* Allows clients to ignore duplicate webhooks.
|
|
253
|
+
*/
|
|
254
|
+
id?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Assumes actions are also always typed to an entity_type
|
|
257
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
258
|
+
*/
|
|
259
|
+
entityFqdn?: string;
|
|
260
|
+
/**
|
|
261
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
262
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
263
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
264
|
+
*/
|
|
265
|
+
slug?: string;
|
|
266
|
+
/** ID of the entity associated with the event. */
|
|
267
|
+
entityId?: string;
|
|
268
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
269
|
+
eventTime?: Date | null;
|
|
270
|
+
/**
|
|
271
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
272
|
+
* (for example, GDPR).
|
|
273
|
+
*/
|
|
274
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
275
|
+
/** If present, indicates the action that triggered the event. */
|
|
276
|
+
originatedFrom?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
279
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
280
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
281
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
282
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
283
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
284
|
+
*/
|
|
285
|
+
entityEventSequence?: string | null;
|
|
286
|
+
}
|
|
287
|
+
/** @oneof */
|
|
288
|
+
export interface DomainEventBodyOneOf {
|
|
289
|
+
createdEvent?: EntityCreatedEvent;
|
|
290
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
291
|
+
deletedEvent?: EntityDeletedEvent;
|
|
292
|
+
actionEvent?: ActionEvent;
|
|
293
|
+
}
|
|
294
|
+
export interface EntityCreatedEvent {
|
|
295
|
+
entityAsJson?: string;
|
|
296
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
297
|
+
restoreInfo?: RestoreInfo;
|
|
298
|
+
}
|
|
299
|
+
export interface RestoreInfo {
|
|
300
|
+
deletedDate?: Date | null;
|
|
301
|
+
}
|
|
302
|
+
export interface EntityUpdatedEvent {
|
|
303
|
+
/**
|
|
304
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
305
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
306
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
307
|
+
*/
|
|
308
|
+
currentEntityAsJson?: string;
|
|
309
|
+
}
|
|
310
|
+
export interface EntityDeletedEvent {
|
|
311
|
+
/** Entity that was deleted */
|
|
312
|
+
deletedEntityAsJson?: string | null;
|
|
313
|
+
}
|
|
314
|
+
export interface ActionEvent {
|
|
315
|
+
bodyAsJson?: string;
|
|
316
|
+
}
|
|
317
|
+
export interface Empty {
|
|
318
|
+
}
|
|
319
|
+
export interface MessageEnvelope {
|
|
320
|
+
/** App instance ID. */
|
|
321
|
+
instanceId?: string | null;
|
|
322
|
+
/** Event type. */
|
|
323
|
+
eventType?: string;
|
|
324
|
+
/** The identification type and identity data. */
|
|
325
|
+
identity?: IdentificationData;
|
|
326
|
+
/** Stringify payload. */
|
|
327
|
+
data?: string;
|
|
328
|
+
}
|
|
329
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
330
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
331
|
+
anonymousVisitorId?: string;
|
|
332
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
333
|
+
memberId?: string;
|
|
334
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
335
|
+
wixUserId?: string;
|
|
336
|
+
/** ID of an app. */
|
|
337
|
+
appId?: string;
|
|
338
|
+
/** @readonly */
|
|
339
|
+
identityType?: WebhookIdentityType;
|
|
340
|
+
}
|
|
341
|
+
/** @oneof */
|
|
342
|
+
export interface IdentificationDataIdOneOf {
|
|
343
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
344
|
+
anonymousVisitorId?: string;
|
|
345
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
346
|
+
memberId?: string;
|
|
347
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
348
|
+
wixUserId?: string;
|
|
349
|
+
/** ID of an app. */
|
|
350
|
+
appId?: string;
|
|
351
|
+
}
|
|
352
|
+
export declare enum WebhookIdentityType {
|
|
353
|
+
UNKNOWN = "UNKNOWN",
|
|
354
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
355
|
+
MEMBER = "MEMBER",
|
|
356
|
+
WIX_USER = "WIX_USER",
|
|
357
|
+
APP = "APP"
|
|
358
|
+
}
|
|
359
|
+
interface SourceNonNullableFields {
|
|
360
|
+
externalId: string;
|
|
361
|
+
}
|
|
362
|
+
interface PriceNonNullableFields {
|
|
363
|
+
amount: string;
|
|
364
|
+
formattedAmount: string;
|
|
365
|
+
}
|
|
366
|
+
interface ImageNonNullableFields {
|
|
367
|
+
id: string;
|
|
368
|
+
height: number;
|
|
369
|
+
width: number;
|
|
370
|
+
}
|
|
371
|
+
interface OrderPaymentRequestNonNullableFields {
|
|
372
|
+
source?: SourceNonNullableFields;
|
|
373
|
+
status: Status;
|
|
374
|
+
orderId: string;
|
|
375
|
+
amount?: PriceNonNullableFields;
|
|
376
|
+
currency: string;
|
|
377
|
+
title: string;
|
|
378
|
+
image?: ImageNonNullableFields;
|
|
379
|
+
}
|
|
380
|
+
export interface CreateOrderPaymentRequestResponseNonNullableFields {
|
|
381
|
+
orderPaymentRequest?: OrderPaymentRequestNonNullableFields;
|
|
382
|
+
orderPaymentRequestUrl: string;
|
|
383
|
+
}
|
|
384
|
+
export interface GetOrderPaymentRequestResponseNonNullableFields {
|
|
385
|
+
orderPaymentRequest?: OrderPaymentRequestNonNullableFields;
|
|
386
|
+
}
|
|
387
|
+
export interface UpdateOrderPaymentRequestResponseNonNullableFields {
|
|
388
|
+
orderPaymentRequest?: OrderPaymentRequestNonNullableFields;
|
|
389
|
+
}
|
|
390
|
+
export interface QueryOrderPaymentRequestsResponseNonNullableFields {
|
|
391
|
+
orderPaymentRequests: OrderPaymentRequestNonNullableFields[];
|
|
392
|
+
}
|
|
393
|
+
export interface GetOrderPaymentRequestURLResponseNonNullableFields {
|
|
394
|
+
orderPaymentRequestUrl: string;
|
|
395
|
+
}
|
|
396
|
+
export interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
397
|
+
orderPaymentRequest?: OrderPaymentRequestNonNullableFields;
|
|
398
|
+
}
|
|
399
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var Status;
|
|
2
|
+
(function (Status) {
|
|
3
|
+
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
4
|
+
Status["UNPAID"] = "UNPAID";
|
|
5
|
+
Status["PAID"] = "PAID";
|
|
6
|
+
Status["EXPIRED"] = "EXPIRED";
|
|
7
|
+
})(Status || (Status = {}));
|
|
8
|
+
export var SortOrder;
|
|
9
|
+
(function (SortOrder) {
|
|
10
|
+
SortOrder["ASC"] = "ASC";
|
|
11
|
+
SortOrder["DESC"] = "DESC";
|
|
12
|
+
})(SortOrder || (SortOrder = {}));
|
|
13
|
+
export var WebhookIdentityType;
|
|
14
|
+
(function (WebhookIdentityType) {
|
|
15
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
16
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
17
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
18
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
19
|
+
WebhookIdentityType["APP"] = "APP";
|
|
20
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
21
|
+
//# sourceMappingURL=ecom-v1-order-payment-request-order-payment-requests.types.js.map
|
package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-order-payment-request-order-payment-requests.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-order-payment-request-order-payment-requests.types.ts"],"names":[],"mappings":"AAgEA,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,6BAAmB,CAAA;AACrB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAsID,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAuLD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|