Class: Celery::Order
- Extended by:
- EndpointMethods::ClassMethods
- Includes:
- EndpointMethods::InstanceMethods
- Defined in:
- lib/celery/order.rb
Constant Summary collapse
- ENDPOINT_RESOURCE =
"orders"
- ENDPOINT_RESOURCE_SINGULAR =
"order"
Instance Attribute Summary collapse
-
#_id ⇒ Object
Returns the value of attribute _id.
-
#auto_charge ⇒ Object
Returns the value of attribute auto_charge.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#buyer ⇒ Object
Returns the value of attribute buyer.
-
#card ⇒ Object
Returns the value of attribute card.
-
#celery_payment_token ⇒ Object
Returns the value of attribute celery_payment_token.
-
#confirmation_url ⇒ Object
Returns the value of attribute confirmation_url.
-
#coupon ⇒ Object
Returns the value of attribute coupon.
-
#created ⇒ Object
Returns the value of attribute created.
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#deposit ⇒ Object
Returns the value of attribute deposit.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#fulfillment ⇒ Object
Returns the value of attribute fulfillment.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image ⇒ Object
Returns the value of attribute image.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#products ⇒ Object
Returns the value of attribute products.
-
#seller ⇒ Object
Returns the value of attribute seller.
-
#shipping ⇒ Object
Returns the value of attribute shipping.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subtotal ⇒ Object
Returns the value of attribute subtotal.
-
#taxes ⇒ Object
Returns the value of attribute taxes.
-
#total ⇒ Object
Returns the value of attribute total.
-
#tracking ⇒ Object
Returns the value of attribute tracking.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#updated_date ⇒ Object
Returns the value of attribute updated_date.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from EndpointMethods::ClassMethods
all, build_collection, create, endpoint_path, endpoint_resource, get, object_root, options
Methods included from EndpointMethods::InstanceMethods
Methods inherited from Base
Constructor Details
This class inherits a constructor from Celery::Base
Instance Attribute Details
#_id ⇒ Object
Returns the value of attribute _id.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def _id @_id end |
#auto_charge ⇒ Object
Returns the value of attribute auto_charge.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def auto_charge @auto_charge end |
#balance ⇒ Object
Returns the value of attribute balance.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def balance @balance end |
#buyer ⇒ Object
Returns the value of attribute buyer.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def buyer @buyer end |
#card ⇒ Object
Returns the value of attribute card.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def card @card end |
#celery_payment_token ⇒ Object
Returns the value of attribute celery_payment_token.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def celery_payment_token @celery_payment_token end |
#confirmation_url ⇒ Object
Returns the value of attribute confirmation_url.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def confirmation_url @confirmation_url end |
#coupon ⇒ Object
Returns the value of attribute coupon.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def coupon @coupon end |
#created ⇒ Object
Returns the value of attribute created.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def created @created end |
#created_date ⇒ Object
Returns the value of attribute created_date.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def created_date @created_date end |
#currency ⇒ Object
Returns the value of attribute currency.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def currency @currency end |
#deposit ⇒ Object
Returns the value of attribute deposit.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def deposit @deposit end |
#discount ⇒ Object
Returns the value of attribute discount.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def discount @discount end |
#flags ⇒ Object
Returns the value of attribute flags.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def flags @flags end |
#fulfillment ⇒ Object
Returns the value of attribute fulfillment.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def fulfillment @fulfillment end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def id @id end |
#image ⇒ Object
Returns the value of attribute image.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def image @image end |
#metadata ⇒ Object
Returns the value of attribute metadata.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def name @name end |
#notes ⇒ Object
Returns the value of attribute notes.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def notes @notes end |
#payment ⇒ Object
Returns the value of attribute payment.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def payment @payment end |
#products ⇒ Object
Returns the value of attribute products.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def products @products end |
#seller ⇒ Object
Returns the value of attribute seller.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def seller @seller end |
#shipping ⇒ Object
Returns the value of attribute shipping.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def shipping @shipping end |
#slug ⇒ Object
Returns the value of attribute slug.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def slug @slug end |
#status ⇒ Object
Returns the value of attribute status.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def status @status end |
#subtotal ⇒ Object
Returns the value of attribute subtotal.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def subtotal @subtotal end |
#taxes ⇒ Object
Returns the value of attribute taxes.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def taxes @taxes end |
#total ⇒ Object
Returns the value of attribute total.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def total @total end |
#tracking ⇒ Object
Returns the value of attribute tracking.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def tracking @tracking end |
#updated ⇒ Object
Returns the value of attribute updated.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def updated @updated end |
#updated_date ⇒ Object
Returns the value of attribute updated_date.
11 12 13 |
# File 'lib/celery/order.rb', line 11 def updated_date @updated_date end |
Class Method Details
Instance Method Details
#cancel ⇒ Object
41 42 43 44 |
# File 'lib/celery/order.rb', line 41 def cancel response = endpoint_call(:get, "cancel") return true if response[self.class.object_root] end |
#charge_deposit ⇒ Object
46 47 48 49 |
# File 'lib/celery/order.rb', line 46 def charge_deposit response = endpoint_call(:post, "charge_deposit") return true if response[self.class.object_root] end |