Class: Mailchimp::Ecomm
- Inherits:
-
Object
- Object
- Mailchimp::Ecomm
- Defined in:
- lib/mailchimp/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#initialize(master) ⇒ Ecomm
constructor
A new instance of Ecomm.
-
#order_add(order) ⇒ Hash
Import Ecommerce Order Information to be used for Segmentation.
-
#order_del(store_id, order_id) ⇒ Hash
Delete Ecommerce Order Information used for segmentation.
-
#orders(cid = nil, start = 0, limit = 100, since = nil) ⇒ Hash
Retrieve the Ecommerce Orders for an account.
Constructor Details
#initialize(master) ⇒ Ecomm
Returns a new instance of Ecomm.
470 471 472 |
# File 'lib/mailchimp/api.rb', line 470 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
468 469 470 |
# File 'lib/mailchimp/api.rb', line 468 def master @master end |
Instance Method Details
#order_add(order) ⇒ Hash
Import Ecommerce Order Information to be used for Segmentation. This will generally be used by ecommerce package plugins <a href=“connect.mailchimp.com/category/ecommerce” target=“_blank”>provided by us or by 3rd part system developers</a>.
497 498 499 500 |
# File 'lib/mailchimp/api.rb', line 497 def order_add(order) _params = {:order => order} return @master.call 'ecomm/order-add', _params end |
#order_del(store_id, order_id) ⇒ Hash
Delete Ecommerce Order Information used for segmentation. This will generally be used by ecommerce package plugins <a href=“/plugins/ecomm360.phtml”>that we provide</a> or by 3rd part system developers.
507 508 509 510 |
# File 'lib/mailchimp/api.rb', line 507 def order_del(store_id, order_id) _params = {:store_id => store_id, :order_id => order_id} return @master.call 'ecomm/order-del', _params end |
#orders(cid = nil, start = 0, limit = 100, since = nil) ⇒ Hash
Retrieve the Ecommerce Orders for an account
537 538 539 540 |
# File 'lib/mailchimp/api.rb', line 537 def orders(cid=nil, start=0, limit=100, since=nil) _params = {:cid => cid, :start => start, :limit => limit, :since => since} return @master.call 'ecomm/orders', _params end |