@wix/auto_sdk_ecom_order-payment-requests 1.0.6 → 1.0.8
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/{internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts → ecom-v1-order-payment-request-order-payment-requests.universal-BdicmKpU.d.mts} +47 -191
- package/build/{internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts → ecom-v1-order-payment-request-order-payment-requests.universal-BdicmKpU.d.ts} +47 -191
- package/build/index.d.mts +84 -0
- package/build/index.d.ts +84 -0
- package/build/index.js +640 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +607 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts → internal/ecom-v1-order-payment-request-order-payment-requests.universal-BdicmKpU.d.mts} +47 -191
- package/build/{es/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts → internal/ecom-v1-order-payment-request-order-payment-requests.universal-BdicmKpU.d.ts} +47 -191
- package/build/internal/index.d.mts +84 -0
- package/build/internal/index.d.ts +84 -0
- package/build/internal/index.js +640 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +607 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts → internal/meta.d.mts} +57 -181
- package/build/internal/{cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts → meta.d.ts} +57 -181
- package/build/internal/meta.js +418 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +385 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts → meta.d.mts} +57 -181
- package/build/{internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts → meta.d.ts} +57 -181
- package/build/meta.js +418 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +385 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +0 -11
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js +0 -17
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +0 -33
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js +0 -266
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +0 -27
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +0 -163
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +0 -76
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js +0 -52
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js +0 -24
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +0 -419
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +0 -11
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js +0 -11
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +0 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +0 -33
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js +0 -256
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +0 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +0 -27
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +0 -130
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +0 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +0 -76
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js +0 -39
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +0 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js +0 -21
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +0 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +0 -386
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +0 -11
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js +0 -17
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +0 -33
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js +0 -266
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +0 -27
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +0 -163
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +0 -76
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js +0 -52
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js +0 -24
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +0 -419
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.context.d.ts +0 -11
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js +0 -11
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.http.d.ts +0 -33
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js +0 -256
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.d.ts +0 -27
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js +0 -130
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.public.d.ts +0 -76
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js +0 -39
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js +0 -21
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js +0 -386
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ecom-v1-order-payment-request-order-payment-requests.universal.ts","../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../src/ecom-v1-order-payment-request-order-payment-requests.public.ts","../src/ecom-v1-order-payment-request-order-payment-requests.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface OrderPaymentRequest {\n /**\n * Order payment request ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Additional parameters to identify the source of the order payment request.\n * @immutable\n */\n source?: Source;\n /**\n * status.\n * @readonly\n */\n status?: Status;\n /**\n * Order ID.\n * @format GUID\n * @immutable\n */\n orderId?: string;\n /**\n * Order number.\n * @readonly\n * @maxLength 100\n */\n orderNumber?: string | null;\n /**\n * Amount to collect.\n * > **Note:** The amount can only be set once.\n * @immutable\n */\n amount?: Price;\n /**\n * Currency code. The value will always match the currency used in the order.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Payment gateway order id which is associated with this payment request\n * @readonly\n * @minLength 1\n * @maxLength 100\n */\n paymentGatewayOrderId?: string | null;\n /**\n * 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.\n * @minLength 1\n * @maxLength 200\n */\n title?: string;\n /**\n * Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.\n * @maxLength 300\n */\n description?: string | null;\n /** Image to be displayed to the customer on the payment page. */\n image?: string;\n /**\n * Time and date the order payment request expires.\n * @immutable\n */\n expirationDate?: Date | null;\n /** [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. */\n extendedFields?: ExtendedFields;\n /**\n * Date and time the OrderPaymentRequest was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the OrderPaymentRequest was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface Source {\n /**\n * App Def ID that created the order payment request.\n * @format GUID\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n appId?: string | null;\n /**\n * Reference to an ID from an external system, indicating the original source of the order payment request.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n externalId?: string;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n UNPAID = 'UNPAID',\n PAID = 'PAID',\n EXPIRED = 'EXPIRED',\n}\n\nexport interface Price {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/** Triggered when the order payment request status changes to paid */\nexport interface OrderPaymentRequestPaid {\n /** The order that was updated */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\n/** Triggered when the order payment request status changes to expired */\nexport interface OrderPaymentRequestExpired {\n /** The order that was updated */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface CreateOrderPaymentRequestRequest {\n /** OrderPaymentRequest to be created. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface CreateOrderPaymentRequestResponse {\n /** The created OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n /**\n * Order payment request URL.\n * @minLength 1\n * @maxLength 100\n */\n orderPaymentRequestUrl?: string;\n}\n\nexport interface GetOrderPaymentRequestRequest {\n /**\n * ID of the OrderPaymentRequest to retrieve.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface GetOrderPaymentRequestResponse {\n /** The requested OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface UpdateOrderPaymentRequestRequest {\n /** OrderPaymentRequest to be updated, may be partial. */\n orderPaymentRequest: OrderPaymentRequest;\n}\n\nexport interface UpdateOrderPaymentRequestResponse {\n /** Updated OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface DeleteOrderPaymentRequestRequest {\n /**\n * Id of the OrderPaymentRequest to delete.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface DeleteOrderPaymentRequestResponse {}\n\nexport interface QueryOrderPaymentRequestsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrder;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryOrderPaymentRequestsResponse {\n /**\n * List of payment requests.\n * @maxSize 1000\n */\n orderPaymentRequests?: OrderPaymentRequest[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface GetOrderPaymentRequestURLRequest {\n /**\n * Order Payment Request ID.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface GetOrderPaymentRequestURLResponse {\n /**\n * Order Payment Request URL.\n * @minLength 1\n * @maxLength 100\n */\n orderPaymentRequestUrl?: string;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** 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. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * Example: created/updated/deleted/started/completed/email_opened\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\ntype OrderPaymentRequestNonNullablePaths =\n | `source.externalId`\n | `status`\n | `orderId`\n | `amount.amount`\n | `amount.formattedAmount`\n | `currency`\n | `title`;\n\n/**\n * Creates a order payment request.\n * @public\n * @documentationMaturity preview\n * @requiredField options.orderPaymentRequest.amount\n * @requiredField options.orderPaymentRequest.orderId\n * @requiredField options.orderPaymentRequest.title\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_CREATE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @returns The created OrderPaymentRequest.\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest\n */\nexport async function createOrderPaymentRequest(\n options?: NonNullablePaths<\n CreateOrderPaymentRequestOptions,\n | `orderPaymentRequest.amount`\n | `orderPaymentRequest.orderId`\n | `orderPaymentRequest.title`\n >\n): Promise<\n NonNullablePaths<OrderPaymentRequest, OrderPaymentRequestNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n orderPaymentRequest: options?.orderPaymentRequest,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'orderPaymentRequest.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'orderPaymentRequest.image' }],\n },\n ])\n )?.orderPaymentRequest!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n orderPaymentRequest: '$[0].orderPaymentRequest',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateOrderPaymentRequestOptions {\n /** OrderPaymentRequest to be created. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\n/**\n * Retrieves a order payment request.\n * @param orderPaymentRequestId - ID of the OrderPaymentRequest to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField orderPaymentRequestId\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns The requested OrderPaymentRequest.\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest\n */\nexport async function getOrderPaymentRequest(\n orderPaymentRequestId: string\n): Promise<\n NonNullablePaths<OrderPaymentRequest, OrderPaymentRequestNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n orderPaymentRequestId: orderPaymentRequestId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'orderPaymentRequest.image' }],\n },\n ])\n )?.orderPaymentRequest!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { orderPaymentRequestId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['orderPaymentRequestId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be updated.\n * @param _id - Order payment request ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField orderPaymentRequest\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_UPDATE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @returns Updated OrderPaymentRequest.\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest\n */\nexport async function updateOrderPaymentRequest(\n _id: string,\n orderPaymentRequest: UpdateOrderPaymentRequest\n): Promise<\n NonNullablePaths<OrderPaymentRequest, OrderPaymentRequestNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n orderPaymentRequest: { ...orderPaymentRequest, id: _id },\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'orderPaymentRequest.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'orderPaymentRequest.image' }],\n },\n ])\n )?.orderPaymentRequest!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { orderPaymentRequest: '$[1]' },\n explicitPathsToArguments: { 'orderPaymentRequest.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'orderPaymentRequest']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateOrderPaymentRequest {\n /**\n * Order payment request ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Additional parameters to identify the source of the order payment request.\n * @immutable\n */\n source?: Source;\n /**\n * status.\n * @readonly\n */\n status?: Status;\n /**\n * Order ID.\n * @format GUID\n * @immutable\n */\n orderId?: string;\n /**\n * Order number.\n * @readonly\n * @maxLength 100\n */\n orderNumber?: string | null;\n /**\n * Amount to collect.\n * > **Note:** The amount can only be set once.\n * @immutable\n */\n amount?: Price;\n /**\n * Currency code. The value will always match the currency used in the order.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Payment gateway order id which is associated with this payment request\n * @readonly\n * @minLength 1\n * @maxLength 100\n */\n paymentGatewayOrderId?: string | null;\n /**\n * 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.\n * @minLength 1\n * @maxLength 200\n */\n title?: string;\n /**\n * Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.\n * @maxLength 300\n */\n description?: string | null;\n /** Image to be displayed to the customer on the payment page. */\n image?: string;\n /**\n * Time and date the order payment request expires.\n * @immutable\n */\n expirationDate?: Date | null;\n /** [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. */\n extendedFields?: ExtendedFields;\n /**\n * Date and time the OrderPaymentRequest was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the OrderPaymentRequest was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\n/**\n * Deletes a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be deleted.\n * @param orderPaymentRequestId - Id of the OrderPaymentRequest to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField orderPaymentRequestId\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_DELETE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.DeleteOrderPaymentRequest\n */\nexport async function deleteOrderPaymentRequest(\n orderPaymentRequestId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n orderPaymentRequestId: orderPaymentRequestId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { orderPaymentRequestId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['orderPaymentRequestId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Payment Requests, given the provided [paging, filtering, and sorting][1].\n *\n * Query Payment Requests runs with these defaults, which you can override:\n * - `createdDate` is sorted in DESC order\n * - `cursorPaging.limit` is 100\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and\n * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).\n * @public\n * @documentationMaturity preview\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests\n */\nexport function queryOrderPaymentRequests(): OrderPaymentRequestsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n OrderPaymentRequest,\n 'CURSOR',\n QueryOrderPaymentRequestsRequest,\n QueryOrderPaymentRequestsResponse\n >({\n func: async (payload: QueryOrderPaymentRequestsRequest) => {\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryOrderPaymentRequestsRequest['query']) => {\n const args = [query, {}] as [\n QueryOrderPaymentRequestsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryOrderPaymentRequestsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'orderPaymentRequests.image' }],\n },\n ])\n );\n\n return {\n items: transformedData?.orderPaymentRequests,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface OrderPaymentRequestsQueryResult extends QueryCursorResult {\n items: OrderPaymentRequest[];\n query: OrderPaymentRequestsQueryBuilder;\n next: () => Promise<OrderPaymentRequestsQueryResult>;\n prev: () => Promise<OrderPaymentRequestsQueryResult>;\n}\n\nexport interface OrderPaymentRequestsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'source.appId'\n | 'source.externalId'\n | 'status'\n | 'orderId'\n | 'orderNumber'\n | 'amount.amount'\n | 'paymentGatewayOrderId'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'source.appId'\n | 'source.externalId'\n | 'status'\n | 'orderId'\n | 'orderNumber'\n | 'paymentGatewayOrderId'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: 'expirationDate' | '_createdDate' | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: 'expirationDate' | '_createdDate' | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: 'expirationDate' | '_createdDate' | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: 'expirationDate' | '_createdDate' | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName:\n | '_id'\n | 'source.appId'\n | 'source.externalId'\n | 'orderId'\n | 'orderNumber'\n | 'paymentGatewayOrderId'\n | 'title'\n | 'description',\n value: string\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName:\n | '_id'\n | 'source.appId'\n | 'source.externalId'\n | 'status'\n | 'orderId'\n | 'orderNumber'\n | 'paymentGatewayOrderId'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate',\n value: any[]\n ) => OrderPaymentRequestsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'source.appId'\n | 'source.externalId'\n | 'status'\n | 'orderId'\n | 'orderNumber'\n | 'paymentGatewayOrderId'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => OrderPaymentRequestsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'source.appId'\n | 'source.externalId'\n | 'status'\n | 'orderId'\n | 'orderNumber'\n | 'paymentGatewayOrderId'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate',\n value: boolean\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n | 'status'\n | 'orderNumber'\n | 'amount.amount'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n | 'status'\n | 'orderNumber'\n | 'amount.amount'\n | 'title'\n | 'description'\n | 'expirationDate'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => OrderPaymentRequestsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => OrderPaymentRequestsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => OrderPaymentRequestsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<OrderPaymentRequestsQueryResult>;\n}\n\n/**\n * Retrieves the order payment request page URL of a specified order payment request.\n * @param orderPaymentRequestId - Order Payment Request ID.\n * @public\n * @documentationMaturity preview\n * @requiredField orderPaymentRequestId\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL\n */\nexport async function getOrderPaymentRequestUrl(\n orderPaymentRequestId: string\n): Promise<\n NonNullablePaths<GetOrderPaymentRequestURLResponse, `orderPaymentRequestUrl`>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n orderPaymentRequestId: orderPaymentRequestId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { orderPaymentRequestId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['orderPaymentRequestId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates extended fields of a order payment request\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId ECOM.ORDER_PAYMENT_REQUEST_UPDATE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n): Promise<\n NonNullablePaths<\n UpdateExtendedFieldsResponse,\n {\n [P in OrderPaymentRequestNonNullablePaths]: `orderPaymentRequest.${P}`;\n }[OrderPaymentRequestNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'orderPaymentRequest.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** 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. */\n namespaceData: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/order-payment-request',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_order-payment-requests';\n\n/** Creates a order payment request. */\nexport function createOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __createOrderPaymentRequest({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createOrderPaymentRequest;\n}\n\n/** Retrieves a order payment request. */\nexport function getOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequestId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOrderPaymentRequest;\n}\n\n/**\n * Updates a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be updated.\n */\nexport function updateOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateOrderPaymentRequest({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateOrderPaymentRequest;\n}\n\n/**\n * Deletes a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be deleted.\n */\nexport function deleteOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.DeleteOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequestId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteOrderPaymentRequest;\n}\n\n/**\n * Retrieves a list of Payment Requests, given the provided [paging, filtering, and sorting][1].\n *\n * Query Payment Requests runs with these defaults, which you can override:\n * - `createdDate` is sorted in DESC order\n * - `cursorPaging.limit` is 100\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and\n * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).\n */\nexport function queryOrderPaymentRequests(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryOrderPaymentRequests({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequests.expirationDate' },\n { path: 'orderPaymentRequests.createdDate' },\n { path: 'orderPaymentRequests.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryOrderPaymentRequests;\n}\n\n/** Retrieves the order payment request page URL of a specified order payment request. */\nexport function getOrderPaymentRequestUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrderPaymentRequestUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/url', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getOrderPaymentRequestUrl;\n}\n\n/** Updates extended fields of a order payment request */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{id}/update-extended-fields',\n data: payload,\n host,\n }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateOrderPaymentRequestOptions,\n GetOrderPaymentRequestURLResponse,\n OrderPaymentRequest,\n OrderPaymentRequestsQueryBuilder,\n UpdateExtendedFieldsOptions,\n UpdateExtendedFieldsResponse,\n UpdateOrderPaymentRequest,\n createOrderPaymentRequest as universalCreateOrderPaymentRequest,\n deleteOrderPaymentRequest as universalDeleteOrderPaymentRequest,\n getOrderPaymentRequest as universalGetOrderPaymentRequest,\n getOrderPaymentRequestUrl as universalGetOrderPaymentRequestUrl,\n queryOrderPaymentRequests as universalQueryOrderPaymentRequests,\n updateExtendedFields as universalUpdateExtendedFields,\n updateOrderPaymentRequest as universalUpdateOrderPaymentRequest,\n} from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createOrderPaymentRequest(\n httpClient: HttpClient\n): CreateOrderPaymentRequestSignature {\n return (\n options?: NonNullablePaths<\n CreateOrderPaymentRequestOptions,\n | `orderPaymentRequest.amount`\n | `orderPaymentRequest.orderId`\n | `orderPaymentRequest.title`\n >\n ) =>\n universalCreateOrderPaymentRequest(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateOrderPaymentRequestSignature {\n /**\n * Creates a order payment request.\n * @returns The created OrderPaymentRequest.\n */\n (\n options?: CreateOrderPaymentRequestOptions | undefined\n ): Promise<OrderPaymentRequest>;\n}\n\nexport function getOrderPaymentRequest(\n httpClient: HttpClient\n): GetOrderPaymentRequestSignature {\n return (orderPaymentRequestId: string) =>\n universalGetOrderPaymentRequest(\n orderPaymentRequestId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetOrderPaymentRequestSignature {\n /**\n * Retrieves a order payment request.\n * @param - ID of the OrderPaymentRequest to retrieve.\n * @returns The requested OrderPaymentRequest.\n */\n (orderPaymentRequestId: string): Promise<OrderPaymentRequest>;\n}\n\nexport function updateOrderPaymentRequest(\n httpClient: HttpClient\n): UpdateOrderPaymentRequestSignature {\n return (_id: string, orderPaymentRequest: UpdateOrderPaymentRequest) =>\n universalUpdateOrderPaymentRequest(\n _id,\n orderPaymentRequest,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateOrderPaymentRequestSignature {\n /**\n * Updates a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be updated.\n * @param - Order payment request ID.\n * @returns Updated OrderPaymentRequest.\n */\n (\n _id: string,\n orderPaymentRequest: UpdateOrderPaymentRequest\n ): Promise<OrderPaymentRequest>;\n}\n\nexport function deleteOrderPaymentRequest(\n httpClient: HttpClient\n): DeleteOrderPaymentRequestSignature {\n return (orderPaymentRequestId: string) =>\n universalDeleteOrderPaymentRequest(\n orderPaymentRequestId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteOrderPaymentRequestSignature {\n /**\n * Deletes a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be deleted.\n * @param - Id of the OrderPaymentRequest to delete.\n */\n (orderPaymentRequestId: string): Promise<void>;\n}\n\nexport function queryOrderPaymentRequests(\n httpClient: HttpClient\n): QueryOrderPaymentRequestsSignature {\n return () =>\n universalQueryOrderPaymentRequests(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryOrderPaymentRequestsSignature {\n /**\n * Retrieves a list of Payment Requests, given the provided [paging, filtering, and sorting][1].\n *\n * Query Payment Requests runs with these defaults, which you can override:\n * - `createdDate` is sorted in DESC order\n * - `cursorPaging.limit` is 100\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and\n * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).\n */\n (): OrderPaymentRequestsQueryBuilder;\n}\n\nexport function getOrderPaymentRequestUrl(\n httpClient: HttpClient\n): GetOrderPaymentRequestUrlSignature {\n return (orderPaymentRequestId: string) =>\n universalGetOrderPaymentRequestUrl(\n orderPaymentRequestId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetOrderPaymentRequestUrlSignature {\n /**\n * Retrieves the order payment request page URL of a specified order payment request.\n * @param - Order Payment Request ID.\n */\n (orderPaymentRequestId: string): Promise<GetOrderPaymentRequestURLResponse>;\n}\n\nexport function updateExtendedFields(\n httpClient: HttpClient\n): UpdateExtendedFieldsSignature {\n return (\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n ) =>\n universalUpdateExtendedFields(\n _id,\n namespace,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateExtendedFieldsSignature {\n /**\n * Updates extended fields of a order payment request\n * @param - ID of the entity to update.\n * @param - Identifier for the app whose extended fields are being updated.\n */\n (\n _id: string,\n namespace: string,\n options: UpdateExtendedFieldsOptions\n ): Promise<UpdateExtendedFieldsResponse>;\n}\n\nexport {\n ActionEvent,\n CreateOrderPaymentRequestOptions,\n CreateOrderPaymentRequestRequest,\n CreateOrderPaymentRequestResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteOrderPaymentRequestRequest,\n DeleteOrderPaymentRequestResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetOrderPaymentRequestRequest,\n GetOrderPaymentRequestResponse,\n GetOrderPaymentRequestURLRequest,\n GetOrderPaymentRequestURLResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n OrderPaymentRequest,\n OrderPaymentRequestExpired,\n OrderPaymentRequestPaid,\n OrderPaymentRequestsQueryBuilder,\n OrderPaymentRequestsQueryResult,\n Price,\n QueryOrderPaymentRequestsRequest,\n QueryOrderPaymentRequestsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n Source,\n Status,\n UpdateExtendedFieldsOptions,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n UpdateOrderPaymentRequest,\n UpdateOrderPaymentRequestRequest,\n UpdateOrderPaymentRequestResponse,\n WebhookIdentityType,\n} from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n","import {\n createOrderPaymentRequest as publicCreateOrderPaymentRequest,\n getOrderPaymentRequest as publicGetOrderPaymentRequest,\n updateOrderPaymentRequest as publicUpdateOrderPaymentRequest,\n deleteOrderPaymentRequest as publicDeleteOrderPaymentRequest,\n queryOrderPaymentRequests as publicQueryOrderPaymentRequests,\n getOrderPaymentRequestUrl as publicGetOrderPaymentRequestUrl,\n updateExtendedFields as publicUpdateExtendedFields,\n} from './ecom-v1-order-payment-request-order-payment-requests.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createOrderPaymentRequest: MaybeContext<\n BuildRESTFunction<typeof publicCreateOrderPaymentRequest> &\n typeof publicCreateOrderPaymentRequest\n> = /*#__PURE__*/ createRESTModule(publicCreateOrderPaymentRequest);\nexport const getOrderPaymentRequest: MaybeContext<\n BuildRESTFunction<typeof publicGetOrderPaymentRequest> &\n typeof publicGetOrderPaymentRequest\n> = /*#__PURE__*/ createRESTModule(publicGetOrderPaymentRequest);\nexport const updateOrderPaymentRequest: MaybeContext<\n BuildRESTFunction<typeof publicUpdateOrderPaymentRequest> &\n typeof publicUpdateOrderPaymentRequest\n> = /*#__PURE__*/ createRESTModule(publicUpdateOrderPaymentRequest);\nexport const deleteOrderPaymentRequest: MaybeContext<\n BuildRESTFunction<typeof publicDeleteOrderPaymentRequest> &\n typeof publicDeleteOrderPaymentRequest\n> = /*#__PURE__*/ createRESTModule(publicDeleteOrderPaymentRequest);\nexport const queryOrderPaymentRequests: MaybeContext<\n BuildRESTFunction<typeof publicQueryOrderPaymentRequests> &\n typeof publicQueryOrderPaymentRequests\n> = /*#__PURE__*/ createRESTModule(publicQueryOrderPaymentRequests);\nexport const getOrderPaymentRequestUrl: MaybeContext<\n BuildRESTFunction<typeof publicGetOrderPaymentRequestUrl> &\n typeof publicGetOrderPaymentRequestUrl\n> = /*#__PURE__*/ createRESTModule(publicGetOrderPaymentRequestUrl);\nexport const updateExtendedFields: MaybeContext<\n BuildRESTFunction<typeof publicUpdateExtendedFields> &\n typeof publicUpdateExtendedFields\n> = /*#__PURE__*/ createRESTModule(publicUpdateExtendedFields);\n\nexport {\n Status,\n SortOrder,\n WebhookIdentityType,\n} from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\nexport {\n OrderPaymentRequest,\n Source,\n Price,\n ExtendedFields,\n OrderPaymentRequestPaid,\n OrderPaymentRequestExpired,\n CreateOrderPaymentRequestRequest,\n CreateOrderPaymentRequestResponse,\n GetOrderPaymentRequestRequest,\n GetOrderPaymentRequestResponse,\n UpdateOrderPaymentRequestRequest,\n UpdateOrderPaymentRequestResponse,\n DeleteOrderPaymentRequestRequest,\n DeleteOrderPaymentRequestResponse,\n QueryOrderPaymentRequestsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryOrderPaymentRequestsResponse,\n CursorPagingMetadata,\n Cursors,\n GetOrderPaymentRequestURLRequest,\n GetOrderPaymentRequestURLResponse,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n CreateOrderPaymentRequestOptions,\n UpdateOrderPaymentRequest,\n OrderPaymentRequestsQueryResult,\n OrderPaymentRequestsQueryBuilder,\n UpdateExtendedFieldsOptions,\n} from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACt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+B;AAC3D,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,wBAGK,iCAAiBA,qBAA0B;","names":["payload","transformPaths","Status","SortOrder","WebhookIdentityType","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface OrderPaymentRequest {
|
|
1
|
+
interface OrderPaymentRequest {
|
|
3
2
|
/**
|
|
4
3
|
* Order payment request ID.
|
|
5
4
|
* @format GUID
|
|
@@ -78,7 +77,7 @@ export interface OrderPaymentRequest {
|
|
|
78
77
|
*/
|
|
79
78
|
_updatedDate?: Date | null;
|
|
80
79
|
}
|
|
81
|
-
|
|
80
|
+
interface Source {
|
|
82
81
|
/**
|
|
83
82
|
* App Def ID that created the order payment request.
|
|
84
83
|
* @format GUID
|
|
@@ -95,13 +94,13 @@ export interface Source {
|
|
|
95
94
|
*/
|
|
96
95
|
externalId?: string;
|
|
97
96
|
}
|
|
98
|
-
|
|
97
|
+
declare enum Status {
|
|
99
98
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
100
99
|
UNPAID = "UNPAID",
|
|
101
100
|
PAID = "PAID",
|
|
102
101
|
EXPIRED = "EXPIRED"
|
|
103
102
|
}
|
|
104
|
-
|
|
103
|
+
interface Price {
|
|
105
104
|
/**
|
|
106
105
|
* Amount.
|
|
107
106
|
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
@@ -113,7 +112,7 @@ export interface Price {
|
|
|
113
112
|
*/
|
|
114
113
|
formattedAmount?: string;
|
|
115
114
|
}
|
|
116
|
-
|
|
115
|
+
interface ExtendedFields {
|
|
117
116
|
/**
|
|
118
117
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
119
118
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -125,20 +124,20 @@ export interface ExtendedFields {
|
|
|
125
124
|
namespaces?: Record<string, Record<string, any>>;
|
|
126
125
|
}
|
|
127
126
|
/** Triggered when the order payment request status changes to paid */
|
|
128
|
-
|
|
127
|
+
interface OrderPaymentRequestPaid {
|
|
129
128
|
/** The order that was updated */
|
|
130
129
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
131
130
|
}
|
|
132
131
|
/** Triggered when the order payment request status changes to expired */
|
|
133
|
-
|
|
132
|
+
interface OrderPaymentRequestExpired {
|
|
134
133
|
/** The order that was updated */
|
|
135
134
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
136
135
|
}
|
|
137
|
-
|
|
136
|
+
interface CreateOrderPaymentRequestRequest {
|
|
138
137
|
/** OrderPaymentRequest to be created. */
|
|
139
138
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
140
139
|
}
|
|
141
|
-
|
|
140
|
+
interface CreateOrderPaymentRequestResponse {
|
|
142
141
|
/** The created OrderPaymentRequest. */
|
|
143
142
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
144
143
|
/**
|
|
@@ -148,39 +147,39 @@ export interface CreateOrderPaymentRequestResponse {
|
|
|
148
147
|
*/
|
|
149
148
|
orderPaymentRequestUrl?: string;
|
|
150
149
|
}
|
|
151
|
-
|
|
150
|
+
interface GetOrderPaymentRequestRequest {
|
|
152
151
|
/**
|
|
153
152
|
* ID of the OrderPaymentRequest to retrieve.
|
|
154
153
|
* @format GUID
|
|
155
154
|
*/
|
|
156
155
|
orderPaymentRequestId: string;
|
|
157
156
|
}
|
|
158
|
-
|
|
157
|
+
interface GetOrderPaymentRequestResponse {
|
|
159
158
|
/** The requested OrderPaymentRequest. */
|
|
160
159
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
161
160
|
}
|
|
162
|
-
|
|
161
|
+
interface UpdateOrderPaymentRequestRequest {
|
|
163
162
|
/** OrderPaymentRequest to be updated, may be partial. */
|
|
164
163
|
orderPaymentRequest: OrderPaymentRequest;
|
|
165
164
|
}
|
|
166
|
-
|
|
165
|
+
interface UpdateOrderPaymentRequestResponse {
|
|
167
166
|
/** Updated OrderPaymentRequest. */
|
|
168
167
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
169
168
|
}
|
|
170
|
-
|
|
169
|
+
interface DeleteOrderPaymentRequestRequest {
|
|
171
170
|
/**
|
|
172
171
|
* Id of the OrderPaymentRequest to delete.
|
|
173
172
|
* @format GUID
|
|
174
173
|
*/
|
|
175
174
|
orderPaymentRequestId: string;
|
|
176
175
|
}
|
|
177
|
-
|
|
176
|
+
interface DeleteOrderPaymentRequestResponse {
|
|
178
177
|
}
|
|
179
|
-
|
|
178
|
+
interface QueryOrderPaymentRequestsRequest {
|
|
180
179
|
/** WQL expression. */
|
|
181
180
|
query?: CursorQuery;
|
|
182
181
|
}
|
|
183
|
-
|
|
182
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
184
183
|
/** 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`. */
|
|
185
184
|
cursorPaging?: CursorPaging;
|
|
186
185
|
/**
|
|
@@ -200,11 +199,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
200
199
|
sort?: Sorting[];
|
|
201
200
|
}
|
|
202
201
|
/** @oneof */
|
|
203
|
-
|
|
202
|
+
interface CursorQueryPagingMethodOneOf {
|
|
204
203
|
/** 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`. */
|
|
205
204
|
cursorPaging?: CursorPaging;
|
|
206
205
|
}
|
|
207
|
-
|
|
206
|
+
interface Sorting {
|
|
208
207
|
/**
|
|
209
208
|
* Name of the field to sort by.
|
|
210
209
|
* @maxLength 512
|
|
@@ -213,11 +212,11 @@ export interface Sorting {
|
|
|
213
212
|
/** Sort order. */
|
|
214
213
|
order?: SortOrder;
|
|
215
214
|
}
|
|
216
|
-
|
|
215
|
+
declare enum SortOrder {
|
|
217
216
|
ASC = "ASC",
|
|
218
217
|
DESC = "DESC"
|
|
219
218
|
}
|
|
220
|
-
|
|
219
|
+
interface CursorPaging {
|
|
221
220
|
/**
|
|
222
221
|
* Maximum number of items to return in the results.
|
|
223
222
|
* @max 100
|
|
@@ -232,7 +231,7 @@ export interface CursorPaging {
|
|
|
232
231
|
*/
|
|
233
232
|
cursor?: string | null;
|
|
234
233
|
}
|
|
235
|
-
|
|
234
|
+
interface QueryOrderPaymentRequestsResponse {
|
|
236
235
|
/**
|
|
237
236
|
* List of payment requests.
|
|
238
237
|
* @maxSize 1000
|
|
@@ -241,7 +240,7 @@ export interface QueryOrderPaymentRequestsResponse {
|
|
|
241
240
|
/** Paging metadata */
|
|
242
241
|
pagingMetadata?: CursorPagingMetadata;
|
|
243
242
|
}
|
|
244
|
-
|
|
243
|
+
interface CursorPagingMetadata {
|
|
245
244
|
/** Number of items returned in the response. */
|
|
246
245
|
count?: number | null;
|
|
247
246
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -254,7 +253,7 @@ export interface CursorPagingMetadata {
|
|
|
254
253
|
*/
|
|
255
254
|
hasNext?: boolean | null;
|
|
256
255
|
}
|
|
257
|
-
|
|
256
|
+
interface Cursors {
|
|
258
257
|
/**
|
|
259
258
|
* Cursor string pointing to the next page in the list of results.
|
|
260
259
|
* @maxLength 16000
|
|
@@ -266,14 +265,14 @@ export interface Cursors {
|
|
|
266
265
|
*/
|
|
267
266
|
prev?: string | null;
|
|
268
267
|
}
|
|
269
|
-
|
|
268
|
+
interface GetOrderPaymentRequestURLRequest {
|
|
270
269
|
/**
|
|
271
270
|
* Order Payment Request ID.
|
|
272
271
|
* @format GUID
|
|
273
272
|
*/
|
|
274
273
|
orderPaymentRequestId: string;
|
|
275
274
|
}
|
|
276
|
-
|
|
275
|
+
interface GetOrderPaymentRequestURLResponse {
|
|
277
276
|
/**
|
|
278
277
|
* Order Payment Request URL.
|
|
279
278
|
* @minLength 1
|
|
@@ -281,7 +280,7 @@ export interface GetOrderPaymentRequestURLResponse {
|
|
|
281
280
|
*/
|
|
282
281
|
orderPaymentRequestUrl?: string;
|
|
283
282
|
}
|
|
284
|
-
|
|
283
|
+
interface UpdateExtendedFieldsRequest {
|
|
285
284
|
/** ID of the entity to update. */
|
|
286
285
|
_id: string;
|
|
287
286
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -289,11 +288,11 @@ export interface UpdateExtendedFieldsRequest {
|
|
|
289
288
|
/** 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. */
|
|
290
289
|
namespaceData: Record<string, any> | null;
|
|
291
290
|
}
|
|
292
|
-
|
|
291
|
+
interface UpdateExtendedFieldsResponse {
|
|
293
292
|
/** Updated OrderPaymentRequest. */
|
|
294
293
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
295
294
|
}
|
|
296
|
-
|
|
295
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
297
296
|
createdEvent?: EntityCreatedEvent;
|
|
298
297
|
updatedEvent?: EntityUpdatedEvent;
|
|
299
298
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -336,19 +335,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
336
335
|
entityEventSequence?: string | null;
|
|
337
336
|
}
|
|
338
337
|
/** @oneof */
|
|
339
|
-
|
|
338
|
+
interface DomainEventBodyOneOf {
|
|
340
339
|
createdEvent?: EntityCreatedEvent;
|
|
341
340
|
updatedEvent?: EntityUpdatedEvent;
|
|
342
341
|
deletedEvent?: EntityDeletedEvent;
|
|
343
342
|
actionEvent?: ActionEvent;
|
|
344
343
|
}
|
|
345
|
-
|
|
344
|
+
interface EntityCreatedEvent {
|
|
346
345
|
entity?: string;
|
|
347
346
|
}
|
|
348
|
-
|
|
347
|
+
interface RestoreInfo {
|
|
349
348
|
deletedDate?: Date | null;
|
|
350
349
|
}
|
|
351
|
-
|
|
350
|
+
interface EntityUpdatedEvent {
|
|
352
351
|
/**
|
|
353
352
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
354
353
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -356,16 +355,16 @@ export interface EntityUpdatedEvent {
|
|
|
356
355
|
*/
|
|
357
356
|
currentEntity?: string;
|
|
358
357
|
}
|
|
359
|
-
|
|
358
|
+
interface EntityDeletedEvent {
|
|
360
359
|
/** Entity that was deleted */
|
|
361
360
|
deletedEntity?: string | null;
|
|
362
361
|
}
|
|
363
|
-
|
|
362
|
+
interface ActionEvent {
|
|
364
363
|
body?: string;
|
|
365
364
|
}
|
|
366
|
-
|
|
365
|
+
interface Empty {
|
|
367
366
|
}
|
|
368
|
-
|
|
367
|
+
interface MessageEnvelope {
|
|
369
368
|
/**
|
|
370
369
|
* App instance ID.
|
|
371
370
|
* @format GUID
|
|
@@ -381,7 +380,7 @@ export interface MessageEnvelope {
|
|
|
381
380
|
/** Stringify payload. */
|
|
382
381
|
data?: string;
|
|
383
382
|
}
|
|
384
|
-
|
|
383
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
385
384
|
/**
|
|
386
385
|
* ID of a site visitor that has not logged in to the site.
|
|
387
386
|
* @format GUID
|
|
@@ -406,7 +405,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
406
405
|
identityType?: WebhookIdentityType;
|
|
407
406
|
}
|
|
408
407
|
/** @oneof */
|
|
409
|
-
|
|
408
|
+
interface IdentificationDataIdOneOf {
|
|
410
409
|
/**
|
|
411
410
|
* ID of a site visitor that has not logged in to the site.
|
|
412
411
|
* @format GUID
|
|
@@ -428,78 +427,18 @@ export interface IdentificationDataIdOneOf {
|
|
|
428
427
|
*/
|
|
429
428
|
appId?: string;
|
|
430
429
|
}
|
|
431
|
-
|
|
430
|
+
declare enum WebhookIdentityType {
|
|
432
431
|
UNKNOWN = "UNKNOWN",
|
|
433
432
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
434
433
|
MEMBER = "MEMBER",
|
|
435
434
|
WIX_USER = "WIX_USER",
|
|
436
435
|
APP = "APP"
|
|
437
436
|
}
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Creates a order payment request.
|
|
441
|
-
* @public
|
|
442
|
-
* @documentationMaturity preview
|
|
443
|
-
* @requiredField options.orderPaymentRequest.amount
|
|
444
|
-
* @requiredField options.orderPaymentRequest.orderId
|
|
445
|
-
* @requiredField options.orderPaymentRequest.title
|
|
446
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_CREATE
|
|
447
|
-
* @permissionScope Manage Stores - all permissions
|
|
448
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
449
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
450
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
451
|
-
* @permissionScope Picasso private app mega scope
|
|
452
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
453
|
-
* @applicableIdentity APP
|
|
454
|
-
* @returns The created OrderPaymentRequest.
|
|
455
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest
|
|
456
|
-
*/
|
|
457
|
-
export declare function createOrderPaymentRequest(options?: NonNullablePaths<CreateOrderPaymentRequestOptions, `orderPaymentRequest.amount` | `orderPaymentRequest.orderId` | `orderPaymentRequest.title`>): Promise<NonNullablePaths<OrderPaymentRequest, OrderPaymentRequestNonNullablePaths>>;
|
|
458
|
-
export interface CreateOrderPaymentRequestOptions {
|
|
437
|
+
interface CreateOrderPaymentRequestOptions {
|
|
459
438
|
/** OrderPaymentRequest to be created. */
|
|
460
439
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
461
440
|
}
|
|
462
|
-
|
|
463
|
-
* Retrieves a order payment request.
|
|
464
|
-
* @param orderPaymentRequestId - ID of the OrderPaymentRequest to retrieve.
|
|
465
|
-
* @public
|
|
466
|
-
* @documentationMaturity preview
|
|
467
|
-
* @requiredField orderPaymentRequestId
|
|
468
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ
|
|
469
|
-
* @permissionScope Manage Stores - all permissions
|
|
470
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
471
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
472
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
473
|
-
* @permissionScope Picasso private app mega scope
|
|
474
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
475
|
-
* @applicableIdentity APP
|
|
476
|
-
* @applicableIdentity VISITOR
|
|
477
|
-
* @returns The requested OrderPaymentRequest.
|
|
478
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest
|
|
479
|
-
*/
|
|
480
|
-
export declare function getOrderPaymentRequest(orderPaymentRequestId: string): Promise<NonNullablePaths<OrderPaymentRequest, OrderPaymentRequestNonNullablePaths>>;
|
|
481
|
-
/**
|
|
482
|
-
* Updates a order payment request.
|
|
483
|
-
*
|
|
484
|
-
* Please note that only `UNPAID` payment requests can be updated.
|
|
485
|
-
* @param _id - Order payment request ID.
|
|
486
|
-
* @public
|
|
487
|
-
* @documentationMaturity preview
|
|
488
|
-
* @requiredField _id
|
|
489
|
-
* @requiredField orderPaymentRequest
|
|
490
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_UPDATE
|
|
491
|
-
* @permissionScope Manage Stores - all permissions
|
|
492
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
493
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
494
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
495
|
-
* @permissionScope Picasso private app mega scope
|
|
496
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
497
|
-
* @applicableIdentity APP
|
|
498
|
-
* @returns Updated OrderPaymentRequest.
|
|
499
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest
|
|
500
|
-
*/
|
|
501
|
-
export declare function updateOrderPaymentRequest(_id: string, orderPaymentRequest: UpdateOrderPaymentRequest): Promise<NonNullablePaths<OrderPaymentRequest, OrderPaymentRequestNonNullablePaths>>;
|
|
502
|
-
export interface UpdateOrderPaymentRequest {
|
|
441
|
+
interface UpdateOrderPaymentRequest {
|
|
503
442
|
/**
|
|
504
443
|
* Order payment request ID.
|
|
505
444
|
* @format GUID
|
|
@@ -578,49 +517,6 @@ export interface UpdateOrderPaymentRequest {
|
|
|
578
517
|
*/
|
|
579
518
|
_updatedDate?: Date | null;
|
|
580
519
|
}
|
|
581
|
-
/**
|
|
582
|
-
* Deletes a order payment request.
|
|
583
|
-
*
|
|
584
|
-
* Please note that only `UNPAID` payment requests can be deleted.
|
|
585
|
-
* @param orderPaymentRequestId - Id of the OrderPaymentRequest to delete.
|
|
586
|
-
* @public
|
|
587
|
-
* @documentationMaturity preview
|
|
588
|
-
* @requiredField orderPaymentRequestId
|
|
589
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_DELETE
|
|
590
|
-
* @permissionScope Manage Stores - all permissions
|
|
591
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
592
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
593
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
594
|
-
* @permissionScope Picasso private app mega scope
|
|
595
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
596
|
-
* @applicableIdentity APP
|
|
597
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.DeleteOrderPaymentRequest
|
|
598
|
-
*/
|
|
599
|
-
export declare function deleteOrderPaymentRequest(orderPaymentRequestId: string): Promise<void>;
|
|
600
|
-
/**
|
|
601
|
-
* Retrieves a list of Payment Requests, given the provided [paging, filtering, and sorting][1].
|
|
602
|
-
*
|
|
603
|
-
* Query Payment Requests runs with these defaults, which you can override:
|
|
604
|
-
* - `createdDate` is sorted in DESC order
|
|
605
|
-
* - `cursorPaging.limit` is 100
|
|
606
|
-
*
|
|
607
|
-
* To learn about working with _Query_ endpoints, see
|
|
608
|
-
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and
|
|
609
|
-
* [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
610
|
-
* @public
|
|
611
|
-
* @documentationMaturity preview
|
|
612
|
-
* @permissionScope Manage Stores - all permissions
|
|
613
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
614
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
615
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
616
|
-
* @permissionScope Picasso private app mega scope
|
|
617
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
618
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ
|
|
619
|
-
* @applicableIdentity APP
|
|
620
|
-
* @applicableIdentity VISITOR
|
|
621
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests
|
|
622
|
-
*/
|
|
623
|
-
export declare function queryOrderPaymentRequests(): OrderPaymentRequestsQueryBuilder;
|
|
624
520
|
interface QueryCursorResult {
|
|
625
521
|
cursors: Cursors;
|
|
626
522
|
hasNext: () => boolean;
|
|
@@ -628,13 +524,13 @@ interface QueryCursorResult {
|
|
|
628
524
|
length: number;
|
|
629
525
|
pageSize: number;
|
|
630
526
|
}
|
|
631
|
-
|
|
527
|
+
interface OrderPaymentRequestsQueryResult extends QueryCursorResult {
|
|
632
528
|
items: OrderPaymentRequest[];
|
|
633
529
|
query: OrderPaymentRequestsQueryBuilder;
|
|
634
530
|
next: () => Promise<OrderPaymentRequestsQueryResult>;
|
|
635
531
|
prev: () => Promise<OrderPaymentRequestsQueryResult>;
|
|
636
532
|
}
|
|
637
|
-
|
|
533
|
+
interface OrderPaymentRequestsQueryBuilder {
|
|
638
534
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
639
535
|
* @param value - Value to compare against.
|
|
640
536
|
* @documentationMaturity preview
|
|
@@ -698,49 +594,9 @@ export interface OrderPaymentRequestsQueryBuilder {
|
|
|
698
594
|
/** @documentationMaturity preview */
|
|
699
595
|
find: () => Promise<OrderPaymentRequestsQueryResult>;
|
|
700
596
|
}
|
|
701
|
-
|
|
702
|
-
* Retrieves the order payment request page URL of a specified order payment request.
|
|
703
|
-
* @param orderPaymentRequestId - Order Payment Request ID.
|
|
704
|
-
* @public
|
|
705
|
-
* @documentationMaturity preview
|
|
706
|
-
* @requiredField orderPaymentRequestId
|
|
707
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ
|
|
708
|
-
* @permissionScope Manage Stores - all permissions
|
|
709
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
710
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
711
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
712
|
-
* @permissionScope Picasso private app mega scope
|
|
713
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
714
|
-
* @applicableIdentity APP
|
|
715
|
-
* @applicableIdentity VISITOR
|
|
716
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL
|
|
717
|
-
*/
|
|
718
|
-
export declare function getOrderPaymentRequestUrl(orderPaymentRequestId: string): Promise<NonNullablePaths<GetOrderPaymentRequestURLResponse, `orderPaymentRequestUrl`>>;
|
|
719
|
-
/**
|
|
720
|
-
* Updates extended fields of a order payment request
|
|
721
|
-
* @param _id - ID of the entity to update.
|
|
722
|
-
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
723
|
-
* @public
|
|
724
|
-
* @documentationMaturity preview
|
|
725
|
-
* @requiredField _id
|
|
726
|
-
* @requiredField namespace
|
|
727
|
-
* @requiredField options
|
|
728
|
-
* @requiredField options.namespaceData
|
|
729
|
-
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_UPDATE
|
|
730
|
-
* @permissionScope Manage Stores - all permissions
|
|
731
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
732
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
733
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
734
|
-
* @permissionScope Picasso private app mega scope
|
|
735
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
736
|
-
* @applicableIdentity APP
|
|
737
|
-
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields
|
|
738
|
-
*/
|
|
739
|
-
export declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
|
|
740
|
-
[P in OrderPaymentRequestNonNullablePaths]: `orderPaymentRequest.${P}`;
|
|
741
|
-
}[OrderPaymentRequestNonNullablePaths]>>;
|
|
742
|
-
export interface UpdateExtendedFieldsOptions {
|
|
597
|
+
interface UpdateExtendedFieldsOptions {
|
|
743
598
|
/** 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. */
|
|
744
599
|
namespaceData: Record<string, any> | null;
|
|
745
600
|
}
|
|
746
|
-
|
|
601
|
+
|
|
602
|
+
export { type EntityUpdatedEvent as A, type EntityDeletedEvent as B, type CreateOrderPaymentRequestOptions as C, type DeleteOrderPaymentRequestRequest as D, type ExtendedFields as E, type ActionEvent as F, type GetOrderPaymentRequestURLResponse as G, type Empty as H, type IdentificationData as I, type IdentificationDataIdOneOf as J, type OrderPaymentRequestsQueryResult as K, type MessageEnvelope as M, type OrderPaymentRequest as O, type Price as P, type QueryOrderPaymentRequestsRequest as Q, type RestoreInfo as R, Status as S, type UpdateOrderPaymentRequest as U, WebhookIdentityType as W, type OrderPaymentRequestsQueryBuilder as a, type UpdateExtendedFieldsOptions as b, type UpdateExtendedFieldsResponse as c, SortOrder as d, type Source as e, type OrderPaymentRequestPaid as f, type OrderPaymentRequestExpired as g, type CreateOrderPaymentRequestRequest as h, type CreateOrderPaymentRequestResponse as i, type GetOrderPaymentRequestRequest as j, type GetOrderPaymentRequestResponse as k, type UpdateOrderPaymentRequestRequest as l, type UpdateOrderPaymentRequestResponse as m, type DeleteOrderPaymentRequestResponse as n, type CursorQuery as o, type CursorQueryPagingMethodOneOf as p, type Sorting as q, type CursorPaging as r, type QueryOrderPaymentRequestsResponse as s, type CursorPagingMetadata as t, type Cursors as u, type GetOrderPaymentRequestURLRequest as v, type UpdateExtendedFieldsRequest as w, type DomainEvent as x, type DomainEventBodyOneOf as y, type EntityCreatedEvent as z };
|