class Tpaga::CreditCardCharge

Attributes

amount[RW]
child_merchant_id[RW]
credit_card[RW]
currency[RW]
customer[RW]
description[RW]
error_code[RW]
error_message[RW]
iac_amount[RW]
id[RW]
installments[RW]
net_amount[RW]
order_id[RW]
paid[RW]
payment_transaction[RW]
rete_ica_amount[RW]
rete_iva_amount[RW]
rete_renta_amount[RW]
tax_amount[RW]
third_party_id[RW]
tip_amount[RW]
tpaga_fee_amount[RW]
transaction_info[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_charge.rb, line 6
def self.attribute_map
  {
    
    #
    :'id' => :'id',
    
    #
    :'amount' => :'amount',
    
    #
    :'tax_amount' => :'taxAmount',

    #
    :'net_amount' => :'netAmount',

    #
    :'iac_amount' => :'iacAmount',

    #
    :'tip_amount' => :'tipAmount',

    #
    :'rete_renta_amount' => :'reteRentaAmount',

    #
    :'rete_iva_amount' => :'reteIvaAmount',

    #
    :'rete_ica_amount' => :'reteIcaAmount',

    #
    :'tpaga_fee_amount' => :'tpagaFeeAmount',
    
    # 3-letter ISO code for currency.
    :'currency' => :'currency',
    
    #
    :'credit_card' => :'creditCard',
    
    # The amount of payments to divide the charge amount.
    :'installments' => :'installments',
    
    #
    :'order_id' => :'orderId',
    
    #
    :'description' => :'description',

    #
    :'third_party_id' => :'thirdPartyId',

    #
    :'paid' => :'paid',
    
    #
    :'customer' => :'customer',
    
    #
    :'payment_transaction' => :'paymentTransaction',
    
    #
    :'transaction_info' => :'transactionInfo',
    
    #
    :'error_code' => :'errorCode',

    #
    :'error_message' => :'errorMessage',

    #
    :'child_merchant_id' => :'childMerchantId',
  }
end
new(attributes = {}) click to toggle source
# File lib/tpaga/models/credit_card_charge.rb, line 109
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[:'id']
    @id = attributes[:'id']
  end
  
  if attributes[:'amount']
    @amount = attributes[:'amount']
  end
  
  if attributes[:'taxAmount']
    @tax_amount = attributes[:'taxAmount']
  end
  
  if attributes[:'netAmount']
    @net_amount = attributes[:'netAmount']
  end

  if attributes[:'iacAmount']
    @iac_amount = attributes[:'iacAmount']
  end
  
  if attributes[:'tipAmount']
    @tip_amount = attributes[:'tipAmount']
  end

  if attributes[:'reteRentaAmount']
    @rete_renta_amount = attributes[:'reteRentaAmount']
  end

  if attributes[:'reteIvaAmount']
    @rete_iva_amount = attributes[:'reteIvaAmount']
  end

  if attributes[:'reteIcaAmount']
    @rete_ica_amount = attributes[:'reteIcaAmount']
  end

  if attributes[:'tpagaFeeAmount']
    @tpaga_fee_amount = attributes[:'tpagaFeeAmount']
  end
  
  if attributes[:'currency']
    @currency = attributes[:'currency']
  end
  
  if attributes[:'creditCard']
    @credit_card = attributes[:'creditCard']
  end
  
  if attributes[:'installments']
    @installments = attributes[:'installments']
  end
  
  if attributes[:'orderId']
    @order_id = attributes[:'orderId']
    end

  if attributes[:'thirdPartyId']
    @third_party_id = attributes[:'thirdPartyId']
  end
  
  if attributes[:'description']
    @description = attributes[:'description']
  end
  
  if attributes[:'paid']
    @paid = attributes[:'paid']
  end
  
  if attributes[:'customer']
    @customer = attributes[:'customer']
  end
  
  if attributes[:'paymentTransaction']
    @payment_transaction = attributes[:'paymentTransaction']
  end
  
  if attributes[:'transactionInfo']
    @transaction_info = attributes[:'transactionInfo']
  end
  
  if attributes[:'errorCode']
    @error_code = attributes[:'errorCode']
  end

  if attributes[:'errorMessage']
    @error_message = attributes[:'errorMessage']
  end

  if attributes[:'childMerchantId']
    @child_merchant_id = attributes[:'childMerchantId']
  end
end
swagger_types() click to toggle source

attribute type

# File lib/tpaga/models/credit_card_charge.rb, line 81
def self.swagger_types
  {
    :'id' => :'string',
    :'amount' => :'number',
    :'tax_amount' => :'number',
    :'net_amount' => :'number',
    :'iac_amount' => :'number',
    :'tip_amount' => :'number',
    :'rete_renta_amount' => :'number',
    :'rete_iva_amount' => :'number',
    :'rete_ica_amount' => :'number',
    :'tpaga_fee_amount' => :'number',
    :'currency' => :'string',
    :'credit_card' => :'string',
    :'installments' => :'number',
    :'order_id' => :'string',
    :'third_party_id' => :'string',
    :'description' => :'string',
    :'paid' => :'boolean',
    :'customer' => :'string',
    :'payment_transaction' => :'string',
    :'transaction_info' => :'TransactionInfo',
    :'error_code' => :'string',
    :'error_message' => :'string',
    :'child_merchant_id' => :'string',
  }
end