mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-08 22:36:18 +08:00
Bump braintree to 4.35.* (#13914)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version = "4.34.*"
|
||||
version = "4.35.*"
|
||||
upstream_repository = "https://github.com/braintree/braintree_python"
|
||||
|
||||
@@ -48,6 +48,7 @@ from braintree.merchant_account import MerchantAccount as MerchantAccount
|
||||
from braintree.merchant_account_gateway import MerchantAccountGateway as MerchantAccountGateway
|
||||
from braintree.oauth_access_revocation import OAuthAccessRevocation as OAuthAccessRevocation
|
||||
from braintree.partner_merchant import PartnerMerchant as PartnerMerchant
|
||||
from braintree.payment_facilitator import PaymentFacilitator as PaymentFacilitator
|
||||
from braintree.payment_instrument_type import PaymentInstrumentType as PaymentInstrumentType
|
||||
from braintree.payment_method import PaymentMethod as PaymentMethod
|
||||
from braintree.payment_method_customer_data_updated_metadata import (
|
||||
@@ -68,6 +69,7 @@ from braintree.sepa_direct_debit_account import SepaDirectDebitAccount as SepaDi
|
||||
from braintree.settlement_batch_summary import SettlementBatchSummary as SettlementBatchSummary
|
||||
from braintree.signature_service import SignatureService as SignatureService
|
||||
from braintree.status_event import StatusEvent as StatusEvent
|
||||
from braintree.sub_merchant import SubMerchant as SubMerchant
|
||||
from braintree.subscription import Subscription as Subscription
|
||||
from braintree.subscription_gateway import SubscriptionGateway as SubscriptionGateway
|
||||
from braintree.subscription_search import SubscriptionSearch as SubscriptionSearch
|
||||
|
||||
@@ -141,7 +141,6 @@ class ErrorCodes:
|
||||
VerificationMerchantAccountIdIsInvalid: Final = "91728"
|
||||
VerificationMerchantAccountIsForbidden: Final = "91743"
|
||||
VerificationMerchantAccountIsSuspended: Final = "91742"
|
||||
VerificationMerchantAccountCannotBeSubMerchantAccount: Final = "91755"
|
||||
|
||||
class Customer:
|
||||
CompanyIsTooLong: Final = "81601"
|
||||
@@ -228,105 +227,13 @@ class ErrorCodes:
|
||||
MerchantAccountExistsForId: Final = "93620"
|
||||
|
||||
class MerchantAccount:
|
||||
IdFormatIsInvalid: Final = "82603"
|
||||
IdIsInUse: Final = "82604"
|
||||
IdIsNotAllowed: Final = "82605"
|
||||
IdIsTooLong: Final = "82602"
|
||||
MasterMerchantAccountIdIsInvalid: Final = "82607"
|
||||
MasterMerchantAccountIdIsRequired: Final = "82606"
|
||||
MasterMerchantAccountMustBeActive: Final = "82608"
|
||||
TosAcceptedIsRequired: Final = "82610"
|
||||
CannotBeUpdated: Final = "82674"
|
||||
IdCannotBeUpdated: Final = "82675"
|
||||
MasterMerchantAccountIdCannotBeUpdated: Final = "82676"
|
||||
Declined: Final = "82626"
|
||||
DeclinedMasterCardMatch: Final = "82622"
|
||||
DeclinedOFAC: Final = "82621"
|
||||
DeclinedFailedKYC: Final = "82623"
|
||||
DeclinedSsnInvalid: Final = "82624"
|
||||
DeclinedSsnMatchesDeceased: Final = "82625"
|
||||
|
||||
class ApplicantDetails:
|
||||
AccountNumberIsRequired: Final = "82614"
|
||||
CompanyNameIsInvalid: Final = "82631"
|
||||
CompanyNameIsRequiredWithTaxId: Final = "82633"
|
||||
DateOfBirthIsRequired: Final = "82612"
|
||||
Declined: Final = "82626"
|
||||
DeclinedMasterCardMatch: Final = "82622"
|
||||
DeclinedOFAC: Final = "82621"
|
||||
DeclinedFailedKYC: Final = "82623"
|
||||
DeclinedSsnInvalid: Final = "82624"
|
||||
DeclinedSsnMatchesDeceased: Final = "82625"
|
||||
EmailAddressIsInvalid: Final = "82616"
|
||||
FirstNameIsInvalid: Final = "82627"
|
||||
FirstNameIsRequired: Final = "82609"
|
||||
LastNameIsInvalid: Final = "82628"
|
||||
LastNameIsRequired: Final = "82611"
|
||||
PhoneIsInvalid: Final = "82636"
|
||||
RoutingNumberIsInvalid: Final = "82635"
|
||||
RoutingNumberIsRequired: Final = "82613"
|
||||
SsnIsInvalid: Final = "82615"
|
||||
TaxIdIsInvalid: Final = "82632"
|
||||
TaxIdIsRequiredWithCompanyName: Final = "82634"
|
||||
DateOfBirthIsInvalid: Final = "82663"
|
||||
EmailAddressIsRequired: Final = "82665"
|
||||
AccountNumberIsInvalid: Final = "82670"
|
||||
TaxIdMustBeBlank: Final = "82673"
|
||||
|
||||
class Address:
|
||||
LocalityIsRequired: Final = "82618"
|
||||
PostalCodeIsInvalid: Final = "82630"
|
||||
PostalCodeIsRequired: Final = "82619"
|
||||
RegionIsRequired: Final = "82620"
|
||||
StreetAddressIsInvalid: Final = "82629"
|
||||
StreetAddressIsRequired: Final = "82617"
|
||||
RegionIsInvalid: Final = "82664"
|
||||
|
||||
class Individual:
|
||||
FirstNameIsRequired: Final = "82637"
|
||||
LastNameIsRequired: Final = "82638"
|
||||
DateOfBirthIsRequired: Final = "82639"
|
||||
SsnIsInvalid: Final = "82642"
|
||||
EmailAddressIsInvalid: Final = "82643"
|
||||
FirstNameIsInvalid: Final = "82644"
|
||||
LastNameIsInvalid: Final = "82645"
|
||||
PhoneIsInvalid: Final = "82656"
|
||||
DateOfBirthIsInvalid: Final = "82666"
|
||||
EmailAddressIsRequired: Final = "82667"
|
||||
|
||||
class Address:
|
||||
StreetAddressIsRequired: Final = "82657"
|
||||
LocalityIsRequired: Final = "82658"
|
||||
PostalCodeIsRequired: Final = "82659"
|
||||
RegionIsRequired: Final = "82660"
|
||||
StreetAddressIsInvalid: Final = "82661"
|
||||
PostalCodeIsInvalid: Final = "82662"
|
||||
RegionIsInvalid: Final = "82668"
|
||||
|
||||
class Business:
|
||||
DbaNameIsInvalid: Final = "82646"
|
||||
LegalNameIsInvalid: Final = "82677"
|
||||
LegalNameIsRequiredWithTaxId: Final = "82669"
|
||||
TaxIdIsInvalid: Final = "82647"
|
||||
TaxIdIsRequiredWithLegalName: Final = "82648"
|
||||
TaxIdMustBeBlank: Final = "82672"
|
||||
|
||||
class Address:
|
||||
StreetAddressIsInvalid: Final = "82685"
|
||||
PostalCodeIsInvalid: Final = "82686"
|
||||
RegionIsInvalid: Final = "82684"
|
||||
|
||||
class Funding:
|
||||
RoutingNumberIsRequired: Final = "82640"
|
||||
AccountNumberIsRequired: Final = "82641"
|
||||
RoutingNumberIsInvalid: Final = "82649"
|
||||
AccountNumberIsInvalid: Final = "82671"
|
||||
DestinationIsInvalid: Final = "82679"
|
||||
DestinationIsRequired: Final = "82678"
|
||||
EmailAddressIsInvalid: Final = "82681"
|
||||
EmailAddressIsRequired: Final = "82680"
|
||||
MobilePhoneIsInvalid: Final = "82683"
|
||||
MobilePhoneIsRequired: Final = "82682"
|
||||
|
||||
class OAuth:
|
||||
InvalidGrant: Final = "93801"
|
||||
@@ -365,7 +272,6 @@ class ErrorCodes:
|
||||
MerchantAccountIdIsInvalid: Final = "94204"
|
||||
MerchantAccountIsSuspended: Final = "94205"
|
||||
MerchantAccountIsForbidden: Final = "94206"
|
||||
MerchantAccountCannotBeSubMerchantAccount: Final = "94208"
|
||||
AccountTypeIsInvalid: Final = "942184"
|
||||
AccountTypeNotSupported: Final = "942185"
|
||||
|
||||
@@ -553,14 +459,11 @@ class ErrorCodes:
|
||||
CannotCloneTransactionWithVaultCreditCard: Final = "91540"
|
||||
CannotCloneUnsuccessfulTransaction: Final = "91542"
|
||||
CannotCloneVoiceAuthorizations: Final = "91541"
|
||||
CannotHoldInEscrow: Final = "91560"
|
||||
CannotPartiallyRefundEscrowedTransaction: Final = "91563"
|
||||
CannotRefundCredit: Final = "91505"
|
||||
CannotRefundSettlingTransaction: Final = "91574"
|
||||
CannotRefundUnlessSettled: Final = "91506"
|
||||
CannotRefundWithPendingMerchantAccount: Final = "91559"
|
||||
CannotRefundWithSuspendedMerchantAccount: Final = "91538"
|
||||
CannotReleaseFromEscrow: Final = "91561"
|
||||
CannotSimulateTransactionSettlement: Final = "91575"
|
||||
CannotSubmitForPartialSettlement: Final = "915103"
|
||||
CannotSubmitForSettlement: Final = "91507"
|
||||
@@ -643,7 +546,6 @@ class ErrorCodes:
|
||||
ShipsFromPostalCodeInvalidCharacters: Final = "915167"
|
||||
ShipsFromPostalCodeIsInvalid: Final = "915166"
|
||||
ShipsFromPostalCodeIsTooLong: Final = "915165"
|
||||
SubMerchantAccountRequiresServiceFeeAmount: Final = "91553"
|
||||
SubscriptionDoesNotBelongToCustomer: Final = "91529"
|
||||
SubscriptionIdIsInvalid: Final = "91528"
|
||||
SubscriptionStatusMustBePastDue: Final = "91531"
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
from braintree.merchant_account.business_details import BusinessDetails as BusinessDetails
|
||||
from braintree.merchant_account.funding_details import FundingDetails as FundingDetails
|
||||
from braintree.merchant_account.individual_details import IndividualDetails as IndividualDetails
|
||||
from braintree.merchant_account.merchant_account import MerchantAccount as MerchantAccount
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter
|
||||
from braintree.merchant_account.address_details import AddressDetails
|
||||
|
||||
class BusinessDetails(AttributeGetter):
|
||||
detail_list: ClassVar[list[str]]
|
||||
address_details: AddressDetails
|
||||
def __init__(self, attributes) -> None: ...
|
||||
@@ -1,7 +0,0 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter
|
||||
|
||||
class FundingDetails(AttributeGetter):
|
||||
detail_list: ClassVar[list[str]]
|
||||
def __init__(self, attributes) -> None: ...
|
||||
@@ -1,9 +0,0 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter
|
||||
from braintree.merchant_account.address_details import AddressDetails
|
||||
|
||||
class IndividualDetails(AttributeGetter):
|
||||
detail_list: ClassVar[list[str]]
|
||||
address_details: AddressDetails
|
||||
def __init__(self, attributes) -> None: ...
|
||||
@@ -1,7 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree.merchant_account import BusinessDetails, FundingDetails, IndividualDetails
|
||||
from braintree.resource import Resource
|
||||
|
||||
class MerchantAccount(Resource):
|
||||
@@ -16,9 +15,6 @@ class MerchantAccount(Resource):
|
||||
MobilePhone: Final = "mobile_phone"
|
||||
|
||||
FundingDestinations: type[FundingDestination]
|
||||
individual_details: IndividualDetails
|
||||
business_details: BusinessDetails
|
||||
funding_details: FundingDetails
|
||||
master_merchant_account: MerchantAccount
|
||||
def __init__(self, gateway, attributes) -> None: ...
|
||||
@staticmethod
|
||||
|
||||
@@ -8,10 +8,6 @@ class MerchantAccountGateway:
|
||||
gateway: Incomplete
|
||||
config: Incomplete
|
||||
def __init__(self, gateway) -> None: ...
|
||||
def create(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
|
||||
def update(
|
||||
self, merchant_account_id: str, params: dict[str, Incomplete] | None = None
|
||||
) -> SuccessfulResult | ErrorResult | None: ...
|
||||
def find(self, merchant_account_id: str) -> MerchantAccount: ...
|
||||
def create_for_currency(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
|
||||
def all(self) -> SuccessfulResult: ...
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
from braintree.attribute_getter import AttributeGetter
|
||||
from braintree.sub_merchant import SubMerchant
|
||||
|
||||
class PaymentFacilitator(AttributeGetter):
|
||||
sub_merchant: SubMerchant
|
||||
def __init__(self, attributes) -> None: ...
|
||||
@@ -0,0 +1,4 @@
|
||||
from braintree.attribute_getter import AttributeGetter
|
||||
|
||||
class SubMerchant(AttributeGetter):
|
||||
def __init__(self, attributes) -> None: ...
|
||||
@@ -5,7 +5,6 @@ class TestingGateway:
|
||||
config: Incomplete
|
||||
def __init__(self, gateway) -> None: ...
|
||||
def make_past_due(self, subscription_id, number_of_days_past_due: int = 1) -> None: ...
|
||||
def escrow_transaction(self, transaction_id) -> None: ...
|
||||
def settle_transaction(self, transaction_id): ...
|
||||
def settlement_confirm_transaction(self, transaction_id): ...
|
||||
def settlement_decline_transaction(self, transaction_id): ...
|
||||
|
||||
@@ -22,6 +22,7 @@ from braintree.masterpass_card import MasterpassCard
|
||||
from braintree.meta_checkout_card import MetaCheckoutCard
|
||||
from braintree.meta_checkout_token import MetaCheckoutToken
|
||||
from braintree.package_details import PackageDetails
|
||||
from braintree.payment_facilitator import PaymentFacilitator
|
||||
from braintree.paypal_account import PayPalAccount
|
||||
from braintree.paypal_here import PayPalHere
|
||||
from braintree.resource import Resource
|
||||
@@ -60,13 +61,6 @@ class Transaction(Resource):
|
||||
ControlPanel: Final = "control_panel"
|
||||
Recurring: Final = "recurring"
|
||||
|
||||
class EscrowStatus:
|
||||
HoldPending: Final = "hold_pending"
|
||||
Held: Final = "held"
|
||||
ReleasePending: Final = "release_pending"
|
||||
Released: Final = "released"
|
||||
Refunded: Final = "refunded"
|
||||
|
||||
class Status:
|
||||
AuthorizationExpired: Final = "authorization_expired"
|
||||
Authorized: Final = "authorized"
|
||||
@@ -105,22 +99,16 @@ class Transaction(Resource):
|
||||
@staticmethod
|
||||
def clone_transaction(transaction_id, params): ...
|
||||
@staticmethod
|
||||
def cancel_release(transaction_id): ...
|
||||
@staticmethod
|
||||
def credit(params: Incomplete | None = None): ...
|
||||
@staticmethod
|
||||
def find(transaction_id): ...
|
||||
@staticmethod
|
||||
def hold_in_escrow(transaction_id): ...
|
||||
@staticmethod
|
||||
def refund(transaction_id, amount_or_options: Incomplete | None = None): ...
|
||||
@staticmethod
|
||||
def sale(params: Incomplete | None = None): ...
|
||||
@staticmethod
|
||||
def search(*query): ...
|
||||
@staticmethod
|
||||
def release_from_escrow(transaction_id): ...
|
||||
@staticmethod
|
||||
def submit_for_settlement(transaction_id, amount: Incomplete | None = None, params: Incomplete | None = None): ...
|
||||
@staticmethod
|
||||
def update_details(transaction_id, params: Incomplete | None = None): ...
|
||||
@@ -185,6 +173,7 @@ class Transaction(Resource):
|
||||
facilitated_details: FacilitatedDetails
|
||||
facilitator_details: FacilitatorDetails
|
||||
network_transaction_id: Incomplete
|
||||
payment_facilitator: PaymentFacilitator
|
||||
def __init__(self, gateway, attributes) -> None: ...
|
||||
@property
|
||||
def vault_billing_address(self): ...
|
||||
|
||||
@@ -10,11 +10,9 @@ class TransactionGateway:
|
||||
def create(self, params): ...
|
||||
def credit(self, params): ...
|
||||
def find(self, transaction_id): ...
|
||||
def hold_in_escrow(self, transaction_id): ...
|
||||
def refund(self, transaction_id, amount_or_options: Incomplete | None = None): ...
|
||||
def sale(self, params): ...
|
||||
def search(self, *query): ...
|
||||
def release_from_escrow(self, transaction_id): ...
|
||||
def submit_for_settlement(self, transaction_id, amount: Incomplete | None = None, params: Incomplete | None = None): ...
|
||||
def update_details(self, transaction_id, params: Incomplete | None = None): ...
|
||||
def submit_for_partial_settlement(self, transaction_id, amount, params: Incomplete | None = None): ...
|
||||
|
||||
@@ -52,8 +52,6 @@ class WebhookNotification(Resource):
|
||||
PaymentMethodRevokedByCustomer: Final = "payment_method_revoked_by_customer"
|
||||
RecipientUpdatedGrantedPaymentMethod: Final = "recipient_updated_granted_payment_method"
|
||||
RefundFailed: Final = "refund_failed"
|
||||
SubMerchantAccountApproved: Final = "sub_merchant_account_approved"
|
||||
SubMerchantAccountDeclined: Final = "sub_merchant_account_declined"
|
||||
SubscriptionBillingSkipped: Final = "subscription_billing_skipped"
|
||||
SubscriptionCanceled: Final = "subscription_canceled"
|
||||
SubscriptionChargedSuccessfully: Final = "subscription_charged_successfully"
|
||||
|
||||
Reference in New Issue
Block a user