Sha256: 1f37dfd7be5e4bff5cf2da251b754489f1baa6f6e657c8ae02c2881e674793c9

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Afterpay
  module Components
    class Money < Base
      # @attribute amount
      # @return [String]
      # The amount should be a string representation of a decimal number, rounded to 2 decimal places.
      attr_accessor :amount

      # @attribute currency
      # @return [String]
      # The currency is a ISO 4217 format value. Currently only USD is supported.
      attr_accessor :currency
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
afterpay-0.6.0 lib/afterpay/components/money.rb
afterpay-0.5.0 lib/afterpay/components/money.rb
afterpay-0.4.0 lib/afterpay/components/money.rb
afterpay-0.3.0 lib/afterpay/components/money.rb
afterpay-0.2.0 lib/afterpay/components/money.rb
afterpay-0.1.0 lib/afterpay/components/money.rb