Class: FacebookCommerce::AcknowledgementApi

Inherits:
Api
  • Object
show all
Defined in:
lib/facebook_commerce.rb

Overview

Instance Attribute Summary

Attributes inherited from Api

#access_token, #cms_id, #logger

Instance Method Summary collapse

Methods inherited from Api

#initialize

Constructor Details

This class inherits a constructor from FacebookCommerce::Api

Instance Method Details

#acknowledge_order(order_id, merchant_order_reference = nil) ⇒ Object



119
120
121
122
123
# File 'lib/facebook_commerce.rb', line 119

def acknowledge_order(order_id, merchant_order_reference = nil)
  data = { idempotency_key: SecureRandom.uuid }
  data[:merchant_order_reference] = merchant_order_reference if merchant_order_reference
  post("#{order_id}/acknowledge_order", data)
end

#associate_appObject



115
116
117
# File 'lib/facebook_commerce.rb', line 115

def associate_app
  post("#{cms_id}/order_management_apps")
end