Sha256: 67f4105ffa0b09b8fb659d7aea4f1c4b03d5d8d28790aefdfe5883373a68ebed

Contents?: true

Size: 709 Bytes

Versions: 3

Compression:

Stored size: 709 Bytes

Contents

require "spec_helper"

describe BillysBilling::Invoice do
  it "invoice#index" do
    # puts BillysBilling.index_products
    # puts BillysBilling.index_vat_models.first
    # puts BillysBilling.index_accounts.first
    
    params = {
        "name" => "Book",
        "description" => "Very exciting story.",
        "accountId" => "1681817-d2rh5fGoC3yt",
        "vatModelId"=> "1681794-R01nOyyaKE9o",
        "productType"=> "product",
        "productNo"=> "B291",
        "suppliersProductNo"=> "S9322",
        "prices"=> [
            {
                "currencyId"=> "DKK",
                "unitPrice"=> 299
            }
        ]
    }
    

    puts BillysBilling.create_products(params)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
billysbilling-rails-1.1.2 spec/billys_billing/test_spec.rb
billysbilling-rails-1.1.1 spec/billys_billing/test_spec.rb
billysbilling-rails-1.1.0 spec/billys_billing/test_spec.rb