tres_delta 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a8cba69bcd03c493bd51a55e71f1b1f95e609cd
4
- data.tar.gz: f3c2080d9dd0c5ed27688da4d23a0c0cdbad25d5
3
+ metadata.gz: ddd48c39e31da5e0ccbc56685439c0d874bef5c8
4
+ data.tar.gz: 40a854c9dc4cf537ee966ab14f0fe81152c10077
5
5
  SHA512:
6
- metadata.gz: 1dee1eda2289c8454d0bb799f437ef39addee7ce414bf7ebf4d830dad4b95e062e392fba13524f76a5029042f511c378681538e328b43a61b97130155e9265e5
7
- data.tar.gz: ddab2cbe28dc3189f55a0e8a29be244d41b6214e949b2cbb02f97847f7a1ccf5e61f9e76a81732e9c3f79e83bb0ab79d962a48532b40f036428d4495ad4f81f5
6
+ metadata.gz: f01a822b5aba3114c8fe23809cd39c7fb4262ba0ed81c640a071074974259a05c4148c0e2a7f60f6f6d705ac597d9e91576724e13c82e296e6ea72f1fac07f16
7
+ data.tar.gz: 0ffecfdc6e0e9189cd77bff999a53307c47a2b22382f449849d9f5aca26e552c4930ce5fe3168da606e3daa462e5c9b5aea129b5b02c5a098744c876e2eeafeb
@@ -11,7 +11,7 @@ module TresDelta
11
11
  @token = params[:token]
12
12
  @name = params[:name]
13
13
  @billing_address = Address.new(params[:billing_address] || {})
14
- @type = params[:type]
14
+ @type = params[:type] || params[:card_type]
15
15
  @nickname = params[:nickname]
16
16
  @customer = params[:customer] || Customer.new
17
17
  @security_code = params[:security_code]
@@ -1,3 +1,3 @@
1
1
  module TresDelta
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -59,6 +59,7 @@ describe TresDelta::CreditCard do
59
59
  expect(found_card.expiration_month).to eq(credit_card.expiration_month)
60
60
  expect(found_card.expiration_year.to_i).to eq(credit_card.expiration_year)
61
61
  expect(found_card.customer).to eq(customer)
62
+ expect(found_card.type).to eq(credit_card.type)
62
63
  end
63
64
  end
64
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tres_delta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 1000Bulbs