Sha256: 8cd43ee81eeea75117ed811a2653ee11ae79d30e9a6ed07a5c92d3b6ddb2493e

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

class Fixture
  def self.payer
    MyMoip::Payer.new(
      id: "some id",
      name: "some name",
      email: "some email",
      address_street: "some address_street",
      address_street_number: "some address_street_number",
      address_street_extra: "some address_street_extra",
      address_neighbourhood: "some address_neighbourhood",
      address_city: "some address_city",
      address_state: "some address_state",
      address_country: "some address_country",
      address_cep: "some address_cep",
      address_phone: "some address_phone"
    )
  end

  def self.instruction(payer)
    MyMoip::Instruction.new(
      id: "some id",
      payment_reason: "some payment_reason",
      values: [100.0, 200.0],
      payer: payer
    )
  end

  def self.credit_card
    MyMoip::CreditCard.new(
      logo: :visa,
      card_number: "4916654211627608",
      expiration_date: "06/15",
      security_code: "000",
      owner_name: "Juquinha da Rocha",
      owner_birthday: Date.new(1984, 11, 3),
      owner_phone: "(51)3040-5060",
      owner_rg: "1010202030"
    )
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mymoip-0.2.2 test/fixture.rb
mymoip-0.2.1 test/fixture.rb
mymoip-0.2.0 test/fixture.rb
mymoip-0.1.0 test/fixture.rb