import Options from '../../common/options' ; import Environment from '../common/environment' ; import _MallInscription from './mall_inscription' ; import _MallTransaction from './mall_transaction' ; import IntegrationApiKeys from '../../common/integration_api_keys' ; import IntegrationCommerceCodes from '../../common/integration_commerce_codes' ; module Oneclick { /**
     * Contains methods used to start, finish and delete Inscriptions.
     */ export const MallInscription = _MallInscription ; /**
     * Contains methods used to authorize, commit, refund and capture mall Transactions.
     */ export const MallTransaction = _MallTransaction ; /**
     * Contains currently configured Commerce Code, Api Key and Environment
     */ export let options ; returns export const getDefaultOptions = ( ) => { return Oneclick . options ; } ; param _commerceCode param _apiKey export const configureForProduction = ( _commerceCode , _apiKey ) => { Oneclick . options = new Options ( _commerceCode , _apiKey , Environment . Production ) ; } ; param _commerceCode param _apiKey export const configureForIntegration = ( _commerceCode , _apiKey ) => { Oneclick . options = new Options ( _commerceCode , _apiKey , Environment . Integration ) ; } ; /**
     * This method configures the module to use Oneclick Mall in the Integration environment.
     */ export const configureOneclickMallForTesting = ( ) => { Oneclick . options = new Options ( IntegrationCommerceCodes . ONECLICK_MALL , IntegrationApiKeys . WEBPAY , Environment . Integration ) ; } ; /**
     * This method configures the module to use Oneclick Mall deferred in the Integration environment.
     */ export const configureOneclickMallDeferredForTesting = ( ) => { Oneclick . options = new Options ( IntegrationCommerceCodes . ONECLICK_MALL_DEFERRED , IntegrationApiKeys . WEBPAY , Environment . Integration ) ; } ; } export default Oneclick ;