spec/integration/braintree/customer_spec.rb in braintree-4.2.0 vs spec/integration/braintree/customer_spec.rb in braintree-4.3.0
- old
+ new
@@ -1019,10 +1019,19 @@
apple_pay_card = found_customer.apple_pay_cards.first
apple_pay_card.should be_a Braintree::ApplePayCard
apple_pay_card.token.should_not be_nil
apple_pay_card.expiration_year.should_not be_nil
apple_pay_card.payment_instrument_name.should == "AmEx 41002"
+ apple_pay_card.commercial.should_not be_nil
+ apple_pay_card.country_of_issuance.should_not be_nil
+ apple_pay_card.debit.should_not be_nil
+ apple_pay_card.durbin_regulated.should_not be_nil
+ apple_pay_card.healthcare.should_not be_nil
+ apple_pay_card.issuing_bank.should_not be_nil
+ apple_pay_card.payroll.should_not be_nil
+ apple_pay_card.prepaid.should_not be_nil
+ apple_pay_card.product_id.should_not be_nil
end
it "returns associated google pay proxy cards" do
result = Braintree::Customer.create(
:payment_method_nonce => Braintree::Test::Nonce::GooglePayDiscover,
@@ -1035,10 +1044,19 @@
google_pay_card = found_customer.google_pay_cards.first
google_pay_card.should be_a Braintree::GooglePayCard
google_pay_card.token.should_not be_nil
google_pay_card.expiration_year.should_not be_nil
google_pay_card.is_network_tokenized?.should == false
+ google_pay_card.commercial.should_not be_nil
+ google_pay_card.country_of_issuance.should_not be_nil
+ google_pay_card.debit.should_not be_nil
+ google_pay_card.durbin_regulated.should_not be_nil
+ google_pay_card.healthcare.should_not be_nil
+ google_pay_card.issuing_bank.should_not be_nil
+ google_pay_card.payroll.should_not be_nil
+ google_pay_card.prepaid.should_not be_nil
+ google_pay_card.product_id.should_not be_nil
end
it "returns associated google pay network tokens" do
result = Braintree::Customer.create(
:payment_method_nonce => Braintree::Test::Nonce::GooglePayMasterCard,
@@ -1051,9 +1069,18 @@
google_pay_card = found_customer.google_pay_cards.first
google_pay_card.should be_a Braintree::GooglePayCard
google_pay_card.token.should_not be_nil
google_pay_card.expiration_year.should_not be_nil
google_pay_card.is_network_tokenized?.should == true
+ google_pay_card.commercial.should_not be_nil
+ google_pay_card.country_of_issuance.should_not be_nil
+ google_pay_card.debit.should_not be_nil
+ google_pay_card.durbin_regulated.should_not be_nil
+ google_pay_card.healthcare.should_not be_nil
+ google_pay_card.issuing_bank.should_not be_nil
+ google_pay_card.payroll.should_not be_nil
+ google_pay_card.prepaid.should_not be_nil
+ google_pay_card.product_id.should_not be_nil
end
it "returns associated venmo accounts" do
result = Braintree::Customer.create(
:payment_method_nonce => Braintree::Test::Nonce::VenmoAccount,