Skip to content
Open
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
12 changes: 8 additions & 4 deletions stubs/braintree/braintree/address.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from _typeshed import Incomplete
from typing import Final

from braintree.error_result import ErrorResult
from braintree.resource import Resource
from braintree.successful_result import SuccessfulResult

class Address(Resource):
class ShippingMethod:
Expand All @@ -14,13 +16,15 @@ class Address(Resource):
PickupInStore: Final = "pickup_in_store"

@staticmethod
def create(params: dict[str, Incomplete] | None = None): ...
def create(params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
@staticmethod
def delete(customer_id: str, address_id: str): ...
def delete(customer_id: str, address_id: str) -> SuccessfulResult: ...
@staticmethod
def find(customer_id: str, address_id: str): ...
def find(customer_id: str, address_id: str) -> Address: ...
@staticmethod
def update(customer_id: str, address_id: str, params: dict[str, Incomplete] | None = None): ...
def update(
customer_id: str, address_id: str, params: dict[str, Incomplete] | None = None
) -> SuccessfulResult | ErrorResult | None: ...
@staticmethod
def create_signature() -> list[str | dict[str, list[str]]]: ...
@staticmethod
Expand Down
5 changes: 3 additions & 2 deletions stubs/braintree/braintree/address_gateway.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from _typeshed import Incomplete

from braintree.address import Address
from braintree.braintree_gateway import BraintreeGateway
from braintree.error_result import ErrorResult
from braintree.successful_result import SuccessfulResult

class AddressGateway:
gateway: Incomplete
gateway: BraintreeGateway
config: Incomplete
def __init__(self, gateway) -> None: ...
def __init__(self, gateway: BraintreeGateway) -> None: ...
def create(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
def delete(self, customer_id: str, address_id: str) -> SuccessfulResult: ...
def find(self, customer_id: str, address_id: str) -> Address: ...
Expand Down