|
1 | 1 | from _typeshed import Incomplete |
| 2 | +from typing_extensions import Self |
2 | 3 |
|
3 | | -from braintree.graphql.enums.recommendations import Recommendations |
4 | 4 | from braintree.graphql.inputs.customer_session_input import CustomerSessionInput |
| 5 | +from braintree.graphql.inputs.paypal_purchase_unit_input import PayPalPurchaseUnitInput |
5 | 6 |
|
6 | 7 | class CustomerRecommendationsInput: |
7 | 8 | def __init__( |
8 | 9 | self, |
9 | 10 | session_id: str, |
10 | | - recommendations: list[Recommendations], |
11 | 11 | merchant_account_id: str | None = None, |
| 12 | + purchase_units: list[PayPalPurchaseUnitInput] | None = None, |
| 13 | + domain: str | None = None, |
12 | 14 | customer: CustomerSessionInput | None = None, |
13 | 15 | ) -> None: ... |
14 | | - def to_graphql_variables(self) -> dict[Incomplete, Incomplete]: ... |
| 16 | + def to_graphql_variables(self) -> dict[str, Incomplete]: ... |
15 | 17 | @staticmethod |
16 | | - def builder(session_id: str, recommendations: list[Recommendations]): ... |
| 18 | + def builder() -> Builder: ... |
17 | 19 |
|
18 | 20 | 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): ... |
| 21 | + def __init__(self) -> None: ... |
| 22 | + def session_id(self, session_id: str) -> Self: ... |
| 23 | + def merchant_account_id(self, merchant_account_id: str) -> Self: ... |
| 24 | + def customer(self, customer: CustomerSessionInput) -> Self: ... |
| 25 | + def purchase_units(self, purchase_units: list[PayPalPurchaseUnitInput]) -> Self: ... |
| 26 | + def domain(self, domain: str) -> Self: ... |
| 27 | + def build(self) -> CustomerRecommendationsInput: ... |
0 commit comments