Skip to content

Commit d547f02

Browse files
authored
Bump braintree to 4.33.* (#13511)
1 parent 4050dd4 commit d547f02

18 files changed

Lines changed: 186 additions & 1 deletion

stubs/braintree/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "4.32.*"
1+
version = "4.33.*"
22
upstream_repository = "https://github.com/braintree/braintree_python"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from _typeshed import Incomplete
2+
3+
from braintree.error_result import ErrorResult
4+
from braintree.graphql import CreateCustomerSessionInput, CustomerRecommendationsInput, UpdateCustomerSessionInput
5+
from braintree.successful_result import SuccessfulResult
6+
7+
class CustomerSessionGateway:
8+
gateway: Incomplete
9+
graphql_client: Incomplete
10+
def __init__(self, gateway) -> None: ...
11+
def create_customer_session(self, customer_session_input: CreateCustomerSessionInput) -> SuccessfulResult | ErrorResult: ...
12+
def update_customer_session(
13+
self, update_customer_session_input: UpdateCustomerSessionInput
14+
) -> SuccessfulResult | ErrorResult: ...
15+
def get_customer_recommendations(
16+
self, customer_recommendations_input: CustomerRecommendationsInput
17+
) -> SuccessfulResult | ErrorResult: ...
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from braintree.graphql.enums import Recommendations as Recommendations, RecommendedPaymentOption as RecommendedPaymentOption
2+
from braintree.graphql.inputs import (
3+
CreateCustomerSessionInput as CreateCustomerSessionInput,
4+
CustomerRecommendationsInput as CustomerRecommendationsInput,
5+
CustomerSessionInput as CustomerSessionInput,
6+
PhoneInput as PhoneInput,
7+
UpdateCustomerSessionInput as UpdateCustomerSessionInput,
8+
)
9+
from braintree.graphql.types import (
10+
CustomerRecommendationsPayload as CustomerRecommendationsPayload,
11+
PaymentOptions as PaymentOptions,
12+
)
13+
from braintree.graphql.unions import CustomerRecommendations as CustomerRecommendations
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from braintree.graphql.enums.recommendations import Recommendations as Recommendations
2+
from braintree.graphql.enums.recommended_payment_option import RecommendedPaymentOption as RecommendedPaymentOption
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from enum import Enum
2+
3+
class Recommendations(Enum):
4+
PAYMENT_RECOMMENDATIONS = "PAYMENT_RECOMMENDATIONS"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from enum import Enum
2+
3+
class RecommendedPaymentOption(Enum):
4+
PAYPAL = "PAYPAL"
5+
VENMO = "VENMO"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from braintree.graphql.inputs.create_customer_session_input import CreateCustomerSessionInput as CreateCustomerSessionInput
2+
from braintree.graphql.inputs.customer_recommendations_input import CustomerRecommendationsInput as CustomerRecommendationsInput
3+
from braintree.graphql.inputs.customer_session_input import CustomerSessionInput as CustomerSessionInput
4+
from braintree.graphql.inputs.phone_input import PhoneInput as PhoneInput
5+
from braintree.graphql.inputs.update_customer_session_input import UpdateCustomerSessionInput as UpdateCustomerSessionInput
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from _typeshed import Incomplete
2+
3+
from braintree.graphql.inputs.customer_session_input import CustomerSessionInput
4+
5+
class CreateCustomerSessionInput:
6+
def __init__(
7+
self,
8+
merchant_account_id: str | None = None,
9+
session_id: str | None = None,
10+
customer: CustomerSessionInput | None = None,
11+
domain: str | None = None,
12+
) -> None: ...
13+
def to_graphql_variables(self) -> dict[Incomplete, Incomplete]: ...
14+
@staticmethod
15+
def builder(): ...
16+
17+
class Builder:
18+
def __init__(self) -> None: ...
19+
def merchant_account_id(self, merchant_account_id: str): ...
20+
def session_id(self, session_id: str): ...
21+
def customer(self, customer: str): ...
22+
def domain(self, domain: str): ...
23+
def build(self): ...
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from _typeshed import Incomplete
2+
3+
from braintree.graphql.enums.recommendations import Recommendations
4+
from braintree.graphql.inputs.customer_session_input import CustomerSessionInput
5+
6+
class CustomerRecommendationsInput:
7+
def __init__(
8+
self,
9+
session_id: str,
10+
recommendations: list[Recommendations],
11+
merchant_account_id: str | None = None,
12+
customer: CustomerSessionInput | None = None,
13+
) -> None: ...
14+
def to_graphql_variables(self) -> dict[Incomplete, Incomplete]: ...
15+
@staticmethod
16+
def builder(session_id: str, recommendations: list[Recommendations]): ...
17+
18+
class Builder:
19+
def __init__(self, session_id: str, recommendations: list[Recommendations]) -> None: ...
20+
def merchant_account_id(self, merchant_account_id: str): ...
21+
def customer(self, customer: CustomerSessionInput): ...
22+
def build(self): ...
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from _typeshed import Incomplete
2+
3+
from braintree.graphql.inputs.phone_input import PhoneInput
4+
5+
class CustomerSessionInput:
6+
def __init__(
7+
self,
8+
email: str | None = None,
9+
phone: PhoneInput | None = None,
10+
device_fingerprint_id: str | None = None,
11+
paypal_app_installed: bool | None = None,
12+
venmo_app_installed: bool | None = None,
13+
user_agent: str | None = None,
14+
) -> None: ...
15+
def to_graphql_variables(self) -> dict[Incomplete, Incomplete]: ...
16+
@staticmethod
17+
def builder(): ...
18+
19+
class Builder:
20+
def __init__(self) -> None: ...
21+
def email(self, email: str): ...
22+
def phone(self, phone: PhoneInput): ...
23+
def device_fingerprint_id(self, device_fingerprint_id: str): ...
24+
def paypal_app_installed(self, paypal_app_installed: bool): ...
25+
def venmo_app_installed(self, venmo_app_installed: bool): ...
26+
def user_agent(self, user_agent: str): ...
27+
def build(self): ...

0 commit comments

Comments
 (0)