Sha256: 4cb96832281853a46831a6d18f030fdcbe64818069d684c46f3c534cdd13a943

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

class Io::Flow::V0::Models::Price
  def to_m
    Money.from_amount(amount, currency)
  end
end

class Io::Flow::V0::Models::LocalizedItemPrice
  def to_m
    Money.from_amount(amount, currency)
  end
end

class Io::Flow::V0::Models::LocalizedLineItemDiscount
  def to_m
    Money.from_amount(amount, currency)
  end
end

class ::Io::Flow::V0::Models::OrderPriceDetail
  def to_m
    Money.from_amount(amount, currency)
  end
end

class ::Io::Flow::V0::Models::PriceWithBase
  def to_m
    Money.from_amount(amount, currency)
  end
end

class ::Io::Flow::V0::Models::CardAuthorization
  delegate :to_bson, to: :to_hash

  def bson_type
    to_hash.bson_type
  end
end

class ::Io::Flow::V0::Models::Capture
  delegate :to_bson, to: :to_hash

  def bson_type
    to_hash.bson_type
  end
end

class ::Io::Flow::V0::Models::Refund
  delegate :to_bson, to: :to_hash

  def bson_type
    to_hash.bson_type
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 lib/workarea/freedom_patches/flow_io.rb