@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":["../../meta.ts","../../src/receipts-v1-receipt-receipts.http.ts","../../src/receipts-v1-receipt-receipts.meta.ts"],"sourcesContent":["export * from './src/receipts-v1-receipt-receipts.meta.js';\n","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;AAAA;AAAA,uBAAAA;AAAA,EAAA,8BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;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,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,cAAc,SAA6C;AACzE,WAAS,gBAAgB,EAAE,KAAK,GAAQ;AACtC,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC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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":["createReceipt","getLatestReceiptNumber","getReceipt","queryReceipts","regenerateReceiptDocument","sendReceiptEmail","updateExtendedFields","import_float","import_timestamp","import_rest_modules","payload","createReceipt","getReceipt","queryReceipts","regenerateReceiptDocument","sendReceiptEmail","getLatestReceiptNumber","updateExtendedFields"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/receipts-v1-receipt-receipts.http.ts","../../src/receipts-v1-receipt-receipts.meta.ts"],"sourcesContent":["export * from './src/receipts-v1-receipt-receipts.meta.js';\n","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;AAAA;AAAA,uBAAAA;AAAA,EAAA,8BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;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,aAAO,i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AAA,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":["createReceipt","getLatestReceiptNumber","getReceipt","queryReceipts","regenerateReceiptDocument","sendReceiptEmail","updateExtendedFields","import_float","import_timestamp","import_rest_modules","payload","createReceipt","getReceipt","queryReceipts","regenerateReceiptDocument","sendReceiptEmail","getLatestReceiptNumber","updateExtendedFields"]}
@@ -81,6 +81,9 @@ function createReceipt(payload) {
81
81
  method: "POST",
82
82
  methodFqn: "wix.receipts.v1.Receipts.CreateReceipt",
83
83
  packageName: PACKAGE_NAME,
84
+ migrationOptions: {
85
+ optInTransformResponse: true
86
+ },
84
87
  url: resolveWixReceiptsV1ReceiptsUrl({
85
88
  protoPath: "/v1/receipts",
86
89
  data: serializedData,
@@ -121,6 +124,9 @@ function getReceipt(payload) {
121
124
  method: "GET",
122
125
  methodFqn: "wix.receipts.v1.Receipts.GetReceipt",
123
126
  packageName: PACKAGE_NAME,
127
+ migrationOptions: {
128
+ optInTransformResponse: true
129
+ },
124
130
  url: resolveWixReceiptsV1ReceiptsUrl({
125
131
  protoPath: "/v1/receipts/{receiptId}",
126
132
  data: payload,
@@ -161,6 +167,9 @@ function queryReceipts(payload) {
161
167
  method: "POST",
162
168
  methodFqn: "wix.receipts.v1.Receipts.QueryReceipts",
163
169
  packageName: PACKAGE_NAME,
170
+ migrationOptions: {
171
+ optInTransformResponse: true
172
+ },
164
173
  url: resolveWixReceiptsV1ReceiptsUrl({
165
174
  protoPath: "/v1/receipts/query",
166
175
  data: payload,
@@ -201,6 +210,9 @@ function regenerateReceiptDocument(payload) {
201
210
  method: "POST",
202
211
  methodFqn: "wix.receipts.v1.Receipts.RegenerateReceiptDocument",
203
212
  packageName: PACKAGE_NAME,
213
+ migrationOptions: {
214
+ optInTransformResponse: true
215
+ },
204
216
  url: resolveWixReceiptsV1ReceiptsUrl({
205
217
  protoPath: "/v1/receipts/{receiptId}/regenerate-receipt-document",
206
218
  data: payload,
@@ -219,6 +231,9 @@ function sendReceiptEmail(payload) {
219
231
  method: "POST",
220
232
  methodFqn: "wix.receipts.v1.Receipts.SendReceiptEmail",
221
233
  packageName: PACKAGE_NAME,
234
+ migrationOptions: {
235
+ optInTransformResponse: true
236
+ },
222
237
  url: resolveWixReceiptsV1ReceiptsUrl({
223
238
  protoPath: "/v1/receipts/{receiptId}/send-email",
224
239
  data: payload,
@@ -237,6 +252,9 @@ function getLatestReceiptNumber(payload) {
237
252
  method: "GET",
238
253
  methodFqn: "wix.receipts.v1.Receipts.GetLatestReceiptNumber",
239
254
  packageName: PACKAGE_NAME,
255
+ migrationOptions: {
256
+ optInTransformResponse: true
257
+ },
240
258
  url: resolveWixReceiptsV1ReceiptsUrl({
241
259
  protoPath: "/v1/receipts/get-latest-number",
242
260
  data: payload,
@@ -255,6 +273,9 @@ function updateExtendedFields(payload) {
255
273
  method: "POST",
256
274
  methodFqn: "wix.receipts.v1.Receipts.UpdateExtendedFields",
257
275
  packageName: PACKAGE_NAME,
276
+ migrationOptions: {
277
+ optInTransformResponse: true
278
+ },
258
279
  url: resolveWixReceiptsV1ReceiptsUrl({
259
280
  protoPath: "/v1/receipts/{id}/update-extended-fields",
260
281
  data: payload,