Sha256: 385cc212fd9112568da38945eb92120f0414291bacb5b63b761435a604bb2f77
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
module Workarea module Klarna class Gateway class CaptureRequest < Request def initialize(tender, amount) @tender = tender @payment = tender.payment @amount = amount @path = "/ordermanagement/v1/orders/#{tender.order_id}/captures" @method = 'post' @summary = I18n.t( 'workarea.klarna.gateway.request.capture', amount: @amount.format ) end def body { captured_amount: @amount.cents } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems