class Tpaga::CreditCardCreate
Attributes
billing_address[RW]
card_holder_name[RW]
card_verification_code[RW]
expiration_month[RW]
expiration_year[RW]
primary_account_number[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# File lib/tpaga/models/credit_card_create.rb, line 6 def self.attribute_map { # :'primary_account_number' => :'primaryAccountNumber', # :'expiration_month' => :'expirationMonth', # :'expiration_year' => :'expirationYear', # :'card_verification_code' => :'cardVerificationCode', # :'card_holder_name' => :'cardHolderName', # :'billing_address' => :'billingAddress' } end
new(attributes = {})
click to toggle source
# File lib/tpaga/models/credit_card_create.rb, line 43 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'primaryAccountNumber'] @primary_account_number = attributes[:'primaryAccountNumber'] end if attributes[:'expirationMonth'] @expiration_month = attributes[:'expirationMonth'] end if attributes[:'expirationYear'] @expiration_year = attributes[:'expirationYear'] end if attributes[:'cardVerificationCode'] @card_verification_code = attributes[:'cardVerificationCode'] end if attributes[:'cardHolderName'] @card_holder_name = attributes[:'cardHolderName'] end if attributes[:'billingAddress'] @billing_address = attributes[:'billingAddress'] end end
swagger_types()
click to toggle source
attribute type
# File lib/tpaga/models/credit_card_create.rb, line 31 def self.swagger_types { :'primary_account_number' => :'string', :'expiration_month' => :'string', :'expiration_year' => :'string', :'card_verification_code' => :'string', :'card_holder_name' => :'string', :'billing_address' => :'BillingAddress' } end