Class: Increase::Models::CardPurchaseSupplement::Invoice

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/card_purchase_supplement.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#discount_amountInteger

Discount given to cardholder.

Returns:

  • (Integer)


40
# File 'lib/increase/models/card_purchase_supplement.rb', line 40

required :discount_amount, Integer

#discount_currencyString

The ISO 4217 code for the discount.

Returns:

  • (String)


45
# File 'lib/increase/models/card_purchase_supplement.rb', line 45

required :discount_currency, String

#discount_treatment_codeSymbol

Indicates how the merchant applied the discount.

Returns:

  • (Symbol)


50
51
52
53
54
55
# File 'lib/increase/models/card_purchase_supplement.rb', line 50

required :discount_treatment_code,
Increase::Enum.new(
  :no_invoice_level_discount_provided,
  :tax_calculated_on_post_discount_invoice_total,
  :tax_calculated_on_pre_discount_invoice_total
)

#duty_tax_amountInteger

Amount of duty taxes.

Returns:

  • (Integer)


60
# File 'lib/increase/models/card_purchase_supplement.rb', line 60

required :duty_tax_amount, Integer

#duty_tax_currencyString

The ISO 4217 code for the duty tax.

Returns:

  • (String)


65
# File 'lib/increase/models/card_purchase_supplement.rb', line 65

required :duty_tax_currency, String

#order_dateString

Date the order was taken.

Returns:

  • (String)


70
# File 'lib/increase/models/card_purchase_supplement.rb', line 70

required :order_date, String

#shipping_amountInteger

The shipping cost.

Returns:

  • (Integer)


75
# File 'lib/increase/models/card_purchase_supplement.rb', line 75

required :shipping_amount, Integer

#shipping_currencyString

The ISO 4217 code for the shipping cost.

Returns:

  • (String)


80
# File 'lib/increase/models/card_purchase_supplement.rb', line 80

required :shipping_currency, String

#shipping_destination_country_codeString

Country code of the shipping destination.

Returns:

  • (String)


85
# File 'lib/increase/models/card_purchase_supplement.rb', line 85

required :shipping_destination_country_code, String

#shipping_destination_postal_codeString

Postal code of the shipping destination.

Returns:

  • (String)


90
# File 'lib/increase/models/card_purchase_supplement.rb', line 90

required :shipping_destination_postal_code, String

#shipping_source_postal_codeString

Postal code of the location being shipped from.

Returns:

  • (String)


95
# File 'lib/increase/models/card_purchase_supplement.rb', line 95

required :shipping_source_postal_code, String

#shipping_tax_amountInteger

Taxes paid for freight and shipping.

Returns:

  • (Integer)


100
# File 'lib/increase/models/card_purchase_supplement.rb', line 100

required :shipping_tax_amount, Integer

#shipping_tax_currencyString

The ISO 4217 code for the shipping tax.

Returns:

  • (String)


105
# File 'lib/increase/models/card_purchase_supplement.rb', line 105

required :shipping_tax_currency, String

#shipping_tax_rateString

Tax rate for freight and shipping.

Returns:

  • (String)


110
# File 'lib/increase/models/card_purchase_supplement.rb', line 110

required :shipping_tax_rate, String

#tax_treatmentsSymbol

Indicates how the merchant applied taxes.

Returns:

  • (Symbol)


115
116
117
118
119
120
121
122
# File 'lib/increase/models/card_purchase_supplement.rb', line 115

required :tax_treatments,
Increase::Enum.new(
  :no_tax_applies,
  :net_price_line_item_level,
  :net_price_invoice_level,
  :gross_price_line_item_level,
  :gross_price_invoice_level
)

#unique_value_added_tax_invoice_referenceString

Value added tax invoice reference number.

Returns:

  • (String)


127
# File 'lib/increase/models/card_purchase_supplement.rb', line 127

required :unique_value_added_tax_invoice_reference, String