mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 05:11:09 +08:00
braintree: Use Final for string constants (#11680)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.error_result import ErrorResult as ErrorResult
|
||||
@@ -7,13 +8,13 @@ from braintree.successful_result import SuccessfulResult as SuccessfulResult
|
||||
|
||||
class Address(Resource):
|
||||
class ShippingMethod:
|
||||
SameDay: str
|
||||
NextDay: str
|
||||
Priority: str
|
||||
Ground: str
|
||||
Electronic: str
|
||||
ShipToStore: str
|
||||
PickupInStore: str
|
||||
SameDay: Final = "same_day"
|
||||
NextDay: Final = "next_day"
|
||||
Priority: Final = "priority"
|
||||
Ground: Final = "ground"
|
||||
Electronic: Final = "electronic"
|
||||
ShipToStore: Final = "ship_to_store"
|
||||
PickupInStore: Final = "pickup_in_store"
|
||||
|
||||
@staticmethod
|
||||
def create(params: Incomplete | None = None): ...
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree.resource import Resource as Resource
|
||||
from braintree.subscription import Subscription
|
||||
|
||||
class ApplePayCard(Resource):
|
||||
class CardType:
|
||||
AmEx: str
|
||||
MasterCard: str
|
||||
Visa: str
|
||||
AmEx: Final = "Apple Pay - American Express"
|
||||
MasterCard: Final = "Apple Pay - MasterCard"
|
||||
Visa: Final = "Apple Pay - Visa"
|
||||
|
||||
is_expired: Incomplete
|
||||
subscriptions: list[Subscription]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from enum import Enum
|
||||
from typing import Final
|
||||
|
||||
from braintree.address import Address as Address
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
@@ -9,33 +10,33 @@ from braintree.subscription import Subscription
|
||||
|
||||
class CreditCard(Resource):
|
||||
class CardType:
|
||||
AmEx: str
|
||||
CarteBlanche: str
|
||||
ChinaUnionPay: str
|
||||
DinersClubInternational: str
|
||||
Discover: str
|
||||
Electron: str
|
||||
Elo: str
|
||||
Hiper: str
|
||||
Hipercard: str
|
||||
JCB: str
|
||||
Laser: str
|
||||
UK_Maestro: str
|
||||
Maestro: str
|
||||
MasterCard: str
|
||||
Solo: str
|
||||
Switch: str
|
||||
Visa: str
|
||||
Unknown: str
|
||||
AmEx: Final = "American Express"
|
||||
CarteBlanche: Final = "Carte Blanche"
|
||||
ChinaUnionPay: Final = "China UnionPay"
|
||||
DinersClubInternational: Final = "Diners Club"
|
||||
Discover: Final = "Discover"
|
||||
Electron: Final = "Electron"
|
||||
Elo: Final = "Elo"
|
||||
Hiper: Final = "Hiper"
|
||||
Hipercard: Final = "Hipercard"
|
||||
JCB: Final = "JCB"
|
||||
Laser: Final = "Laser"
|
||||
UK_Maestro: Final = "UK Maestro"
|
||||
Maestro: Final = "Maestro"
|
||||
MasterCard: Final = "MasterCard"
|
||||
Solo: Final = "Solo"
|
||||
Switch: Final = "Switch"
|
||||
Visa: Final = "Visa"
|
||||
Unknown: Final = "Unknown"
|
||||
|
||||
class CustomerLocation:
|
||||
International: str
|
||||
US: str
|
||||
International: Final = "international"
|
||||
US: Final = "us"
|
||||
|
||||
class CardTypeIndicator:
|
||||
Yes: str
|
||||
No: str
|
||||
Unknown: str
|
||||
Yes: Final = "Yes"
|
||||
No: Final = "No"
|
||||
Unknown: Final = "Unknown"
|
||||
|
||||
class DebitNetwork(Enum):
|
||||
Accel = "ACCEL"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from decimal import Decimal
|
||||
from typing import Final
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter as AttributeGetter
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
@@ -9,10 +10,10 @@ from braintree.three_d_secure_info import ThreeDSecureInfo as ThreeDSecureInfo
|
||||
|
||||
class CreditCardVerification(AttributeGetter):
|
||||
class Status:
|
||||
Failed: str
|
||||
GatewayRejected: str
|
||||
ProcessorDeclined: str
|
||||
Verified: str
|
||||
Failed: Final = "failed"
|
||||
GatewayRejected: Final = "gateway_rejected"
|
||||
ProcessorDeclined: Final = "processor_declined"
|
||||
Verified: Final = "verified"
|
||||
|
||||
amount: Decimal | None
|
||||
currency_iso_code: Incomplete
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from decimal import Decimal
|
||||
from typing import Final
|
||||
|
||||
from braintree.merchant_account import MerchantAccount as MerchantAccount
|
||||
from braintree.resource import Resource as Resource
|
||||
@@ -6,8 +7,8 @@ from braintree.transaction_search import TransactionSearch as TransactionSearch
|
||||
|
||||
class Disbursement(Resource):
|
||||
class Type:
|
||||
Credit: str
|
||||
Debit: str
|
||||
Credit: Final = "credit"
|
||||
Debit: Final = "debit"
|
||||
|
||||
amount: Decimal
|
||||
merchant_account: MerchantAccount
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from decimal import Decimal
|
||||
from typing import Final
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter as AttributeGetter
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
@@ -12,46 +13,46 @@ from braintree.transaction_details import TransactionDetails as TransactionDetai
|
||||
|
||||
class Dispute(AttributeGetter):
|
||||
class Status:
|
||||
Accepted: str
|
||||
AutoAccepted: str
|
||||
Disputed: str
|
||||
Expired: str
|
||||
Lost: str
|
||||
Open: str
|
||||
UnderReview: str
|
||||
Won: str
|
||||
Accepted: Final = "accepted"
|
||||
AutoAccepted: Final = "auto_accepted"
|
||||
Disputed: Final = "disputed"
|
||||
Expired: Final = "expired"
|
||||
Lost: Final = "lost"
|
||||
Open: Final = "open"
|
||||
UnderReview: Final = "under_review"
|
||||
Won: Final = "won"
|
||||
|
||||
class Reason:
|
||||
CancelledRecurringTransaction: str
|
||||
CreditNotProcessed: str
|
||||
Duplicate: str
|
||||
Fraud: str
|
||||
General: str
|
||||
InvalidAccount: str
|
||||
NotRecognized: str
|
||||
ProductNotReceived: str
|
||||
ProductUnsatisfactory: str
|
||||
Retrieval: str
|
||||
TransactionAmountDiffers: str
|
||||
CancelledRecurringTransaction: Final = "cancelled_recurring_transaction"
|
||||
CreditNotProcessed: Final = "credit_not_processed"
|
||||
Duplicate: Final = "duplicate"
|
||||
Fraud: Final = "fraud"
|
||||
General: Final = "general"
|
||||
InvalidAccount: Final = "invalid_account"
|
||||
NotRecognized: Final = "not_recognized"
|
||||
ProductNotReceived: Final = "product_not_received"
|
||||
ProductUnsatisfactory: Final = "product_unsatisfactory"
|
||||
Retrieval: Final = "retrieval"
|
||||
TransactionAmountDiffers: Final = "transaction_amount_differs"
|
||||
|
||||
class Kind:
|
||||
Chargeback: str
|
||||
PreArbitration: str
|
||||
Retrieval: str
|
||||
Chargeback: Final = "chargeback"
|
||||
PreArbitration: Final = "pre_arbitration"
|
||||
Retrieval: Final = "retrieval"
|
||||
|
||||
class ChargebackProtectionLevel:
|
||||
Effortless: str
|
||||
Standard: str
|
||||
NotProtected: str
|
||||
Effortless: Final = "effortless"
|
||||
Standard: Final = "standard"
|
||||
NotProtected: Final = "not_protected"
|
||||
|
||||
class PreDisputeProgram:
|
||||
NONE: str
|
||||
VisaRdr: str
|
||||
NONE: Final = "none"
|
||||
VisaRdr: Final = "visa_rdr"
|
||||
|
||||
class ProtectionLevel:
|
||||
EffortlessCBP: str
|
||||
StandardCBP: str
|
||||
NoProtection: str
|
||||
EffortlessCBP: Final = "Effortless Chargeback Protection tool"
|
||||
StandardCBP: Final = "Chargeback Protection tool"
|
||||
NoProtection: Final = "No Protection"
|
||||
|
||||
@staticmethod
|
||||
def accept(id): ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.resource import Resource as Resource
|
||||
@@ -6,7 +7,7 @@ from braintree.successful_result import SuccessfulResult as SuccessfulResult
|
||||
|
||||
class DocumentUpload(Resource):
|
||||
class Kind:
|
||||
EvidenceDocument: str
|
||||
EvidenceDocument: Final = "evidence_document"
|
||||
|
||||
@staticmethod
|
||||
def create(params: Incomplete | None = None): ...
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,12 @@
|
||||
from typing import Final
|
||||
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.resource import Resource as Resource
|
||||
|
||||
class EuropeBankAccount(Resource):
|
||||
class MandateType:
|
||||
Business: str
|
||||
Consumer: str
|
||||
Business: Final = "business"
|
||||
Consumer: Final = "consumer"
|
||||
|
||||
@staticmethod
|
||||
def signature(): ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.merchant_account import (
|
||||
@@ -10,14 +11,14 @@ from braintree.resource import Resource as Resource
|
||||
|
||||
class MerchantAccount(Resource):
|
||||
class Status:
|
||||
Active: str
|
||||
Pending: str
|
||||
Suspended: str
|
||||
Active: Final = "active"
|
||||
Pending: Final = "pending"
|
||||
Suspended: Final = "suspended"
|
||||
|
||||
class FundingDestination:
|
||||
Bank: str
|
||||
Email: str
|
||||
MobilePhone: str
|
||||
Bank: Final = "bank"
|
||||
Email: Final = "email"
|
||||
MobilePhone: Final = "mobile_phone"
|
||||
|
||||
FundingDestinations: type[FundingDestination]
|
||||
individual_details: IndividualDetails
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
from typing import Final
|
||||
|
||||
class PaymentInstrumentType:
|
||||
MetaCheckoutCard: str
|
||||
MetaCheckoutToken: str
|
||||
PayPalAccount: str
|
||||
PayPalHere: str
|
||||
SepaDirectDebitAccount: str
|
||||
EuropeBankAccount: str
|
||||
CreditCard: str
|
||||
ApplePayCard: str
|
||||
AndroidPayCard: str
|
||||
AmexExpressCheckoutCard: str
|
||||
VenmoAccount: str
|
||||
UsBankAccount: str
|
||||
VisaCheckoutCard: str
|
||||
MasterpassCard: str
|
||||
SamsungPayCard: str
|
||||
LocalPayment: str
|
||||
AmexExpressCheckoutCard: Final = "amex_express_checkout_card"
|
||||
AndroidPayCard: Final = "android_pay_card"
|
||||
ApplePayCard: Final = "apple_pay_card"
|
||||
CreditCard: Final = "credit_card"
|
||||
EuropeBankAccount: Final = "europe_bank_account"
|
||||
LocalPayment: Final = "local_payment"
|
||||
MasterpassCard: Final = "masterpass_card"
|
||||
MetaCheckoutCard: Final = "meta_checkout_card"
|
||||
MetaCheckoutToken: Final = "meta_checkout_token"
|
||||
PayPalAccount: Final = "paypal_account"
|
||||
PayPalHere: Final = "paypal_here"
|
||||
SamsungPayCard: Final = "samsung_pay_card"
|
||||
SepaDirectDebitAccount: Final = "sepa_debit_account"
|
||||
UsBankAccount: Final = "us_bank_account"
|
||||
VenmoAccount: Final = "venmo_account"
|
||||
VisaCheckoutCard: Final = "visa_checkout_card"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
from typing import Final
|
||||
|
||||
class ProcessorResponseTypes:
|
||||
Approved: str
|
||||
SoftDeclined: str
|
||||
HardDeclined: str
|
||||
Approved: Final = "approved"
|
||||
SoftDeclined: Final = "soft_declined"
|
||||
HardDeclined: Final = "hard_declined"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from decimal import Decimal
|
||||
from typing import Final
|
||||
|
||||
from braintree.add_on import AddOn as AddOn
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
@@ -16,20 +17,20 @@ from braintree.util.http import Http as Http
|
||||
|
||||
class Subscription(Resource):
|
||||
class TrialDurationUnit:
|
||||
Day: str
|
||||
Month: str
|
||||
Day: Final = "day"
|
||||
Month: Final = "month"
|
||||
|
||||
class Source:
|
||||
Api: str
|
||||
ControlPanel: str
|
||||
Recurring: str
|
||||
Api: Final = "api"
|
||||
ControlPanel: Final = "control_panel"
|
||||
Recurring: Final = "recurring"
|
||||
|
||||
class Status:
|
||||
Active: str
|
||||
Canceled: str
|
||||
Expired: str
|
||||
PastDue: str
|
||||
Pending: str
|
||||
Active: Final = "Active"
|
||||
Canceled: Final = "Canceled"
|
||||
Expired: Final = "Expired"
|
||||
PastDue: Final = "Past Due"
|
||||
Pending: Final = "Pending"
|
||||
|
||||
@staticmethod
|
||||
def create(params: Incomplete | None = None): ...
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
from typing import Final
|
||||
|
||||
class AuthenticationIds:
|
||||
ThreeDSecureVisaFullAuthentication: str
|
||||
ThreeDSecureVisaLookupTimeout: str
|
||||
ThreeDSecureVisaFailedSignature: str
|
||||
ThreeDSecureVisaFailedAuthentication: str
|
||||
ThreeDSecureVisaAttemptsNonParticipating: str
|
||||
ThreeDSecureVisaNoteEnrolled: str
|
||||
ThreeDSecureVisaUnavailable: str
|
||||
ThreeDSecureVisaMPILookupError: str
|
||||
ThreeDSecureVisaMPIAuthenticateError: str
|
||||
ThreeDSecureVisaAuthenticationUnavailable: str
|
||||
ThreeDSecureVisaBypassedAuthentication: str
|
||||
ThreeDSecureTwoVisaSuccessfulFrictionlessAuthentication: str
|
||||
ThreeDSecureTwoVisaSuccessfulStepUpAuthentication: str
|
||||
ThreeDSecureTwoVisaErrorOnLookup: str
|
||||
ThreeDSecureTwoVisaTimeoutOnLookup: str
|
||||
ThreeDSecureVisaFullAuthentication: Final = "fake-three-d-secure-visa-full-authentication-id"
|
||||
ThreeDSecureVisaLookupTimeout: Final = "fake-three-d-secure-visa-lookup-timeout-id"
|
||||
ThreeDSecureVisaFailedSignature: Final = "fake-three-d-secure-visa-failed-signature-id"
|
||||
ThreeDSecureVisaFailedAuthentication: Final = "fake-three-d-secure-visa-failed-authentication-id"
|
||||
ThreeDSecureVisaAttemptsNonParticipating: Final[str]
|
||||
ThreeDSecureVisaNoteEnrolled: Final = "fake-three-d-secure-visa-not-enrolled-id"
|
||||
ThreeDSecureVisaUnavailable: Final = "fake-three-d-secure-visa-unavailable-id"
|
||||
ThreeDSecureVisaMPILookupError: Final = "fake-three-d-secure-visa-mpi-lookup-error-id"
|
||||
ThreeDSecureVisaMPIAuthenticateError: Final = "fake-three-d-secure-visa-mpi-authenticate-error-id"
|
||||
ThreeDSecureVisaAuthenticationUnavailable: Final[str]
|
||||
ThreeDSecureVisaBypassedAuthentication: Final[str]
|
||||
ThreeDSecureTwoVisaSuccessfulFrictionlessAuthentication: Final[str]
|
||||
ThreeDSecureTwoVisaSuccessfulStepUpAuthentication: Final[str]
|
||||
ThreeDSecureTwoVisaErrorOnLookup: Final = "fake-three-d-secure-two-visa-error-on-lookup-id"
|
||||
ThreeDSecureTwoVisaTimeoutOnLookup: Final = "fake-three-d-secure-two-visa-timeout-on-lookup-id"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from typing import Final
|
||||
|
||||
class CreditCardDefaults:
|
||||
CountryOfIssuance: str
|
||||
IssuingBank: str
|
||||
CountryOfIssuance: Final = "USA"
|
||||
IssuingBank: Final = "NETWORK ONLY"
|
||||
|
||||
@@ -1,38 +1,40 @@
|
||||
from typing import Final
|
||||
|
||||
class CreditCardNumbers:
|
||||
class CardTypeIndicators:
|
||||
Commercial: str
|
||||
DurbinRegulated: str
|
||||
Debit: str
|
||||
Healthcare: str
|
||||
Payroll: str
|
||||
Prepaid: str
|
||||
IssuingBank: str
|
||||
CountryOfIssuance: str
|
||||
No: str
|
||||
Unknown: str
|
||||
Commercial: Final = "4111111111131010"
|
||||
DurbinRegulated: Final = "4111161010101010"
|
||||
Debit: Final = "4117101010101010"
|
||||
Healthcare: Final = "4111111510101010"
|
||||
Payroll: Final = "4111111114101010"
|
||||
Prepaid: Final = "4111111111111210"
|
||||
IssuingBank: Final = "4111111141010101"
|
||||
CountryOfIssuance: Final = "4111111111121102"
|
||||
No: Final = "4111111111310101"
|
||||
Unknown: Final = "4111111111112101"
|
||||
|
||||
Maestro: str
|
||||
MasterCard: str
|
||||
MasterCardInternational: str
|
||||
Visa: str
|
||||
VisaInternational: str
|
||||
VisaPrepaid: str
|
||||
Discover: str
|
||||
Elo: str
|
||||
Hiper: str
|
||||
Hipercard: str
|
||||
Amex: str
|
||||
Maestro: Final = "6304000000000000"
|
||||
MasterCard: Final = "5555555555554444"
|
||||
MasterCardInternational: Final = "5105105105105100"
|
||||
Visa: Final = "4012888888881881"
|
||||
VisaInternational: Final = "4009348888881881"
|
||||
VisaPrepaid: Final = "4500600000000061"
|
||||
Discover: Final = "6011111111111117"
|
||||
Elo: Final = "5066991111111118"
|
||||
Hiper: Final = "6370950000000005"
|
||||
Hipercard: Final = "6062820524845321"
|
||||
Amex: Final = "378734493671000"
|
||||
|
||||
class FailsSandboxVerification:
|
||||
AmEx: str
|
||||
Discover: str
|
||||
MasterCard: str
|
||||
Visa: str
|
||||
AmEx: Final = "378734493671000"
|
||||
Discover: Final = "6011000990139424"
|
||||
MasterCard: Final = "5105105105105100"
|
||||
Visa: Final = "4000111111111115"
|
||||
|
||||
class AmexPayWithPoints:
|
||||
Success: str
|
||||
IneligibleCard: str
|
||||
InsufficientPoints: str
|
||||
Success: Final = "371260714673002"
|
||||
IneligibleCard: Final = "378267515471109"
|
||||
InsufficientPoints: Final = "371544868764018"
|
||||
|
||||
class Disputes:
|
||||
Chargeback: str
|
||||
Chargeback: Final = "4023898493988028"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
Approve: str
|
||||
InsufficientFundsContactUs: str
|
||||
AccountNotAuthorizedContactUs: str
|
||||
BankRejectedUpdateFundingInformation: str
|
||||
BankRejectedNone: str
|
||||
from typing import Final
|
||||
|
||||
Approve: Final = "approve_me"
|
||||
InsufficientFundsContactUs: Final = "insufficient_funds__contact"
|
||||
AccountNotAuthorizedContactUs: Final = "account_not_authorized__contact"
|
||||
BankRejectedUpdateFundingInformation: Final = "bank_rejected__update"
|
||||
BankRejectedNone: Final = "bank_rejected__none"
|
||||
|
||||
@@ -1,81 +1,83 @@
|
||||
from typing import Final
|
||||
|
||||
class Nonces:
|
||||
AbstractTransactable: str
|
||||
AmexExpressCheckoutCard: str
|
||||
AndroidPayCard: str
|
||||
AndroidPayCardAmEx: str
|
||||
AndroidPayCardDiscover: str
|
||||
AndroidPayCardMasterCard: str
|
||||
AndroidPayCardVisa: str
|
||||
ApplePayAmEx: str
|
||||
ApplePayMasterCard: str
|
||||
ApplePayMpan: str
|
||||
ApplePayVisa: str
|
||||
Consumed: str
|
||||
Europe: str
|
||||
GatewayRejectedFraud: str
|
||||
GatewayRejectedRiskThreshold: str
|
||||
LocalPayment: str
|
||||
LuhnInvalid: str
|
||||
MasterpassAmEx: str
|
||||
MasterpassDiscover: str
|
||||
MasterpassMasterCard: str
|
||||
MasterpassVisa: str
|
||||
PayPalBillingAgreement: str
|
||||
PayPalFuturePayment: str
|
||||
PayPalFuturePaymentRefreshToken: str
|
||||
PayPalOneTimePayment: str
|
||||
ProcessorDeclinedAmEx: str
|
||||
ProcessorDeclinedDiscover: str
|
||||
ProcessorDeclinedMasterCard: str
|
||||
ProcessorDeclinedVisa: str
|
||||
ProcessorFailureJCB: str
|
||||
SEPA: str
|
||||
MetaCheckoutCard: str
|
||||
MetaCheckoutToken: str
|
||||
SamsungPayAmex: str
|
||||
SamsungPayDiscover: str
|
||||
SamsungPayMasterCard: str
|
||||
SamsungPayVisa: str
|
||||
SepaDirectDebit: str
|
||||
ThreeDSecureTwoVisaErrorOnLookup: str
|
||||
ThreeDSecureTwoVisaSuccessfulFrictionlessAuthentication: str
|
||||
ThreeDSecureTwoVisaSuccessfulStepUpAuthentication: str
|
||||
ThreeDSecureTwoVisaTimeoutOnLookup: str
|
||||
ThreeDSecureVisaAttemptsNonParticipating: str
|
||||
ThreeDSecureVisaAuthenticationUnavailable: str
|
||||
ThreeDSecureVisaBypassedAuthentication: str
|
||||
ThreeDSecureVisaFailedAuthentication: str
|
||||
ThreeDSecureVisaFailedSignature: str
|
||||
ThreeDSecureVisaFullAuthentication: str
|
||||
ThreeDSecureVisaLookupTimeout: str
|
||||
ThreeDSecureVisaMPIAuthenticateError: str
|
||||
ThreeDSecureVisaMPILookupError: str
|
||||
ThreeDSecureVisaNoteEnrolled: str
|
||||
ThreeDSecureVisaUnavailable: str
|
||||
Transactable: str
|
||||
TransactableAmEx: str
|
||||
TransactableCommercial: str
|
||||
TransactableCountryOfIssuanceCAD: str
|
||||
TransactableCountryOfIssuanceUSA: str
|
||||
TransactableDebit: str
|
||||
TransactableDinersClub: str
|
||||
TransactableDiscover: str
|
||||
TransactableDurbinRegulated: str
|
||||
TransactableHealthcare: str
|
||||
TransactableIssuingBankNetworkOnly: str
|
||||
TransactableJCB: str
|
||||
TransactableMaestro: str
|
||||
TransactableMasterCard: str
|
||||
TransactableNoIndicators: str
|
||||
TransactablePayroll: str
|
||||
TransactablePinlessDebitVisa: str
|
||||
TransactablePrepaid: str
|
||||
TransactableUnknownIndicators: str
|
||||
TransactableVisa: str
|
||||
VenmoAccount: str
|
||||
VenmoAccountTokenIssuanceError: str
|
||||
VisaCheckoutAmEx: str
|
||||
VisaCheckoutDiscover: str
|
||||
VisaCheckoutMasterCard: str
|
||||
VisaCheckoutVisa: str
|
||||
UsBankAccount: str
|
||||
AbstractTransactable: Final = "fake-abstract-transactable-nonce"
|
||||
AmexExpressCheckoutCard: Final = "fake-amex-express-checkout-nonce"
|
||||
AndroidPayCard: Final = "fake-android-pay-nonce"
|
||||
AndroidPayCardAmEx: Final = "fake-android-pay-amex-nonce"
|
||||
AndroidPayCardDiscover: Final = "fake-android-pay-discover-nonce"
|
||||
AndroidPayCardMasterCard: Final = "fake-android-pay-mastercard-nonce"
|
||||
AndroidPayCardVisa: Final = "fake-android-pay-visa-nonce"
|
||||
ApplePayAmEx: Final = "fake-apple-pay-amex-nonce"
|
||||
ApplePayMasterCard: Final = "fake-apple-pay-mastercard-nonce"
|
||||
ApplePayMpan: Final = "fake-apple-pay-mpan-nonce"
|
||||
ApplePayVisa: Final = "fake-apple-pay-visa-nonce"
|
||||
Consumed: Final = "fake-consumed-nonce"
|
||||
Europe: Final = "fake-europe-bank-account-nonce"
|
||||
GatewayRejectedFraud: Final = "fake-gateway-rejected-fraud-nonce"
|
||||
GatewayRejectedRiskThreshold: Final = "fake-gateway-rejected-risk-thresholds-nonce"
|
||||
LocalPayment: Final = "fake-local-payment-method-nonce"
|
||||
LuhnInvalid: Final = "fake-luhn-invalid-nonce"
|
||||
MasterpassAmEx: Final = "fake-masterpass-amex-nonce"
|
||||
MasterpassDiscover: Final = "fake-masterpass-discover-nonce"
|
||||
MasterpassMasterCard: Final = "fake-masterpass-mastercard-nonce"
|
||||
MasterpassVisa: Final = "fake-masterpass-visa-nonce"
|
||||
PayPalBillingAgreement: Final = "fake-paypal-billing-agreement-nonce"
|
||||
PayPalFuturePayment: Final = "fake-paypal-future-nonce"
|
||||
PayPalFuturePaymentRefreshToken: Final = "fake-paypal-future-refresh-token-nonce"
|
||||
PayPalOneTimePayment: Final = "fake-paypal-one-time-nonce"
|
||||
ProcessorDeclinedAmEx: Final = "fake-processor-declined-amex-nonce"
|
||||
ProcessorDeclinedDiscover: Final = "fake-processor-declined-discover-nonce"
|
||||
ProcessorDeclinedMasterCard: Final = "fake-processor-declined-mastercard-nonce"
|
||||
ProcessorDeclinedVisa: Final = "fake-processor-declined-visa-nonce"
|
||||
ProcessorFailureJCB: Final = "fake-processor-failure-jcb-nonce"
|
||||
SEPA: Final = "fake-sepa-bank-account-nonce"
|
||||
MetaCheckoutCard: Final = "fake-meta-checkout-card-nonce"
|
||||
MetaCheckoutToken: Final = "fake-meta-checkout-token-nonce"
|
||||
SamsungPayAmex: Final = "tokensam_fake_american_express"
|
||||
SamsungPayDiscover: Final = "tokensam_fake_american_express"
|
||||
SamsungPayMasterCard: Final = "tokensam_fake_mastercard"
|
||||
SamsungPayVisa: Final = "tokensam_fake_visa"
|
||||
SepaDirectDebit: Final = "fake-sepa-direct-debit-nonce"
|
||||
ThreeDSecureTwoVisaErrorOnLookup: Final = "fake-three-d-secure-two-visa-error-on-lookup-nonce"
|
||||
ThreeDSecureTwoVisaSuccessfulFrictionlessAuthentication: Final[str]
|
||||
ThreeDSecureTwoVisaSuccessfulStepUpAuthentication: Final[str]
|
||||
ThreeDSecureTwoVisaTimeoutOnLookup: Final[str]
|
||||
ThreeDSecureVisaAttemptsNonParticipating: Final[str]
|
||||
ThreeDSecureVisaAuthenticationUnavailable: Final[str]
|
||||
ThreeDSecureVisaBypassedAuthentication: Final[str]
|
||||
ThreeDSecureVisaFailedAuthentication: Final[str]
|
||||
ThreeDSecureVisaFailedSignature: Final = "fake-three-d-secure-visa-failed-signature-nonce"
|
||||
ThreeDSecureVisaFullAuthentication: Final = "fake-three-d-secure-visa-full-authentication-nonce"
|
||||
ThreeDSecureVisaLookupTimeout: Final = "fake-three-d-secure-visa-lookup-timeout-nonce"
|
||||
ThreeDSecureVisaMPIAuthenticateError: Final[str]
|
||||
ThreeDSecureVisaMPILookupError: Final = "fake-three-d-secure-visa-mpi-lookup-error-nonce"
|
||||
ThreeDSecureVisaNoteEnrolled: Final = "fake-three-d-secure-visa-not-enrolled-nonce"
|
||||
ThreeDSecureVisaUnavailable: Final = "fake-three-d-secure-visa-unavailable-nonce"
|
||||
Transactable: Final = "fake-valid-nonce"
|
||||
TransactableAmEx: Final = "fake-valid-amex-nonce"
|
||||
TransactableCommercial: Final = "fake-valid-commercial-nonce"
|
||||
TransactableCountryOfIssuanceCAD: Final = "fake-valid-country-of-issuance-cad-nonce"
|
||||
TransactableCountryOfIssuanceUSA: Final = "fake-valid-country-of-issuance-usa-nonce"
|
||||
TransactableDebit: Final = "fake-valid-debit-nonce"
|
||||
TransactableDinersClub: Final = "fake-valid-dinersclub-nonce"
|
||||
TransactableDiscover: Final = "fake-valid-discover-nonce"
|
||||
TransactableDurbinRegulated: Final = "fake-valid-durbin-regulated-nonce"
|
||||
TransactableHealthcare: Final = "fake-valid-healthcare-nonce"
|
||||
TransactableIssuingBankNetworkOnly: Final = "fake-valid-issuing-bank-network-only-nonce"
|
||||
TransactableJCB: Final = "fake-valid-jcb-nonce"
|
||||
TransactableMaestro: Final = "fake-valid-maestro-nonce"
|
||||
TransactableMasterCard: Final = "fake-valid-mastercard-nonce"
|
||||
TransactableNoIndicators: Final = "fake-valid-no-indicators-nonce"
|
||||
TransactablePayroll: Final = "fake-valid-payroll-nonce"
|
||||
TransactablePinlessDebitVisa: Final = "fake-pinless-debit-visa-nonce"
|
||||
TransactablePrepaid: Final = "fake-valid-prepaid-nonce"
|
||||
TransactableUnknownIndicators: Final = "fake-valid-unknown-indicators-nonce"
|
||||
TransactableVisa: Final = "fake-valid-visa-nonce"
|
||||
VenmoAccount: Final = "fake-venmo-account-nonce"
|
||||
VenmoAccountTokenIssuanceError: Final = "fake-token-issuance-error-venmo-account-nonce"
|
||||
VisaCheckoutAmEx: Final = "fake-visa-checkout-amex-nonce"
|
||||
VisaCheckoutDiscover: Final = "fake-visa-checkout-discover-nonce"
|
||||
VisaCheckoutMasterCard: Final = "fake-visa-checkout-mastercard-nonce"
|
||||
VisaCheckoutVisa: Final = "fake-visa-checkout-visa-nonce"
|
||||
UsBankAccount: Final = "fake-us-bank-account-nonce"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
def generate_test_payment_method_code(number): ...
|
||||
|
||||
VisaPaymentMethodCode: Incomplete
|
||||
InvalidPaymentMethodCode: Incomplete
|
||||
VisaPaymentMethodCode: Final = "stub-4111111111111111"
|
||||
InvalidPaymentMethodCode: Final = "stub-invalid-payment-method-code"
|
||||
|
||||
Session: str
|
||||
InvalidSession: str
|
||||
Session: Final = "stub-session"
|
||||
InvalidSession: Final = "stub-invalid-session"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from decimal import Decimal
|
||||
from typing import Final
|
||||
|
||||
from braintree.add_on import AddOn as AddOn
|
||||
from braintree.address import Address as Address
|
||||
@@ -43,68 +44,68 @@ from braintree.visa_checkout_card import VisaCheckoutCard as VisaCheckoutCard
|
||||
|
||||
class Transaction(Resource):
|
||||
class CreatedUsing:
|
||||
FullInformation: str
|
||||
Token: str
|
||||
FullInformation: Final = "full_information"
|
||||
Token: Final = "token"
|
||||
|
||||
class GatewayRejectionReason:
|
||||
ApplicationIncomplete: str
|
||||
Avs: str
|
||||
AvsAndCvv: str
|
||||
Cvv: str
|
||||
Duplicate: str
|
||||
ExcessiveRetry: str
|
||||
Fraud: str
|
||||
RiskThreshold: str
|
||||
ThreeDSecure: str
|
||||
TokenIssuance: str
|
||||
ApplicationIncomplete: Final = "application_incomplete"
|
||||
Avs: Final = "avs"
|
||||
AvsAndCvv: Final = "avs_and_cvv"
|
||||
Cvv: Final = "cvv"
|
||||
Duplicate: Final = "duplicate"
|
||||
ExcessiveRetry: Final = "excessive_retry"
|
||||
Fraud: Final = "fraud"
|
||||
RiskThreshold: Final = "risk_threshold"
|
||||
ThreeDSecure: Final = "three_d_secure"
|
||||
TokenIssuance: Final = "token_issuance"
|
||||
|
||||
class ReasonCode:
|
||||
ANY_REASON_CODE: str
|
||||
ANY_REASON_CODE: Final = "any_reason_code"
|
||||
|
||||
class Source:
|
||||
Api: str
|
||||
ControlPanel: str
|
||||
Recurring: str
|
||||
Api: Final = "api"
|
||||
ControlPanel: Final = "control_panel"
|
||||
Recurring: Final = "recurring"
|
||||
|
||||
class EscrowStatus:
|
||||
HoldPending: str
|
||||
Held: str
|
||||
ReleasePending: str
|
||||
Released: str
|
||||
Refunded: str
|
||||
HoldPending: Final = "hold_pending"
|
||||
Held: Final = "held"
|
||||
ReleasePending: Final = "release_pending"
|
||||
Released: Final = "released"
|
||||
Refunded: Final = "refunded"
|
||||
|
||||
class Status:
|
||||
AuthorizationExpired: str
|
||||
Authorized: str
|
||||
Authorizing: str
|
||||
Failed: str
|
||||
GatewayRejected: str
|
||||
ProcessorDeclined: str
|
||||
Settled: str
|
||||
SettlementConfirmed: str
|
||||
SettlementDeclined: str
|
||||
SettlementFailed: str
|
||||
SettlementPending: str
|
||||
Settling: str
|
||||
SubmittedForSettlement: str
|
||||
Voided: str
|
||||
AuthorizationExpired: Final = "authorization_expired"
|
||||
Authorized: Final = "authorized"
|
||||
Authorizing: Final = "authorizing"
|
||||
Failed: Final = "failed"
|
||||
GatewayRejected: Final = "gateway_rejected"
|
||||
ProcessorDeclined: Final = "processor_declined"
|
||||
Settled: Final = "settled"
|
||||
SettlementConfirmed: Final = "settlement_confirmed"
|
||||
SettlementDeclined: Final = "settlement_declined"
|
||||
SettlementFailed: Final = "settlement_failed"
|
||||
SettlementPending: Final = "settlement_pending"
|
||||
Settling: Final = "settling"
|
||||
SubmittedForSettlement: Final = "submitted_for_settlement"
|
||||
Voided: Final = "voided"
|
||||
|
||||
class Type:
|
||||
Credit: str
|
||||
Sale: str
|
||||
Credit: Final = "credit"
|
||||
Sale: Final = "sale"
|
||||
|
||||
class IndustryType:
|
||||
Lodging: str
|
||||
TravelAndCruise: str
|
||||
TravelAndFlight: str
|
||||
Lodging: Final = "lodging"
|
||||
TravelAndCruise: Final = "travel_cruise"
|
||||
TravelAndFlight: Final = "travel_flight"
|
||||
|
||||
class AdditionalCharge:
|
||||
Restaurant: str
|
||||
GiftShop: str
|
||||
MiniBar: str
|
||||
Telephone: str
|
||||
Laundry: str
|
||||
Other: str
|
||||
Restaurant: Final = "restaurant"
|
||||
GiftShop: Final = "gift_shop"
|
||||
MiniBar: Final = "mini_bar"
|
||||
Telephone: Final = "telephone"
|
||||
Laundry: Final = "laundry"
|
||||
Other: Final = "other"
|
||||
|
||||
@staticmethod
|
||||
def adjust_authorization(transaction_id, amount): ...
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
from typing import Final
|
||||
|
||||
class TransactionAmounts:
|
||||
Authorize: str
|
||||
Decline: str
|
||||
HardDecline: str
|
||||
Fail: str
|
||||
Authorize: Final = "1000.00"
|
||||
Decline: Final = "2000.00"
|
||||
HardDecline: Final = "2015.00"
|
||||
Fail: Final = "3000.00"
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
from typing import Final
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter as AttributeGetter
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.resource import Resource as Resource
|
||||
|
||||
class TransactionLineItem(AttributeGetter):
|
||||
class Kind:
|
||||
Credit: str
|
||||
Debit: str
|
||||
Credit: Final = "credit"
|
||||
Debit: Final = "debit"
|
||||
|
||||
def __init__(self, attributes) -> None: ...
|
||||
@staticmethod
|
||||
|
||||
@@ -1,24 +1,26 @@
|
||||
from typing import Final
|
||||
|
||||
from braintree.attribute_getter import AttributeGetter as AttributeGetter
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.us_bank_account import UsBankAccount
|
||||
|
||||
class UsBankAccountVerification(AttributeGetter):
|
||||
class Status:
|
||||
Failed: str
|
||||
GatewayRejected: str
|
||||
ProcessorDeclined: str
|
||||
Unrecognized: str
|
||||
Verified: str
|
||||
Pending: str
|
||||
Failed: Final = "failed"
|
||||
GatewayRejected: Final = "gateway_rejected"
|
||||
ProcessorDeclined: Final = "processor_declined"
|
||||
Unrecognized: Final = "unrecognized"
|
||||
Verified: Final = "verified"
|
||||
Pending: Final = "pending"
|
||||
|
||||
class VerificationMethod:
|
||||
NetworkCheck: str
|
||||
IndependentCheck: str
|
||||
TokenizedCheck: str
|
||||
MicroTransfers: str
|
||||
NetworkCheck: Final = "network_check"
|
||||
IndependentCheck: Final = "independent_check"
|
||||
TokenizedCheck: Final = "tokenized_check"
|
||||
MicroTransfers: Final = "micro_transfers"
|
||||
|
||||
class VerificationAddOns:
|
||||
CustomerVerification: str
|
||||
CustomerVerification: Final = "customer_verification"
|
||||
|
||||
us_bank_account: UsBankAccount | None
|
||||
def __init__(self, gateway, attributes) -> None: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree import version as version
|
||||
from braintree.environment import Environment as Environment
|
||||
@@ -23,9 +24,9 @@ from braintree.util.xml_util import XmlUtil as XmlUtil
|
||||
|
||||
class Http:
|
||||
class ContentType:
|
||||
Xml: str
|
||||
Multipart: str
|
||||
Json: str
|
||||
Xml: Final = "application/xml"
|
||||
Multipart: Final = "multipart/form-data"
|
||||
Json: Final = "application/json"
|
||||
|
||||
@staticmethod
|
||||
def is_error_status(status): ...
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
Version: str
|
||||
from typing import Final
|
||||
|
||||
Version: Final[str]
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Final
|
||||
|
||||
from braintree.account_updater_daily_report import AccountUpdaterDailyReport as AccountUpdaterDailyReport
|
||||
from braintree.account_updater_daily_report import AccountUpdaterDailyReport
|
||||
from braintree.configuration import Configuration as Configuration
|
||||
from braintree.connected_merchant_paypal_status_changed import (
|
||||
ConnectedMerchantPayPalStatusChanged as ConnectedMerchantPayPalStatusChanged,
|
||||
)
|
||||
from braintree.connected_merchant_status_transitioned import (
|
||||
ConnectedMerchantStatusTransitioned as ConnectedMerchantStatusTransitioned,
|
||||
)
|
||||
from braintree.disbursement import Disbursement as Disbursement
|
||||
from braintree.connected_merchant_paypal_status_changed import ConnectedMerchantPayPalStatusChanged
|
||||
from braintree.connected_merchant_status_transitioned import ConnectedMerchantStatusTransitioned
|
||||
from braintree.disbursement import Disbursement
|
||||
from braintree.dispute import Dispute as Dispute
|
||||
from braintree.error_result import ErrorResult as ErrorResult
|
||||
from braintree.granted_payment_instrument_update import GrantedPaymentInstrumentUpdate as GrantedPaymentInstrumentUpdate
|
||||
@@ -29,47 +26,47 @@ from braintree.validation_error_collection import ValidationErrorCollection as V
|
||||
|
||||
class WebhookNotification(Resource):
|
||||
class Kind:
|
||||
AccountUpdaterDailyReport: str
|
||||
Check: str
|
||||
ConnectedMerchantPayPalStatusChanged: str
|
||||
ConnectedMerchantStatusTransitioned: str
|
||||
Disbursement: str
|
||||
DisbursementException: str
|
||||
DisputeAccepted: str
|
||||
DisputeAutoAccepted: str
|
||||
DisputeDisputed: str
|
||||
DisputeExpired: str
|
||||
DisputeLost: str
|
||||
DisputeOpened: str
|
||||
DisputeUnderReview: str
|
||||
DisputeWon: str
|
||||
GrantedPaymentMethodRevoked: str
|
||||
GrantorUpdatedGrantedPaymentMethod: str
|
||||
LocalPaymentCompleted: str
|
||||
LocalPaymentExpired: str
|
||||
LocalPaymentFunded: str
|
||||
LocalPaymentReversed: str
|
||||
OAuthAccessRevoked: str
|
||||
PartnerMerchantConnected: str
|
||||
PartnerMerchantDeclined: str
|
||||
PartnerMerchantDisconnected: str
|
||||
PaymentMethodCustomerDataUpdated: str
|
||||
PaymentMethodRevokedByCustomer: str
|
||||
RecipientUpdatedGrantedPaymentMethod: str
|
||||
SubMerchantAccountApproved: str
|
||||
SubMerchantAccountDeclined: str
|
||||
SubscriptionBillingSkipped: str
|
||||
SubscriptionCanceled: str
|
||||
SubscriptionChargedSuccessfully: str
|
||||
SubscriptionChargedUnsuccessfully: str
|
||||
SubscriptionExpired: str
|
||||
SubscriptionTrialEnded: str
|
||||
SubscriptionWentActive: str
|
||||
SubscriptionWentPastDue: str
|
||||
TransactionDisbursed: str
|
||||
TransactionReviewed: str
|
||||
TransactionSettled: str
|
||||
TransactionSettlementDeclined: str
|
||||
AccountUpdaterDailyReport: Final = "account_updater_daily_report"
|
||||
Check: Final = "check"
|
||||
ConnectedMerchantPayPalStatusChanged: Final = "connected_merchant_paypal_status_changed"
|
||||
ConnectedMerchantStatusTransitioned: Final = "connected_merchant_status_transitioned"
|
||||
Disbursement: Final = "disbursement"
|
||||
DisbursementException: Final = "disbursement_exception"
|
||||
DisputeAccepted: Final = "dispute_accepted"
|
||||
DisputeAutoAccepted: Final = "dispute_auto_accepted"
|
||||
DisputeDisputed: Final = "dispute_disputed"
|
||||
DisputeExpired: Final = "dispute_expired"
|
||||
DisputeLost: Final = "dispute_lost"
|
||||
DisputeOpened: Final = "dispute_opened"
|
||||
DisputeUnderReview: Final = "dispute_under_review"
|
||||
DisputeWon: Final = "dispute_won"
|
||||
GrantedPaymentMethodRevoked: Final = "granted_payment_method_revoked"
|
||||
GrantorUpdatedGrantedPaymentMethod: Final = "grantor_updated_granted_payment_method"
|
||||
LocalPaymentCompleted: Final = "local_payment_completed"
|
||||
LocalPaymentExpired: Final = "local_payment_expired"
|
||||
LocalPaymentFunded: Final = "local_payment_funded"
|
||||
LocalPaymentReversed: Final = "local_payment_reversed"
|
||||
OAuthAccessRevoked: Final = "oauth_access_revoked"
|
||||
PartnerMerchantConnected: Final = "partner_merchant_connected"
|
||||
PartnerMerchantDeclined: Final = "partner_merchant_declined"
|
||||
PartnerMerchantDisconnected: Final = "partner_merchant_disconnected"
|
||||
PaymentMethodCustomerDataUpdated: Final = "payment_method_customer_data_updated"
|
||||
PaymentMethodRevokedByCustomer: Final = "payment_method_revoked_by_customer"
|
||||
RecipientUpdatedGrantedPaymentMethod: Final = "recipient_updated_granted_payment_method"
|
||||
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"
|
||||
SubscriptionChargedUnsuccessfully: Final = "subscription_charged_unsuccessfully"
|
||||
SubscriptionExpired: Final = "subscription_expired"
|
||||
SubscriptionTrialEnded: Final = "subscription_trial_ended"
|
||||
SubscriptionWentActive: Final = "subscription_went_active"
|
||||
SubscriptionWentPastDue: Final = "subscription_went_past_due"
|
||||
TransactionDisbursed: Final = "transaction_disbursed"
|
||||
TransactionReviewed: Final = "transaction_reviewed"
|
||||
TransactionSettled: Final = "transaction_settled"
|
||||
TransactionSettlementDeclined: Final = "transaction_settlement_declined"
|
||||
|
||||
@staticmethod
|
||||
def parse(signature, payload): ...
|
||||
|
||||
Reference in New Issue
Block a user