Class: Bambora::Bank::Builders::PaymentProfileParams

Inherits:
Object
  • Object
show all
Defined in:
lib/bambora/bank/builders/payment_profile_params.rb

Overview

Builds a request body for the Bank Payment Profile endpoint from a Hash

Constant Summary collapse

CONTACT_PARAMS =
%w[name email_address phone_number address_1 address_2 city postal_code province country].freeze

Class Method Summary collapse

Class Method Details

.build(params) ⇒ Object

Converts a snake_case hash to camelCase keys with vendor-specific prefixes. See tests for examples.



18
19
20
21
22
# File 'lib/bambora/bank/builders/payment_profile_params.rb', line 18

def build(params)
  params.transform_keys do |key|
    transform_key(key)
  end
end