@wix/auto_sdk_get-paid_receipts 1.0.121 → 1.0.122

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/receipts-v1-receipt-receipts.http.ts","../../src/receipts-v1-receipt-receipts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixReceiptsV1ReceiptsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/receipts',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/receipts/v1/receipts',\n destPath: '/v1/receipts',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/receipts/v1/receipts',\n destPath: '/v1/receipts',\n },\n ],\n _: [\n {\n srcPath: '/receipts/v1/receipts',\n destPath: '/v1/receipts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_get-paid_receipts';\n\n/**\n * Creates a receipt.\n *\n * Receipt number is assigned later and will be provided in the Get Receipt response.\n */\nexport function createReceipt(payload: object): RequestOptionsFactory<any> {\n function __createReceipt({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.CreateReceipt',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createReceipt;\n}\n\n/** Retrieves a receipt. */\nexport function getReceipt(payload: object): RequestOptionsFactory<any> {\n function __getReceipt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'GET' as any,\n methodFqn: 'wix.receipts.v1.Receipts.GetReceipt',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{receiptId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getReceipt;\n}\n\n/** Retrieves a list of up to 100 receipts, given the specified filtering, paging, and sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)). */\nexport function queryReceipts(payload: object): RequestOptionsFactory<any> {\n function __queryReceipts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.QueryReceipts',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipts.createdDate' },\n { path: 'receipts.updatedDate' },\n { path: 'receipts.businessDetails.logo.urlExpirationDate' },\n { path: 'receipts.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipts.businessDetails.address.geocode.latitude' },\n { path: 'receipts.businessDetails.address.geocode.longitude' },\n { path: 'receipts.customer.billingAddress.geocode.latitude' },\n { path: 'receipts.customer.billingAddress.geocode.longitude' },\n { path: 'receipts.customer.shippingAddress.geocode.latitude' },\n { path: 'receipts.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryReceipts;\n}\n\n/**\n * Retries generating a receipt document that has a `FAILED` status.\n *\n * Note that you can access a receipt document with an `AVAILABLE` status with the URL provided in `document.downloadUrl` without regenerating.\n */\nexport function regenerateReceiptDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __regenerateReceiptDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.RegenerateReceiptDocument',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{receiptId}/regenerate-receipt-document',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateReceiptDocument;\n}\n\n/**\n * Sends the receipt to the specified recipient in an email.\n *\n * Specifying a contact ID is required only when no contact ID was specified upon receipt creation.\n *\n * Note that if the specified contact ID doesn't have an associated email address, the call will fail.\n */\nexport function sendReceiptEmail(payload: object): RequestOptionsFactory<any> {\n function __sendReceiptEmail({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.SendReceiptEmail',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{receiptId}/send-email',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __sendReceiptEmail;\n}\n\n/**\n * Retrieves the highest receipt number currently in use (the sequential identifier displayed between the prefix and suffix in receipt display numbers).\n * Can be filtered by prefix.\n *\n * Receipt numbering is managed in the Receipts Settings API.\n */\nexport function getLatestReceiptNumber(\n payload: object\n): RequestOptionsFactory<any> {\n function __getLatestReceiptNumber({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'GET' as any,\n methodFqn: 'wix.receipts.v1.Receipts.GetLatestReceiptNumber',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/get-latest-number',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getLatestReceiptNumber;\n}\n\n/** Updates extended fields of a receipt, without incrementing revision. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n","import * as ambassadorWixReceiptsV1Receipt from './receipts-v1-receipt-receipts.http.js';\nimport * as ambassadorWixReceiptsV1ReceiptTypes from './receipts-v1-receipt-receipts.types.js';\nimport * as ambassadorWixReceiptsV1ReceiptUniversalTypes from './receipts-v1-receipt-receipts.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 createReceipt(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptRequest,\n ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptResponse,\n ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.createReceipt(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/receipts',\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 getReceipt(): __PublicMethodMetaInfo<\n 'GET',\n { receiptId: string },\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptRequest,\n ambassadorWixReceiptsV1ReceiptTypes.GetReceiptRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptResponse,\n ambassadorWixReceiptsV1ReceiptTypes.GetReceiptResponse\n> {\n const payload = { receiptId: ':receiptId' } as any;\n\n const getRequestOptions = ambassadorWixReceiptsV1Receipt.getReceipt(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/receipts/{receiptId}',\n pathParams: { receiptId: 'receiptId' },\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 queryReceipts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsRequest,\n ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsResponse,\n ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.queryReceipts(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/receipts/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 regenerateReceiptDocument(): __PublicMethodMetaInfo<\n 'POST',\n { receiptId: string },\n ambassadorWixReceiptsV1ReceiptUniversalTypes.RegenerateReceiptDocumentRequest,\n ambassadorWixReceiptsV1ReceiptTypes.RegenerateReceiptDocumentRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.RegenerateReceiptDocumentResponse,\n ambassadorWixReceiptsV1ReceiptTypes.RegenerateReceiptDocumentResponse\n> {\n const payload = { receiptId: ':receiptId' } as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.regenerateReceiptDocument(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/receipts/{receiptId}/regenerate-receipt-document',\n pathParams: { receiptId: 'receiptId' },\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 sendReceiptEmail(): __PublicMethodMetaInfo<\n 'POST',\n { receiptId: string },\n ambassadorWixReceiptsV1ReceiptUniversalTypes.SendReceiptEmailRequest,\n ambassadorWixReceiptsV1ReceiptTypes.SendReceiptEmailRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.SendReceiptEmailResponse,\n ambassadorWixReceiptsV1ReceiptTypes.SendReceiptEmailResponse\n> {\n const payload = { receiptId: ':receiptId' } as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.sendReceiptEmail(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/receipts/{receiptId}/send-email',\n pathParams: { receiptId: 'receiptId' },\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 getLatestReceiptNumber(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetLatestReceiptNumberRequest,\n ambassadorWixReceiptsV1ReceiptTypes.GetLatestReceiptNumberRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetLatestReceiptNumberResponse,\n ambassadorWixReceiptsV1ReceiptTypes.GetLatestReceiptNumberResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.getLatestReceiptNumber(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/receipts/get-latest-number',\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 ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.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/receipts/{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,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,gCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;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,sBAAsB;AAAA,MACpB;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;AAOd,SAAS,cAAc,SAA6C;AACzE,WAAS,gBAAgB,EAAE,KAAK,GAAQ;AACtC,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,iDAAiD;AAAA,UACzD,EAAE,MAAM,kCAAkC;AAAA,QAC5C;AAAA,MACF;AAAA,MACA;AAAA,QACE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,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,uBAAuB,OAAO;AAE/D,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,oBAC2B,qBAAqB,OAAO;AAE7D,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":["payload","createReceipt","getReceipt","queryReceipts","regenerateReceiptDocument","sendReceiptEmail","getLatestReceiptNumber","updateExtendedFields"]}
1
+ {"version":3,"sources":["../../src/receipts-v1-receipt-receipts.http.ts","../../src/receipts-v1-receipt-receipts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixReceiptsV1ReceiptsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/receipts',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/receipts/v1/receipts',\n destPath: '/v1/receipts',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/receipts/v1/receipts',\n destPath: '/v1/receipts',\n },\n ],\n _: [\n {\n srcPath: '/receipts/v1/receipts',\n destPath: '/v1/receipts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_get-paid_receipts';\n\n/**\n * Creates a receipt.\n *\n * Receipt number is assigned later and will be provided in the Get Receipt response.\n */\nexport function createReceipt(payload: object): RequestOptionsFactory<any> {\n function __createReceipt({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.CreateReceipt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createReceipt;\n}\n\n/** Retrieves a receipt. */\nexport function getReceipt(payload: object): RequestOptionsFactory<any> {\n function __getReceipt({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'GET' as any,\n methodFqn: 'wix.receipts.v1.Receipts.GetReceipt',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{receiptId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getReceipt;\n}\n\n/** Retrieves a list of up to 100 receipts, given the specified filtering, paging, and sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)). */\nexport function queryReceipts(payload: object): RequestOptionsFactory<any> {\n function __queryReceipts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.QueryReceipts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipts.createdDate' },\n { path: 'receipts.updatedDate' },\n { path: 'receipts.businessDetails.logo.urlExpirationDate' },\n { path: 'receipts.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipts.businessDetails.address.geocode.latitude' },\n { path: 'receipts.businessDetails.address.geocode.longitude' },\n { path: 'receipts.customer.billingAddress.geocode.latitude' },\n { path: 'receipts.customer.billingAddress.geocode.longitude' },\n { path: 'receipts.customer.shippingAddress.geocode.latitude' },\n { path: 'receipts.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryReceipts;\n}\n\n/**\n * Retries generating a receipt document that has a `FAILED` status.\n *\n * Note that you can access a receipt document with an `AVAILABLE` status with the URL provided in `document.downloadUrl` without regenerating.\n */\nexport function regenerateReceiptDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __regenerateReceiptDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.RegenerateReceiptDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{receiptId}/regenerate-receipt-document',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateReceiptDocument;\n}\n\n/**\n * Sends the receipt to the specified recipient in an email.\n *\n * Specifying a contact ID is required only when no contact ID was specified upon receipt creation.\n *\n * Note that if the specified contact ID doesn't have an associated email address, the call will fail.\n */\nexport function sendReceiptEmail(payload: object): RequestOptionsFactory<any> {\n function __sendReceiptEmail({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.SendReceiptEmail',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{receiptId}/send-email',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __sendReceiptEmail;\n}\n\n/**\n * Retrieves the highest receipt number currently in use (the sequential identifier displayed between the prefix and suffix in receipt display numbers).\n * Can be filtered by prefix.\n *\n * Receipt numbering is managed in the Receipts Settings API.\n */\nexport function getLatestReceiptNumber(\n payload: object\n): RequestOptionsFactory<any> {\n function __getLatestReceiptNumber({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'GET' as any,\n methodFqn: 'wix.receipts.v1.Receipts.GetLatestReceiptNumber',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/get-latest-number',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getLatestReceiptNumber;\n}\n\n/** Updates extended fields of a receipt, without incrementing revision. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.receipts.v1.receipt',\n method: 'POST' as any,\n methodFqn: 'wix.receipts.v1.Receipts.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixReceiptsV1ReceiptsUrl({\n protoPath: '/v1/receipts/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'receipt.createdDate' },\n { path: 'receipt.updatedDate' },\n { path: 'receipt.businessDetails.logo.urlExpirationDate' },\n { path: 'receipt.payment.transactionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'receipt.businessDetails.address.geocode.latitude' },\n { path: 'receipt.businessDetails.address.geocode.longitude' },\n { path: 'receipt.customer.billingAddress.geocode.latitude' },\n { path: 'receipt.customer.billingAddress.geocode.longitude' },\n { path: 'receipt.customer.shippingAddress.geocode.latitude' },\n { path: 'receipt.customer.shippingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n","import * as ambassadorWixReceiptsV1Receipt from './receipts-v1-receipt-receipts.http.js';\nimport * as ambassadorWixReceiptsV1ReceiptTypes from './receipts-v1-receipt-receipts.types.js';\nimport * as ambassadorWixReceiptsV1ReceiptUniversalTypes from './receipts-v1-receipt-receipts.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 createReceipt(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptRequest,\n ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptResponse,\n ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.createReceipt(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/receipts',\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 getReceipt(): __PublicMethodMetaInfo<\n 'GET',\n { receiptId: string },\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptRequest,\n ambassadorWixReceiptsV1ReceiptTypes.GetReceiptRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptResponse,\n ambassadorWixReceiptsV1ReceiptTypes.GetReceiptResponse\n> {\n const payload = { receiptId: ':receiptId' } as any;\n\n const getRequestOptions = ambassadorWixReceiptsV1Receipt.getReceipt(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/receipts/{receiptId}',\n pathParams: { receiptId: 'receiptId' },\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 queryReceipts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsRequest,\n ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsResponse,\n ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.queryReceipts(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/receipts/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 regenerateReceiptDocument(): __PublicMethodMetaInfo<\n 'POST',\n { receiptId: string },\n ambassadorWixReceiptsV1ReceiptUniversalTypes.RegenerateReceiptDocumentRequest,\n ambassadorWixReceiptsV1ReceiptTypes.RegenerateReceiptDocumentRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.RegenerateReceiptDocumentResponse,\n ambassadorWixReceiptsV1ReceiptTypes.RegenerateReceiptDocumentResponse\n> {\n const payload = { receiptId: ':receiptId' } as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.regenerateReceiptDocument(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/receipts/{receiptId}/regenerate-receipt-document',\n pathParams: { receiptId: 'receiptId' },\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 sendReceiptEmail(): __PublicMethodMetaInfo<\n 'POST',\n { receiptId: string },\n ambassadorWixReceiptsV1ReceiptUniversalTypes.SendReceiptEmailRequest,\n ambassadorWixReceiptsV1ReceiptTypes.SendReceiptEmailRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.SendReceiptEmailResponse,\n ambassadorWixReceiptsV1ReceiptTypes.SendReceiptEmailResponse\n> {\n const payload = { receiptId: ':receiptId' } as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.sendReceiptEmail(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/receipts/{receiptId}/send-email',\n pathParams: { receiptId: 'receiptId' },\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 getLatestReceiptNumber(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetLatestReceiptNumberRequest,\n ambassadorWixReceiptsV1ReceiptTypes.GetLatestReceiptNumberRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.GetLatestReceiptNumberResponse,\n ambassadorWixReceiptsV1ReceiptTypes.GetLatestReceiptNumberResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.getLatestReceiptNumber(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/receipts/get-latest-number',\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 ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsRequest,\n ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixReceiptsV1Receipt.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/receipts/{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,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,gCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;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,sBAAsB;AAAA,MACpB;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;AAOd,SAAS,cAAc,SAA6C;AACzE,WAAS,gBAAgB,EAAE,KAAK,GAAQ;AACtC,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,iDAAiD;AAAA,UACzD,EAAE,MAAM,kCAAkC;AAAA,QAC5C;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,mDAAmD;AAAA,UAC3D,EAAE,MAAM,oDAAoD;AAAA,UAC5D,EAAE,MAAM,mDAAmD;AAAA,UAC3D,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vB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,oBAOd;AACA,QAAM,UAAU,EAAE,WAAW,aAAa;AAE1C,QAAM,oBAC2B,iBAAiB,OAAO;AAEzD,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,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,uBAAuB,OAAO;AAE/D,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,oBAC2B,qBAAqB,OAAO;AAE7D,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":["payload","createReceipt","getReceipt","queryReceipts","regenerateReceiptDocument","sendReceiptEmail","getLatestReceiptNumber","updateExtendedFields"]}
@@ -120,6 +120,9 @@ function createReceipt(payload) {
120
120
  method: "POST",
121
121
  methodFqn: "wix.receipts.v1.Receipts.CreateReceipt",
122
122
  packageName: PACKAGE_NAME,
123
+ migrationOptions: {
124
+ optInTransformResponse: true
125
+ },
123
126
  url: resolveWixReceiptsV1ReceiptsUrl({
124
127
  protoPath: "/v1/receipts",
125
128
  data: serializedData,
@@ -160,6 +163,9 @@ function getReceipt(payload) {
160
163
  method: "GET",
161
164
  methodFqn: "wix.receipts.v1.Receipts.GetReceipt",
162
165
  packageName: PACKAGE_NAME,
166
+ migrationOptions: {
167
+ optInTransformResponse: true
168
+ },
163
169
  url: resolveWixReceiptsV1ReceiptsUrl({
164
170
  protoPath: "/v1/receipts/{receiptId}",
165
171
  data: payload,
@@ -200,6 +206,9 @@ function queryReceipts(payload) {
200
206
  method: "POST",
201
207
  methodFqn: "wix.receipts.v1.Receipts.QueryReceipts",
202
208
  packageName: PACKAGE_NAME,
209
+ migrationOptions: {
210
+ optInTransformResponse: true
211
+ },
203
212
  url: resolveWixReceiptsV1ReceiptsUrl({
204
213
  protoPath: "/v1/receipts/query",
205
214
  data: payload,
@@ -240,6 +249,9 @@ function regenerateReceiptDocument(payload) {
240
249
  method: "POST",
241
250
  methodFqn: "wix.receipts.v1.Receipts.RegenerateReceiptDocument",
242
251
  packageName: PACKAGE_NAME,
252
+ migrationOptions: {
253
+ optInTransformResponse: true
254
+ },
243
255
  url: resolveWixReceiptsV1ReceiptsUrl({
244
256
  protoPath: "/v1/receipts/{receiptId}/regenerate-receipt-document",
245
257
  data: payload,
@@ -258,6 +270,9 @@ function sendReceiptEmail(payload) {
258
270
  method: "POST",
259
271
  methodFqn: "wix.receipts.v1.Receipts.SendReceiptEmail",
260
272
  packageName: PACKAGE_NAME,
273
+ migrationOptions: {
274
+ optInTransformResponse: true
275
+ },
261
276
  url: resolveWixReceiptsV1ReceiptsUrl({
262
277
  protoPath: "/v1/receipts/{receiptId}/send-email",
263
278
  data: payload,
@@ -276,6 +291,9 @@ function getLatestReceiptNumber(payload) {
276
291
  method: "GET",
277
292
  methodFqn: "wix.receipts.v1.Receipts.GetLatestReceiptNumber",
278
293
  packageName: PACKAGE_NAME,
294
+ migrationOptions: {
295
+ optInTransformResponse: true
296
+ },
279
297
  url: resolveWixReceiptsV1ReceiptsUrl({
280
298
  protoPath: "/v1/receipts/get-latest-number",
281
299
  data: payload,
@@ -294,6 +312,9 @@ function updateExtendedFields(payload) {
294
312
  method: "POST",
295
313
  methodFqn: "wix.receipts.v1.Receipts.UpdateExtendedFields",
296
314
  packageName: PACKAGE_NAME,
315
+ migrationOptions: {
316
+ optInTransformResponse: true
317
+ },
297
318
  url: resolveWixReceiptsV1ReceiptsUrl({
298
319
  protoPath: "/v1/receipts/{id}/update-extended-fields",
299
320
  data: payload,