Class: BigcommerceAPI::Order
- 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 inherited from Resource
all, belongs_to, #create, find, has_many, has_one, #initialize, #parent, #resource, resource, #resource_url, #save
Methods inherited from Base
#attributes, clean!, date_adjust, #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.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def base_handling_cost @base_handling_cost end |
#base_shipping_cost ⇒ Object
Returns the value of attribute base_shipping_cost.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def base_shipping_cost @base_shipping_cost end |
#base_wrapping_cost ⇒ Object
Returns the value of attribute base_wrapping_cost.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def base_wrapping_cost @base_wrapping_cost end |
#billing_address ⇒ Object
Returns the value of attribute billing_address.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def billing_address @billing_address end |
#coupon_discount ⇒ Object
Returns the value of attribute coupon_discount.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def coupon_discount @coupon_discount end |
#coupons_hash ⇒ Object
Returns the value of attribute coupons_hash.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def coupons_hash @coupons_hash end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def currency_code @currency_code end |
#currency_exchange_rate ⇒ Object
Returns the value of attribute currency_exchange_rate.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def currency_exchange_rate @currency_exchange_rate end |
#currency_id ⇒ Object
Returns the value of attribute currency_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def currency_id @currency_id end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def customer_id @customer_id end |
#customer_message ⇒ Object
Returns the value of attribute customer_message.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def end |
#date_created ⇒ Object
Returns the value of attribute date_created.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def date_created @date_created end |
#date_modified ⇒ Object
Returns the value of attribute date_modified.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def date_modified @date_modified end |
#date_shipped ⇒ Object
Returns the value of attribute date_shipped.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def date_shipped @date_shipped end |
#default_currency_code ⇒ Object
Returns the value of attribute default_currency_code.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def default_currency_code @default_currency_code end |
#default_currency_id ⇒ Object
Returns the value of attribute default_currency_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def default_currency_id @default_currency_id end |
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def discount_amount @discount_amount end |
#geoip_country ⇒ Object
Returns the value of attribute geoip_country.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def geoip_country @geoip_country end |
#geoip_country_iso2 ⇒ Object
Returns the value of attribute geoip_country_iso2.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def geoip_country_iso2 @geoip_country_iso2 end |
#gift_certificate_amount ⇒ Object
Returns the value of attribute gift_certificate_amount.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def gift_certificate_amount @gift_certificate_amount end |
#handling_cost_ex_tax ⇒ Object
Returns the value of attribute handling_cost_ex_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def handling_cost_ex_tax @handling_cost_ex_tax end |
#handling_cost_inc_tax ⇒ Object
Returns the value of attribute handling_cost_inc_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def handling_cost_inc_tax @handling_cost_inc_tax end |
#handling_cost_tax ⇒ Object
Returns the value of attribute handling_cost_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def handling_cost_tax @handling_cost_tax end |
#handling_cost_tax_class_id ⇒ Object
Returns the value of attribute handling_cost_tax_class_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def handling_cost_tax_class_id @handling_cost_tax_class_id end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def ip_address @ip_address end |
#is_deleted ⇒ Object
Returns the value of attribute is_deleted.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def is_deleted @is_deleted end |
#items_shipped ⇒ Object
Returns the value of attribute items_shipped.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def items_shipped @items_shipped end |
#items_total ⇒ Object
Returns the value of attribute items_total.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def items_total @items_total end |
#order_is_digital ⇒ Object
Returns the value of attribute order_is_digital.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def order_is_digital @order_is_digital end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def payment_method @payment_method end |
#payment_provider_id ⇒ Object
Returns the value of attribute payment_provider_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def payment_provider_id @payment_provider_id end |
#payment_status ⇒ Object
Returns the value of attribute payment_status.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def payment_status @payment_status end |
#products_hash ⇒ Object
Returns the value of attribute products_hash.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def products_hash @products_hash end |
#refunded_amount ⇒ Object
Returns the value of attribute refunded_amount.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def refunded_amount @refunded_amount end |
#shipping_address_count ⇒ Object
Returns the value of attribute shipping_address_count.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def shipping_address_count @shipping_address_count end |
#shipping_addresses_hash ⇒ Object
Returns the value of attribute shipping_addresses_hash.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def shipping_addresses_hash @shipping_addresses_hash end |
#shipping_cost_ex_tax ⇒ Object
Returns the value of attribute shipping_cost_ex_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def shipping_cost_ex_tax @shipping_cost_ex_tax end |
#shipping_cost_inc_tax ⇒ Object
Returns the value of attribute shipping_cost_inc_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def shipping_cost_inc_tax @shipping_cost_inc_tax end |
#shipping_cost_tax ⇒ Object
Returns the value of attribute shipping_cost_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def shipping_cost_tax @shipping_cost_tax end |
#shipping_cost_tax_class_id ⇒ Object
Returns the value of attribute shipping_cost_tax_class_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def shipping_cost_tax_class_id @shipping_cost_tax_class_id end |
#staff_notes ⇒ Object
Returns the value of attribute staff_notes.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def staff_notes @staff_notes end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def status @status end |
#status_id ⇒ Object
Returns the value of attribute status_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def status_id @status_id end |
#store_credit_amount ⇒ Object
Returns the value of attribute store_credit_amount.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def store_credit_amount @store_credit_amount end |
#subtotal_ex_tax ⇒ Object
Returns the value of attribute subtotal_ex_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def subtotal_ex_tax @subtotal_ex_tax end |
#subtotal_inc_tax ⇒ Object
Returns the value of attribute subtotal_inc_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def subtotal_inc_tax @subtotal_inc_tax end |
#subtotal_tax ⇒ Object
Returns the value of attribute subtotal_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def subtotal_tax @subtotal_tax end |
#total_ex_tax ⇒ Object
Returns the value of attribute total_ex_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def total_ex_tax @total_ex_tax end |
#total_inc_tax ⇒ Object
Returns the value of attribute total_inc_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def total_inc_tax @total_inc_tax end |
#total_tax ⇒ Object
Returns the value of attribute total_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def total_tax @total_tax end |
#wrapping_cost_ex_tax ⇒ Object
Returns the value of attribute wrapping_cost_ex_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def wrapping_cost_ex_tax @wrapping_cost_ex_tax end |
#wrapping_cost_inc_tax ⇒ Object
Returns the value of attribute wrapping_cost_inc_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def wrapping_cost_inc_tax @wrapping_cost_inc_tax end |
#wrapping_cost_tax ⇒ Object
Returns the value of attribute wrapping_cost_tax.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def wrapping_cost_tax @wrapping_cost_tax end |
#wrapping_cost_tax_class_id ⇒ Object
Returns the value of attribute wrapping_cost_tax_class_id.
4 5 6 |
# File 'lib/bigcommerce_api/order.rb', line 4 def wrapping_cost_tax_class_id @wrapping_cost_tax_class_id end |
Instance Method Details
#shipments ⇒ Object
10 11 12 13 |
# File 'lib/bigcommerce_api/order.rb', line 10 def shipments s = BigcommerceAPI::Base.get '/orders/' + self.id.to_s + '/shipments' (s.success? and !s.nil?) ? s.collect{|o| BigcommerceAPI::Shipment.new(o)} : [] end |