Sha256: 045248e9efba3346af6c432e724282fb2c5c25ade34b79c5abe6f8359bf552c4
Contents?: true
Size: 889 Bytes
Versions: 1
Compression:
Stored size: 889 Bytes
Contents
module Workarea module FlowIo class BogusClient class CheckoutTokens def post_checkout_and_tokens_by_organization(organization, checkout_token_form) unless checkout_token_form.is_a? ::Io::Flow::V0::Models::CheckoutTokenForm checkout_token_form = ::Io::Flow::V0::Models::CheckoutTokenForm.new(checkout_token_form) end ::Io::Flow::V0::Models::CheckoutToken.new( id: SecureRandom.hex(20), organization: { id: organization }, order: { number: checkout_token_form.order_number }, session: { id: checkout_token_form.session_id }, urls: { continue_shopping: checkout_token_form.urls.continue_shopping }, expires_at: 1.day.from_now.utc.iso8601(3), checkout: { id: 'foo' } ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | lib/workarea/flow_io/bogus_client/checkout_tokens.rb |