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