Sha256: 41e208bbf28f53551bc6771ed1ea9cd9c2e49aeeb90af54f3d2e806a99060e96
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 Bytes
Contents
module Octobat class Order < APIResource extend Octobat::APIOperations::List def expire response, api_key = Octobat.request(:patch, expire_url, @api_key) refresh_from(response, api_key) end def update_payment_intent_status(payment_intent_status_data = {}) response, api_key = Octobat.request(:patch, update_payment_intent_status_url, @api_key, payment_intent_status_data) refresh_from(response, api_key) end def update_setup_intent_status(setup_intent_status_data = {}) response, api_key = Octobat.request(:patch, update_setup_intent_status_url, @api_key, setup_intent_status_data) refresh_from(response, api_key) end private def expire_url url + '/expire' end def update_payment_intent_status_url url + '/payment_intent_status' end def update_setup_intent_status_url url + '/setup_intent_status' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octobat-2.0.16 | lib/octobat/order.rb |
octobat-2.0.15 | lib/octobat/order.rb |