Class: BigcommerceAPI::Order
- Extended by:
- Countable
- Defined in:
- lib/bigcommerce_api/order.rb
Instance Attribute Summary collapse
-
#base_handling_cost ⇒ Object
Returns the value of attribute base_handling_cost.
-
#base_shipping_cost ⇒ Object
Returns the value of attribute base_shipping_cost.
-
#base_wrapping_cost ⇒ Object
Returns the value of attribute base_wrapping_cost.
-
#billing_address ⇒ Object
Returns the value of attribute billing_address.
-
#coupon_discount ⇒ Object
Returns the value of attribute coupon_discount.
-
#coupons_hash ⇒ Object
Returns the value of attribute coupons_hash.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#currency_exchange_rate ⇒ Object
Returns the value of attribute currency_exchange_rate.
-
#currency_id ⇒ Object
Returns the value of attribute currency_id.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#customer_message ⇒ Object
Returns the value of attribute customer_message.
-
#date_created ⇒ Object
Returns the value of attribute date_created.
-
#date_modified ⇒ Object
Returns the value of attribute date_modified.
-
#date_shipped ⇒ Object
Returns the value of attribute date_shipped.
-
#default_currency_code ⇒ Object
Returns the value of attribute default_currency_code.
-
#default_currency_id ⇒ Object
Returns the value of attribute default_currency_id.
-
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
-
#geoip_country ⇒ Object
Returns the value of attribute geoip_country.
-
#geoip_country_iso2 ⇒ Object
Returns the value of attribute geoip_country_iso2.
-
#gift_certificate_amount ⇒ Object
Returns the value of attribute gift_certificate_amount.
-
#handling_cost_ex_tax ⇒ Object
Returns the value of attribute handling_cost_ex_tax.
-
#handling_cost_inc_tax ⇒ Object
Returns the value of attribute handling_cost_inc_tax.
-
#handling_cost_tax ⇒ Object
Returns the value of attribute handling_cost_tax.
-
#handling_cost_tax_class_id ⇒ Object
Returns the value of attribute handling_cost_tax_class_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#is_deleted ⇒ Object
Returns the value of attribute is_deleted.
-
#items_shipped ⇒ Object
Returns the value of attribute items_shipped.
-
#items_total ⇒ Object
Returns the value of attribute items_total.
-
#order_is_digital ⇒ Object
Returns the value of attribute order_is_digital.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#payment_provider_id ⇒ Object
Returns the value of attribute payment_provider_id.
-
#payment_status ⇒ Object
Returns the value of attribute payment_status.
-
#products_hash ⇒ Object
Returns the value of attribute products_hash.
-
#refunded_amount ⇒ Object
Returns the value of attribute refunded_amount.
-
#shipping_address_count ⇒ Object
Returns the value of attribute shipping_address_count.
-
#shipping_addresses_hash ⇒ Object
Returns the value of attribute shipping_addresses_hash.
-
#shipping_cost_ex_tax ⇒ Object
Returns the value of attribute shipping_cost_ex_tax.
-
#shipping_cost_inc_tax ⇒ Object
Returns the value of attribute shipping_cost_inc_tax.
-
#shipping_cost_tax ⇒ Object
Returns the value of attribute shipping_cost_tax.
-
#shipping_cost_tax_class_id ⇒ Object
Returns the value of attribute shipping_cost_tax_class_id.
-
#staff_notes ⇒ Object
Returns the value of attribute staff_notes.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
-
#store_credit_amount ⇒ Object
Returns the value of attribute store_credit_amount.
-
#subtotal_ex_tax ⇒ Object
Returns the value of attribute subtotal_ex_tax.
-
#subtotal_inc_tax ⇒ Object
Returns the value of attribute subtotal_inc_tax.
-
#subtotal_tax ⇒ Object
Returns the value of attribute subtotal_tax.
-
#total_ex_tax ⇒ Object
Returns the value of attribute total_ex_tax.
-
#total_inc_tax ⇒ Object
Returns the value of attribute total_inc_tax.
-
#total_tax ⇒ Object
Returns the value of attribute total_tax.
-
#wrapping_cost_ex_tax ⇒ Object
Returns the value of attribute wrapping_cost_ex_tax.
-
#wrapping_cost_inc_tax ⇒ Object
Returns the value of attribute wrapping_cost_inc_tax.
-
#wrapping_cost_tax ⇒ Object
Returns the value of attribute wrapping_cost_tax.
-
#wrapping_cost_tax_class_id ⇒ Object
Returns the value of attribute wrapping_cost_tax_class_id.
Attributes inherited from Resource
Instance Method Summary collapse
Methods included from Countable
Methods inherited from Resource
all, #assign_attributes, belongs_to, #changed, #create, #delete, find, #find_for_reload, has_many, has_one, http_request, #initialize, #mark_dirty!, #parent, #reload, #resource, resource, #resource_url, #save, #update_attributes
Methods inherited from Base
#attributes, clean!, date_adjust, default_options, #initialize, #store, #time, to_rfc2822
Constructor Details
This class inherits a constructor from BigcommerceAPI::Resource
Instance Attribute Details
#base_handling_cost ⇒ Object
Returns the value of attribute base_handling_cost.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def base_handling_cost @base_handling_cost end |
#base_shipping_cost ⇒ Object
Returns the value of attribute base_shipping_cost.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def base_shipping_cost @base_shipping_cost end |
#base_wrapping_cost ⇒ Object
Returns the value of attribute base_wrapping_cost.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def base_wrapping_cost @base_wrapping_cost end |
#billing_address ⇒ Object
Returns the value of attribute billing_address.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def billing_address @billing_address end |
#coupon_discount ⇒ Object
Returns the value of attribute coupon_discount.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def coupon_discount @coupon_discount end |
#coupons_hash ⇒ Object
Returns the value of attribute coupons_hash.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def coupons_hash @coupons_hash end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def currency_code @currency_code end |
#currency_exchange_rate ⇒ Object
Returns the value of attribute currency_exchange_rate.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def currency_exchange_rate @currency_exchange_rate end |
#currency_id ⇒ Object
Returns the value of attribute currency_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def currency_id @currency_id end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def customer_id @customer_id end |
#customer_message ⇒ Object
Returns the value of attribute customer_message.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def @customer_message end |
#date_created ⇒ Object
Returns the value of attribute date_created.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def date_created @date_created end |
#date_modified ⇒ Object
Returns the value of attribute date_modified.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def date_modified @date_modified end |
#date_shipped ⇒ Object
Returns the value of attribute date_shipped.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def date_shipped @date_shipped end |
#default_currency_code ⇒ Object
Returns the value of attribute default_currency_code.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def default_currency_code @default_currency_code end |
#default_currency_id ⇒ Object
Returns the value of attribute default_currency_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def default_currency_id @default_currency_id end |
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def discount_amount @discount_amount end |
#geoip_country ⇒ Object
Returns the value of attribute geoip_country.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def geoip_country @geoip_country end |
#geoip_country_iso2 ⇒ Object
Returns the value of attribute geoip_country_iso2.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def geoip_country_iso2 @geoip_country_iso2 end |
#gift_certificate_amount ⇒ Object
Returns the value of attribute gift_certificate_amount.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def gift_certificate_amount @gift_certificate_amount end |
#handling_cost_ex_tax ⇒ Object
Returns the value of attribute handling_cost_ex_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def handling_cost_ex_tax @handling_cost_ex_tax end |
#handling_cost_inc_tax ⇒ Object
Returns the value of attribute handling_cost_inc_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def handling_cost_inc_tax @handling_cost_inc_tax end |
#handling_cost_tax ⇒ Object
Returns the value of attribute handling_cost_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def handling_cost_tax @handling_cost_tax end |
#handling_cost_tax_class_id ⇒ Object
Returns the value of attribute handling_cost_tax_class_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def handling_cost_tax_class_id @handling_cost_tax_class_id end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def ip_address @ip_address end |
#is_deleted ⇒ Object
Returns the value of attribute is_deleted.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def is_deleted @is_deleted end |
#items_shipped ⇒ Object
Returns the value of attribute items_shipped.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def items_shipped @items_shipped end |
#items_total ⇒ Object
Returns the value of attribute items_total.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def items_total @items_total end |
#order_is_digital ⇒ Object
Returns the value of attribute order_is_digital.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def order_is_digital @order_is_digital end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def payment_method @payment_method end |
#payment_provider_id ⇒ Object
Returns the value of attribute payment_provider_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def payment_provider_id @payment_provider_id end |
#payment_status ⇒ Object
Returns the value of attribute payment_status.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def payment_status @payment_status end |
#products_hash ⇒ Object
Returns the value of attribute products_hash.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def products_hash @products_hash end |
#refunded_amount ⇒ Object
Returns the value of attribute refunded_amount.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def refunded_amount @refunded_amount end |
#shipping_address_count ⇒ Object
Returns the value of attribute shipping_address_count.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def shipping_address_count @shipping_address_count end |
#shipping_addresses_hash ⇒ Object
Returns the value of attribute shipping_addresses_hash.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def shipping_addresses_hash @shipping_addresses_hash end |
#shipping_cost_ex_tax ⇒ Object
Returns the value of attribute shipping_cost_ex_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def shipping_cost_ex_tax @shipping_cost_ex_tax end |
#shipping_cost_inc_tax ⇒ Object
Returns the value of attribute shipping_cost_inc_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def shipping_cost_inc_tax @shipping_cost_inc_tax end |
#shipping_cost_tax ⇒ Object
Returns the value of attribute shipping_cost_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def shipping_cost_tax @shipping_cost_tax end |
#shipping_cost_tax_class_id ⇒ Object
Returns the value of attribute shipping_cost_tax_class_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def shipping_cost_tax_class_id @shipping_cost_tax_class_id end |
#staff_notes ⇒ Object
Returns the value of attribute staff_notes.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def staff_notes @staff_notes end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def status @status end |
#status_id ⇒ Object
Returns the value of attribute status_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def status_id @status_id end |
#store_credit_amount ⇒ Object
Returns the value of attribute store_credit_amount.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def store_credit_amount @store_credit_amount end |
#subtotal_ex_tax ⇒ Object
Returns the value of attribute subtotal_ex_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def subtotal_ex_tax @subtotal_ex_tax end |
#subtotal_inc_tax ⇒ Object
Returns the value of attribute subtotal_inc_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def subtotal_inc_tax @subtotal_inc_tax end |
#subtotal_tax ⇒ Object
Returns the value of attribute subtotal_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def subtotal_tax @subtotal_tax end |
#total_ex_tax ⇒ Object
Returns the value of attribute total_ex_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def total_ex_tax @total_ex_tax end |
#total_inc_tax ⇒ Object
Returns the value of attribute total_inc_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def total_inc_tax @total_inc_tax end |
#total_tax ⇒ Object
Returns the value of attribute total_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def total_tax @total_tax end |
#wrapping_cost_ex_tax ⇒ Object
Returns the value of attribute wrapping_cost_ex_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def wrapping_cost_ex_tax @wrapping_cost_ex_tax end |
#wrapping_cost_inc_tax ⇒ Object
Returns the value of attribute wrapping_cost_inc_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def wrapping_cost_inc_tax @wrapping_cost_inc_tax end |
#wrapping_cost_tax ⇒ Object
Returns the value of attribute wrapping_cost_tax.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def wrapping_cost_tax @wrapping_cost_tax end |
#wrapping_cost_tax_class_id ⇒ Object
Returns the value of attribute wrapping_cost_tax_class_id.
5 6 7 |
# File 'lib/bigcommerce_api/order.rb', line 5 def wrapping_cost_tax_class_id @wrapping_cost_tax_class_id end |
Instance Method Details
#customer ⇒ Object
77 78 79 |
# File 'lib/bigcommerce_api/order.rb', line 77 def customer old_customer unless customer_id == 0 end |
#old_customer ⇒ Object
76 |
# File 'lib/bigcommerce_api/order.rb', line 76 alias_method :old_customer, :customer |