Sha256: 51e8e9929bee4656dcb2582f5813f38dfa54996a7862eb926a56836e902b0958

Contents?: true

Size: 339 Bytes

Versions: 18

Compression:

Stored size: 339 Bytes

Contents

# Refund all order lines
order  = Mollie::Order.get('ord_kEn1PlbGa')
refund = order.refund!

# Refund a specific order line
order  = Mollie::Order.get('ord_kEn1PlbGa')
refund = order.refund!(
  lines: [
    {
      id: 'odl_dgtxyl',
      quantity: 1
    }
  ],
  description: 'Required quantity not in stock, refunding one photo book.'
)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mollie-api-ruby-4.14.0 examples/orders/create-refund.rb
mollie-api-ruby-4.7.1 examples/orders/create-refund.rb
mollie-api-ruby-4.7.0 examples/orders/create-refund.rb
mollie-api-ruby-4.6.2 examples/orders/create-refund.rb
mollie-api-ruby-4.6.1 examples/orders/create-refund.rb
mollie-api-ruby-4.6.0 examples/orders/create-refund.rb
mollie-api-ruby-4.5.0 examples/orders/create-refund.rb
mollie-api-ruby-4.4.1 examples/orders/create-refund.rb
mollie-api-ruby-4.4.0 examples/orders/create-refund.rb
mollie-api-ruby-4.3.1 examples/orders/create-refund.rb
mollie-api-ruby-4.3.0 examples/orders/create-refund.rb
mollie-api-ruby-4.2.0 examples/orders/create-refund.rb
mollie-api-ruby-4.1.5 examples/orders/create-refund.rb
mollie-api-ruby-4.1.4 examples/orders/create-refund.rb
mollie-api-ruby-4.1.3 examples/orders/create-refund.rb
mollie-api-ruby-4.1.2 examples/orders/create-refund.rb
mollie-api-ruby-4.1.1 examples/orders/create-refund.rb
mollie-api-ruby-4.1.0 examples/orders/create-refund.rb