Class: YourMembership::Sa::Commerce

Inherits:
Base
  • Object
show all
Defined in:
lib/your_membership/sa_commerce.rb

Overview

YourMembership System Administrator Commerce Namespace

Class Method Summary collapse

Methods inherited from Base

build_XML_request, new_call_id, response_to_array, response_to_array_of_hashes, response_valid?, response_ym_error?

Class Method Details

.store_order_get(invoice_id) ⇒ Hash

Returns the order details, including line items and products ordered, of a store order.

Parameters:

  • invoice_id (String)

    The Invoice ID of the store order to be returned.

Returns:

  • (Hash)

    Returns a Hash representing a store order

See Also:



11
12
13
14
15
16
17
18
19
# File 'lib/your_membership/sa_commerce.rb', line 11

def self.store_order_get(invoice_id)
  options = {}
  options[:InvoiceID] = invoice_id

  response = post('/', :body => build_XML_request('Sa.Commerce.Store.Order.Get', nil, options))

  response_valid? response
  response['YourMembership_Response']['Sa.Commerce.Store.Order.Get']
end