Method: FacebookCommerce::ReturnApi#update_return

Defined in:
lib/facebook_commerce.rb

#update_return(return_id, update_event, options = {}) ⇒ Object

Parameters:

  • return_id (String)

    Facebook return ID

  • update_event (String)

    Reason code for the return, ‘ACCEPT_RETURN’ or ‘CLOSE_RETURN’

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • notes (String)

    Notes for the return

  • merchant_return_id (String)

    Merchant return ID

  • return_shipping_labels (Array<Hash>)

    Array of shipping label hashes (carrier, service_name, tracking_number, file_handle, cost)



198
199
200
# File 'lib/facebook_commerce.rb', line 198

def update_return(return_id, update_event, options = {})
  post("#{return_id}/update_return", options.merge(update_event: update_event))
end