All files / app/config config.mock.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116    103x 1136x                                                                                                                                                                                                                                
import { StoreConfig } from '@bigcommerce/checkout-sdk';
 
export function getStoreConfig(): StoreConfig {
    return {
        cdnPath: 'https://cdn.bcapp.dev/rHEAD',
        inputDateFormat: 'dd/MM/yyyy',
        displayDateFormat: 'dd/MM/yyyy',
        formFields: {
            shippingAddressFields: [],
            billingAddressFields: [],
        },
        checkoutSettings: {
            enableOrderComments: true,
            enableTermsAndConditions: false,
            googleRecaptchaSitekey: 'sitekey',
            googleMapsApiKey: '',
            hasMultiShippingEnabled: true,
            guestCheckoutEnabled: true,
            isAnalyticsEnabled: true,
            isCardVaultingEnabled: true,
            isPaymentRequestEnabled: false,
            isPaymentRequestCanMakePaymentEnabled: false,
            isSpamProtectionEnabled: false,
            isCouponCodeCollapsed: true,
            isTrustedShippingAddressEnabled: true,
            orderTermsAndConditions: '',
            orderTermsAndConditionsLink: '',
            orderTermsAndConditionsType: '',
            privacyPolicyUrl: '',
            shippingQuoteFailedMessage: 'Unfortunately one or more items in your cart can\'t be shipped to your \
            location.Please choose a different delivery address.',
            realtimeShippingProviders: [
                'Fedex',
                'UPS',
                'USPS',
            ],
            requiresMarketingConsent: false,
            features: {},
            remoteCheckoutProviders: [],
        },
        currency: {
            code: 'USD',
            decimalPlaces: '2',
            decimalSeparator: '.',
            symbolLocation: 'left',
            symbol: '$',
            thousandsSeparator: ',',
        },
        links: {
            cartLink: 'https://store-k1drp8k8.bcapp.dev/cart.php',
            checkoutLink: 'https://store-k1drp8k8.bcapp.dev/checkout',
            createAccountLink: 'https://store-k1drp8k8.bcapp.dev/login.php?action=create_account',
            forgotPasswordLink: 'https://store-k1drp8k8.bcapp.dev/login.php?action=reset_password',
            loginLink: 'https://store-k1drp8k8.bcapp.dev/login.php',
            siteLink: 'https://store-k1drp8k8.bcapp.dev',
            orderConfirmationLink: 'https://store-k1drp8k8.bcapp.dev/checkout/order-confirmation',
        },
        paymentSettings: {
            bigpayBaseUrl: 'https://bigpay.integration.zone',
            clientSidePaymentProviders: [
                'migs',
                'eway',
                'securenet',
                'usaepay',
                'elavon',
                'hps',
                'quickbooks',
                'orbital',
                'stripe',
                'authorizenet',
                'firstdatae4v14',
                'nmi',
                'braintree',
                'braintreepaypal',
                'paypal',
                'sagepay',
                'squarev2',
                'afterpay',
                'vantiv',
            ],
        },
        shopperConfig: {
            defaultNewsletterSignup: false,
            passwordRequirements: {
                alpha: '/[A-Za-z]/',
                numeric: '/[0-9]/',
                minlength: 7,
                error: 'Passwords must be at least 7 characters and contain both alphabetic and numeric characters.',
            },
            showNewsletterSignup: true,
        },
        storeProfile: {
            orderEmail: '[email protected]',
            shopPath: 'https://store-k1drp8k8.bcapp.dev',
            storeCountry: 'United States',
            storeHash: 'k1drp8k8',
            storeId: '1504098821',
            storeName: 's1504098821',
            storePhoneNumber: '987654321',
            storeLanguage: 'en_US',
        },
        imageDirectory: 'product_images',
        isAngularDebuggingEnabled: false,
        shopperCurrency: {
            code: 'USD',
            symbolLocation: 'left',
            symbol: '$',
            decimalPlaces: '2',
            decimalSeparator: '.',
            isTransactional: true,
            thousandsSeparator: ',',
            exchangeRate: 1.12,
        },
    };
}