// File generated from our OpenAPI spec declare module 'expresspayments' { namespace ExpressPayments { namespace Terminal { interface ConfigurationCreateParams { /** * An object containing device type specific settings for BBPOS WisePOS E readers */ bbpos_wisepos_e?: ConfigurationCreateParams.BbposWiseposE; /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * Tipping configurations for readers supporting on-reader tips */ tipping?: ExpressPayments.Emptyable< ConfigurationCreateParams.Tipping >; /** * An object containing device type specific settings for Verifone P400 readers */ verifone_p400?: ConfigurationCreateParams.VerifoneP400; } namespace ConfigurationCreateParams { interface BbposWiseposE { /** * A File ID representing an image you would like displayed on the reader. */ splashscreen?: ExpressPayments.Emptyable; } interface Tipping { /** * Tipping configuration for AUD */ aud?: Tipping.Aud; /** * Tipping configuration for CAD */ cad?: Tipping.Cad; /** * Tipping configuration for CHF */ chf?: Tipping.Chf; /** * Tipping configuration for CZK */ czk?: Tipping.Czk; /** * Tipping configuration for DKK */ dkk?: Tipping.Dkk; /** * Tipping configuration for EUR */ eur?: Tipping.Eur; /** * Tipping configuration for GBP */ gbp?: Tipping.Gbp; /** * Tipping configuration for HKD */ hkd?: Tipping.Hkd; /** * Tipping configuration for MYR */ myr?: Tipping.Myr; /** * Tipping configuration for NOK */ nok?: Tipping.Nok; /** * Tipping configuration for NZD */ nzd?: Tipping.Nzd; /** * Tipping configuration for SEK */ sek?: Tipping.Sek; /** * Tipping configuration for SGD */ sgd?: Tipping.Sgd; /** * Tipping configuration for USD */ usd?: Tipping.Usd; } namespace Tipping { interface Aud { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Cad { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Chf { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Czk { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Dkk { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Eur { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Gbp { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Hkd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Myr { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Nok { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Nzd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Sek { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Sgd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Usd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } } interface VerifoneP400 { /** * A File ID representing an image you would like displayed on the reader. */ splashscreen?: ExpressPayments.Emptyable; } } interface ConfigurationRetrieveParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; } interface ConfigurationUpdateParams { /** * An object containing device type specific settings for BBPOS WisePOS E readers */ bbpos_wisepos_e?: ExpressPayments.Emptyable< ConfigurationUpdateParams.BbposWiseposE >; /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * Tipping configurations for readers supporting on-reader tips */ tipping?: ExpressPayments.Emptyable< ConfigurationUpdateParams.Tipping >; /** * An object containing device type specific settings for Verifone P400 readers */ verifone_p400?: ExpressPayments.Emptyable< ConfigurationUpdateParams.VerifoneP400 >; } namespace ConfigurationUpdateParams { interface BbposWiseposE { /** * A File ID representing an image you would like displayed on the reader. */ splashscreen?: ExpressPayments.Emptyable; } interface Tipping { /** * Tipping configuration for AUD */ aud?: Tipping.Aud; /** * Tipping configuration for CAD */ cad?: Tipping.Cad; /** * Tipping configuration for CHF */ chf?: Tipping.Chf; /** * Tipping configuration for CZK */ czk?: Tipping.Czk; /** * Tipping configuration for DKK */ dkk?: Tipping.Dkk; /** * Tipping configuration for EUR */ eur?: Tipping.Eur; /** * Tipping configuration for GBP */ gbp?: Tipping.Gbp; /** * Tipping configuration for HKD */ hkd?: Tipping.Hkd; /** * Tipping configuration for MYR */ myr?: Tipping.Myr; /** * Tipping configuration for NOK */ nok?: Tipping.Nok; /** * Tipping configuration for NZD */ nzd?: Tipping.Nzd; /** * Tipping configuration for SEK */ sek?: Tipping.Sek; /** * Tipping configuration for SGD */ sgd?: Tipping.Sgd; /** * Tipping configuration for USD */ usd?: Tipping.Usd; } namespace Tipping { interface Aud { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Cad { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Chf { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Czk { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Dkk { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Eur { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Gbp { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Hkd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Myr { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Nok { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Nzd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Sek { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Sgd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } interface Usd { /** * Fixed amounts displayed when collecting a tip */ fixed_amounts?: Array; /** * Percentages displayed when collecting a tip */ percentages?: Array; /** * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ smart_tip_threshold?: number; } } interface VerifoneP400 { /** * A File ID representing an image you would like displayed on the reader. */ splashscreen?: ExpressPayments.Emptyable; } } interface ConfigurationListParams extends PaginationParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * if present, only return the account default or non-default configurations. */ is_account_default?: boolean; } interface ConfigurationDeleteParams {} class ConfigurationsResource { /** * Creates a new Configuration object. */ create( params?: ConfigurationCreateParams, options?: RequestOptions ): Promise< ExpressPayments.Response >; create( options?: RequestOptions ): Promise< ExpressPayments.Response >; /** * Retrieves a Configuration object. */ retrieve( id: string, params?: ConfigurationRetrieveParams, options?: RequestOptions ): Promise< ExpressPayments.Response< | ExpressPayments.Terminal.Configuration | ExpressPayments.Terminal.DeletedConfiguration > >; retrieve( id: string, options?: RequestOptions ): Promise< ExpressPayments.Response< | ExpressPayments.Terminal.Configuration | ExpressPayments.Terminal.DeletedConfiguration > >; /** * Updates a new Configuration object. */ update( id: string, params?: ConfigurationUpdateParams, options?: RequestOptions ): Promise< ExpressPayments.Response< | ExpressPayments.Terminal.Configuration | ExpressPayments.Terminal.DeletedConfiguration > >; /** * Returns a list of Configuration objects. */ list( params?: ConfigurationListParams, options?: RequestOptions ): ApiListPromise; list( options?: RequestOptions ): ApiListPromise; /** * Deletes a Configuration object. */ del( id: string, params?: ConfigurationDeleteParams, options?: RequestOptions ): Promise< ExpressPayments.Response< ExpressPayments.Terminal.DeletedConfiguration > >; del( id: string, options?: RequestOptions ): Promise< ExpressPayments.Response< ExpressPayments.Terminal.DeletedConfiguration > >; } } } }