braintree 2.98.0 → 4.23.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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/braintree.gemspec +7 -4
- data/lib/braintree/account_updater_daily_report.rb +4 -4
- data/lib/braintree/ach_mandate.rb +1 -1
- data/lib/braintree/add_on_gateway.rb +1 -1
- data/lib/braintree/address.rb +7 -27
- data/lib/braintree/address_gateway.rb +8 -7
- data/lib/braintree/advanced_search.rb +11 -12
- data/lib/braintree/apple_pay.rb +4 -4
- data/lib/braintree/apple_pay_card.rb +18 -4
- data/lib/braintree/apple_pay_options.rb +4 -4
- data/lib/braintree/authorization_adjustment.rb +4 -4
- data/lib/braintree/base_module.rb +11 -1
- data/lib/braintree/bin_data.rb +10 -3
- data/lib/braintree/client_token.rb +1 -1
- data/lib/braintree/client_token_gateway.rb +4 -3
- data/lib/braintree/configuration.rb +35 -35
- data/lib/braintree/connected_merchant_paypal_status_changed.rb +2 -2
- data/lib/braintree/connected_merchant_status_transitioned.rb +2 -2
- data/lib/braintree/credit_card.rb +40 -86
- data/lib/braintree/credit_card_gateway.rb +58 -44
- data/lib/braintree/credit_card_verification.rb +39 -20
- data/lib/braintree/credit_card_verification_gateway.rb +35 -5
- data/lib/braintree/credit_card_verification_search.rb +2 -2
- data/lib/braintree/customer.rb +23 -88
- data/lib/braintree/customer_gateway.rb +17 -32
- data/lib/braintree/customer_search.rb +2 -2
- data/lib/braintree/descriptor.rb +1 -1
- data/lib/braintree/digest.rb +1 -1
- data/lib/braintree/disbursement.rb +7 -7
- data/lib/braintree/discount_gateway.rb +1 -1
- data/lib/braintree/dispute/evidence.rb +1 -1
- data/lib/braintree/{transaction/coinbase_details.rb → dispute/paypal_message.rb} +5 -6
- data/lib/braintree/dispute/{history_event.rb → status_history.rb} +3 -1
- data/lib/braintree/dispute/transaction.rb +3 -1
- data/lib/braintree/dispute/transaction_details.rb +1 -1
- data/lib/braintree/dispute.rb +47 -6
- data/lib/braintree/dispute_gateway.rb +5 -10
- data/lib/braintree/dispute_search.rb +8 -4
- data/lib/braintree/document_upload.rb +3 -3
- data/lib/braintree/document_upload_gateway.rb +3 -3
- data/lib/braintree/enriched_customer_data.rb +21 -0
- data/lib/braintree/error_codes.rb +217 -175
- data/lib/braintree/error_result.rb +2 -3
- data/lib/braintree/errors.rb +3 -3
- data/lib/braintree/exceptions.rb +6 -5
- data/lib/braintree/exchange_rate.rb +13 -0
- data/lib/braintree/exchange_rate_quote.rb +24 -0
- data/lib/braintree/exchange_rate_quote_gateway.rb +35 -0
- data/lib/braintree/exchange_rate_quote_input.rb +21 -0
- data/lib/braintree/exchange_rate_quote_request.rb +18 -0
- data/lib/braintree/exchange_rate_quote_response.rb +18 -0
- data/lib/braintree/facilitated_details.rb +1 -1
- data/lib/braintree/facilitator_details.rb +1 -1
- data/lib/braintree/gateway.rb +6 -12
- data/lib/braintree/{android_pay_card.rb → google_pay_card.rb} +18 -5
- data/lib/braintree/granted_payment_instrument_update.rb +2 -2
- data/lib/braintree/graphql_client.rb +14 -8
- data/lib/braintree/http.rb +9 -10
- data/lib/braintree/local_payment_completed/blik_alias.rb +23 -0
- data/lib/braintree/local_payment_completed.rb +10 -5
- data/lib/braintree/local_payment_expired.rb +21 -0
- data/lib/braintree/local_payment_funded.rb +22 -0
- data/lib/braintree/local_payment_reversed.rb +19 -0
- data/lib/braintree/merchant.rb +4 -4
- data/lib/braintree/merchant_account.rb +3 -3
- data/lib/braintree/merchant_account_gateway.rb +10 -8
- data/lib/braintree/merchant_gateway.rb +1 -1
- data/lib/braintree/meta_checkout_card.rb +89 -0
- data/lib/braintree/meta_checkout_token.rb +88 -0
- data/lib/braintree/modification.rb +4 -4
- data/lib/braintree/oauth_credentials.rb +4 -4
- data/lib/braintree/oauth_gateway.rb +5 -5
- data/lib/braintree/paginated_collection.rb +2 -2
- data/lib/braintree/paginated_result.rb +1 -1
- data/lib/braintree/payment_instrument_type.rb +14 -13
- data/lib/braintree/payment_method_customer_data_updated_metadata.rb +24 -0
- data/lib/braintree/payment_method_gateway.rb +52 -22
- data/lib/braintree/payment_method_nonce.rb +12 -7
- data/lib/braintree/payment_method_nonce_details.rb +40 -0
- data/lib/braintree/payment_method_nonce_details_payer_info.rb +32 -0
- data/lib/braintree/payment_method_nonce_gateway.rb +14 -3
- data/lib/braintree/payment_method_parser.rb +4 -7
- data/lib/braintree/paypal_account.rb +3 -2
- data/lib/braintree/paypal_account_gateway.rb +5 -5
- data/lib/braintree/plan.rb +22 -2
- data/lib/braintree/plan_gateway.rb +101 -1
- data/lib/braintree/processor_response_types.rb +3 -3
- data/lib/braintree/resource_collection.rb +10 -5
- data/lib/braintree/revoked_payment_method_metadata.rb +2 -2
- data/lib/braintree/risk_data/liability_shift.rb +22 -0
- data/lib/braintree/risk_data.rb +10 -3
- data/lib/braintree/samsung_pay_card.rb +8 -6
- data/lib/braintree/sepa_direct_debit_account.rb +60 -0
- data/lib/braintree/sepa_direct_debit_account_gateway.rb +25 -0
- data/lib/braintree/sepa_direct_debit_account_nonce_details.rb +28 -0
- data/lib/braintree/settlement_batch_summary.rb +2 -2
- data/lib/braintree/settlement_batch_summary_gateway.rb +1 -1
- data/lib/braintree/sha256_digest.rb +1 -1
- data/lib/braintree/subscription/status_details.rb +1 -1
- data/lib/braintree/subscription.rb +13 -13
- data/lib/braintree/subscription_gateway.rb +6 -6
- data/lib/braintree/subscription_search.rb +1 -1
- data/lib/braintree/successful_result.rb +5 -4
- data/lib/braintree/test/authentication_id.rb +21 -0
- data/lib/braintree/test/credit_card.rb +9 -10
- data/lib/braintree/test/merchant_account.rb +1 -1
- data/lib/braintree/test/nonce.rb +27 -20
- data/lib/braintree/test/transaction_amounts.rb +2 -3
- data/lib/braintree/test/venmo_sdk.rb +2 -0
- data/lib/braintree/testing_gateway.rb +1 -1
- data/lib/braintree/three_d_secure_info.rb +23 -11
- data/lib/braintree/transaction/address_details.rb +14 -1
- data/lib/braintree/transaction/apple_pay_details.rb +13 -10
- data/lib/braintree/transaction/credit_card_details.rb +8 -1
- data/lib/braintree/transaction/customer_details.rb +3 -2
- data/lib/braintree/transaction/disbursement_details.rb +2 -1
- data/lib/braintree/transaction/{android_pay_details.rb → google_pay_details.rb} +6 -1
- data/lib/braintree/transaction/installment/adjustment.rb +33 -0
- data/lib/braintree/transaction/installment.rb +28 -0
- data/lib/braintree/transaction/local_payment_details.rb +3 -0
- data/lib/braintree/transaction/meta_checkout_card_details.rb +52 -0
- data/lib/braintree/transaction/meta_checkout_token_details.rb +54 -0
- data/lib/braintree/transaction/package_details.rb +19 -0
- data/lib/braintree/transaction/payment_receipt/card_present_data.rb +36 -0
- data/lib/braintree/transaction/payment_receipt/merchant_address.rb +19 -0
- data/lib/braintree/transaction/payment_receipt.rb +31 -0
- data/lib/braintree/transaction/paypal_details.rb +5 -0
- data/lib/braintree/transaction/samsung_pay_card_details.rb +3 -1
- data/lib/braintree/transaction/sepa_direct_debit_account_details.rb +27 -0
- data/lib/braintree/transaction/status_details.rb +1 -1
- data/lib/braintree/transaction/subscription_details.rb +3 -1
- data/lib/braintree/transaction/us_bank_account_details.rb +2 -1
- data/lib/braintree/transaction/visa_checkout_card_details.rb +1 -1
- data/lib/braintree/transaction.rb +119 -128
- data/lib/braintree/transaction_gateway.rb +138 -64
- data/lib/braintree/transaction_line_item.rb +14 -11
- data/lib/braintree/transaction_line_item_gateway.rb +1 -1
- data/lib/braintree/transaction_review.rb +18 -0
- data/lib/braintree/transaction_search.rb +11 -7
- data/lib/braintree/unknown_payment_method.rb +2 -2
- data/lib/braintree/us_bank_account.rb +5 -5
- data/lib/braintree/us_bank_account_verification.rb +24 -16
- data/lib/braintree/us_bank_account_verification_gateway.rb +1 -1
- data/lib/braintree/us_bank_account_verification_search.rb +1 -1
- data/lib/braintree/util.rb +25 -10
- data/lib/braintree/validation_error.rb +1 -1
- data/lib/braintree/validation_error_collection.rb +3 -3
- data/lib/braintree/venmo_account.rb +4 -4
- data/lib/braintree/venmo_profile_data.rb +25 -0
- data/lib/braintree/version.rb +2 -2
- data/lib/braintree/visa_checkout_card.rb +8 -8
- data/lib/braintree/webhook_notification.rb +55 -33
- data/lib/braintree/webhook_notification_gateway.rb +9 -9
- data/lib/braintree/webhook_testing.rb +1 -1
- data/lib/braintree/webhook_testing_gateway.rb +569 -46
- data/lib/braintree/xml/generator.rb +6 -5
- data/lib/braintree/xml/libxml.rb +1 -1
- data/lib/braintree/xml/parser.rb +24 -37
- data/lib/braintree/xml/rexml.rb +6 -7
- data/lib/braintree/xml.rb +1 -1
- data/lib/braintree.rb +41 -24
- data/lib/ssl/api_braintreegateway_com.ca.crt +401 -168
- data/spec/integration/braintree/add_on_spec.rb +10 -10
- data/spec/integration/braintree/address_spec.rb +101 -178
- data/spec/integration/braintree/advanced_search_spec.rb +93 -93
- data/spec/integration/braintree/apple_pay_spec.rb +12 -12
- data/spec/integration/braintree/braintree_gateway_spec.rb +2 -1
- data/spec/integration/braintree/client_api/client_token_spec.rb +279 -62
- data/spec/integration/braintree/client_api/spec_helper.rb +99 -73
- data/spec/integration/braintree/credit_card_spec.rb +522 -821
- data/spec/integration/braintree/credit_card_verification_search_spec.rb +18 -18
- data/spec/integration/braintree/credit_card_verification_spec.rb +219 -30
- data/spec/integration/braintree/customer_search_spec.rb +28 -28
- data/spec/integration/braintree/customer_spec.rb +840 -757
- data/spec/integration/braintree/disbursement_spec.rb +2 -2
- data/spec/integration/braintree/discount_spec.rb +9 -9
- data/spec/integration/braintree/dispute_search_spec.rb +45 -9
- data/spec/integration/braintree/dispute_spec.rb +109 -82
- data/spec/integration/braintree/document_upload_spec.rb +29 -17
- data/spec/integration/braintree/error_codes_spec.rb +3 -3
- data/spec/integration/braintree/exchange_rate_quote_spec.rb +97 -0
- data/spec/integration/braintree/graphql_client_spec.rb +0 -2
- data/spec/integration/braintree/http_spec.rb +31 -33
- data/spec/integration/braintree/merchant_account_spec.rb +155 -156
- data/spec/integration/braintree/merchant_spec.rb +71 -192
- data/spec/integration/braintree/oauth_spec.rb +72 -72
- data/spec/integration/braintree/package_tracking_spec.rb +130 -0
- data/spec/integration/braintree/payment_method_nonce_spec.rb +173 -78
- data/spec/integration/braintree/payment_method_spec.rb +953 -501
- data/spec/integration/braintree/payment_method_us_bank_account_spec.rb +147 -234
- data/spec/integration/braintree/paypal_account_spec.rb +74 -72
- data/spec/integration/braintree/plan_spec.rb +96 -15
- data/spec/integration/braintree/samsung_pay_card_spec.rb +75 -73
- data/spec/integration/braintree/sepa_direct_debit_account_spec.rb +194 -0
- data/spec/integration/braintree/settlement_batch_summary_spec.rb +18 -18
- data/spec/integration/braintree/subscription_spec.rb +507 -513
- data/spec/integration/braintree/test/transaction_amounts_spec.rb +4 -4
- data/spec/integration/braintree/test_transaction_spec.rb +29 -29
- data/spec/integration/braintree/transaction_line_item_spec.rb +12 -6
- data/spec/integration/braintree/transaction_search_spec.rb +410 -217
- data/spec/integration/braintree/transaction_spec.rb +3252 -2102
- data/spec/integration/braintree/transaction_us_bank_account_spec.rb +42 -278
- data/spec/integration/braintree/us_bank_account_spec.rb +36 -36
- data/spec/integration/braintree/us_bank_account_verification_search_spec.rb +25 -25
- data/spec/integration/braintree/us_bank_account_verification_spec.rb +41 -41
- data/spec/integration/braintree/visa_checkout_card_spec.rb +62 -62
- data/spec/integration/spec_helper.rb +22 -7
- data/spec/oauth_test_helper.rb +1 -1
- data/spec/script/httpsd.rb +6 -6
- data/spec/spec_helper.rb +15 -20
- data/spec/unit/braintree/address_spec.rb +9 -17
- data/spec/unit/braintree/apple_pay_card_spec.rb +110 -7
- data/spec/unit/braintree/base_module_spec.rb +4 -4
- data/spec/unit/braintree/client_token_spec.rb +6 -6
- data/spec/unit/braintree/configuration_spec.rb +84 -84
- data/spec/unit/braintree/credentials_parser_spec.rb +6 -6
- data/spec/unit/braintree/credit_card_spec.rb +91 -58
- data/spec/unit/braintree/credit_card_verification_gateway_spec.rb +56 -0
- data/spec/unit/braintree/credit_card_verification_search_spec.rb +10 -10
- data/spec/unit/braintree/credit_card_verification_spec.rb +40 -18
- data/spec/unit/braintree/customer_spec.rb +102 -57
- data/spec/unit/braintree/digest_spec.rb +5 -6
- data/spec/unit/braintree/disbursement_spec.rb +14 -14
- data/spec/unit/braintree/dispute_search_spec.rb +6 -2
- data/spec/unit/braintree/dispute_spec.rb +144 -66
- data/spec/unit/braintree/document_upload_spec.rb +8 -8
- data/spec/unit/braintree/enriched_customer_data_spec.rb +41 -0
- data/spec/unit/braintree/error_result_spec.rb +11 -11
- data/spec/unit/braintree/errors_spec.rb +17 -17
- data/spec/unit/braintree/exchange_rate_quote_input_spec.rb +42 -0
- data/spec/unit/braintree/exchange_rate_quote_request_spec.rb +82 -0
- data/spec/unit/braintree/exchange_rate_quote_response_spec.rb +52 -0
- data/spec/unit/braintree/exchange_rate_quote_spec.rb +42 -0
- data/spec/unit/braintree/exchange_rate_spec.rb +23 -0
- data/spec/unit/braintree/http_spec.rb +19 -17
- data/spec/unit/braintree/local_payment_completed_spec.rb +62 -8
- data/spec/unit/braintree/local_payment_expired_spec.rb +24 -0
- data/spec/unit/braintree/local_payment_funded_spec.rb +34 -0
- data/spec/unit/braintree/merchant_account_spec.rb +5 -5
- data/spec/unit/braintree/meta_checkout_card_details_spec.rb +60 -0
- data/spec/unit/braintree/meta_checkout_card_spec.rb +60 -0
- data/spec/unit/braintree/meta_checkout_token_details_spec.rb +63 -0
- data/spec/unit/braintree/meta_checkout_token_spec.rb +63 -0
- data/spec/unit/braintree/modification_spec.rb +1 -1
- data/spec/unit/braintree/package_tracking_spec.rb +77 -0
- data/spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb +45 -0
- data/spec/unit/braintree/payment_method_nonce_details_payer_info_spec.rb +31 -0
- data/spec/unit/braintree/payment_method_nonce_details_spec.rb +51 -0
- data/spec/unit/braintree/payment_method_nonce_spec.rb +40 -0
- data/spec/unit/braintree/payment_method_spec.rb +20 -20
- data/spec/unit/braintree/paypal_account_spec.rb +16 -7
- data/spec/unit/braintree/resource_collection_spec.rb +34 -5
- data/spec/unit/braintree/risk_data/liability_shift.rb +26 -0
- data/spec/unit/braintree/risk_data_spec.rb +38 -8
- data/spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb +29 -0
- data/spec/unit/braintree/sepa_debit_account_spec.rb +86 -0
- data/spec/unit/braintree/sha256_digest_spec.rb +1 -1
- data/spec/unit/braintree/signature_service_spec.rb +2 -2
- data/spec/unit/braintree/subscription_search_spec.rb +18 -18
- data/spec/unit/braintree/subscription_spec.rb +8 -8
- data/spec/unit/braintree/successful_result_spec.rb +6 -6
- data/spec/unit/braintree/three_d_secure_info_spec.rb +37 -17
- data/spec/unit/braintree/transaction/credit_card_details_spec.rb +22 -6
- data/spec/unit/braintree/transaction/customer_details_spec.rb +3 -2
- data/spec/unit/braintree/transaction/deposit_details_spec.rb +4 -4
- data/spec/unit/braintree/transaction/installment_spec.rb +25 -0
- data/spec/unit/braintree/transaction/local_payment_details_spec.rb +36 -0
- data/spec/unit/braintree/transaction/payment_receipt_spec.rb +73 -0
- data/spec/unit/braintree/transaction/paypal_details_spec.rb +63 -0
- data/spec/unit/braintree/transaction/sepa_direct_debit_account_details_spec.rb +33 -0
- data/spec/unit/braintree/transaction_gateway_spec.rb +150 -0
- data/spec/unit/braintree/transaction_search_spec.rb +12 -12
- data/spec/unit/braintree/transaction_spec.rb +221 -124
- data/spec/unit/braintree/unknown_payment_method_spec.rb +4 -4
- data/spec/unit/braintree/us_bank_account_spec.rb +2 -2
- data/spec/unit/braintree/us_bank_account_verification_search_spec.rb +7 -7
- data/spec/unit/braintree/us_bank_account_verification_spec.rb +12 -7
- data/spec/unit/braintree/util_spec.rb +78 -44
- data/spec/unit/braintree/validation_error_collection_spec.rb +62 -62
- data/spec/unit/braintree/validation_error_spec.rb +4 -4
- data/spec/unit/braintree/venmo_profile_data_spec.rb +43 -0
- data/spec/unit/braintree/webhook_notification_spec.rb +434 -197
- data/spec/unit/braintree/xml/libxml_spec.rb +5 -5
- data/spec/unit/braintree/xml/parser_spec.rb +27 -22
- data/spec/unit/braintree/xml/rexml_spec.rb +5 -5
- data/spec/unit/braintree/xml_spec.rb +38 -38
- data/spec/unit/braintree_spec.rb +2 -2
- metadata +91 -30
- data/lib/braintree/amex_express_checkout_card.rb +0 -38
- data/lib/braintree/coinbase_account.rb +0 -34
- data/lib/braintree/europe_bank_account.rb +0 -36
- data/lib/braintree/europe_bank_account_gateway.rb +0 -17
- data/lib/braintree/ideal_payment.rb +0 -61
- data/lib/braintree/ideal_payment_gateway.rb +0 -19
- data/lib/braintree/masterpass_card.rb +0 -81
- data/lib/braintree/settlement_batch.rb +0 -0
- data/lib/braintree/transaction/amex_express_checkout_details.rb +0 -21
- data/lib/braintree/transaction/ideal_payment_details.rb +0 -19
- data/lib/braintree/transaction/masterpass_card_details.rb +0 -47
- data/lib/braintree/transparent_redirect.rb +0 -40
- data/lib/braintree/transparent_redirect_gateway.rb +0 -105
- data/spec/hacks/tcp_socket.rb +0 -18
- data/spec/integration/braintree/coinbase_spec.rb +0 -34
- data/spec/integration/braintree/masterpass_card_spec.rb +0 -97
- data/spec/integration/braintree/transparent_redirect_spec.rb +0 -268
- data/spec/unit/braintree/transparent_redirect_spec.rb +0 -223
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Braintree
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -16,15 +16,30 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 3.2.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
27
|
-
|
26
|
+
version: 3.2.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rexml
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.1.9
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.1.9
|
41
|
+
description: Resources and tools for developers to integrate Braintree's global payments
|
42
|
+
platform.
|
28
43
|
email: code@getbraintree.com
|
29
44
|
executables: []
|
30
45
|
extensions: []
|
@@ -41,8 +56,6 @@ files:
|
|
41
56
|
- lib/braintree/address/country_names.rb
|
42
57
|
- lib/braintree/address_gateway.rb
|
43
58
|
- lib/braintree/advanced_search.rb
|
44
|
-
- lib/braintree/amex_express_checkout_card.rb
|
45
|
-
- lib/braintree/android_pay_card.rb
|
46
59
|
- lib/braintree/apple_pay.rb
|
47
60
|
- lib/braintree/apple_pay_card.rb
|
48
61
|
- lib/braintree/apple_pay_gateway.rb
|
@@ -52,7 +65,6 @@ files:
|
|
52
65
|
- lib/braintree/bin_data.rb
|
53
66
|
- lib/braintree/client_token.rb
|
54
67
|
- lib/braintree/client_token_gateway.rb
|
55
|
-
- lib/braintree/coinbase_account.rb
|
56
68
|
- lib/braintree/configuration.rb
|
57
69
|
- lib/braintree/connected_merchant_paypal_status_changed.rb
|
58
70
|
- lib/braintree/connected_merchant_status_transitioned.rb
|
@@ -72,29 +84,37 @@ files:
|
|
72
84
|
- lib/braintree/discount_gateway.rb
|
73
85
|
- lib/braintree/dispute.rb
|
74
86
|
- lib/braintree/dispute/evidence.rb
|
75
|
-
- lib/braintree/dispute/
|
87
|
+
- lib/braintree/dispute/paypal_message.rb
|
88
|
+
- lib/braintree/dispute/status_history.rb
|
76
89
|
- lib/braintree/dispute/transaction.rb
|
77
90
|
- lib/braintree/dispute/transaction_details.rb
|
78
91
|
- lib/braintree/dispute_gateway.rb
|
79
92
|
- lib/braintree/dispute_search.rb
|
80
93
|
- lib/braintree/document_upload.rb
|
81
94
|
- lib/braintree/document_upload_gateway.rb
|
95
|
+
- lib/braintree/enriched_customer_data.rb
|
82
96
|
- lib/braintree/error_codes.rb
|
83
97
|
- lib/braintree/error_result.rb
|
84
98
|
- lib/braintree/errors.rb
|
85
|
-
- lib/braintree/europe_bank_account.rb
|
86
|
-
- lib/braintree/europe_bank_account_gateway.rb
|
87
99
|
- lib/braintree/exceptions.rb
|
100
|
+
- lib/braintree/exchange_rate.rb
|
101
|
+
- lib/braintree/exchange_rate_quote.rb
|
102
|
+
- lib/braintree/exchange_rate_quote_gateway.rb
|
103
|
+
- lib/braintree/exchange_rate_quote_input.rb
|
104
|
+
- lib/braintree/exchange_rate_quote_request.rb
|
105
|
+
- lib/braintree/exchange_rate_quote_response.rb
|
88
106
|
- lib/braintree/facilitated_details.rb
|
89
107
|
- lib/braintree/facilitator_details.rb
|
90
108
|
- lib/braintree/gateway.rb
|
109
|
+
- lib/braintree/google_pay_card.rb
|
91
110
|
- lib/braintree/granted_payment_instrument_update.rb
|
92
111
|
- lib/braintree/graphql_client.rb
|
93
112
|
- lib/braintree/http.rb
|
94
|
-
- lib/braintree/ideal_payment.rb
|
95
|
-
- lib/braintree/ideal_payment_gateway.rb
|
96
113
|
- lib/braintree/local_payment_completed.rb
|
97
|
-
- lib/braintree/
|
114
|
+
- lib/braintree/local_payment_completed/blik_alias.rb
|
115
|
+
- lib/braintree/local_payment_expired.rb
|
116
|
+
- lib/braintree/local_payment_funded.rb
|
117
|
+
- lib/braintree/local_payment_reversed.rb
|
98
118
|
- lib/braintree/merchant.rb
|
99
119
|
- lib/braintree/merchant_account.rb
|
100
120
|
- lib/braintree/merchant_account/address_details.rb
|
@@ -103,6 +123,8 @@ files:
|
|
103
123
|
- lib/braintree/merchant_account/individual_details.rb
|
104
124
|
- lib/braintree/merchant_account_gateway.rb
|
105
125
|
- lib/braintree/merchant_gateway.rb
|
126
|
+
- lib/braintree/meta_checkout_card.rb
|
127
|
+
- lib/braintree/meta_checkout_token.rb
|
106
128
|
- lib/braintree/modification.rb
|
107
129
|
- lib/braintree/oauth_credentials.rb
|
108
130
|
- lib/braintree/oauth_gateway.rb
|
@@ -110,8 +132,11 @@ files:
|
|
110
132
|
- lib/braintree/paginated_result.rb
|
111
133
|
- lib/braintree/payment_instrument_type.rb
|
112
134
|
- lib/braintree/payment_method.rb
|
135
|
+
- lib/braintree/payment_method_customer_data_updated_metadata.rb
|
113
136
|
- lib/braintree/payment_method_gateway.rb
|
114
137
|
- lib/braintree/payment_method_nonce.rb
|
138
|
+
- lib/braintree/payment_method_nonce_details.rb
|
139
|
+
- lib/braintree/payment_method_nonce_details_payer_info.rb
|
115
140
|
- lib/braintree/payment_method_nonce_gateway.rb
|
116
141
|
- lib/braintree/payment_method_parser.rb
|
117
142
|
- lib/braintree/paypal_account.rb
|
@@ -122,8 +147,11 @@ files:
|
|
122
147
|
- lib/braintree/resource_collection.rb
|
123
148
|
- lib/braintree/revoked_payment_method_metadata.rb
|
124
149
|
- lib/braintree/risk_data.rb
|
150
|
+
- lib/braintree/risk_data/liability_shift.rb
|
125
151
|
- lib/braintree/samsung_pay_card.rb
|
126
|
-
- lib/braintree/
|
152
|
+
- lib/braintree/sepa_direct_debit_account.rb
|
153
|
+
- lib/braintree/sepa_direct_debit_account_gateway.rb
|
154
|
+
- lib/braintree/sepa_direct_debit_account_nonce_details.rb
|
127
155
|
- lib/braintree/settlement_batch_summary.rb
|
128
156
|
- lib/braintree/settlement_batch_summary_gateway.rb
|
129
157
|
- lib/braintree/sha256_digest.rb
|
@@ -133,6 +161,7 @@ files:
|
|
133
161
|
- lib/braintree/subscription_gateway.rb
|
134
162
|
- lib/braintree/subscription_search.rb
|
135
163
|
- lib/braintree/successful_result.rb
|
164
|
+
- lib/braintree/test/authentication_id.rb
|
136
165
|
- lib/braintree/test/credit_card.rb
|
137
166
|
- lib/braintree/test/merchant_account.rb
|
138
167
|
- lib/braintree/test/nonce.rb
|
@@ -143,19 +172,24 @@ files:
|
|
143
172
|
- lib/braintree/three_d_secure_info.rb
|
144
173
|
- lib/braintree/transaction.rb
|
145
174
|
- lib/braintree/transaction/address_details.rb
|
146
|
-
- lib/braintree/transaction/amex_express_checkout_details.rb
|
147
|
-
- lib/braintree/transaction/android_pay_details.rb
|
148
175
|
- lib/braintree/transaction/apple_pay_details.rb
|
149
|
-
- lib/braintree/transaction/coinbase_details.rb
|
150
176
|
- lib/braintree/transaction/credit_card_details.rb
|
151
177
|
- lib/braintree/transaction/customer_details.rb
|
152
178
|
- lib/braintree/transaction/disbursement_details.rb
|
153
|
-
- lib/braintree/transaction/
|
179
|
+
- lib/braintree/transaction/google_pay_details.rb
|
180
|
+
- lib/braintree/transaction/installment.rb
|
181
|
+
- lib/braintree/transaction/installment/adjustment.rb
|
154
182
|
- lib/braintree/transaction/local_payment_details.rb
|
155
|
-
- lib/braintree/transaction/
|
183
|
+
- lib/braintree/transaction/meta_checkout_card_details.rb
|
184
|
+
- lib/braintree/transaction/meta_checkout_token_details.rb
|
185
|
+
- lib/braintree/transaction/package_details.rb
|
186
|
+
- lib/braintree/transaction/payment_receipt.rb
|
187
|
+
- lib/braintree/transaction/payment_receipt/card_present_data.rb
|
188
|
+
- lib/braintree/transaction/payment_receipt/merchant_address.rb
|
156
189
|
- lib/braintree/transaction/paypal_details.rb
|
157
190
|
- lib/braintree/transaction/paypal_here_details.rb
|
158
191
|
- lib/braintree/transaction/samsung_pay_card_details.rb
|
192
|
+
- lib/braintree/transaction/sepa_direct_debit_account_details.rb
|
159
193
|
- lib/braintree/transaction/status_details.rb
|
160
194
|
- lib/braintree/transaction/subscription_details.rb
|
161
195
|
- lib/braintree/transaction/us_bank_account_details.rb
|
@@ -164,9 +198,8 @@ files:
|
|
164
198
|
- lib/braintree/transaction_gateway.rb
|
165
199
|
- lib/braintree/transaction_line_item.rb
|
166
200
|
- lib/braintree/transaction_line_item_gateway.rb
|
201
|
+
- lib/braintree/transaction_review.rb
|
167
202
|
- lib/braintree/transaction_search.rb
|
168
|
-
- lib/braintree/transparent_redirect.rb
|
169
|
-
- lib/braintree/transparent_redirect_gateway.rb
|
170
203
|
- lib/braintree/unknown_payment_method.rb
|
171
204
|
- lib/braintree/us_bank_account.rb
|
172
205
|
- lib/braintree/us_bank_account_gateway.rb
|
@@ -177,6 +210,7 @@ files:
|
|
177
210
|
- lib/braintree/validation_error.rb
|
178
211
|
- lib/braintree/validation_error_collection.rb
|
179
212
|
- lib/braintree/venmo_account.rb
|
213
|
+
- lib/braintree/venmo_profile_data.rb
|
180
214
|
- lib/braintree/version.rb
|
181
215
|
- lib/braintree/visa_checkout_card.rb
|
182
216
|
- lib/braintree/webhook_notification.rb
|
@@ -194,7 +228,6 @@ files:
|
|
194
228
|
- spec/fixtures/files/gif_extension_bt_logo.gif
|
195
229
|
- spec/fixtures/files/malformed_pdf.pdf
|
196
230
|
- spec/fixtures/files/too_long.pdf
|
197
|
-
- spec/hacks/tcp_socket.rb
|
198
231
|
- spec/integration/braintree/add_on_spec.rb
|
199
232
|
- spec/integration/braintree/address_spec.rb
|
200
233
|
- spec/integration/braintree/advanced_search_spec.rb
|
@@ -202,7 +235,6 @@ files:
|
|
202
235
|
- spec/integration/braintree/braintree_gateway_spec.rb
|
203
236
|
- spec/integration/braintree/client_api/client_token_spec.rb
|
204
237
|
- spec/integration/braintree/client_api/spec_helper.rb
|
205
|
-
- spec/integration/braintree/coinbase_spec.rb
|
206
238
|
- spec/integration/braintree/credit_card_spec.rb
|
207
239
|
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
208
240
|
- spec/integration/braintree/credit_card_verification_spec.rb
|
@@ -214,18 +246,20 @@ files:
|
|
214
246
|
- spec/integration/braintree/dispute_spec.rb
|
215
247
|
- spec/integration/braintree/document_upload_spec.rb
|
216
248
|
- spec/integration/braintree/error_codes_spec.rb
|
249
|
+
- spec/integration/braintree/exchange_rate_quote_spec.rb
|
217
250
|
- spec/integration/braintree/graphql_client_spec.rb
|
218
251
|
- spec/integration/braintree/http_spec.rb
|
219
|
-
- spec/integration/braintree/masterpass_card_spec.rb
|
220
252
|
- spec/integration/braintree/merchant_account_spec.rb
|
221
253
|
- spec/integration/braintree/merchant_spec.rb
|
222
254
|
- spec/integration/braintree/oauth_spec.rb
|
255
|
+
- spec/integration/braintree/package_tracking_spec.rb
|
223
256
|
- spec/integration/braintree/payment_method_nonce_spec.rb
|
224
257
|
- spec/integration/braintree/payment_method_spec.rb
|
225
258
|
- spec/integration/braintree/payment_method_us_bank_account_spec.rb
|
226
259
|
- spec/integration/braintree/paypal_account_spec.rb
|
227
260
|
- spec/integration/braintree/plan_spec.rb
|
228
261
|
- spec/integration/braintree/samsung_pay_card_spec.rb
|
262
|
+
- spec/integration/braintree/sepa_direct_debit_account_spec.rb
|
229
263
|
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
230
264
|
- spec/integration/braintree/subscription_spec.rb
|
231
265
|
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
@@ -234,7 +268,6 @@ files:
|
|
234
268
|
- spec/integration/braintree/transaction_search_spec.rb
|
235
269
|
- spec/integration/braintree/transaction_spec.rb
|
236
270
|
- spec/integration/braintree/transaction_us_bank_account_spec.rb
|
237
|
-
- spec/integration/braintree/transparent_redirect_spec.rb
|
238
271
|
- spec/integration/braintree/us_bank_account_spec.rb
|
239
272
|
- spec/integration/braintree/us_bank_account_verification_search_spec.rb
|
240
273
|
- spec/integration/braintree/us_bank_account_verification_spec.rb
|
@@ -254,6 +287,7 @@ files:
|
|
254
287
|
- spec/unit/braintree/configuration_spec.rb
|
255
288
|
- spec/unit/braintree/credentials_parser_spec.rb
|
256
289
|
- spec/unit/braintree/credit_card_spec.rb
|
290
|
+
- spec/unit/braintree/credit_card_verification_gateway_spec.rb
|
257
291
|
- spec/unit/braintree/credit_card_verification_search_spec.rb
|
258
292
|
- spec/unit/braintree/credit_card_verification_spec.rb
|
259
293
|
- spec/unit/braintree/customer_spec.rb
|
@@ -262,16 +296,36 @@ files:
|
|
262
296
|
- spec/unit/braintree/dispute_search_spec.rb
|
263
297
|
- spec/unit/braintree/dispute_spec.rb
|
264
298
|
- spec/unit/braintree/document_upload_spec.rb
|
299
|
+
- spec/unit/braintree/enriched_customer_data_spec.rb
|
265
300
|
- spec/unit/braintree/error_result_spec.rb
|
266
301
|
- spec/unit/braintree/errors_spec.rb
|
302
|
+
- spec/unit/braintree/exchange_rate_quote_input_spec.rb
|
303
|
+
- spec/unit/braintree/exchange_rate_quote_request_spec.rb
|
304
|
+
- spec/unit/braintree/exchange_rate_quote_response_spec.rb
|
305
|
+
- spec/unit/braintree/exchange_rate_quote_spec.rb
|
306
|
+
- spec/unit/braintree/exchange_rate_spec.rb
|
267
307
|
- spec/unit/braintree/http_spec.rb
|
268
308
|
- spec/unit/braintree/local_payment_completed_spec.rb
|
309
|
+
- spec/unit/braintree/local_payment_expired_spec.rb
|
310
|
+
- spec/unit/braintree/local_payment_funded_spec.rb
|
269
311
|
- spec/unit/braintree/merchant_account_spec.rb
|
312
|
+
- spec/unit/braintree/meta_checkout_card_details_spec.rb
|
313
|
+
- spec/unit/braintree/meta_checkout_card_spec.rb
|
314
|
+
- spec/unit/braintree/meta_checkout_token_details_spec.rb
|
315
|
+
- spec/unit/braintree/meta_checkout_token_spec.rb
|
270
316
|
- spec/unit/braintree/modification_spec.rb
|
317
|
+
- spec/unit/braintree/package_tracking_spec.rb
|
318
|
+
- spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb
|
319
|
+
- spec/unit/braintree/payment_method_nonce_details_payer_info_spec.rb
|
320
|
+
- spec/unit/braintree/payment_method_nonce_details_spec.rb
|
321
|
+
- spec/unit/braintree/payment_method_nonce_spec.rb
|
271
322
|
- spec/unit/braintree/payment_method_spec.rb
|
272
323
|
- spec/unit/braintree/paypal_account_spec.rb
|
273
324
|
- spec/unit/braintree/resource_collection_spec.rb
|
325
|
+
- spec/unit/braintree/risk_data/liability_shift.rb
|
274
326
|
- spec/unit/braintree/risk_data_spec.rb
|
327
|
+
- spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb
|
328
|
+
- spec/unit/braintree/sepa_debit_account_spec.rb
|
275
329
|
- spec/unit/braintree/sha256_digest_spec.rb
|
276
330
|
- spec/unit/braintree/signature_service_spec.rb
|
277
331
|
- spec/unit/braintree/subscription_search_spec.rb
|
@@ -281,9 +335,14 @@ files:
|
|
281
335
|
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
282
336
|
- spec/unit/braintree/transaction/customer_details_spec.rb
|
283
337
|
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
338
|
+
- spec/unit/braintree/transaction/installment_spec.rb
|
339
|
+
- spec/unit/braintree/transaction/local_payment_details_spec.rb
|
340
|
+
- spec/unit/braintree/transaction/payment_receipt_spec.rb
|
341
|
+
- spec/unit/braintree/transaction/paypal_details_spec.rb
|
342
|
+
- spec/unit/braintree/transaction/sepa_direct_debit_account_details_spec.rb
|
343
|
+
- spec/unit/braintree/transaction_gateway_spec.rb
|
284
344
|
- spec/unit/braintree/transaction_search_spec.rb
|
285
345
|
- spec/unit/braintree/transaction_spec.rb
|
286
|
-
- spec/unit/braintree/transparent_redirect_spec.rb
|
287
346
|
- spec/unit/braintree/unknown_payment_method_spec.rb
|
288
347
|
- spec/unit/braintree/us_bank_account_spec.rb
|
289
348
|
- spec/unit/braintree/us_bank_account_verification_search_spec.rb
|
@@ -291,6 +350,7 @@ files:
|
|
291
350
|
- spec/unit/braintree/util_spec.rb
|
292
351
|
- spec/unit/braintree/validation_error_collection_spec.rb
|
293
352
|
- spec/unit/braintree/validation_error_spec.rb
|
353
|
+
- spec/unit/braintree/venmo_profile_data_spec.rb
|
294
354
|
- spec/unit/braintree/webhook_notification_spec.rb
|
295
355
|
- spec/unit/braintree/xml/libxml_spec.rb
|
296
356
|
- spec/unit/braintree/xml/parser_spec.rb
|
@@ -305,6 +365,7 @@ metadata:
|
|
305
365
|
bug_tracker_uri: https://github.com/braintree/braintree_ruby/issues
|
306
366
|
changelog_uri: https://github.com/braintree/braintree_ruby/blob/master/CHANGELOG.md
|
307
367
|
source_code_uri: https://github.com/braintree/braintree_ruby
|
368
|
+
documentation_uri: https://developer.paypal.com/braintree/docs
|
308
369
|
post_install_message:
|
309
370
|
rdoc_options: []
|
310
371
|
require_paths:
|
@@ -313,15 +374,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
313
374
|
requirements:
|
314
375
|
- - ">="
|
315
376
|
- !ruby/object:Gem::Version
|
316
|
-
version:
|
377
|
+
version: 2.6.0
|
317
378
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
379
|
requirements:
|
319
380
|
- - ">="
|
320
381
|
- !ruby/object:Gem::Version
|
321
382
|
version: '0'
|
322
383
|
requirements: []
|
323
|
-
rubygems_version: 3.
|
384
|
+
rubygems_version: 3.2.5
|
324
385
|
signing_key:
|
325
386
|
specification_version: 4
|
326
|
-
summary: Braintree
|
387
|
+
summary: Braintree Ruby Server SDK
|
327
388
|
test_files: []
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
class AmexExpressCheckoutCard
|
3
|
-
include BaseModule # :nodoc:
|
4
|
-
|
5
|
-
attr_reader :bin
|
6
|
-
attr_reader :card_member_expiry_date
|
7
|
-
attr_reader :card_member_number
|
8
|
-
attr_reader :card_type
|
9
|
-
attr_reader :created_at
|
10
|
-
attr_reader :customer_id
|
11
|
-
attr_reader :default
|
12
|
-
attr_reader :expiration_month
|
13
|
-
attr_reader :expiration_year
|
14
|
-
attr_reader :image_url
|
15
|
-
attr_reader :source_description
|
16
|
-
attr_reader :subscriptions
|
17
|
-
attr_reader :token
|
18
|
-
attr_reader :updated_at
|
19
|
-
|
20
|
-
def initialize(gateway, attributes) # :nodoc:
|
21
|
-
@gateway = gateway
|
22
|
-
set_instance_variables_from_hash(attributes)
|
23
|
-
@subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
|
24
|
-
end
|
25
|
-
|
26
|
-
def default?
|
27
|
-
@default
|
28
|
-
end
|
29
|
-
|
30
|
-
class << self
|
31
|
-
protected :new
|
32
|
-
end
|
33
|
-
|
34
|
-
def self._new(*args) # :nodoc:
|
35
|
-
self.new *args
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
class CoinbaseAccount
|
3
|
-
include BaseModule # :nodoc:
|
4
|
-
|
5
|
-
attr_reader :created_at
|
6
|
-
attr_reader :customer_id
|
7
|
-
attr_reader :default
|
8
|
-
attr_reader :subscriptions
|
9
|
-
attr_reader :token
|
10
|
-
attr_reader :updated_at
|
11
|
-
attr_reader :user_email
|
12
|
-
attr_reader :user_id
|
13
|
-
attr_reader :user_name
|
14
|
-
|
15
|
-
def initialize(gateway, attributes) # :nodoc:
|
16
|
-
@gateway = gateway
|
17
|
-
set_instance_variables_from_hash(attributes)
|
18
|
-
@subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
|
19
|
-
end
|
20
|
-
|
21
|
-
class << self
|
22
|
-
protected :new
|
23
|
-
end
|
24
|
-
|
25
|
-
def self._new(*args) # :nodoc:
|
26
|
-
self.new *args
|
27
|
-
end
|
28
|
-
|
29
|
-
# Returns true if this coinbase account is the customer's default payment method.
|
30
|
-
def default?
|
31
|
-
@default
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
class EuropeBankAccount
|
3
|
-
include BaseModule
|
4
|
-
|
5
|
-
module MandateType
|
6
|
-
Business = 'business'
|
7
|
-
Consumer = 'consumer'
|
8
|
-
end
|
9
|
-
|
10
|
-
attr_reader :customer_id
|
11
|
-
attr_reader :image_url
|
12
|
-
attr_reader :token
|
13
|
-
|
14
|
-
def initialize(gateway, attributes) # :nodoc:
|
15
|
-
@gateway = gateway
|
16
|
-
set_instance_variables_from_hash(attributes)
|
17
|
-
end
|
18
|
-
|
19
|
-
class << self
|
20
|
-
protected :new
|
21
|
-
end
|
22
|
-
|
23
|
-
def self._new(*args)
|
24
|
-
self.new(*args)
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.find(token)
|
28
|
-
Configuration.gateway.europe_bank_account.find(token)
|
29
|
-
end
|
30
|
-
|
31
|
-
def default?
|
32
|
-
@default
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
class EuropeBankAccountGateway
|
3
|
-
def initialize(gateway)
|
4
|
-
@gateway = gateway
|
5
|
-
@config = gateway.config
|
6
|
-
@config.assert_has_access_token_or_keys
|
7
|
-
end
|
8
|
-
|
9
|
-
def find(token)
|
10
|
-
raise ArgumentError if token.nil? || token.to_s.strip == ""
|
11
|
-
response = @config.http.get("#{@config.base_merchant_path}/payment_methods/europe_bank_account/#{token}")
|
12
|
-
EuropeBankAccount._new(@gateway, response[:europe_bank_account])
|
13
|
-
rescue NotFoundError
|
14
|
-
raise NotFoundError, "payment method with token #{token.inspect} not found"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
# NEXT_MAJOR_VERSION Remove this class as legacy Ideal has been removed/disabled in the Braintree Gateway
|
3
|
-
# DEPRECATED If you're looking to accept iDEAL as a payment method contact accounts@braintreepayments.com for a solution.
|
4
|
-
class IdealPayment
|
5
|
-
include BaseModule
|
6
|
-
|
7
|
-
attr_reader :amount
|
8
|
-
attr_reader :approval_url
|
9
|
-
attr_reader :currency
|
10
|
-
attr_reader :iban_bank_account
|
11
|
-
attr_reader :id
|
12
|
-
attr_reader :ideal_transaction_id
|
13
|
-
attr_reader :issuer
|
14
|
-
attr_reader :order_id
|
15
|
-
attr_reader :status
|
16
|
-
|
17
|
-
def initialize(gateway, attributes) # :nodoc:
|
18
|
-
@gateway = gateway
|
19
|
-
set_instance_variables_from_hash(attributes)
|
20
|
-
@iban_bank_account = IbanBankAccount.new(attributes[:iban_bank_account]) if attributes[:iban_bank_account]
|
21
|
-
end
|
22
|
-
|
23
|
-
class << self
|
24
|
-
protected :new
|
25
|
-
end
|
26
|
-
|
27
|
-
def self._new(*args) # :nodoc:
|
28
|
-
self.new *args
|
29
|
-
end
|
30
|
-
|
31
|
-
def self.sale(ideal_payment_id, transaction_attributes)
|
32
|
-
Configuration.gateway.transaction.sale(transaction_attributes.merge(
|
33
|
-
:payment_method_nonce => ideal_payment_id,
|
34
|
-
:options => { :submit_for_settlement => true }
|
35
|
-
)
|
36
|
-
)
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.sale!(ideal_payment_id, transaction_attributes)
|
40
|
-
return_object_or_raise(:transaction) { sale(ideal_payment_id, transaction_attributes) }
|
41
|
-
end
|
42
|
-
|
43
|
-
def self.find(ideal_payment_id)
|
44
|
-
Configuration.gateway.ideal_payment.find(ideal_payment_id)
|
45
|
-
end
|
46
|
-
|
47
|
-
class IbanBankAccount
|
48
|
-
include BaseModule
|
49
|
-
attr_reader :account_holder_name
|
50
|
-
attr_reader :bic
|
51
|
-
attr_reader :description
|
52
|
-
attr_reader :iban_account_number_last_4
|
53
|
-
attr_reader :iban_country
|
54
|
-
attr_reader :masked_iban
|
55
|
-
|
56
|
-
def initialize(attributes) # :nodoc:
|
57
|
-
set_instance_variables_from_hash(attributes)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
# NEXT_MAJOR_VERSION Remove this class as legacy Ideal has been removed/disabled in the Braintree Gateway
|
3
|
-
# DEPRECATED If you're looking to accept iDEAL as a payment method contact accounts@braintreepayments.com for a solution.
|
4
|
-
class IdealPaymentGateway
|
5
|
-
def initialize(gateway)
|
6
|
-
@gateway = gateway
|
7
|
-
@config = gateway.config
|
8
|
-
@config.assert_has_access_token_or_keys
|
9
|
-
end
|
10
|
-
|
11
|
-
def find(ideal_payment_id)
|
12
|
-
raise ArgumentError if ideal_payment_id.nil? || ideal_payment_id.to_s.strip == ""
|
13
|
-
response = @config.http.get("#{@config.base_merchant_path}/ideal_payments/#{ideal_payment_id}")
|
14
|
-
IdealPayment._new(@gateway, response[:ideal_payment])
|
15
|
-
rescue NotFoundError
|
16
|
-
raise NotFoundError, "ideal payment with ideal_payment_id #{ideal_payment_id.inspect} not found"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,81 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
class MasterpassCard
|
3
|
-
include BaseModule # :nodoc:
|
4
|
-
include Braintree::Util::TokenEquality
|
5
|
-
|
6
|
-
attr_reader :billing_address
|
7
|
-
attr_reader :bin
|
8
|
-
attr_reader :card_type
|
9
|
-
attr_reader :cardholder_name
|
10
|
-
attr_reader :commercial
|
11
|
-
attr_reader :country_of_issuance
|
12
|
-
attr_reader :created_at
|
13
|
-
attr_reader :customer_id
|
14
|
-
attr_reader :customer_location
|
15
|
-
attr_reader :debit
|
16
|
-
attr_reader :durbin_regulated
|
17
|
-
attr_reader :expiration_month
|
18
|
-
attr_reader :expiration_year
|
19
|
-
attr_reader :healthcare
|
20
|
-
attr_reader :image_url
|
21
|
-
attr_reader :issuing_bank
|
22
|
-
attr_reader :last_4
|
23
|
-
attr_reader :payroll
|
24
|
-
attr_reader :prepaid
|
25
|
-
attr_reader :product_id
|
26
|
-
attr_reader :subscriptions
|
27
|
-
attr_reader :token
|
28
|
-
attr_reader :unique_number_identifier
|
29
|
-
attr_reader :updated_at
|
30
|
-
attr_reader :verification
|
31
|
-
|
32
|
-
def initialize(gateway, attributes) # :nodoc:
|
33
|
-
@gateway = gateway
|
34
|
-
set_instance_variables_from_hash(attributes)
|
35
|
-
@billing_address = attributes[:billing_address] ? Address._new(@gateway, attributes[:billing_address]) : nil
|
36
|
-
@subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
|
37
|
-
@verification = _most_recent_verification(attributes)
|
38
|
-
end
|
39
|
-
|
40
|
-
def _most_recent_verification(attributes)
|
41
|
-
verification = (attributes[:verifications] || []).sort_by{ |verification| verification[:created_at] }.reverse.first
|
42
|
-
CreditCardVerification._new(verification) if verification
|
43
|
-
end
|
44
|
-
|
45
|
-
def default?
|
46
|
-
@default
|
47
|
-
end
|
48
|
-
|
49
|
-
# Expiration date formatted as MM/YYYY
|
50
|
-
def expiration_date
|
51
|
-
"#{expiration_month}/#{expiration_year}"
|
52
|
-
end
|
53
|
-
|
54
|
-
def expired?
|
55
|
-
@expired
|
56
|
-
end
|
57
|
-
|
58
|
-
def inspect # :nodoc:
|
59
|
-
first = [:token]
|
60
|
-
order = first + (self.class._attributes - first)
|
61
|
-
nice_attributes = order.map do |attr|
|
62
|
-
"#{attr}: #{send(attr).inspect}"
|
63
|
-
end
|
64
|
-
"#<#{self.class} #{nice_attributes.join(', ')}>"
|
65
|
-
end
|
66
|
-
|
67
|
-
def self._attributes # :nodoc:
|
68
|
-
[
|
69
|
-
:billing_address, :bin, :card_type, :cardholder_name, :created_at,
|
70
|
-
:customer_id, :customer_location, :expiration_month, :expiration_year,
|
71
|
-
:last_4, :token, :updated_at, :prepaid, :payroll, :product_id,
|
72
|
-
:commercial, :debit, :durbin_regulated, :healthcare,
|
73
|
-
:country_of_issuance, :issuing_bank, :image_url
|
74
|
-
]
|
75
|
-
end
|
76
|
-
|
77
|
-
def self._new(*args) # :nodoc:
|
78
|
-
self.new *args
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
File without changes
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
class Transaction
|
3
|
-
class AmexExpressCheckoutDetails
|
4
|
-
include BaseModule
|
5
|
-
|
6
|
-
attr_reader :bin
|
7
|
-
attr_reader :card_member_expiry_date
|
8
|
-
attr_reader :card_member_number
|
9
|
-
attr_reader :card_type
|
10
|
-
attr_reader :expiration_month
|
11
|
-
attr_reader :expiration_year
|
12
|
-
attr_reader :image_url
|
13
|
-
attr_reader :source_description
|
14
|
-
attr_reader :token
|
15
|
-
|
16
|
-
def initialize(attributes)
|
17
|
-
set_instance_variables_from_hash attributes unless attributes.nil?
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Braintree
|
2
|
-
# NEXT_MAJOR_VERSION Remove this class as legacy Ideal has been removed/disabled in the Braintree Gateway
|
3
|
-
# DEPRECATED If you're looking to accept iDEAL as a payment method contact accounts@braintreepayments.com for a solution.
|
4
|
-
class Transaction
|
5
|
-
class IdealPaymentDetails # :nodoc:
|
6
|
-
include BaseModule
|
7
|
-
|
8
|
-
attr_reader :bic
|
9
|
-
attr_reader :ideal_payment_id
|
10
|
-
attr_reader :ideal_transaction_id
|
11
|
-
attr_reader :image_url
|
12
|
-
attr_reader :masked_iban
|
13
|
-
|
14
|
-
def initialize(attributes)
|
15
|
-
set_instance_variables_from_hash attributes unless attributes.nil?
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|