Məzmuna keçin

API Client

Note

İstifadəsi göstərilən bütün sorğular sinxrondur. Asinxron versiyasaları istifadə etmək üçün bu importu edin və eyni-adlı funksiyaları await ilə çağırın:

from integrify.epoint import EPointAsyncRequest

integrify.epoint.client.EPointRequest module-attribute

EPointRequest = EPointClientClass(sync=True)

integrify.epoint.client.EPointAsyncRequest module-attribute

EPointAsyncRequest = EPointClientClass(sync=False)
Note

Bunlar artıq hazır yaradılmış klass obyektləridir, birbaşa istifadə üçün nəzərdə tutulub. Əks halda bütün sorğuları EPointRequestClass().save_card() kimi istifadə etməlisiniz.

integrify.epoint.client.EPointClientClass

EPointClientClass(
    name='EPoint',
    base_url=BASE_URL,
    default_handler=None,
    sync=True,
    dry=False,
)

Bases: APIClient, Generic[_Mode]

EPoint sorğular üçün baza class

pay

pay(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    description: Unset[str] = UNSET,
    **extra: Any,
) -> APIResponse[RedirectUrlResponseSchema]
pay(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    description: Unset[str] = UNSET,
    **extra: Any,
) -> Coroutine[
    Any, Any, APIResponse[RedirectUrlResponseSchema]
]
pay(*args, **kwds)

get_transaction_status

get_transaction_status(
    transaction_id: str,
) -> APIResponse[TransactionStatusResponseSchema]
get_transaction_status(
    transaction_id: str,
) -> Coroutine[
    Any, Any, APIResponse[TransactionStatusResponseSchema]
]
get_transaction_status(*args, **kwds)

save_card

save_card() -> Coroutine[
    Any,
    Any,
    APIResponse[RedirectUrlWithCardIdResponseSchema],
]
save_card(*args, **kwds)

pay_with_saved_card

pay_with_saved_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    card_id: str,
) -> APIResponse[BaseResponseSchema]
pay_with_saved_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    card_id: str,
) -> Coroutine[Any, Any, APIResponse[BaseResponseSchema]]
pay_with_saved_card(*args, **kwds)

pay_and_save_card

pay_and_save_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    description: str,
) -> APIResponse[RedirectUrlWithCardIdResponseSchema]
pay_and_save_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    description: str,
) -> Coroutine[
    Any,
    Any,
    APIResponse[RedirectUrlWithCardIdResponseSchema],
]
pay_and_save_card(*args, **kwds)

payout

payout(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    card_id: str,
    description: Unset[str] = UNSET,
) -> APIResponse[BaseResponseSchema]
payout(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    card_id: str,
    description: Unset[str] = UNSET,
) -> Coroutine[Any, Any, APIResponse[BaseResponseSchema]]
payout(*args, **kwds)

refund

refund(
    transaction_id: str,
    currency: str,
    amount: Unset[SupportsFloat] = UNSET,
) -> APIResponse[MinimalResponseSchema]
refund(
    transaction_id: str,
    currency: str,
    amount: Unset[SupportsFloat] = UNSET,
) -> Coroutine[
    Any, Any, APIResponse[MinimalResponseSchema]
]
refund(*args, **kwds)

split_pay

split_pay(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    split_user_id: str,
    split_amount: SupportsFloat,
    description: Unset[str] = UNSET,
    **extra: Any,
) -> APIResponse[RedirectUrlResponseSchema]
split_pay(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    split_user_id: str,
    split_amount: SupportsFloat,
    description: Unset[str] = UNSET,
    **extra: Any,
) -> Coroutine[
    Any, Any, APIResponse[RedirectUrlResponseSchema]
]
split_pay(*args, **kwds)

split_pay_with_saved_card

split_pay_with_saved_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    card_id: str,
    split_user_id: str,
    split_amount: SupportsFloat,
    description: Unset[str] = UNSET,
) -> APIResponse[SplitPayWithSavedCardResponseSchema]
split_pay_with_saved_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    card_id: str,
    split_user_id: str,
    split_amount: SupportsFloat,
    description: Unset[str] = UNSET,
) -> Coroutine[
    Any,
    Any,
    APIResponse[SplitPayWithSavedCardResponseSchema],
]
split_pay_with_saved_card(*args, **kwds)

split_pay_and_save_card

split_pay_and_save_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    split_user_id: str,
    split_amount: SupportsFloat,
    description: Unset[str] = UNSET,
) -> APIResponse[RedirectUrlWithCardIdResponseSchema]
split_pay_and_save_card(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    split_user_id: str,
    split_amount: SupportsFloat,
    description: Unset[str] = UNSET,
) -> Coroutine[
    Any,
    Any,
    APIResponse[RedirectUrlWithCardIdResponseSchema],
]
split_pay_and_save_card(*args, **kwds)

create_widget

create_widget(
    amount: SupportsFloat, order_id: str, description: str
) -> APIResponse[WidgetResponseSchema]
create_widget(
    amount: SupportsFloat, order_id: str, description: str
) -> Coroutine[Any, Any, APIResponse[WidgetResponseSchema]]
create_widget(*args, **kwds)

create_token_payment

create_token_payment(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    description: Unset[str] = UNSET,
) -> APIResponse[TokenPaymentResponseSchema]
create_token_payment(
    amount: SupportsFloat,
    currency: str,
    order_id: str,
    description: Unset[str] = UNSET,
) -> Coroutine[
    Any, Any, APIResponse[TokenPaymentResponseSchema]
]
create_token_payment(*args, **kwds)

apple_pay_session

apple_pay_session(origin: str) -> APIResponse[dict]
apple_pay_session(
    origin: str,
) -> Coroutine[Any, Any, APIResponse[dict]]
apple_pay_session(*args, **kwds)

apple_pay

apple_pay(
    payment_id: int | str,
    token: Any,
    billing_contact: Any = None,
) -> APIResponse[TokenPayResponseSchema]
apple_pay(
    payment_id: int | str,
    token: Any,
    billing_contact: Any = None,
) -> Coroutine[
    Any, Any, APIResponse[TokenPayResponseSchema]
]
apple_pay(*args, **kwds)

google_pay

google_pay(
    payment_id: int | str,
    token: Any,
    billing_contact: Any = None,
) -> APIResponse[TokenPayResponseSchema]
google_pay(
    payment_id: int | str,
    token: Any,
    billing_contact: Any = None,
) -> Coroutine[
    Any, Any, APIResponse[TokenPayResponseSchema]
]
google_pay(*args, **kwds)