inttegro.customer
Models, requests, and enums for the Inttegro customer resource.
The primary returned object is inttegro.customer.Customer. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.
1"""Models, requests, and enums for the Inttegro customer resource. 2 3The primary returned object is ``inttegro.customer.Customer``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.""" 4 5from importlib import import_module 6from typing import TYPE_CHECKING, Any 7 8if TYPE_CHECKING: 9 from .address import Address as Address 10 from .address_input import AddressInput as AddressInput 11 from .balance_value import BalanceValue as BalanceValue 12 from .create_request import CreateRequest as CreateRequest 13 from .customer import Customer as Customer 14 from .data_input import DataInput as DataInput 15 from .lookup_request import LookupRequest as LookupRequest 16 from .page import Page as Page 17 from .page_request import PageRequest as PageRequest 18 from .page_response import PageResponse as PageResponse 19 from .response import Response as Response 20 from .update_request import UpdateRequest as UpdateRequest 21 22 23_EXPORTS: dict[str, tuple[str, str]] = { 24 "Address": ("inttegro.customer.address", "Address"), 25 "AddressInput": ("inttegro.customer.address_input", "AddressInput"), 26 "BalanceValue": ("inttegro.customer.balance_value", "BalanceValue"), 27 "CreateRequest": ("inttegro.customer.create_request", "CreateRequest"), 28 "Customer": ("inttegro.customer.customer", "Customer"), 29 "DataInput": ("inttegro.customer.data_input", "DataInput"), 30 "LookupRequest": ("inttegro.customer.lookup_request", "LookupRequest"), 31 "Page": ("inttegro.customer.page", "Page"), 32 "PageRequest": ("inttegro.customer.page_request", "PageRequest"), 33 "PageResponse": ("inttegro.customer.page_response", "PageResponse"), 34 "Response": ("inttegro.customer.response", "Response"), 35 "UpdateRequest": ("inttegro.customer.update_request", "UpdateRequest"), 36} 37 38__all__ = [ 39 "Address", 40 "AddressInput", 41 "BalanceValue", 42 "CreateRequest", 43 "Customer", 44 "DataInput", 45 "LookupRequest", 46 "Page", 47 "PageRequest", 48 "PageResponse", 49 "Response", 50 "UpdateRequest", 51] 52 53 54def __getattr__(name: str) -> Any: 55 """Load a public resource type on first access.""" 56 try: 57 module_name, attribute_name = _EXPORTS[name] 58 except KeyError: 59 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 60 value = getattr(import_module(module_name), attribute_name) 61 globals()[name] = value 62 return value
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Address(ApiModel): 14 """Typed address data in the customer resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``CustomerAddress``. 23 """ 24 city: str | None = field(init=False) 25 """The city associated with this address. Optional; nullable. Python type: ``str | None``; wire name: ``city``; JSON type: string""" 26 country: str = field(init=False) 27 """The country associated with this address. Required. Python type: ``str``; wire name: ``country``; JSON type: string""" 28 line1: str | None = field(init=False) 29 """The line1 associated with this address. Optional; nullable. Python type: ``str | None``; wire name: ``line1``; JSON type: string""" 30 line2: str | None = field(init=False) 31 """The line2 associated with this address. Optional; nullable. Python type: ``str | None``; wire name: ``line2``; JSON type: string""" 32 name: str | None = field(init=False) 33 """Human-readable name of the address. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 34 phone_number: str | None = field(init=False) 35 """Customer or recipient phone number in international form. Optional; nullable. Python type: ``str | None``; wire name: ``phone_number``; JSON type: string""" 36 post_code: str | None = field(init=False) 37 """The post code associated with this address. Optional; nullable. Python type: ``str | None``; wire name: ``post_code``; JSON type: string""" 38 region: str | None = field(init=False) 39 """The region associated with this address. Optional; nullable. Python type: ``str | None``; wire name: ``region``; JSON type: string"""
Typed address data in the customer resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: CustomerAddress.
The city associated with this address. Optional; nullable. Python type: str | None; wire name: city; JSON type: string
The country associated with this address. Required. Python type: str; wire name: country; JSON type: string
The line1 associated with this address. Optional; nullable. Python type: str | None; wire name: line1; JSON type: string
The line2 associated with this address. Optional; nullable. Python type: str | None; wire name: line2; JSON type: string
Human-readable name of the address. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
Customer or recipient phone number in international form. Optional; nullable. Python type: str | None; wire name: phone_number; JSON type: string
The post code associated with this address. Optional; nullable. Python type: str | None; wire name: post_code; JSON type: string
The region associated with this address. Optional; nullable. Python type: str | None; wire name: region; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class AddressInput(ApiRequest): 14 """Parameters accepted by the address input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``CustomerAddressInput``. 21 """ 22 city: str | UnsetType = field(default=UNSET) 23 """The city associated with this address input. Optional. Python type: ``str``; wire name: ``city``; JSON type: string""" 24 line1: str | UnsetType = field(default=UNSET) 25 """The line1 associated with this address input. Optional. Python type: ``str``; wire name: ``line1``; JSON type: string""" 26 line2: str | UnsetType = field(default=UNSET) 27 """The line2 associated with this address input. Optional. Python type: ``str``; wire name: ``line2``; JSON type: string""" 28 name: str | UnsetType = field(default=UNSET) 29 """Human-readable name of the address input. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 30 phone_number: str | UnsetType = field(default=UNSET) 31 """Customer or recipient phone number in international form. Optional. Python type: ``str``; wire name: ``phone_number``; JSON type: string""" 32 post_code: str | UnsetType = field(default=UNSET) 33 """The post code associated with this address input. Optional. Python type: ``str``; wire name: ``post_code``; JSON type: string""" 34 region: str | UnsetType = field(default=UNSET) 35 """The region associated with this address input. Optional. Python type: ``str``; wire name: ``region``; JSON type: string""" 36 country: str 37 """The country associated with this address input. Required. Python type: ``str``; wire name: ``country``; JSON type: string"""
Parameters accepted by the address input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CustomerAddressInput.
The city associated with this address input. Optional. Python type: str; wire name: city; JSON type: string
The line1 associated with this address input. Optional. Python type: str; wire name: line1; JSON type: string
The line2 associated with this address input. Optional. Python type: str; wire name: line2; JSON type: string
Human-readable name of the address input. Optional. Python type: str; wire name: name; JSON type: string
Customer or recipient phone number in international form. Optional. Python type: str; wire name: phone_number; JSON type: string
The post code associated with this address input. Optional. Python type: str; wire name: post_code; JSON type: string
The region associated with this address input. Optional. Python type: str; wire name: region; JSON type: string
The country associated with this address input. Required. Python type: str; wire name: country; JSON type: string
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class BalanceValue(ApiModel): 16 """Typed balance value data in the customer resource namespace. 17 18 Instances are immutable API responses. ``from_dict()`` decodes nested 19 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 20 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 21 Fields not returned by the API remain absent and can still be queried 22 through mapping-style access. 23 24 API contract schema: ``CustomerBalanceValue``. 25 """ 26 as_of: datetime = field(init=False) 27 """Timestamp for as of. Required. Python type: ``datetime``; wire name: ``as_of``; JSON type: string (date-time)""" 28 available: Amount = field(init=False) 29 """Monetary available, represented by a currency and an integer minor-unit value. Required. Python type: ``Amount``; wire name: ``available``; JSON type: object (Amount)"""
Typed balance value data in the customer resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: CustomerBalanceValue.
Timestamp for as of. Required. Python type: datetime; wire name: as_of; JSON type: string (date-time)
Monetary available, represented by a currency and an integer minor-unit value. Required. Python type: Amount; wire name: available; JSON type: object (Amount)
13@dataclass(frozen=True, slots=True, kw_only=True) 14class CreateRequest(ApiRequest): 15 """Parameters accepted by the create request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``CreateCustomerRequest``. 22 """ 23 billing_address: CustomerAddressInput | UnsetType = field(default=UNSET) 24 """The billing address associated with this create request. Optional. Python type: ``CustomerAddressInput``; wire name: ``billing_address``; JSON type: object (CustomerAddressInput)""" 25 custom_data: CustomDataInput | UnsetType = field(default=UNSET) 26 """Merchant-defined values accepted on resource creation. Values are serialized to strings before storage. Optional. Python type: ``CustomDataInput``; wire name: ``custom_data``; JSON type: object (CustomDataInput)""" 27 email_address: str | UnsetType = field(default=UNSET) 28 """Customer or recipient email address. Optional. Python type: ``str``; wire name: ``email_address``; JSON type: string. Constraints: minimum length 3; maximum length 254""" 29 phone_number: str | UnsetType = field(default=UNSET) 30 """Customer or recipient phone number in international form. Optional. Python type: ``str``; wire name: ``phone_number``; JSON type: string. Constraints: minimum length 7; maximum length 20""" 31 reference: str | UnsetType = field(default=UNSET) 32 """Merchant-defined external reference for the create request. Optional. Python type: ``str``; wire name: ``reference``; JSON type: string. Constraints: minimum length 1; maximum length 100""" 33 shipping_address: CustomerAddressInput | UnsetType = field(default=UNSET) 34 """The shipping address associated with this create request. Optional. Python type: ``CustomerAddressInput``; wire name: ``shipping_address``; JSON type: object (CustomerAddressInput)""" 35 title: str | UnsetType = field(default=UNSET) 36 """The title associated with this create request. Optional. Python type: ``str``; wire name: ``title``; JSON type: string. Constraints: minimum length 1; maximum length 20""" 37 name: str 38 """Human-readable name of the create request. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: maximum length 200"""
Parameters accepted by the create request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CreateCustomerRequest.
The billing address associated with this create request. Optional. Python type: CustomerAddressInput; wire name: billing_address; JSON type: object (CustomerAddressInput)
Merchant-defined values accepted on resource creation. Values are serialized to strings before storage. Optional. Python type: CustomDataInput; wire name: custom_data; JSON type: object (CustomDataInput)
Customer or recipient email address. Optional. Python type: str; wire name: email_address; JSON type: string. Constraints: minimum length 3; maximum length 254
Customer or recipient phone number in international form. Optional. Python type: str; wire name: phone_number; JSON type: string. Constraints: minimum length 7; maximum length 20
Merchant-defined external reference for the create request. Optional. Python type: str; wire name: reference; JSON type: string. Constraints: minimum length 1; maximum length 100
The shipping address associated with this create request. Optional. Python type: CustomerAddressInput; wire name: shipping_address; JSON type: object (CustomerAddressInput)
The title associated with this create request. Optional. Python type: str; wire name: title; JSON type: string. Constraints: minimum length 1; maximum length 20
Human-readable name of the create request. Required. Python type: str; wire name: name; JSON type: string. Constraints: maximum length 200
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Customer(ApiModel): 15 """Typed customer data in the customer resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 """ 23 balance: dict[str, CustomerBalanceValue] = field(init=False) 24 """Available customer balances keyed by lowercase currency code. Required. Python type: ``dict[str, CustomerBalanceValue]``; wire name: ``balance``; JSON type: object (CustomerBalance)""" 25 billing_address: CustomerAddress | None = field(init=False) 26 """The billing address associated with this customer. Optional; nullable. Python type: ``CustomerAddress | None``; wire name: ``billing_address``; JSON type: object (CustomerAddress)""" 27 created_at: datetime = field(init=False) 28 """When the customer was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 29 custom_data: CustomData | None = field(init=False) 30 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: ``CustomData | None``; wire name: ``custom_data``; JSON type: object (CustomData)""" 31 email_address: str | None = field(init=False) 32 """Customer or recipient email address. Optional; nullable. Python type: ``str | None``; wire name: ``email_address``; JSON type: string""" 33 fingerprint: str = field(init=False) 34 """Application-scoped value for spotting possible duplicate customer records. Required. Python type: ``str``; wire name: ``fingerprint``; JSON type: string""" 35 guest: bool = field(init=False) 36 """Whether guest. Required. Python type: ``bool``; wire name: ``guest``; JSON type: boolean""" 37 id: str = field(init=False) 38 """Unique identifier for this customer. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 39 name: str = field(init=False) 40 """Human-readable name of the customer. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 41 phone_number: str | None = field(init=False) 42 """Customer or recipient phone number in international form. Optional; nullable. Python type: ``str | None``; wire name: ``phone_number``; JSON type: string""" 43 reference: str | None = field(init=False) 44 """Merchant-defined external reference for the customer. Optional; nullable. Python type: ``str | None``; wire name: ``reference``; JSON type: string""" 45 shipping_address: CustomerAddress | None = field(init=False) 46 """The shipping address associated with this customer. Optional; nullable. Python type: ``CustomerAddress | None``; wire name: ``shipping_address``; JSON type: object (CustomerAddress)""" 47 suffix: str | None = field(init=False) 48 """The suffix associated with this customer. Optional; nullable. Python type: ``str | None``; wire name: ``suffix``; JSON type: string""" 49 title: str | None = field(init=False) 50 """The title associated with this customer. Optional; nullable. Python type: ``str | None``; wire name: ``title``; JSON type: string""" 51 updated_at: datetime | None = field(init=False) 52 """When the customer was last updated. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)"""
Typed customer data in the customer resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
Available customer balances keyed by lowercase currency code. Required. Python type: dict[str, CustomerBalanceValue]; wire name: balance; JSON type: object (CustomerBalance)
The billing address associated with this customer. Optional; nullable. Python type: CustomerAddress | None; wire name: billing_address; JSON type: object (CustomerAddress)
When the customer was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: CustomData | None; wire name: custom_data; JSON type: object (CustomData)
Customer or recipient email address. Optional; nullable. Python type: str | None; wire name: email_address; JSON type: string
Application-scoped value for spotting possible duplicate customer records. Required. Python type: str; wire name: fingerprint; JSON type: string
Unique identifier for this customer. Required. Python type: str; wire name: id; JSON type: string
Human-readable name of the customer. Required. Python type: str; wire name: name; JSON type: string
Customer or recipient phone number in international form. Optional; nullable. Python type: str | None; wire name: phone_number; JSON type: string
Merchant-defined external reference for the customer. Optional; nullable. Python type: str | None; wire name: reference; JSON type: string
The shipping address associated with this customer. Optional; nullable. Python type: CustomerAddress | None; wire name: shipping_address; JSON type: object (CustomerAddress)
The suffix associated with this customer. Optional; nullable. Python type: str | None; wire name: suffix; JSON type: string
The title associated with this customer. Optional; nullable. Python type: str | None; wire name: title; JSON type: string
When the customer was last updated. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)
14@dataclass(frozen=True, slots=True, kw_only=True) 15class DataInput(ApiRequest): 16 """Parameters accepted by the data input operation. 17 18 This is an immutable, keyword-only request object. ``to_dict()`` uses 19 the documented wire names, omits fields left as ``UNSET``, serializes 20 string-backed enums by value, and requires timezone-aware datetimes. 21 22 API contract schema: ``CustomerDataInput``. 23 """ 24 reference: str | UnsetType = field(default=UNSET) 25 """External reference ID for the customer. Optional. Python type: ``str``; wire name: ``reference``; JSON type: string""" 26 custom_data: CustomDataInput | UnsetType = field(default=UNSET) 27 """Merchant-defined values accepted on resource creation. Values are serialized to strings before storage. Optional. Python type: ``CustomDataInput``; wire name: ``custom_data``; JSON type: object (CustomDataInput)""" 28 name: str 29 """Customer's full name. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 30 email_address: str 31 """Customer's email address. Required. Python type: ``str``; wire name: ``email_address``; JSON type: string (email)""" 32 phone_number: str 33 """Customer's phone number. Required. Python type: ``str``; wire name: ``phone_number``; JSON type: string"""
Parameters accepted by the data input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CustomerDataInput.
External reference ID for the customer. Optional. Python type: str; wire name: reference; JSON type: string
Merchant-defined values accepted on resource creation. Values are serialized to strings before storage. Optional. Python type: CustomDataInput; wire name: custom_data; JSON type: object (CustomDataInput)
Customer's email address. Required. Python type: str; wire name: email_address; JSON type: string (email)
Customer's phone number. Required. Python type: str; wire name: phone_number; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class LookupRequest(ApiRequest): 14 """Parameters accepted by the lookup request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``LookupCustomerRequest``. 21 """ 22 customer_id: str 23 """The customer identifier (with or without cu_ prefix). Required. Python type: ``str``; wire name: ``customer_id``; JSON type: string. Constraints: minimum length 1; maximum length 100"""
Parameters accepted by the lookup request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: LookupCustomerRequest.
The customer identifier (with or without cu_ prefix). Required. Python type: str; wire name: customer_id; JSON type: string. Constraints: minimum length 1; maximum length 100
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Page(ApiModel): 14 """One page of page resources. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``CustomerPage``. 23 """ 24 customers: list[Customer] = field(init=False) 25 """The customers associated with this page. Required. Python type: ``list[Customer]``; wire name: ``customers``; JSON type: array of object (Customer) values""" 26 number: int = field(init=False) 27 """Human-readable number assigned to the page. Required. Python type: ``int``; wire name: ``number``; JSON type: integer""" 28 size: int = field(init=False) 29 """Number of customers returned. Required. Python type: ``int``; wire name: ``size``; JSON type: integer"""
One page of page resources.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: CustomerPage.
The customers associated with this page. Required. Python type: list[Customer]; wire name: customers; JSON type: array of object (Customer) values
Human-readable number assigned to the page. Required. Python type: int; wire name: number; JSON type: integer
Number of customers returned. Required. Python type: int; wire name: size; JSON type: integer
12@dataclass(frozen=True, slots=True, kw_only=True) 13class PageRequest(ApiRequest): 14 """Parameters accepted by the page request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``PageCustomersRequest``. 21 """ 22 page_size: int | UnsetType = field(default=UNSET) 23 """The page size associated with this page request. Optional. Python type: ``int``; wire name: ``page_size``; JSON type: integer. Constraints: minimum 1; maximum 256""" 24 page_number: int 25 """The page number associated with this page request. Required. Python type: ``int``; wire name: ``page_number``; JSON type: integer. Constraints: minimum 1; maximum 10"""
Parameters accepted by the page request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: PageCustomersRequest.
The page size associated with this page request. Optional. Python type: int; wire name: page_size; JSON type: integer. Constraints: minimum 1; maximum 256
The page number associated with this page request. Required. Python type: int; wire name: page_number; JSON type: integer. Constraints: minimum 1; maximum 10
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class PageResponse(ApiModel): 14 """Response containing a page of chimes. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``PageCustomersResponse``. 23 """ 24 page: CustomerPage | None = field(init=False) 25 """Numeric page used by this operation. Optional; nullable. Python type: ``CustomerPage | None``; wire name: ``page``; JSON type: object"""
Response containing a page of chimes.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: PageCustomersResponse.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Response(ApiModel): 14 """Typed response returned by the response operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``CustomerResponse``. 23 """ 24 customer: Customer | None = field(init=False) 25 """The customer associated with this response. Optional; nullable. Python type: ``Customer | None``; wire name: ``customer``; JSON type: object (Customer)""" 26 error: Error | None = field(init=False) 27 """Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution. Optional; nullable. Python type: ``Error | None``; wire name: ``error``; JSON type: object (Error)"""
Typed response returned by the response operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: CustomerResponse.
The customer associated with this response. Optional; nullable. Python type: Customer | None; wire name: customer; JSON type: object (Customer)
Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution. Optional; nullable. Python type: Error | None; wire name: error; JSON type: object (Error)
13@dataclass(frozen=True, slots=True, kw_only=True) 14class UpdateRequest(ApiRequest): 15 """Parameters accepted by the update request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``UpdateCustomerRequest``. 22 """ 23 billing_address: CustomerAddressInput | UnsetType = field(default=UNSET) 24 """The billing address associated with this update request. Optional. Python type: ``CustomerAddressInput``; wire name: ``billing_address``; JSON type: object (CustomerAddressInput)""" 25 custom_data: CustomDataInput | UnsetType = field(default=UNSET) 26 """Merchant-defined values accepted on resource creation. Values are serialized to strings before storage. Optional. Python type: ``CustomDataInput``; wire name: ``custom_data``; JSON type: object (CustomDataInput)""" 27 email_address: str | UnsetType = field(default=UNSET) 28 """Customer or recipient email address. Optional. Python type: ``str``; wire name: ``email_address``; JSON type: string. Constraints: minimum length 3; maximum length 254""" 29 name: str | UnsetType = field(default=UNSET) 30 """Human-readable name of the update request. Optional. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: minimum length 1; maximum length 200""" 31 phone_number: str | UnsetType = field(default=UNSET) 32 """Customer or recipient phone number in international form. Optional. Python type: ``str``; wire name: ``phone_number``; JSON type: string. Constraints: minimum length 7; maximum length 20""" 33 reference: str | UnsetType = field(default=UNSET) 34 """Merchant-defined external reference for the update request. Optional. Python type: ``str``; wire name: ``reference``; JSON type: string. Constraints: minimum length 1; maximum length 100""" 35 shipping_address: CustomerAddressInput | UnsetType = field(default=UNSET) 36 """The shipping address associated with this update request. Optional. Python type: ``CustomerAddressInput``; wire name: ``shipping_address``; JSON type: object (CustomerAddressInput)""" 37 suffix: str | UnsetType = field(default=UNSET) 38 """The suffix associated with this update request. Optional. Python type: ``str``; wire name: ``suffix``; JSON type: string. Constraints: minimum length 1; maximum length 10""" 39 title: str | UnsetType = field(default=UNSET) 40 """The title associated with this update request. Optional. Python type: ``str``; wire name: ``title``; JSON type: string. Constraints: minimum length 1; maximum length 20""" 41 customer_id: str 42 """Identifier of the related customer. Required. Python type: ``str``; wire name: ``customer_id``; JSON type: string"""
Parameters accepted by the update request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: UpdateCustomerRequest.
The billing address associated with this update request. Optional. Python type: CustomerAddressInput; wire name: billing_address; JSON type: object (CustomerAddressInput)
Merchant-defined values accepted on resource creation. Values are serialized to strings before storage. Optional. Python type: CustomDataInput; wire name: custom_data; JSON type: object (CustomDataInput)
Customer or recipient email address. Optional. Python type: str; wire name: email_address; JSON type: string. Constraints: minimum length 3; maximum length 254
Human-readable name of the update request. Optional. Python type: str; wire name: name; JSON type: string. Constraints: minimum length 1; maximum length 200
Customer or recipient phone number in international form. Optional. Python type: str; wire name: phone_number; JSON type: string. Constraints: minimum length 7; maximum length 20
Merchant-defined external reference for the update request. Optional. Python type: str; wire name: reference; JSON type: string. Constraints: minimum length 1; maximum length 100
The shipping address associated with this update request. Optional. Python type: CustomerAddressInput; wire name: shipping_address; JSON type: object (CustomerAddressInput)
The suffix associated with this update request. Optional. Python type: str; wire name: suffix; JSON type: string. Constraints: minimum length 1; maximum length 10
The title associated with this update request. Optional. Python type: str; wire name: title; JSON type: string. Constraints: minimum length 1; maximum length 20
Identifier of the related customer. Required. Python type: str; wire name: customer_id; JSON type: string