lib/genesis_ruby/api/mixins/requests/customer_address/billing_info_attributes.rb



# frozen_string_literal: true

module GenesisRuby
  module Api
    module Mixins
      module Requests
        module CustomerAddress
          # Mixin BillingInfoAttributes
          module BillingInfoAttributes

            attr_accessor :billing_first_name, :billing_last_name, :billing_address1, :billing_address2,
                          :billing_zip_code, :billing_city, :billing_state, :billing_country, :billing_neighborhood

            protected

            # Build Hash with all parameters
            def billing_address_parameters_structure # rubocop:disable Metrics/MethodLength
              {
                first_name:   billing_first_name,
                last_name:    billing_last_name,
                address1:     billing_address1,
                address2:     billing_address2,
                zip_code:     billing_zip_code,
                city:         billing_city,
                state:        billing_state,
                neighborhood: billing_neighborhood,
                country:      billing_country
              }
            end

          end
        end
      end
    end
  end
end