{"version":3,"sources":["../src/ecom-v1-gift-card-gift-vouchers.universal.ts","../src/ecom-v1-gift-card-gift-vouchers.http.ts","../src/ecom-v1-gift-card-gift-vouchers.public.ts","../src/ecom-v1-gift-card-gift-vouchers.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient } from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1GiftCard from './ecom-v1-gift-card-gift-vouchers.http.js';\n\nexport interface GiftCard {\n  /**\n   * Gift card obfuscated code.\n   *\n   * For example: \"****-****-****-1234\".\n   */\n  obfuscatedCode?: string;\n  /** Gift card balance. */\n  balance?: Money;\n  /** Current gift card status. */\n  status?: Status;\n  /** App ID of the gift card provider, as returned in eCommerce Get Checkout or List Transactions for Single Order. */\n  appId?: string;\n  /**\n   * External ID in the gift card provider's system.\n   * Used for integration and tracking across different platforms.\n   */\n  externalId?: string | null;\n}\n\nexport interface Money {\n  /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */\n  value?: string;\n  /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */\n  currency?: string;\n}\n\nexport enum Status {\n  UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n  /** Gift card is active and can be used for purchases. */\n  VALID = 'VALID',\n  /** Gift card expiration date has passed and can no longer be used. */\n  EXPIRED = 'EXPIRED',\n  /** Gift card has been disabled by the merchant and can no longer be used. */\n  DISABLED = 'DISABLED',\n}\n\nexport interface GetGiftCardRequest {\n  /** Gift card code. */\n  code: string;\n  /** Contextual information for the request, including the physical location ID if applicable. */\n  context?: Context;\n  /** App ID of the gift card provider. */\n  appId?: string | null;\n  /**\n   * Gift card PIN.\n   * Required for some providers, like 'Moneris'.\n   */\n  pin?: string | null;\n}\n\nexport interface Context {\n  /** Physical location ID. Can be based on the Locations API or an external provider. */\n  locationId?: string | null;\n}\n\nexport interface GetGiftCardResponse {\n  /** Retrieved gift card. */\n  giftCard?: GiftCard;\n}\n\nexport interface RedeemGiftCardRequest {\n  /** Gift card code. */\n  code: string;\n  /** Amount to redeem from the gift card. */\n  amount: Money;\n  /** Order ID to apply the gift card transaction, when applying a gift card after order creation. Order ID can be collected from the eCommerce Order Created webhook or by calling eCommerce Search Orders. */\n  orderId?: string;\n  /** App ID of the gift card provider. */\n  appId: string;\n  /** Contextual information for the request, including the physical location ID if applicable. */\n  context?: Context;\n  /**\n   * Gift card PIN.\n   * Required for some providers, like 'Moneris'.\n   */\n  pin?: string | null;\n}\n\nexport interface RedeemGiftCardResponse {\n  /** Gift card transaction ID. */\n  transactionId?: string;\n}\n\nexport interface VoidTransactionRequest {\n  /** Gift card transaction ID, as returned from Redeem Gift Card. */\n  transactionId: string;\n  /** App ID of the gift card provider. */\n  appId: string;\n  /** Contextual information for the request, including the physical location ID if applicable. */\n  context?: Context;\n}\n\nexport interface VoidTransactionResponse {}\n\ninterface MoneyNonNullableFields {\n  value: string;\n  currency: string;\n}\n\ninterface GiftCardNonNullableFields {\n  obfuscatedCode: string;\n  balance?: MoneyNonNullableFields;\n  status: Status;\n  appId: string;\n}\n\nexport interface GetGiftCardResponseNonNullableFields {\n  giftCard?: GiftCardNonNullableFields;\n}\n\nexport interface RedeemGiftCardResponseNonNullableFields {\n  transactionId: string;\n}\n\n/**\n * Retrieves a gift card.\n * @param code - Gift card code.\n * @public\n * @documentationMaturity preview\n * @requiredField code\n * @param options - Field options.\n * @permissionId ECOM.GIFT_CARD_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Read Gift Cards\n * @permissionScopeId SCOPE.ECOM.READ-GIFT-CARDS\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn wix.ecom.gift_cards_spi_host.v1.GiftCardsSpiHostService.GetGiftCard\n */\nexport async function getGiftCard(\n  code: string,\n  options?: GetGiftCardOptions\n): Promise<GetGiftCardResponse & GetGiftCardResponseNonNullableFields> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    code: code,\n    context: options?.context,\n    appId: options?.appId,\n    pin: options?.pin,\n  });\n\n  const reqOpts = ambassadorWixEcomV1GiftCard.getGiftCard(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          code: '$[0]',\n          context: '$[1].context',\n          appId: '$[1].appId',\n          pin: '$[1].pin',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['code', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetGiftCardOptions {\n  /** Contextual information for the request, including the physical location ID if applicable. */\n  context?: Context;\n  /** App ID of the gift card provider. */\n  appId?: string | null;\n  /**\n   * Gift card PIN.\n   * Required for some providers, like 'Moneris'.\n   */\n  pin?: string | null;\n}\n\n/**\n * Redeems a gift card.\n * Creates a transaction and lowers the card balance by the transaction amount.\n * @param code - Gift card code.\n * @public\n * @documentationMaturity preview\n * @requiredField code\n * @requiredField options.amount\n * @requiredField options.amount.value\n * @requiredField options.appId\n * @param options - Field options. `amount` and `appId` **must** be passed.\n * @permissionId ECOM.GIFT_CARD_REDEEM\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Change Gift Card Balances\n * @permissionScopeId SCOPE.ECOM.CHANGE-GIFT-CARDS-BALANCE\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn wix.ecom.gift_cards_spi_host.v1.GiftCardsSpiHostService.RedeemGiftCard\n */\nexport async function redeemGiftCard(\n  code: string,\n  options?: RedeemGiftCardOptions\n): Promise<RedeemGiftCardResponse & RedeemGiftCardResponseNonNullableFields> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    code: code,\n    amount: options?.amount,\n    orderId: options?.orderId,\n    appId: options?.appId,\n    context: options?.context,\n    pin: options?.pin,\n  });\n\n  const reqOpts = ambassadorWixEcomV1GiftCard.redeemGiftCard(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          code: '$[0]',\n          amount: '$[1].amount',\n          orderId: '$[1].orderId',\n          appId: '$[1].appId',\n          context: '$[1].context',\n          pin: '$[1].pin',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['code', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface RedeemGiftCardOptions {\n  /** Amount to redeem from the gift card. */\n  amount: Money;\n  /** Order ID to apply the gift card transaction, when applying a gift card after order creation. Order ID can be collected from the eCommerce Order Created webhook or by calling eCommerce Search Orders. */\n  orderId?: string;\n  /** App ID of the gift card provider. */\n  appId: string;\n  /** Contextual information for the request, including the physical location ID if applicable. */\n  context?: Context;\n  /**\n   * Gift card PIN.\n   * Required for some providers, like 'Moneris'.\n   */\n  pin?: string | null;\n}\n\n/**\n * Voids a gift card transaction.\n * Transaction IDs are returned in Redeem Gift Card.\n * @param transactionId - Gift card transaction ID, as returned from Redeem Gift Card.\n * @public\n * @documentationMaturity preview\n * @requiredField options.appId\n * @requiredField transactionId\n * @param options - Field options. `appId` **must** be passed.\n * @permissionId ECOM.GIFT_CARD_TRANSACTION_VOID\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Change Gift Card Balances\n * @permissionScopeId SCOPE.ECOM.CHANGE-GIFT-CARDS-BALANCE\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn wix.ecom.gift_cards_spi_host.v1.GiftCardsSpiHostService.VoidTransaction\n */\nexport async function voidTransaction(\n  transactionId: string,\n  options?: VoidTransactionOptions\n): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    transactionId: transactionId,\n    appId: options?.appId,\n    context: options?.context,\n  });\n\n  const reqOpts = ambassadorWixEcomV1GiftCard.voidTransaction(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          transactionId: '$[0]',\n          appId: '$[1].appId',\n          context: '$[1].context',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['transactionId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface VoidTransactionOptions {\n  /** App ID of the gift card provider. */\n  appId: string;\n  /** Contextual information for the request, including the physical location ID if applicable. */\n  context?: Context;\n}\n","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomGiftCardsSpiHostV1GiftCardsSpiHostServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/gift-cards-spi-host',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/ecom/v1/gift-cards',\n        destPath: '/v1/gift-cards',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/ecom/v1/gift-cards',\n        destPath: '/v1/gift-cards',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_gift-vouchers';\n\n/** Retrieves a gift card. */\nexport function getGiftCard(payload: object): RequestOptionsFactory<any> {\n  function __getGiftCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.gift_card',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.ecom.gift_cards_spi_host.v1.GiftCardsSpiHostService.GetGiftCard',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEcomGiftCardsSpiHostV1GiftCardsSpiHostServiceUrl({\n        protoPath: '/v1/gift-cards/{code}',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __getGiftCard;\n}\n\n/**\n * Redeems a gift card.\n * Creates a transaction and lowers the card balance by the transaction amount.\n */\nexport function redeemGiftCard(payload: object): RequestOptionsFactory<any> {\n  function __redeemGiftCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.gift_card',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.ecom.gift_cards_spi_host.v1.GiftCardsSpiHostService.RedeemGiftCard',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEcomGiftCardsSpiHostV1GiftCardsSpiHostServiceUrl({\n        protoPath: '/v1/gift-cards/redeem',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __redeemGiftCard;\n}\n\n/**\n * Voids a gift card transaction.\n * Transaction IDs are returned in Redeem Gift Card.\n */\nexport function voidTransaction(payload: object): RequestOptionsFactory<any> {\n  function __voidTransaction({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.gift_card',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.ecom.gift_cards_spi_host.v1.GiftCardsSpiHostService.VoidTransaction',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEcomGiftCardsSpiHostV1GiftCardsSpiHostServiceUrl({\n        protoPath: '/v1/gift-cards/void',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __voidTransaction;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n  GetGiftCardOptions,\n  GetGiftCardResponse,\n  GetGiftCardResponseNonNullableFields,\n  RedeemGiftCardOptions,\n  RedeemGiftCardResponse,\n  RedeemGiftCardResponseNonNullableFields,\n  VoidTransactionOptions,\n  getGiftCard as universalGetGiftCard,\n  redeemGiftCard as universalRedeemGiftCard,\n  voidTransaction as universalVoidTransaction,\n} from './ecom-v1-gift-card-gift-vouchers.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function getGiftCard(httpClient: HttpClient): GetGiftCardSignature {\n  return (code: string, options?: GetGiftCardOptions) =>\n    universalGetGiftCard(\n      code,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetGiftCardSignature {\n  /**\n   * Retrieves a gift card.\n   * @param - Gift card code.\n   * @param - Field options.\n   */\n  (code: string, options?: GetGiftCardOptions | undefined): Promise<\n    GetGiftCardResponse & GetGiftCardResponseNonNullableFields\n  >;\n}\n\nexport function redeemGiftCard(\n  httpClient: HttpClient\n): RedeemGiftCardSignature {\n  return (code: string, options?: RedeemGiftCardOptions) =>\n    universalRedeemGiftCard(\n      code,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface RedeemGiftCardSignature {\n  /**\n   * Redeems a gift card.\n   * Creates a transaction and lowers the card balance by the transaction amount.\n   * @param - Gift card code.\n   * @param - Field options. `amount` and `appId` **must** be passed.\n   */\n  (code: string, options?: RedeemGiftCardOptions | undefined): Promise<\n    RedeemGiftCardResponse & RedeemGiftCardResponseNonNullableFields\n  >;\n}\n\nexport function voidTransaction(\n  httpClient: HttpClient\n): VoidTransactionSignature {\n  return (transactionId: string, options?: VoidTransactionOptions) =>\n    universalVoidTransaction(\n      transactionId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface VoidTransactionSignature {\n  /**\n   * Voids a gift card transaction.\n   * Transaction IDs are returned in Redeem Gift Card.\n   * @param - Gift card transaction ID, as returned from Redeem Gift Card.\n   * @param - Field options. `appId` **must** be passed.\n   */\n  (\n    transactionId: string,\n    options?: VoidTransactionOptions | undefined\n  ): Promise<void>;\n}\n\nexport {\n  Context,\n  GetGiftCardOptions,\n  GetGiftCardRequest,\n  GetGiftCardResponse,\n  GetGiftCardResponseNonNullableFields,\n  GiftCard,\n  Money,\n  RedeemGiftCardOptions,\n  RedeemGiftCardRequest,\n  RedeemGiftCardResponse,\n  RedeemGiftCardResponseNonNullableFields,\n  Status,\n  VoidTransactionOptions,\n  VoidTransactionRequest,\n  VoidTransactionResponse,\n} from './ecom-v1-gift-card-gift-vouchers.universal.js';\n","import {\n  getGiftCard as publicGetGiftCard,\n  redeemGiftCard as publicRedeemGiftCard,\n  voidTransaction as publicVoidTransaction,\n} from './ecom-v1-gift-card-gift-vouchers.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getGiftCard: MaybeContext<\n  BuildRESTFunction<typeof publicGetGiftCard> & typeof publicGetGiftCard\n> = /*#__PURE__*/ createRESTModule(publicGetGiftCard);\nexport const redeemGiftCard: MaybeContext<\n  BuildRESTFunction<typeof publicRedeemGiftCard> & typeof publicRedeemGiftCard\n> = /*#__PURE__*/ createRESTModule(publicRedeemGiftCard);\nexport const voidTransaction: MaybeContext<\n  BuildRESTFunction<typeof publicVoidTransaction> & typeof publicVoidTransaction\n> = /*#__PURE__*/ createRESTModule(publicVoidTransaction);\n\nexport { Status } from './ecom-v1-gift-card-gift-vouchers.universal.js';\nexport {\n  GiftCard,\n  Money,\n  GetGiftCardRequest,\n  Context,\n  GetGiftCardResponse,\n  RedeemGiftCardRequest,\n  RedeemGiftCardResponse,\n  VoidTransactionRequest,\n  VoidTransactionResponse,\n  GetGiftCardResponseNonNullableFields,\n  RedeemGiftCardResponseNonNullableFields,\n  GetGiftCardOptions,\n  RedeemGiftCardOptions,\n  VoidTransactionOptions,\n} from './ecom-v1-gift-card-gift-vouchers.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,kBAAkB;AAI3B,SAAS,2DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;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,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,YAAY,SAA6C;AACvE,WAAS,cAAc,EAAE,KAAK,GAAQ;AACpC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,2DAA2D;AAAA,QAC9D,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MAC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A,IACA,OAAO,SAAS;AAAA,IAChB,SAAS,SAAS;AAAA,EACpB,CAAC;AAED,QAAM,UAAsC,gBAAgB,OAAO;AAEnE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAAA,EACjC,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,eAAe;AAAA,UACf,OAAO;AAAA,UACP,SAAS;AAAA,QACX;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,iBAAiB,SAAS;AAAA,IAC7B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AExUO,SAASC,aAAY,YAA8C;AACxE,SAAO,CAAC,MAAc,YACpBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAaO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,MAAc,YACpBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAcO,SAASC,iBACd,YAC0B;AAC1B,SAAO,CAAC,eAAuB,YAC7BA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClEA,SAAS,wBAAwB;AAG1B,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,mBAEK,iCAAiBA,gBAAqB;","names":["Status","getGiftCard","redeemGiftCard","voidTransaction","getGiftCard","redeemGiftCard","voidTransaction","getGiftCard","redeemGiftCard","voidTransaction"]}