|
1 | | -from .api_client import ApiClient |
2 | | -from .configuration import Configuration |
3 | | -from .api.auth_service_api import AuthServiceApi |
4 | | -from .api.billing_service_api import BillingServiceApi |
5 | | -from .api.ledger_service_api import LedgerServiceApi |
6 | | -from .api.notification_service_api import NotificationServiceApi |
7 | | -from .api.payment_service_api import PaymentServiceApi |
8 | | -from .api.wallet_service_api import WalletServiceApi |
9 | | -from .events import Events |
10 | | -from .flows import Flows |
11 | | -# from .api.zone_service_api import ZoneServiceApi |
12 | | - |
13 | | -class SapliyClient: |
14 | | - def __init__(self, api_key: str, base_url: str = "http://localhost:8080"): |
15 | | - self.configuration = Configuration( |
16 | | - host=base_url, |
17 | | - ) |
18 | | - self.configuration.api_key['X-API-Key'] = api_key |
19 | | - |
20 | | - self.api_client = ApiClient(self.configuration) |
21 | | - |
22 | | - self.auth = AuthServiceApi(self.api_client) |
23 | | - self.billing = BillingServiceApi(self.api_client) |
24 | | - self.ledger = LedgerServiceApi(self.api_client) |
25 | | - self.notifications = NotificationServiceApi(self.api_client) |
26 | | - self.payments = PaymentServiceApi(self.api_client) |
27 | | - self.wallets = WalletServiceApi(self.api_client) |
28 | | - # self.flows = FlowServiceApi(self.api_client) |
29 | | - # self.zones = ZoneServiceApi(self.api_client) |
30 | | - self.flows = Flows(self.api_client) |
31 | | - self.events = Events(self.api_client) |
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +# flake8: noqa |
| 4 | + |
| 5 | +""" |
| 6 | + Sapliy Fintech API |
| 7 | +
|
| 8 | + Official API for the Sapliy Fintech Ecosystem. Build robust financial applications with our type-safe, high-integrity platform. |
| 9 | +
|
| 10 | + The version of the OpenAPI document: 1.0.0 |
| 11 | + Contact: support@sapliy.io |
| 12 | + Generated by OpenAPI Generator (https://openapi-generator.tech) |
| 13 | +
|
| 14 | + Do not edit the class manually. |
| 15 | +""" # noqa: E501 |
| 16 | + |
| 17 | + |
| 18 | +__version__ = "1.0.0" |
| 19 | + |
| 20 | +# Define package exports |
| 21 | +__all__ = [ |
| 22 | + "AuthApi", |
| 23 | + "BillingApi", |
| 24 | + "EventsApi", |
| 25 | + "ExecutionsApi", |
| 26 | + "FlowsApi", |
| 27 | + "LedgerApi", |
| 28 | + "PaymentsApi", |
| 29 | + "WalletsApi", |
| 30 | + "ZonesApi", |
| 31 | + "ApiResponse", |
| 32 | + "ApiClient", |
| 33 | + "Configuration", |
| 34 | + "OpenApiException", |
| 35 | + "ApiTypeError", |
| 36 | + "ApiValueError", |
| 37 | + "ApiKeyError", |
| 38 | + "ApiAttributeError", |
| 39 | + "ApiException", |
| 40 | + "AutomationFlow", |
| 41 | + "AutomationFlowEdge", |
| 42 | + "AutomationFlowExecution", |
| 43 | + "AutomationFlowExecutionStep", |
| 44 | + "AutomationFlowNode", |
| 45 | + "AutomationFlowTrigger", |
| 46 | + "BillingSubscription", |
| 47 | + "ConfirmPaymentIntentRequest", |
| 48 | + "CreatePaymentIntentRequest", |
| 49 | + "CreateSubscriptionRequest", |
| 50 | + "CreateZoneRequest", |
| 51 | + "EmitEvent202Response", |
| 52 | + "EmitEventRequest", |
| 53 | + "ErrorEnvelope", |
| 54 | + "ErrorEnvelopeError", |
| 55 | + "GetPastEvents200Response", |
| 56 | + "LedgerAccount", |
| 57 | + "LedgerEntry", |
| 58 | + "LedgerTransaction", |
| 59 | + "ListFlows200Response", |
| 60 | + "ListZones200ResponseInner", |
| 61 | + "PaymentIntent", |
| 62 | + "RegisterUser201Response", |
| 63 | + "RegisterUserRequest", |
| 64 | + "ReplayEvent200Response", |
| 65 | + "ReplayEventRequest", |
| 66 | + "ResumeExecution200Response", |
| 67 | + "TopupWallet200Response", |
| 68 | + "TopupWalletRequest", |
| 69 | + "TransferWalletRequest", |
| 70 | + "User", |
| 71 | + "V1LedgerAccountsPostRequest", |
| 72 | + "V1LedgerTransactionsPost201Response", |
| 73 | + "V1LedgerTransactionsPostRequest", |
| 74 | + "ValidateKey200Response", |
| 75 | + "ValidateKeyRequest", |
| 76 | + "Wallet", |
| 77 | +] |
| 78 | + |
| 79 | +# import apis into sdk package |
| 80 | +from sapliyio_fintech.generated.api.auth_api import AuthApi as AuthApi |
| 81 | +from sapliyio_fintech.generated.api.billing_api import BillingApi as BillingApi |
| 82 | +from sapliyio_fintech.generated.api.events_api import EventsApi as EventsApi |
| 83 | +from sapliyio_fintech.generated.api.executions_api import ExecutionsApi as ExecutionsApi |
| 84 | +from sapliyio_fintech.generated.api.flows_api import FlowsApi as FlowsApi |
| 85 | +from sapliyio_fintech.generated.api.ledger_api import LedgerApi as LedgerApi |
| 86 | +from sapliyio_fintech.generated.api.payments_api import PaymentsApi as PaymentsApi |
| 87 | +from sapliyio_fintech.generated.api.wallets_api import WalletsApi as WalletsApi |
| 88 | +from sapliyio_fintech.generated.api.zones_api import ZonesApi as ZonesApi |
| 89 | + |
| 90 | +# import ApiClient |
| 91 | +from sapliyio_fintech.generated.api_response import ApiResponse as ApiResponse |
| 92 | +from sapliyio_fintech.generated.api_client import ApiClient as ApiClient |
| 93 | +from sapliyio_fintech.generated.configuration import Configuration as Configuration |
| 94 | +from sapliyio_fintech.generated.exceptions import OpenApiException as OpenApiException |
| 95 | +from sapliyio_fintech.generated.exceptions import ApiTypeError as ApiTypeError |
| 96 | +from sapliyio_fintech.generated.exceptions import ApiValueError as ApiValueError |
| 97 | +from sapliyio_fintech.generated.exceptions import ApiKeyError as ApiKeyError |
| 98 | +from sapliyio_fintech.generated.exceptions import ApiAttributeError as ApiAttributeError |
| 99 | +from sapliyio_fintech.generated.exceptions import ApiException as ApiException |
| 100 | + |
| 101 | +# import models into sdk package |
| 102 | +from sapliyio_fintech.generated.models.automation_flow import AutomationFlow as AutomationFlow |
| 103 | +from sapliyio_fintech.generated.models.automation_flow_edge import AutomationFlowEdge as AutomationFlowEdge |
| 104 | +from sapliyio_fintech.generated.models.automation_flow_execution import AutomationFlowExecution as AutomationFlowExecution |
| 105 | +from sapliyio_fintech.generated.models.automation_flow_execution_step import AutomationFlowExecutionStep as AutomationFlowExecutionStep |
| 106 | +from sapliyio_fintech.generated.models.automation_flow_node import AutomationFlowNode as AutomationFlowNode |
| 107 | +from sapliyio_fintech.generated.models.automation_flow_trigger import AutomationFlowTrigger as AutomationFlowTrigger |
| 108 | +from sapliyio_fintech.generated.models.billing_subscription import BillingSubscription as BillingSubscription |
| 109 | +from sapliyio_fintech.generated.models.confirm_payment_intent_request import ConfirmPaymentIntentRequest as ConfirmPaymentIntentRequest |
| 110 | +from sapliyio_fintech.generated.models.create_payment_intent_request import CreatePaymentIntentRequest as CreatePaymentIntentRequest |
| 111 | +from sapliyio_fintech.generated.models.create_subscription_request import CreateSubscriptionRequest as CreateSubscriptionRequest |
| 112 | +from sapliyio_fintech.generated.models.create_zone_request import CreateZoneRequest as CreateZoneRequest |
| 113 | +from sapliyio_fintech.generated.models.emit_event202_response import EmitEvent202Response as EmitEvent202Response |
| 114 | +from sapliyio_fintech.generated.models.emit_event_request import EmitEventRequest as EmitEventRequest |
| 115 | +from sapliyio_fintech.generated.models.error_envelope import ErrorEnvelope as ErrorEnvelope |
| 116 | +from sapliyio_fintech.generated.models.error_envelope_error import ErrorEnvelopeError as ErrorEnvelopeError |
| 117 | +from sapliyio_fintech.generated.models.get_past_events200_response import GetPastEvents200Response as GetPastEvents200Response |
| 118 | +from sapliyio_fintech.generated.models.ledger_account import LedgerAccount as LedgerAccount |
| 119 | +from sapliyio_fintech.generated.models.ledger_entry import LedgerEntry as LedgerEntry |
| 120 | +from sapliyio_fintech.generated.models.ledger_transaction import LedgerTransaction as LedgerTransaction |
| 121 | +from sapliyio_fintech.generated.models.list_flows200_response import ListFlows200Response as ListFlows200Response |
| 122 | +from sapliyio_fintech.generated.models.list_zones200_response_inner import ListZones200ResponseInner as ListZones200ResponseInner |
| 123 | +from sapliyio_fintech.generated.models.payment_intent import PaymentIntent as PaymentIntent |
| 124 | +from sapliyio_fintech.generated.models.register_user201_response import RegisterUser201Response as RegisterUser201Response |
| 125 | +from sapliyio_fintech.generated.models.register_user_request import RegisterUserRequest as RegisterUserRequest |
| 126 | +from sapliyio_fintech.generated.models.replay_event200_response import ReplayEvent200Response as ReplayEvent200Response |
| 127 | +from sapliyio_fintech.generated.models.replay_event_request import ReplayEventRequest as ReplayEventRequest |
| 128 | +from sapliyio_fintech.generated.models.resume_execution200_response import ResumeExecution200Response as ResumeExecution200Response |
| 129 | +from sapliyio_fintech.generated.models.topup_wallet200_response import TopupWallet200Response as TopupWallet200Response |
| 130 | +from sapliyio_fintech.generated.models.topup_wallet_request import TopupWalletRequest as TopupWalletRequest |
| 131 | +from sapliyio_fintech.generated.models.transfer_wallet_request import TransferWalletRequest as TransferWalletRequest |
| 132 | +from sapliyio_fintech.generated.models.user import User as User |
| 133 | +from sapliyio_fintech.generated.models.v1_ledger_accounts_post_request import V1LedgerAccountsPostRequest as V1LedgerAccountsPostRequest |
| 134 | +from sapliyio_fintech.generated.models.v1_ledger_transactions_post201_response import V1LedgerTransactionsPost201Response as V1LedgerTransactionsPost201Response |
| 135 | +from sapliyio_fintech.generated.models.v1_ledger_transactions_post_request import V1LedgerTransactionsPostRequest as V1LedgerTransactionsPostRequest |
| 136 | +from sapliyio_fintech.generated.models.validate_key200_response import ValidateKey200Response as ValidateKey200Response |
| 137 | +from sapliyio_fintech.generated.models.validate_key_request import ValidateKeyRequest as ValidateKeyRequest |
| 138 | +from sapliyio_fintech.generated.models.wallet import Wallet as Wallet |
| 139 | + |
0 commit comments