class AlphaCard::Shipping

Implementation of Alpha Card Services order shipping information. Contains all the shipping information (address, city, zip, etc).

Constants

ORIGIN_TRANSACTION_VARIABLES

Original AlphaCard transaction variables names

Protected Instance Methods

filled_attributes() click to toggle source

Overloaded filled_attributes method from AlphaCard::AlphaCardObject. All attribute names of the Alpha Card Shipping object must start with “shipping_” prefix.

@return [Hash] attributes

Only filled attributes of Shipping resource with "shipping_" prefix.

@example

shipping = AlphaCard::Shipping.new(first_name: 'John', state: 'NY')
shipping.filled_attributes

#=> { shipping_firstname: 'John', shipping_state: 'NY' }
# File lib/alpha_card/resources/shipping.rb, line 44
def filled_attributes
  Hash[super.map { |k, v| ["shipping_#{k}".to_sym, v] }]
end