@wix/auto_sdk_ecom_order-payment-requests 1.0.19 → 1.0.20
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/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.mts → ecom-v1-order-payment-request-order-payment-requests.universal-BpikSM2h.d.mts} +24 -9
- package/build/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.ts → ecom-v1-order-payment-request-order-payment-requests.universal-BpikSM2h.d.ts} +24 -9
- package/build/index.d.mts +15 -4
- package/build/index.d.ts +15 -4
- package/build/index.js +53 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +51 -1
- package/build/index.mjs.map +1 -1
- package/build/internal/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.mts → ecom-v1-order-payment-request-order-payment-requests.universal-BpikSM2h.d.mts} +24 -9
- package/build/internal/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.ts → ecom-v1-order-payment-request-order-payment-requests.universal-BpikSM2h.d.ts} +24 -9
- package/build/internal/index.d.mts +15 -4
- package/build/internal/index.d.ts +15 -4
- package/build/internal/index.js +53 -2
- package/build/internal/index.js.map +1 -1
- package/build/internal/index.mjs +51 -1
- package/build/internal/index.mjs.map +1 -1
- package/build/internal/meta.d.mts +28 -17
- package/build/internal/meta.d.ts +28 -17
- package/build/internal/meta.js +38 -2
- package/build/internal/meta.js.map +1 -1
- package/build/internal/meta.mjs +36 -1
- package/build/internal/meta.mjs.map +1 -1
- package/build/meta.d.mts +28 -17
- package/build/meta.d.ts +28 -17
- package/build/meta.js +38 -2
- package/build/meta.js.map +1 -1
- package/build/meta.mjs +36 -1
- package/build/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/internal/meta.js
CHANGED
|
@@ -26,7 +26,8 @@ __export(meta_exports, {
|
|
|
26
26
|
getOrderPaymentRequestUrl: () => getOrderPaymentRequestUrl2,
|
|
27
27
|
queryOrderPaymentRequests: () => queryOrderPaymentRequests2,
|
|
28
28
|
updateExtendedFields: () => updateExtendedFields2,
|
|
29
|
-
updateOrderPaymentRequest: () => updateOrderPaymentRequest2
|
|
29
|
+
updateOrderPaymentRequest: () => updateOrderPaymentRequest2,
|
|
30
|
+
voidOrderPaymentRequest: () => voidOrderPaymentRequest2
|
|
30
31
|
});
|
|
31
32
|
module.exports = __toCommonJS(meta_exports);
|
|
32
33
|
|
|
@@ -275,6 +276,22 @@ function updateExtendedFields(payload) {
|
|
|
275
276
|
}
|
|
276
277
|
return __updateExtendedFields;
|
|
277
278
|
}
|
|
279
|
+
function voidOrderPaymentRequest(payload) {
|
|
280
|
+
function __voidOrderPaymentRequest({ host }) {
|
|
281
|
+
const metadata = {
|
|
282
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
283
|
+
method: "POST",
|
|
284
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.VoidOrderPaymentRequest",
|
|
285
|
+
packageName: PACKAGE_NAME,
|
|
286
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
287
|
+
{ protoPath: "/v1/order-payment-requests/void", data: payload, host }
|
|
288
|
+
),
|
|
289
|
+
data: payload
|
|
290
|
+
};
|
|
291
|
+
return metadata;
|
|
292
|
+
}
|
|
293
|
+
return __voidOrderPaymentRequest;
|
|
294
|
+
}
|
|
278
295
|
|
|
279
296
|
// src/ecom-v1-order-payment-request-order-payment-requests.meta.ts
|
|
280
297
|
function createOrderPaymentRequest2() {
|
|
@@ -405,6 +422,24 @@ function updateExtendedFields2() {
|
|
|
405
422
|
__originalResponseType: null
|
|
406
423
|
};
|
|
407
424
|
}
|
|
425
|
+
function voidOrderPaymentRequest2() {
|
|
426
|
+
const payload = {};
|
|
427
|
+
const getRequestOptions = voidOrderPaymentRequest(payload);
|
|
428
|
+
const getUrl = (context) => {
|
|
429
|
+
const { url } = getRequestOptions(context);
|
|
430
|
+
return url;
|
|
431
|
+
};
|
|
432
|
+
return {
|
|
433
|
+
getUrl,
|
|
434
|
+
httpMethod: "POST",
|
|
435
|
+
path: "/v1/order-payment-requests/void",
|
|
436
|
+
pathParams: {},
|
|
437
|
+
__requestType: null,
|
|
438
|
+
__originalRequestType: null,
|
|
439
|
+
__responseType: null,
|
|
440
|
+
__originalResponseType: null
|
|
441
|
+
};
|
|
442
|
+
}
|
|
408
443
|
// Annotate the CommonJS export names for ESM import in node:
|
|
409
444
|
0 && (module.exports = {
|
|
410
445
|
createOrderPaymentRequest,
|
|
@@ -413,6 +448,7 @@ function updateExtendedFields2() {
|
|
|
413
448
|
getOrderPaymentRequestUrl,
|
|
414
449
|
queryOrderPaymentRequests,
|
|
415
450
|
updateExtendedFields,
|
|
416
|
-
updateOrderPaymentRequest
|
|
451
|
+
updateOrderPaymentRequest,
|
|
452
|
+
voidOrderPaymentRequest
|
|
417
453
|
});
|
|
418
454
|
//# sourceMappingURL=meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-order-payment-request-order-payment-requests.meta.js';\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 * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestTypes from './ecom-v1-order-payment-request-order-payment-requests.types.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestUniversalTypes from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'GET',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'PATCH',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestResponse\n> {\n const payload = {\n orderPaymentRequest: { id: ':orderPaymentRequestId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'DELETE',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryOrderPaymentRequests(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,mCAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,iCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA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EA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,0BAA0B,OAAO;AAE1E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,wBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBACmC,qBAAqB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createOrderPaymentRequest","deleteOrderPaymentRequest","getOrderPaymentRequest","getOrderPaymentRequestUrl","queryOrderPaymentRequests","updateExtendedFields","updateOrderPaymentRequest","import_timestamp","import_rest_modules","payload","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-order-payment-request-order-payment-requests.meta.js';\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` and `VOIDED` 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\n/**\n * Voids the given order payment request\n *\n * Please note that only `UNPAID` payment requests can be voided.\n */\nexport function voidOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __voidOrderPaymentRequest({ 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.VoidOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/void', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __voidOrderPaymentRequest;\n}\n","import * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestTypes from './ecom-v1-order-payment-request-order-payment-requests.types.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestUniversalTypes from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'GET',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'PATCH',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestResponse\n> {\n const payload = {\n orderPaymentRequest: { id: ':orderPaymentRequestId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'DELETE',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryOrderPaymentRequests(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function voidOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.voidOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/void',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;A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,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,wBAAwB,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createOrderPaymentRequest","deleteOrderPaymentRequest","getOrderPaymentRequest","getOrderPaymentRequestUrl","queryOrderPaymentRequests","updateExtendedFields","updateOrderPaymentRequest","voidOrderPaymentRequest","import_timestamp","import_rest_modules","payload","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields","voidOrderPaymentRequest"]}
|
package/build/internal/meta.mjs
CHANGED
|
@@ -243,6 +243,22 @@ function updateExtendedFields(payload) {
|
|
|
243
243
|
}
|
|
244
244
|
return __updateExtendedFields;
|
|
245
245
|
}
|
|
246
|
+
function voidOrderPaymentRequest(payload) {
|
|
247
|
+
function __voidOrderPaymentRequest({ host }) {
|
|
248
|
+
const metadata = {
|
|
249
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
250
|
+
method: "POST",
|
|
251
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.VoidOrderPaymentRequest",
|
|
252
|
+
packageName: PACKAGE_NAME,
|
|
253
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
254
|
+
{ protoPath: "/v1/order-payment-requests/void", data: payload, host }
|
|
255
|
+
),
|
|
256
|
+
data: payload
|
|
257
|
+
};
|
|
258
|
+
return metadata;
|
|
259
|
+
}
|
|
260
|
+
return __voidOrderPaymentRequest;
|
|
261
|
+
}
|
|
246
262
|
|
|
247
263
|
// src/ecom-v1-order-payment-request-order-payment-requests.meta.ts
|
|
248
264
|
function createOrderPaymentRequest2() {
|
|
@@ -373,6 +389,24 @@ function updateExtendedFields2() {
|
|
|
373
389
|
__originalResponseType: null
|
|
374
390
|
};
|
|
375
391
|
}
|
|
392
|
+
function voidOrderPaymentRequest2() {
|
|
393
|
+
const payload = {};
|
|
394
|
+
const getRequestOptions = voidOrderPaymentRequest(payload);
|
|
395
|
+
const getUrl = (context) => {
|
|
396
|
+
const { url } = getRequestOptions(context);
|
|
397
|
+
return url;
|
|
398
|
+
};
|
|
399
|
+
return {
|
|
400
|
+
getUrl,
|
|
401
|
+
httpMethod: "POST",
|
|
402
|
+
path: "/v1/order-payment-requests/void",
|
|
403
|
+
pathParams: {},
|
|
404
|
+
__requestType: null,
|
|
405
|
+
__originalRequestType: null,
|
|
406
|
+
__responseType: null,
|
|
407
|
+
__originalResponseType: null
|
|
408
|
+
};
|
|
409
|
+
}
|
|
376
410
|
export {
|
|
377
411
|
createOrderPaymentRequest2 as createOrderPaymentRequest,
|
|
378
412
|
deleteOrderPaymentRequest2 as deleteOrderPaymentRequest,
|
|
@@ -380,6 +414,7 @@ export {
|
|
|
380
414
|
getOrderPaymentRequestUrl2 as getOrderPaymentRequestUrl,
|
|
381
415
|
queryOrderPaymentRequests2 as queryOrderPaymentRequests,
|
|
382
416
|
updateExtendedFields2 as updateExtendedFields,
|
|
383
|
-
updateOrderPaymentRequest2 as updateOrderPaymentRequest
|
|
417
|
+
updateOrderPaymentRequest2 as updateOrderPaymentRequest,
|
|
418
|
+
voidOrderPaymentRequest2 as voidOrderPaymentRequest
|
|
384
419
|
};
|
|
385
420
|
//# sourceMappingURL=meta.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.meta.ts"],"sourcesContent":["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 * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestTypes from './ecom-v1-order-payment-request-order-payment-requests.types.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestUniversalTypes from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'GET',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'PATCH',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestResponse\n> {\n const payload = {\n orderPaymentRequest: { id: ':orderPaymentRequestId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'DELETE',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryOrderPaymentRequests(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,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,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,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T;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields"]}
|
|
1
|
+
{"version":3,"sources":["../../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../../src/ecom-v1-order-payment-request-order-payment-requests.meta.ts"],"sourcesContent":["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` and `VOIDED` 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\n/**\n * Voids the given order payment request\n *\n * Please note that only `UNPAID` payment requests can be voided.\n */\nexport function voidOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __voidOrderPaymentRequest({ 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.VoidOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/void', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __voidOrderPaymentRequest;\n}\n","import * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestTypes from './ecom-v1-order-payment-request-order-payment-requests.types.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestUniversalTypes from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'GET',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'PATCH',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestResponse\n> {\n const payload = {\n orderPaymentRequest: { id: ':orderPaymentRequestId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'DELETE',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryOrderPaymentRequests(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function voidOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.voidOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/void',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,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,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,0BACd,SAC4B;AAC5B,WAAS,4BAA4B,EAAE,KAAK,GAAQ;AAClD,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qCAAqC;AAAA,UAC7C,EAAE,MAAM,kCAAkC;AAAA,UAC1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AChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,wBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBACmC,qBAAqB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,wBAAwB,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields","voidOrderPaymentRequest"]}
|
package/build/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as CreateOrderPaymentRequestRequest$1, k as CreateOrderPaymentRequestResponse$1, l as GetOrderPaymentRequestRequest$1, m as GetOrderPaymentRequestResponse$1, n as UpdateOrderPaymentRequestRequest$1, o as UpdateOrderPaymentRequestResponse$1, D as DeleteOrderPaymentRequestRequest$1, p as DeleteOrderPaymentRequestResponse$1, Q as QueryOrderPaymentRequestsRequest$1, u as QueryOrderPaymentRequestsResponse$1, x as GetOrderPaymentRequestURLRequest$1, G as GetOrderPaymentRequestURLResponse$1, y as UpdateExtendedFieldsRequest$1, c as UpdateExtendedFieldsResponse$1, V as VoidOrderPaymentRequestRequest$1, z as VoidOrderPaymentRequestResponse$1 } from './ecom-v1-order-payment-request-order-payment-requests.universal-BpikSM2h.mjs';
|
|
2
2
|
|
|
3
3
|
interface OrderPaymentRequest {
|
|
4
4
|
/**
|
|
@@ -59,8 +59,6 @@ interface OrderPaymentRequest {
|
|
|
59
59
|
* @maxLength 300
|
|
60
60
|
*/
|
|
61
61
|
description?: string | null;
|
|
62
|
-
/** Image to be displayed to the customer on the payment page. */
|
|
63
|
-
image?: Image;
|
|
64
62
|
/**
|
|
65
63
|
* Time and date the order payment request expires.
|
|
66
64
|
* @immutable
|
|
@@ -78,6 +76,8 @@ interface OrderPaymentRequest {
|
|
|
78
76
|
* @readonly
|
|
79
77
|
*/
|
|
80
78
|
updatedDate?: Date | null;
|
|
79
|
+
/** Image to display to the customer on the payment page. */
|
|
80
|
+
image?: Image;
|
|
81
81
|
/**
|
|
82
82
|
* List of payment methods that can't be used for this order payment request.
|
|
83
83
|
* @maxSize 1
|
|
@@ -105,10 +105,11 @@ declare enum Status {
|
|
|
105
105
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
106
106
|
UNPAID = "UNPAID",
|
|
107
107
|
PAID = "PAID",
|
|
108
|
-
EXPIRED = "EXPIRED"
|
|
108
|
+
EXPIRED = "EXPIRED",
|
|
109
|
+
VOIDED = "VOIDED"
|
|
109
110
|
}
|
|
110
111
|
/** @enumType */
|
|
111
|
-
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'UNPAID' | 'PAID' | 'EXPIRED';
|
|
112
|
+
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'UNPAID' | 'PAID' | 'EXPIRED' | 'VOIDED';
|
|
112
113
|
interface Price {
|
|
113
114
|
/**
|
|
114
115
|
* Amount.
|
|
@@ -121,6 +122,17 @@ interface Price {
|
|
|
121
122
|
*/
|
|
122
123
|
formattedAmount?: string;
|
|
123
124
|
}
|
|
125
|
+
interface ExtendedFields {
|
|
126
|
+
/**
|
|
127
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
128
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
129
|
+
*
|
|
130
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
131
|
+
*
|
|
132
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
133
|
+
*/
|
|
134
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
135
|
+
}
|
|
124
136
|
interface Image {
|
|
125
137
|
/**
|
|
126
138
|
* WixMedia image ID.
|
|
@@ -149,17 +161,6 @@ interface Image {
|
|
|
149
161
|
*/
|
|
150
162
|
filename?: string | null;
|
|
151
163
|
}
|
|
152
|
-
interface ExtendedFields {
|
|
153
|
-
/**
|
|
154
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
155
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
156
|
-
*
|
|
157
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
158
|
-
*
|
|
159
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
160
|
-
*/
|
|
161
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
162
|
-
}
|
|
163
164
|
declare enum PaymentMethod {
|
|
164
165
|
UNKNOWN_PAYMENT_METHOD = "UNKNOWN_PAYMENT_METHOD",
|
|
165
166
|
/** Manual payment. */
|
|
@@ -328,6 +329,15 @@ interface UpdateExtendedFieldsResponse {
|
|
|
328
329
|
/** Updated OrderPaymentRequest. */
|
|
329
330
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
330
331
|
}
|
|
332
|
+
interface VoidOrderPaymentRequestRequest {
|
|
333
|
+
/**
|
|
334
|
+
* ID of the order payment request to void.
|
|
335
|
+
* @format GUID
|
|
336
|
+
*/
|
|
337
|
+
orderPaymentRequestId: string;
|
|
338
|
+
}
|
|
339
|
+
interface VoidOrderPaymentRequestResponse {
|
|
340
|
+
}
|
|
331
341
|
|
|
332
342
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
333
343
|
getUrl: (context: any) => string;
|
|
@@ -354,5 +364,6 @@ declare function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<'POST', {},
|
|
|
354
364
|
declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
355
365
|
id: string;
|
|
356
366
|
}, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
|
|
367
|
+
declare function voidOrderPaymentRequest(): __PublicMethodMetaInfo<'POST', {}, VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse$1, VoidOrderPaymentRequestResponse>;
|
|
357
368
|
|
|
358
|
-
export { type __PublicMethodMetaInfo, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest };
|
|
369
|
+
export { type __PublicMethodMetaInfo, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|
package/build/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as CreateOrderPaymentRequestRequest$1, k as CreateOrderPaymentRequestResponse$1, l as GetOrderPaymentRequestRequest$1, m as GetOrderPaymentRequestResponse$1, n as UpdateOrderPaymentRequestRequest$1, o as UpdateOrderPaymentRequestResponse$1, D as DeleteOrderPaymentRequestRequest$1, p as DeleteOrderPaymentRequestResponse$1, Q as QueryOrderPaymentRequestsRequest$1, u as QueryOrderPaymentRequestsResponse$1, x as GetOrderPaymentRequestURLRequest$1, G as GetOrderPaymentRequestURLResponse$1, y as UpdateExtendedFieldsRequest$1, c as UpdateExtendedFieldsResponse$1, V as VoidOrderPaymentRequestRequest$1, z as VoidOrderPaymentRequestResponse$1 } from './ecom-v1-order-payment-request-order-payment-requests.universal-BpikSM2h.js';
|
|
2
2
|
|
|
3
3
|
interface OrderPaymentRequest {
|
|
4
4
|
/**
|
|
@@ -59,8 +59,6 @@ interface OrderPaymentRequest {
|
|
|
59
59
|
* @maxLength 300
|
|
60
60
|
*/
|
|
61
61
|
description?: string | null;
|
|
62
|
-
/** Image to be displayed to the customer on the payment page. */
|
|
63
|
-
image?: Image;
|
|
64
62
|
/**
|
|
65
63
|
* Time and date the order payment request expires.
|
|
66
64
|
* @immutable
|
|
@@ -78,6 +76,8 @@ interface OrderPaymentRequest {
|
|
|
78
76
|
* @readonly
|
|
79
77
|
*/
|
|
80
78
|
updatedDate?: Date | null;
|
|
79
|
+
/** Image to display to the customer on the payment page. */
|
|
80
|
+
image?: Image;
|
|
81
81
|
/**
|
|
82
82
|
* List of payment methods that can't be used for this order payment request.
|
|
83
83
|
* @maxSize 1
|
|
@@ -105,10 +105,11 @@ declare enum Status {
|
|
|
105
105
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
106
106
|
UNPAID = "UNPAID",
|
|
107
107
|
PAID = "PAID",
|
|
108
|
-
EXPIRED = "EXPIRED"
|
|
108
|
+
EXPIRED = "EXPIRED",
|
|
109
|
+
VOIDED = "VOIDED"
|
|
109
110
|
}
|
|
110
111
|
/** @enumType */
|
|
111
|
-
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'UNPAID' | 'PAID' | 'EXPIRED';
|
|
112
|
+
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'UNPAID' | 'PAID' | 'EXPIRED' | 'VOIDED';
|
|
112
113
|
interface Price {
|
|
113
114
|
/**
|
|
114
115
|
* Amount.
|
|
@@ -121,6 +122,17 @@ interface Price {
|
|
|
121
122
|
*/
|
|
122
123
|
formattedAmount?: string;
|
|
123
124
|
}
|
|
125
|
+
interface ExtendedFields {
|
|
126
|
+
/**
|
|
127
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
128
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
129
|
+
*
|
|
130
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
131
|
+
*
|
|
132
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
133
|
+
*/
|
|
134
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
135
|
+
}
|
|
124
136
|
interface Image {
|
|
125
137
|
/**
|
|
126
138
|
* WixMedia image ID.
|
|
@@ -149,17 +161,6 @@ interface Image {
|
|
|
149
161
|
*/
|
|
150
162
|
filename?: string | null;
|
|
151
163
|
}
|
|
152
|
-
interface ExtendedFields {
|
|
153
|
-
/**
|
|
154
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
155
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
156
|
-
*
|
|
157
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
158
|
-
*
|
|
159
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
160
|
-
*/
|
|
161
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
162
|
-
}
|
|
163
164
|
declare enum PaymentMethod {
|
|
164
165
|
UNKNOWN_PAYMENT_METHOD = "UNKNOWN_PAYMENT_METHOD",
|
|
165
166
|
/** Manual payment. */
|
|
@@ -328,6 +329,15 @@ interface UpdateExtendedFieldsResponse {
|
|
|
328
329
|
/** Updated OrderPaymentRequest. */
|
|
329
330
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
330
331
|
}
|
|
332
|
+
interface VoidOrderPaymentRequestRequest {
|
|
333
|
+
/**
|
|
334
|
+
* ID of the order payment request to void.
|
|
335
|
+
* @format GUID
|
|
336
|
+
*/
|
|
337
|
+
orderPaymentRequestId: string;
|
|
338
|
+
}
|
|
339
|
+
interface VoidOrderPaymentRequestResponse {
|
|
340
|
+
}
|
|
331
341
|
|
|
332
342
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
333
343
|
getUrl: (context: any) => string;
|
|
@@ -354,5 +364,6 @@ declare function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<'POST', {},
|
|
|
354
364
|
declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
355
365
|
id: string;
|
|
356
366
|
}, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
|
|
367
|
+
declare function voidOrderPaymentRequest(): __PublicMethodMetaInfo<'POST', {}, VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse$1, VoidOrderPaymentRequestResponse>;
|
|
357
368
|
|
|
358
|
-
export { type __PublicMethodMetaInfo, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest };
|
|
369
|
+
export { type __PublicMethodMetaInfo, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|