Class: AdvancedBilling::TaxDestinationAddress
- Inherits:
-
Object
- Object
- AdvancedBilling::TaxDestinationAddress
- Defined in:
- lib/advanced_billing/models/tax_destination_address.rb
Overview
Tax Destination Address.
Constant Summary collapse
- TAX_DESTINATION_ADDRESS =
[ # TODO: Write general description for SHIPPING_THEN_BILLING SHIPPING_THEN_BILLING = 'shipping_then_billing'.freeze, # TODO: Write general description for BILLING_THEN_SHIPPING BILLING_THEN_SHIPPING = 'billing_then_shipping'.freeze, # TODO: Write general description for SHIPPING_ONLY SHIPPING_ONLY = 'shipping_only'.freeze, # TODO: Write general description for BILLING_ONLY BILLING_ONLY = 'billing_only'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
23 24 25 26 27 |
# File 'lib/advanced_billing/models/tax_destination_address.rb', line 23 def self.validate(value) return false if value.nil? TAX_DESTINATION_ADDRESS.include?(value) end |