Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/braintree/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "4.47.*"
version = "4.48.*"
upstream-repository = "https://github.com/braintree/braintree_python"
7 changes: 7 additions & 0 deletions stubs/braintree/braintree/error_codes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ class ErrorCodes:
DirectoryResponseIsInvalid: Final = "942121"
CavvAlgorithmIsInvalid: Final = "942122"

class ExternalVault:
StatusWithPreviousMastercardTransactionLinkIdIsInvalid: Final = "942205"
PreviousMastercardTransactionLinkIdIsInvalid: Final = "942206"

class Options:
AmountCannotBeNegative: Final = "94201"
AmountFormatIsInvalid: Final = "94202"
Expand Down Expand Up @@ -482,6 +486,7 @@ class ErrorCodes:
CannotRefundUnlessSettled: Final = "91506"
CannotRefundWithPendingMerchantAccount: Final = "91559"
CannotRefundWithSuspendedMerchantAccount: Final = "91538"
CannotReverseAtThisTime: Final = "915282"
CannotSimulateTransactionSettlement: Final = "91575"
CannotSubmitForPartialSettlement: Final = "915103"
CannotSubmitForSettlement: Final = "91507"
Expand Down Expand Up @@ -621,6 +626,8 @@ class ErrorCodes:
StatusWithPreviousNetworkTransactionIdIsInvalid: Final = "915177"
CardTypeIsInvalid: Final = "915178"
PreviousNetworkTransactionIdIsInvalid: Final = "915179"
StatusWithPreviousMastercardTransactionLinkIdIsInvalid: Final = "915278"
PreviousMastercardTransactionLinkIdIsInvalid: Final = "915279"

class Options:
SubmitForSettlementIsRequiredForCloning: Final = "91544"
Expand Down
4 changes: 4 additions & 0 deletions stubs/braintree/braintree/transaction.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class Transaction(Resource):
@staticmethod
def refund(transaction_id, amount_or_options=None): ...
@staticmethod
def reverse(transaction_id, params=None): ...
@staticmethod
def sale(params=None): ...
@staticmethod
def search(*query) -> ResourceCollection: ...
Expand Down Expand Up @@ -140,6 +142,8 @@ class Transaction(Resource):
@staticmethod
def refund_signature(): ...
@staticmethod
def reverse_signature(): ...
@staticmethod
def submit_for_partial_settlement(transaction_id, amount, params=None): ...
amount: Decimal
tax_amount: Decimal | None
Expand Down
1 change: 1 addition & 0 deletions stubs/braintree/braintree/transaction_gateway.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class TransactionGateway:
def credit(self, params) -> SuccessfulResult | ErrorResult | None: ...
def find(self, transaction_id: str) -> Transaction: ...
def refund(self, transaction_id, amount_or_options=None) -> SuccessfulResult | ErrorResult | None: ...
def reverse(self, transaction_id, params=None) -> SuccessfulResult | ErrorResult | None: ...
def sale(self, params) -> SuccessfulResult | ErrorResult | None: ...
def search(self, *query) -> ResourceCollection: ...
def submit_for_settlement(self, transaction_id, amount=None, params=None) -> SuccessfulResult | ErrorResult | None: ...
Expand Down
Loading