@wix/auto_sdk_ecom_order-payment-requests 1.0.60 → 1.0.61

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.
@@ -5,8 +5,12 @@ export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks,
5
5
  declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
6
6
  interface CreateOrderPaymentRequestSignature {
7
7
  /**
8
- * Creates a order payment request.
9
- * @returns The created OrderPaymentRequest.
8
+ * Creates an order payment request.
9
+ *
10
+ * The response includes the payment page URL, which you can share with the customer. To retrieve the URL later, call [Get Order Payment Request URL](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-payment-requests/get-order-payment-request-url).
11
+ *
12
+ * Creation fails with `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND` if the site doesn't have a Payment Request Page added and published.
13
+ * @returns Created order payment request.
10
14
  */
11
15
  (options?: NonNullablePaths<CreateOrderPaymentRequestOptions, `orderPaymentRequest.amount` | `orderPaymentRequest.orderId` | `orderPaymentRequest.title`, 3>): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
12
16
  __applicationErrorsType?: CreateOrderPaymentRequestApplicationErrors;
@@ -15,9 +19,9 @@ interface CreateOrderPaymentRequestSignature {
15
19
  declare function getOrderPaymentRequest$1(httpClient: HttpClient): GetOrderPaymentRequestSignature;
16
20
  interface GetOrderPaymentRequestSignature {
17
21
  /**
18
- * Retrieves a order payment request.
19
- * @param - ID of the OrderPaymentRequest to retrieve.
20
- * @returns The requested OrderPaymentRequest.
22
+ * Retrieves an order payment request.
23
+ * @param - ID of the order payment request to retrieve.
24
+ * @returns Retrieved order payment request.
21
25
  */
22
26
  (orderPaymentRequestId: string): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
23
27
  __applicationErrorsType?: GetOrderPaymentRequestApplicationErrors;
@@ -30,7 +34,7 @@ interface UpdateOrderPaymentRequestSignature {
30
34
  *
31
35
  * Only `UNPAID` order payment requests can be updated. The `amount` can't be changed after the order payment request is created.
32
36
  * @param - Order payment request ID.
33
- * @returns Updated OrderPaymentRequest.
37
+ * @returns Updated order payment request.
34
38
  */
35
39
  (_id: string, orderPaymentRequest: UpdateOrderPaymentRequest): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
36
40
  __applicationErrorsType?: UpdateOrderPaymentRequestApplicationErrors;
@@ -42,7 +46,7 @@ interface DeleteOrderPaymentRequestSignature {
42
46
  * Deletes an order payment request.
43
47
  *
44
48
  * You can delete an order payment request in any status except `PAID`. Attempting to delete a `PAID` order payment request fails with `CANNOT_DELETE_PAID_ORDER_PAYMENT_REQUEST`.
45
- * @param - Id of the OrderPaymentRequest to delete.
49
+ * @param - ID of the order payment request to delete.
46
50
  */
47
51
  (orderPaymentRequestId: string): Promise<void & {
48
52
  __applicationErrorsType?: DeleteOrderPaymentRequestApplicationErrors;
@@ -51,8 +55,8 @@ interface DeleteOrderPaymentRequestSignature {
51
55
  declare function getOrderPaymentRequestUrl$1(httpClient: HttpClient): GetOrderPaymentRequestUrlSignature;
52
56
  interface GetOrderPaymentRequestUrlSignature {
53
57
  /**
54
- * Retrieves the order payment request page URL of a specified order payment request.
55
- * @param - Order Payment Request ID.
58
+ * Retrieves the payment page URL for an order payment request.
59
+ * @param - ID of the order payment request.
56
60
  */
57
61
  (orderPaymentRequestId: string): Promise<NonNullablePaths<GetOrderPaymentRequestURLResponse, `orderPaymentRequestUrl`, 2> & {
58
62
  __applicationErrorsType?: GetOrderPaymentRequestUrlApplicationErrors;
@@ -61,7 +65,7 @@ interface GetOrderPaymentRequestUrlSignature {
61
65
  declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
62
66
  interface UpdateExtendedFieldsSignature {
63
67
  /**
64
- * Updates extended fields of a order payment request
68
+ * Updates the extended fields of an order payment request.
65
69
  * @param - ID of the entity to update.
66
70
  * @param - Identifier for the app whose extended fields are being updated.
67
71
  */
@@ -94,11 +98,11 @@ declare const onOrderPaymentRequestCreated: BuildEventDefinition<typeof onOrderP
94
98
  */
95
99
  declare const onOrderPaymentRequestDeleted: BuildEventDefinition<typeof onOrderPaymentRequestDeleted$1> & typeof onOrderPaymentRequestDeleted$1;
96
100
  /**
97
- * Triggered when an order payment request status is updated to `"EXPIRED"`.
101
+ * Triggered when an order payment request's `status` changes to `EXPIRED`.
98
102
  */
99
103
  declare const onOrderPaymentRequestExpired: BuildEventDefinition<typeof onOrderPaymentRequestExpired$1> & typeof onOrderPaymentRequestExpired$1;
100
104
  /**
101
- * Triggered when an order payment request status is updated to `"PAID"`.
105
+ * Triggered when an order payment request's `status` changes to `PAID`.
102
106
  */
103
107
  declare const onOrderPaymentRequestPaid: BuildEventDefinition<typeof onOrderPaymentRequestPaid$1> & typeof onOrderPaymentRequestPaid$1;
104
108
  /**
@@ -106,7 +110,7 @@ declare const onOrderPaymentRequestPaid: BuildEventDefinition<typeof onOrderPaym
106
110
  */
107
111
  declare const onOrderPaymentRequestUpdated: BuildEventDefinition<typeof onOrderPaymentRequestUpdated$1> & typeof onOrderPaymentRequestUpdated$1;
108
112
  /**
109
- * Triggered when an order payment request status is updated to `"VOIDED"`.
113
+ * Triggered when an order payment request's `status` changes to `VOIDED`.
110
114
  */
111
115
  declare const onOrderPaymentRequestVoided: BuildEventDefinition<typeof onOrderPaymentRequestVoided$1> & typeof onOrderPaymentRequestVoided$1;
112
116