|
39 | 39 | from braintree.successful_result import SuccessfulResult |
40 | 40 | from braintree.three_d_secure_info import ThreeDSecureInfo |
41 | 41 | from braintree.transaction_line_item import TransactionLineItem |
| 42 | +from braintree.transfer import Transfer |
42 | 43 | from braintree.us_bank_account import UsBankAccount |
43 | 44 | from braintree.venmo_account import VenmoAccount |
44 | 45 | from braintree.visa_checkout_card import VisaCheckoutCard |
@@ -105,6 +106,7 @@ class Transaction(Resource): |
105 | 106 |
|
106 | 107 | def __repr__(self): |
107 | 108 | detail_list = [ |
| 109 | + "account_funding_transaction", |
108 | 110 | "acquirer_reference_number", |
109 | 111 | "additional_processor_response", |
110 | 112 | "amount", |
@@ -163,6 +165,7 @@ def __repr__(self): |
163 | 165 | "tax_amount", |
164 | 166 | "tax_exempt", |
165 | 167 | "type", |
| 168 | + "upcoming_retry_date", |
166 | 169 | "updated_at", |
167 | 170 | "voice_referral_number", |
168 | 171 | ] |
@@ -471,6 +474,7 @@ def clone_signature(): |
471 | 474 | @staticmethod |
472 | 475 | def create_signature(): |
473 | 476 | return [ |
| 477 | + "account_funding_transaction", |
474 | 478 | "amount", |
475 | 479 | # NEXT_MAJOR_VERSION use google_pay_card in public API (map to android_pay_card internally) |
476 | 480 | {"android_pay_card": ["number", "cryptogram", "expiration_month", "expiration_year", "eci_indicator", "source_card_type", "source_card_last_four", "google_transaction_id"]}, |
@@ -659,6 +663,11 @@ def create_signature(): |
659 | 663 | ] |
660 | 664 | }, |
661 | 665 | "transaction_source", |
| 666 | + { |
| 667 | + "transfer":[ |
| 668 | + "type", |
| 669 | + ] |
| 670 | + }, |
662 | 671 | "type", "venmo_sdk_payment_method_code", # NEXT_MJOR_VERSION remove venmo_sdk_payment_method_code |
663 | 672 | ] |
664 | 673 |
|
@@ -882,6 +891,8 @@ def __init__(self, gateway, attributes): |
882 | 891 | self.network_transaction_id = attributes["network_transaction_id"] |
883 | 892 | if "payment_facilitator" in attributes: |
884 | 893 | self.payment_facilitator = PaymentFacilitator(attributes.pop("payment_facilitator")) |
| 894 | + if "transfer" in attributes: |
| 895 | + self.transfer = Transfer(attributes.pop("transfer")) |
885 | 896 |
|
886 | 897 | @property |
887 | 898 | def vault_billing_address(self): |
|
0 commit comments