Sha256: dab2d83b6422eb39ff1819497d0173f3d7b61c3925f9b84e4ba66e7c71cc8125

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module PaymentGateways
  class Contract < ::BCDD::Contract::Proxy
    def charge_credit_card(params)
      params => { amount: Numeric, details: Hash }

      outcome = object.charge_credit_card(params)

      outcome => Response[true | false]

      outcome
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcdd-contract-0.1.0 examples/anti_corruption_layer/lib/payment_gateways/contract.rb