braintree 2.14.0 → 2.15.0

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.
@@ -27,7 +27,7 @@ module Braintree
27
27
  end
28
28
 
29
29
  attr_reader :billing_address, :bin, :card_type, :cardholder_name, :created_at, :customer_id, :expiration_month,
30
- :expiration_year, :last_4, :subscriptions, :token, :updated_at
30
+ :expiration_year, :last_4, :unique_number_identifier, :subscriptions, :token, :updated_at
31
31
 
32
32
  # See http://www.braintreepayments.com/docs/ruby/credit_cards/create
33
33
  def self.create(attributes)
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 14
4
+ Minor = 15
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -22,6 +22,7 @@ describe Braintree::CreditCard do
22
22
  credit_card.bin.should == Braintree::Test::CreditCardNumbers::Visa[0, 6]
23
23
  credit_card.last_4.should == Braintree::Test::CreditCardNumbers::Visa[-4..-1]
24
24
  credit_card.expiration_date.should == "05/2009"
25
+ credit_card.unique_number_identifier.should =~ /\A\w{32}\z/
25
26
  end
26
27
 
27
28
  it "can provide expiration month and year separately" do
@@ -111,6 +111,7 @@ describe Braintree::Customer do
111
111
  result.customer.credit_cards[0].bin.should == Braintree::Test::CreditCardNumbers::MasterCard[0, 6]
112
112
  result.customer.credit_cards[0].last_4.should == Braintree::Test::CreditCardNumbers::MasterCard[-4..-1]
113
113
  result.customer.credit_cards[0].expiration_date.should == "05/2010"
114
+ result.customer.credit_cards[0].unique_number_identifier.should =~ /\A\w{32}\z/
114
115
  end
115
116
 
116
117
  it "verifies the card if credit_card[options][verify_card]=true" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
- - 14
8
+ - 15
9
9
  - 0
10
- version: 2.14.0
10
+ version: 2.15.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Braintree
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-06 00:00:00 -06:00
18
+ date: 2012-04-05 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency