pluggy-sdk 1.0.0.post20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pluggy_sdk/__init__.py +220 -0
- pluggy_sdk/api/__init__.py +30 -0
- pluggy_sdk/api/account_api.py +588 -0
- pluggy_sdk/api/acquirer_anticipation_api.py +664 -0
- pluggy_sdk/api/acquirer_receivable_api.py +664 -0
- pluggy_sdk/api/acquirer_sale_api.py +664 -0
- pluggy_sdk/api/auth_api.py +605 -0
- pluggy_sdk/api/benefit_api.py +567 -0
- pluggy_sdk/api/bill_api.py +567 -0
- pluggy_sdk/api/bulk_payment_api.py +1127 -0
- pluggy_sdk/api/category_api.py +1096 -0
- pluggy_sdk/api/connector_api.py +979 -0
- pluggy_sdk/api/consent_api.py +576 -0
- pluggy_sdk/api/identity_api.py +581 -0
- pluggy_sdk/api/income_report_api.py +311 -0
- pluggy_sdk/api/investment_api.py +918 -0
- pluggy_sdk/api/items_api.py +1456 -0
- pluggy_sdk/api/loan_api.py +567 -0
- pluggy_sdk/api/payment_customer_api.py +1414 -0
- pluggy_sdk/api/payment_intent_api.py +842 -0
- pluggy_sdk/api/payment_receipts_api.py +842 -0
- pluggy_sdk/api/payment_recipient_api.py +1997 -0
- pluggy_sdk/api/payment_request_api.py +2739 -0
- pluggy_sdk/api/payment_schedule_api.py +823 -0
- pluggy_sdk/api/payroll_loan_api.py +561 -0
- pluggy_sdk/api/portfolio_yield_api.py +580 -0
- pluggy_sdk/api/smart_account_api.py +1704 -0
- pluggy_sdk/api/smart_account_transfer_api.py +610 -0
- pluggy_sdk/api/smart_transfer_api.py +1406 -0
- pluggy_sdk/api/transaction_api.py +963 -0
- pluggy_sdk/api/webhook_api.py +1406 -0
- pluggy_sdk/api_client.py +798 -0
- pluggy_sdk/api_response.py +21 -0
- pluggy_sdk/configuration.py +480 -0
- pluggy_sdk/exceptions.py +200 -0
- pluggy_sdk/models/__init__.py +178 -0
- pluggy_sdk/models/account.py +134 -0
- pluggy_sdk/models/accounts_list200_response.py +102 -0
- pluggy_sdk/models/acquirer_anticipation.py +117 -0
- pluggy_sdk/models/acquirer_anticipation_data.py +101 -0
- pluggy_sdk/models/acquirer_data.py +113 -0
- pluggy_sdk/models/acquirer_receivable.py +143 -0
- pluggy_sdk/models/acquirer_receivable_data.py +108 -0
- pluggy_sdk/models/acquirer_receivable_data_establishment.py +96 -0
- pluggy_sdk/models/acquirer_receivable_destination_account.py +92 -0
- pluggy_sdk/models/acquirer_receivable_related_sale.py +99 -0
- pluggy_sdk/models/acquirer_sale.py +171 -0
- pluggy_sdk/models/acquirer_sale_data.py +150 -0
- pluggy_sdk/models/acquirer_sale_installment.py +93 -0
- pluggy_sdk/models/acquirer_sale_installment_data.py +95 -0
- pluggy_sdk/models/address.py +110 -0
- pluggy_sdk/models/aggregated_portfolio.py +120 -0
- pluggy_sdk/models/aggregated_portfolio_response.py +102 -0
- pluggy_sdk/models/asset_distribution.py +88 -0
- pluggy_sdk/models/auth_request.py +90 -0
- pluggy_sdk/models/auth_response.py +88 -0
- pluggy_sdk/models/bank_data.py +92 -0
- pluggy_sdk/models/benefit_loan.py +121 -0
- pluggy_sdk/models/benefit_loan_client.py +102 -0
- pluggy_sdk/models/benefit_response.py +118 -0
- pluggy_sdk/models/benefit_response_paying_institution.py +94 -0
- pluggy_sdk/models/benefits_list200_response.py +102 -0
- pluggy_sdk/models/bill.py +109 -0
- pluggy_sdk/models/bill_finance_charge.py +103 -0
- pluggy_sdk/models/bills_list200_response.py +102 -0
- pluggy_sdk/models/boleto.py +121 -0
- pluggy_sdk/models/boleto_payer.py +90 -0
- pluggy_sdk/models/boleto_recipient.py +90 -0
- pluggy_sdk/models/bulk_payment.py +128 -0
- pluggy_sdk/models/bulk_payments_list200_response.py +102 -0
- pluggy_sdk/models/category.py +96 -0
- pluggy_sdk/models/client_category_rule.py +94 -0
- pluggy_sdk/models/company.py +90 -0
- pluggy_sdk/models/connect_token_request.py +94 -0
- pluggy_sdk/models/connect_token_response.py +88 -0
- pluggy_sdk/models/connector.py +145 -0
- pluggy_sdk/models/connector_credential.py +121 -0
- pluggy_sdk/models/connector_health.py +96 -0
- pluggy_sdk/models/connector_health_details.py +90 -0
- pluggy_sdk/models/connector_list_response.py +102 -0
- pluggy_sdk/models/connector_user_action.py +93 -0
- pluggy_sdk/models/consent.py +120 -0
- pluggy_sdk/models/create_boleto_payment_request.py +98 -0
- pluggy_sdk/models/create_bulk_payment.py +96 -0
- pluggy_sdk/models/create_client_category_rule.py +92 -0
- pluggy_sdk/models/create_item.py +113 -0
- pluggy_sdk/models/create_item_parameters.py +144 -0
- pluggy_sdk/models/create_or_update_payment_customer.py +105 -0
- pluggy_sdk/models/create_payment_customer_request_body.py +103 -0
- pluggy_sdk/models/create_payment_intent.py +110 -0
- pluggy_sdk/models/create_payment_recipient.py +104 -0
- pluggy_sdk/models/create_payment_request.py +110 -0
- pluggy_sdk/models/create_pix_qr_payment_request.py +96 -0
- pluggy_sdk/models/create_smart_account_request.py +102 -0
- pluggy_sdk/models/create_smart_account_transfer_request.py +92 -0
- pluggy_sdk/models/create_smart_transfer_payment.py +96 -0
- pluggy_sdk/models/create_smart_transfer_preauthorization.py +104 -0
- pluggy_sdk/models/create_webhook.py +99 -0
- pluggy_sdk/models/credential_select_option.py +90 -0
- pluggy_sdk/models/credit_card_metadata.py +101 -0
- pluggy_sdk/models/credit_data.py +127 -0
- pluggy_sdk/models/custom.py +100 -0
- pluggy_sdk/models/daily.py +101 -0
- pluggy_sdk/models/document.py +100 -0
- pluggy_sdk/models/email.py +100 -0
- pluggy_sdk/models/global_error_response.py +94 -0
- pluggy_sdk/models/i_count_response.py +88 -0
- pluggy_sdk/models/identity_relation.py +102 -0
- pluggy_sdk/models/identity_response.py +149 -0
- pluggy_sdk/models/income_report.py +90 -0
- pluggy_sdk/models/income_reports_response.py +102 -0
- pluggy_sdk/models/investment.py +192 -0
- pluggy_sdk/models/investment_expenses.py +108 -0
- pluggy_sdk/models/investment_metadata.py +100 -0
- pluggy_sdk/models/investment_transaction.py +124 -0
- pluggy_sdk/models/investments_list200_response.py +102 -0
- pluggy_sdk/models/item.py +150 -0
- pluggy_sdk/models/item_creation_error_response.py +102 -0
- pluggy_sdk/models/item_error.py +94 -0
- pluggy_sdk/models/item_options.py +90 -0
- pluggy_sdk/models/loan.py +199 -0
- pluggy_sdk/models/loan_contracted_fee.py +118 -0
- pluggy_sdk/models/loan_contracted_finance_charge.py +92 -0
- pluggy_sdk/models/loan_installment_balloon_payment.py +95 -0
- pluggy_sdk/models/loan_installment_balloon_payment_amount.py +90 -0
- pluggy_sdk/models/loan_installments.py +130 -0
- pluggy_sdk/models/loan_interest_rate.py +136 -0
- pluggy_sdk/models/loan_payment_release.py +103 -0
- pluggy_sdk/models/loan_payment_release_over_parcel.py +106 -0
- pluggy_sdk/models/loan_payment_release_over_parcel_charge.py +92 -0
- pluggy_sdk/models/loan_payment_release_over_parcel_fee.py +92 -0
- pluggy_sdk/models/loan_payments.py +98 -0
- pluggy_sdk/models/loan_warranty.py +94 -0
- pluggy_sdk/models/loans_list200_response.py +102 -0
- pluggy_sdk/models/merchant.py +96 -0
- pluggy_sdk/models/monthly.py +103 -0
- pluggy_sdk/models/monthly_portfolio.py +100 -0
- pluggy_sdk/models/monthly_portfolio_response.py +102 -0
- pluggy_sdk/models/not_authenticated_response.py +90 -0
- pluggy_sdk/models/page_response_acquirer_anticipations.py +102 -0
- pluggy_sdk/models/page_response_acquirer_receivables.py +102 -0
- pluggy_sdk/models/page_response_acquirer_sales.py +102 -0
- pluggy_sdk/models/page_response_category_rules.py +102 -0
- pluggy_sdk/models/page_response_consents.py +102 -0
- pluggy_sdk/models/page_response_investment_transactions.py +102 -0
- pluggy_sdk/models/page_response_transactions.py +102 -0
- pluggy_sdk/models/parameter_validation_error.py +92 -0
- pluggy_sdk/models/parameter_validation_response.py +98 -0
- pluggy_sdk/models/payment_customer.py +105 -0
- pluggy_sdk/models/payment_customers_list200_response.py +102 -0
- pluggy_sdk/models/payment_data.py +105 -0
- pluggy_sdk/models/payment_data_participant.py +102 -0
- pluggy_sdk/models/payment_institution.py +101 -0
- pluggy_sdk/models/payment_intent.py +145 -0
- pluggy_sdk/models/payment_intent_parameter.py +90 -0
- pluggy_sdk/models/payment_intents_list200_response.py +102 -0
- pluggy_sdk/models/payment_receipt.py +120 -0
- pluggy_sdk/models/payment_receipt_bank_account.py +92 -0
- pluggy_sdk/models/payment_receipt_person.py +96 -0
- pluggy_sdk/models/payment_recipient.py +110 -0
- pluggy_sdk/models/payment_recipient_account.py +92 -0
- pluggy_sdk/models/payment_recipients_institution_list200_response.py +102 -0
- pluggy_sdk/models/payment_recipients_list200_response.py +102 -0
- pluggy_sdk/models/payment_request.py +132 -0
- pluggy_sdk/models/payment_request_callback_urls.py +92 -0
- pluggy_sdk/models/payment_request_receipt_list200_response.py +102 -0
- pluggy_sdk/models/payment_request_schedule.py +183 -0
- pluggy_sdk/models/payment_requests_list200_response.py +102 -0
- pluggy_sdk/models/payment_schedules_list200_response.py +102 -0
- pluggy_sdk/models/payroll_loan.py +121 -0
- pluggy_sdk/models/payroll_loan_client.py +102 -0
- pluggy_sdk/models/payroll_loan_response.py +125 -0
- pluggy_sdk/models/payroll_loan_response_client.py +102 -0
- pluggy_sdk/models/payroll_loans_list200_response.py +102 -0
- pluggy_sdk/models/percentage_over_index.py +90 -0
- pluggy_sdk/models/phone_number.py +100 -0
- pluggy_sdk/models/pix_data.py +90 -0
- pluggy_sdk/models/schedule_payment.py +102 -0
- pluggy_sdk/models/schedule_type_custom.py +100 -0
- pluggy_sdk/models/schedule_type_daily.py +101 -0
- pluggy_sdk/models/schedule_type_monthly.py +103 -0
- pluggy_sdk/models/schedule_type_single.py +98 -0
- pluggy_sdk/models/schedule_type_weekly.py +110 -0
- pluggy_sdk/models/single.py +98 -0
- pluggy_sdk/models/smart_account.py +107 -0
- pluggy_sdk/models/smart_account_address.py +112 -0
- pluggy_sdk/models/smart_account_balance.py +95 -0
- pluggy_sdk/models/smart_account_transfer.py +123 -0
- pluggy_sdk/models/smart_accounts_list200_response.py +102 -0
- pluggy_sdk/models/smart_tranfers_preauthorizations_list200_response.py +102 -0
- pluggy_sdk/models/smart_transfer_callback_urls.py +90 -0
- pluggy_sdk/models/smart_transfer_payment.py +116 -0
- pluggy_sdk/models/smart_transfer_preauthorization.py +128 -0
- pluggy_sdk/models/smart_transfer_preauthorization_parameter.py +90 -0
- pluggy_sdk/models/status_detail.py +142 -0
- pluggy_sdk/models/status_detail_product.py +101 -0
- pluggy_sdk/models/status_detail_product_warning.py +92 -0
- pluggy_sdk/models/transaction.py +145 -0
- pluggy_sdk/models/update_item.py +109 -0
- pluggy_sdk/models/update_item_parameters.py +144 -0
- pluggy_sdk/models/update_payment_recipient.py +102 -0
- pluggy_sdk/models/update_payment_request.py +102 -0
- pluggy_sdk/models/update_transaction.py +88 -0
- pluggy_sdk/models/webhook.py +106 -0
- pluggy_sdk/models/webhook_creation_error_response.py +90 -0
- pluggy_sdk/models/webhooks_list200_response.py +102 -0
- pluggy_sdk/models/weekly.py +110 -0
- pluggy_sdk/py.typed +0 -0
- pluggy_sdk/rest.py +258 -0
- pluggy_sdk-1.0.0.post20.dist-info/METADATA +388 -0
- pluggy_sdk-1.0.0.post20.dist-info/RECORD +213 -0
- pluggy_sdk-1.0.0.post20.dist-info/WHEEL +5 -0
- pluggy_sdk-1.0.0.post20.dist-info/top_level.txt +1 -0
@@ -0,0 +1,178 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# flake8: noqa
|
4
|
+
"""
|
5
|
+
Pluggy API
|
6
|
+
|
7
|
+
Pluggy's main API to review data and execute connectors
|
8
|
+
|
9
|
+
The version of the OpenAPI document: 1.0.0
|
10
|
+
Contact: hello@pluggy.ai
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
|
+
|
13
|
+
Do not edit the class manually.
|
14
|
+
""" # noqa: E501
|
15
|
+
|
16
|
+
|
17
|
+
# import models into model package
|
18
|
+
from pluggy_sdk.models.account import Account
|
19
|
+
from pluggy_sdk.models.accounts_list200_response import AccountsList200Response
|
20
|
+
from pluggy_sdk.models.acquirer_anticipation import AcquirerAnticipation
|
21
|
+
from pluggy_sdk.models.acquirer_anticipation_data import AcquirerAnticipationData
|
22
|
+
from pluggy_sdk.models.acquirer_data import AcquirerData
|
23
|
+
from pluggy_sdk.models.acquirer_receivable import AcquirerReceivable
|
24
|
+
from pluggy_sdk.models.acquirer_receivable_data import AcquirerReceivableData
|
25
|
+
from pluggy_sdk.models.acquirer_receivable_data_establishment import AcquirerReceivableDataEstablishment
|
26
|
+
from pluggy_sdk.models.acquirer_receivable_destination_account import AcquirerReceivableDestinationAccount
|
27
|
+
from pluggy_sdk.models.acquirer_receivable_related_sale import AcquirerReceivableRelatedSale
|
28
|
+
from pluggy_sdk.models.acquirer_sale import AcquirerSale
|
29
|
+
from pluggy_sdk.models.acquirer_sale_data import AcquirerSaleData
|
30
|
+
from pluggy_sdk.models.acquirer_sale_installment import AcquirerSaleInstallment
|
31
|
+
from pluggy_sdk.models.acquirer_sale_installment_data import AcquirerSaleInstallmentData
|
32
|
+
from pluggy_sdk.models.address import Address
|
33
|
+
from pluggy_sdk.models.aggregated_portfolio import AggregatedPortfolio
|
34
|
+
from pluggy_sdk.models.aggregated_portfolio_response import AggregatedPortfolioResponse
|
35
|
+
from pluggy_sdk.models.asset_distribution import AssetDistribution
|
36
|
+
from pluggy_sdk.models.auth_request import AuthRequest
|
37
|
+
from pluggy_sdk.models.auth_response import AuthResponse
|
38
|
+
from pluggy_sdk.models.bank_data import BankData
|
39
|
+
from pluggy_sdk.models.benefit_loan import BenefitLoan
|
40
|
+
from pluggy_sdk.models.benefit_loan_client import BenefitLoanClient
|
41
|
+
from pluggy_sdk.models.benefit_response import BenefitResponse
|
42
|
+
from pluggy_sdk.models.benefit_response_paying_institution import BenefitResponsePayingInstitution
|
43
|
+
from pluggy_sdk.models.benefits_list200_response import BenefitsList200Response
|
44
|
+
from pluggy_sdk.models.bill import Bill
|
45
|
+
from pluggy_sdk.models.bill_finance_charge import BillFinanceCharge
|
46
|
+
from pluggy_sdk.models.bills_list200_response import BillsList200Response
|
47
|
+
from pluggy_sdk.models.boleto import Boleto
|
48
|
+
from pluggy_sdk.models.boleto_payer import BoletoPayer
|
49
|
+
from pluggy_sdk.models.boleto_recipient import BoletoRecipient
|
50
|
+
from pluggy_sdk.models.bulk_payment import BulkPayment
|
51
|
+
from pluggy_sdk.models.bulk_payments_list200_response import BulkPaymentsList200Response
|
52
|
+
from pluggy_sdk.models.custom import CUSTOM
|
53
|
+
from pluggy_sdk.models.category import Category
|
54
|
+
from pluggy_sdk.models.client_category_rule import ClientCategoryRule
|
55
|
+
from pluggy_sdk.models.company import Company
|
56
|
+
from pluggy_sdk.models.connect_token_request import ConnectTokenRequest
|
57
|
+
from pluggy_sdk.models.connect_token_response import ConnectTokenResponse
|
58
|
+
from pluggy_sdk.models.connector import Connector
|
59
|
+
from pluggy_sdk.models.connector_credential import ConnectorCredential
|
60
|
+
from pluggy_sdk.models.connector_health import ConnectorHealth
|
61
|
+
from pluggy_sdk.models.connector_health_details import ConnectorHealthDetails
|
62
|
+
from pluggy_sdk.models.connector_list_response import ConnectorListResponse
|
63
|
+
from pluggy_sdk.models.connector_user_action import ConnectorUserAction
|
64
|
+
from pluggy_sdk.models.consent import Consent
|
65
|
+
from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
|
66
|
+
from pluggy_sdk.models.create_bulk_payment import CreateBulkPayment
|
67
|
+
from pluggy_sdk.models.create_client_category_rule import CreateClientCategoryRule
|
68
|
+
from pluggy_sdk.models.create_item import CreateItem
|
69
|
+
from pluggy_sdk.models.create_item_parameters import CreateItemParameters
|
70
|
+
from pluggy_sdk.models.create_or_update_payment_customer import CreateOrUpdatePaymentCustomer
|
71
|
+
from pluggy_sdk.models.create_payment_customer_request_body import CreatePaymentCustomerRequestBody
|
72
|
+
from pluggy_sdk.models.create_payment_intent import CreatePaymentIntent
|
73
|
+
from pluggy_sdk.models.create_payment_recipient import CreatePaymentRecipient
|
74
|
+
from pluggy_sdk.models.create_payment_request import CreatePaymentRequest
|
75
|
+
from pluggy_sdk.models.create_pix_qr_payment_request import CreatePixQrPaymentRequest
|
76
|
+
from pluggy_sdk.models.create_smart_account_request import CreateSmartAccountRequest
|
77
|
+
from pluggy_sdk.models.create_smart_account_transfer_request import CreateSmartAccountTransferRequest
|
78
|
+
from pluggy_sdk.models.create_smart_transfer_payment import CreateSmartTransferPayment
|
79
|
+
from pluggy_sdk.models.create_smart_transfer_preauthorization import CreateSmartTransferPreauthorization
|
80
|
+
from pluggy_sdk.models.create_webhook import CreateWebhook
|
81
|
+
from pluggy_sdk.models.credential_select_option import CredentialSelectOption
|
82
|
+
from pluggy_sdk.models.credit_card_metadata import CreditCardMetadata
|
83
|
+
from pluggy_sdk.models.credit_data import CreditData
|
84
|
+
from pluggy_sdk.models.daily import DAILY
|
85
|
+
from pluggy_sdk.models.document import Document
|
86
|
+
from pluggy_sdk.models.email import Email
|
87
|
+
from pluggy_sdk.models.global_error_response import GlobalErrorResponse
|
88
|
+
from pluggy_sdk.models.i_count_response import ICountResponse
|
89
|
+
from pluggy_sdk.models.identity_relation import IdentityRelation
|
90
|
+
from pluggy_sdk.models.identity_response import IdentityResponse
|
91
|
+
from pluggy_sdk.models.income_report import IncomeReport
|
92
|
+
from pluggy_sdk.models.income_reports_response import IncomeReportsResponse
|
93
|
+
from pluggy_sdk.models.investment import Investment
|
94
|
+
from pluggy_sdk.models.investment_expenses import InvestmentExpenses
|
95
|
+
from pluggy_sdk.models.investment_metadata import InvestmentMetadata
|
96
|
+
from pluggy_sdk.models.investment_transaction import InvestmentTransaction
|
97
|
+
from pluggy_sdk.models.investments_list200_response import InvestmentsList200Response
|
98
|
+
from pluggy_sdk.models.item import Item
|
99
|
+
from pluggy_sdk.models.item_creation_error_response import ItemCreationErrorResponse
|
100
|
+
from pluggy_sdk.models.item_error import ItemError
|
101
|
+
from pluggy_sdk.models.item_options import ItemOptions
|
102
|
+
from pluggy_sdk.models.loan import Loan
|
103
|
+
from pluggy_sdk.models.loan_contracted_fee import LoanContractedFee
|
104
|
+
from pluggy_sdk.models.loan_contracted_finance_charge import LoanContractedFinanceCharge
|
105
|
+
from pluggy_sdk.models.loan_installment_balloon_payment import LoanInstallmentBalloonPayment
|
106
|
+
from pluggy_sdk.models.loan_installment_balloon_payment_amount import LoanInstallmentBalloonPaymentAmount
|
107
|
+
from pluggy_sdk.models.loan_installments import LoanInstallments
|
108
|
+
from pluggy_sdk.models.loan_interest_rate import LoanInterestRate
|
109
|
+
from pluggy_sdk.models.loan_payment_release import LoanPaymentRelease
|
110
|
+
from pluggy_sdk.models.loan_payment_release_over_parcel import LoanPaymentReleaseOverParcel
|
111
|
+
from pluggy_sdk.models.loan_payment_release_over_parcel_charge import LoanPaymentReleaseOverParcelCharge
|
112
|
+
from pluggy_sdk.models.loan_payment_release_over_parcel_fee import LoanPaymentReleaseOverParcelFee
|
113
|
+
from pluggy_sdk.models.loan_payments import LoanPayments
|
114
|
+
from pluggy_sdk.models.loan_warranty import LoanWarranty
|
115
|
+
from pluggy_sdk.models.loans_list200_response import LoansList200Response
|
116
|
+
from pluggy_sdk.models.monthly import MONTHLY
|
117
|
+
from pluggy_sdk.models.merchant import Merchant
|
118
|
+
from pluggy_sdk.models.monthly_portfolio import MonthlyPortfolio
|
119
|
+
from pluggy_sdk.models.monthly_portfolio_response import MonthlyPortfolioResponse
|
120
|
+
from pluggy_sdk.models.not_authenticated_response import NotAuthenticatedResponse
|
121
|
+
from pluggy_sdk.models.page_response_acquirer_anticipations import PageResponseAcquirerAnticipations
|
122
|
+
from pluggy_sdk.models.page_response_acquirer_receivables import PageResponseAcquirerReceivables
|
123
|
+
from pluggy_sdk.models.page_response_acquirer_sales import PageResponseAcquirerSales
|
124
|
+
from pluggy_sdk.models.page_response_category_rules import PageResponseCategoryRules
|
125
|
+
from pluggy_sdk.models.page_response_consents import PageResponseConsents
|
126
|
+
from pluggy_sdk.models.page_response_investment_transactions import PageResponseInvestmentTransactions
|
127
|
+
from pluggy_sdk.models.page_response_transactions import PageResponseTransactions
|
128
|
+
from pluggy_sdk.models.parameter_validation_error import ParameterValidationError
|
129
|
+
from pluggy_sdk.models.parameter_validation_response import ParameterValidationResponse
|
130
|
+
from pluggy_sdk.models.payment_customer import PaymentCustomer
|
131
|
+
from pluggy_sdk.models.payment_customers_list200_response import PaymentCustomersList200Response
|
132
|
+
from pluggy_sdk.models.payment_data import PaymentData
|
133
|
+
from pluggy_sdk.models.payment_data_participant import PaymentDataParticipant
|
134
|
+
from pluggy_sdk.models.payment_institution import PaymentInstitution
|
135
|
+
from pluggy_sdk.models.payment_intent import PaymentIntent
|
136
|
+
from pluggy_sdk.models.payment_intent_parameter import PaymentIntentParameter
|
137
|
+
from pluggy_sdk.models.payment_intents_list200_response import PaymentIntentsList200Response
|
138
|
+
from pluggy_sdk.models.payment_receipt import PaymentReceipt
|
139
|
+
from pluggy_sdk.models.payment_receipt_bank_account import PaymentReceiptBankAccount
|
140
|
+
from pluggy_sdk.models.payment_receipt_person import PaymentReceiptPerson
|
141
|
+
from pluggy_sdk.models.payment_recipient import PaymentRecipient
|
142
|
+
from pluggy_sdk.models.payment_recipient_account import PaymentRecipientAccount
|
143
|
+
from pluggy_sdk.models.payment_recipients_institution_list200_response import PaymentRecipientsInstitutionList200Response
|
144
|
+
from pluggy_sdk.models.payment_recipients_list200_response import PaymentRecipientsList200Response
|
145
|
+
from pluggy_sdk.models.payment_request import PaymentRequest
|
146
|
+
from pluggy_sdk.models.payment_request_callback_urls import PaymentRequestCallbackUrls
|
147
|
+
from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRequestReceiptList200Response
|
148
|
+
from pluggy_sdk.models.payment_request_schedule import PaymentRequestSchedule
|
149
|
+
from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
|
150
|
+
from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
|
151
|
+
from pluggy_sdk.models.percentage_over_index import PercentageOverIndex
|
152
|
+
from pluggy_sdk.models.phone_number import PhoneNumber
|
153
|
+
from pluggy_sdk.models.pix_data import PixData
|
154
|
+
from pluggy_sdk.models.single import SINGLE
|
155
|
+
from pluggy_sdk.models.schedule_payment import SchedulePayment
|
156
|
+
from pluggy_sdk.models.smart_account import SmartAccount
|
157
|
+
from pluggy_sdk.models.smart_account_address import SmartAccountAddress
|
158
|
+
from pluggy_sdk.models.smart_account_balance import SmartAccountBalance
|
159
|
+
from pluggy_sdk.models.smart_account_transfer import SmartAccountTransfer
|
160
|
+
from pluggy_sdk.models.smart_accounts_list200_response import SmartAccountsList200Response
|
161
|
+
from pluggy_sdk.models.smart_tranfers_preauthorizations_list200_response import SmartTranfersPreauthorizationsList200Response
|
162
|
+
from pluggy_sdk.models.smart_transfer_callback_urls import SmartTransferCallbackUrls
|
163
|
+
from pluggy_sdk.models.smart_transfer_payment import SmartTransferPayment
|
164
|
+
from pluggy_sdk.models.smart_transfer_preauthorization import SmartTransferPreauthorization
|
165
|
+
from pluggy_sdk.models.smart_transfer_preauthorization_parameter import SmartTransferPreauthorizationParameter
|
166
|
+
from pluggy_sdk.models.status_detail import StatusDetail
|
167
|
+
from pluggy_sdk.models.status_detail_product import StatusDetailProduct
|
168
|
+
from pluggy_sdk.models.status_detail_product_warning import StatusDetailProductWarning
|
169
|
+
from pluggy_sdk.models.transaction import Transaction
|
170
|
+
from pluggy_sdk.models.update_item import UpdateItem
|
171
|
+
from pluggy_sdk.models.update_item_parameters import UpdateItemParameters
|
172
|
+
from pluggy_sdk.models.update_payment_recipient import UpdatePaymentRecipient
|
173
|
+
from pluggy_sdk.models.update_payment_request import UpdatePaymentRequest
|
174
|
+
from pluggy_sdk.models.update_transaction import UpdateTransaction
|
175
|
+
from pluggy_sdk.models.weekly import WEEKLY
|
176
|
+
from pluggy_sdk.models.webhook import Webhook
|
177
|
+
from pluggy_sdk.models.webhook_creation_error_response import WebhookCreationErrorResponse
|
178
|
+
from pluggy_sdk.models.webhooks_list200_response import WebhooksList200Response
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
23
|
+
from pluggy_sdk.models.bank_data import BankData
|
24
|
+
from pluggy_sdk.models.credit_data import CreditData
|
25
|
+
from typing import Optional, Set
|
26
|
+
from typing_extensions import Self
|
27
|
+
|
28
|
+
class Account(BaseModel):
|
29
|
+
"""
|
30
|
+
Account of type bank
|
31
|
+
""" # noqa: E501
|
32
|
+
id: StrictStr = Field(description="Primary account identifier")
|
33
|
+
type: StrictStr = Field(description="Type of account, may be BANK or CREDIT")
|
34
|
+
subtype: StrictStr = Field(description="Subtype of corresponding type of account")
|
35
|
+
number: StrictStr = Field(description="External identifier of the account")
|
36
|
+
name: StrictStr = Field(description="Name of the account in a descriptive format")
|
37
|
+
marketing_name: Optional[StrictStr] = Field(default=None, description="Name of the account as defined externally", alias="marketingName")
|
38
|
+
balance: Union[StrictFloat, StrictInt] = Field(description="Funds of the account")
|
39
|
+
item_id: StrictStr = Field(description="Attached item's primary identifier", alias="itemId")
|
40
|
+
tax_number: Optional[StrictStr] = Field(default=None, description="Tax ID of the corresponding owner", alias="taxNumber")
|
41
|
+
owner: Optional[StrictStr] = Field(default=None, description="Name of the owner of the account")
|
42
|
+
currency_code: StrictStr = Field(description="Code referencing the currency of the balance", alias="currencyCode")
|
43
|
+
bank_data: Optional[BankData] = Field(default=None, alias="bankData")
|
44
|
+
credit_data: Optional[CreditData] = Field(default=None, alias="creditData")
|
45
|
+
__properties: ClassVar[List[str]] = ["id", "type", "subtype", "number", "name", "marketingName", "balance", "itemId", "taxNumber", "owner", "currencyCode", "bankData", "creditData"]
|
46
|
+
|
47
|
+
@field_validator('type')
|
48
|
+
def type_validate_enum(cls, value):
|
49
|
+
"""Validates the enum"""
|
50
|
+
if value not in set(['BANK', 'CREDIT']):
|
51
|
+
raise ValueError("must be one of enum values ('BANK', 'CREDIT')")
|
52
|
+
return value
|
53
|
+
|
54
|
+
@field_validator('subtype')
|
55
|
+
def subtype_validate_enum(cls, value):
|
56
|
+
"""Validates the enum"""
|
57
|
+
if value not in set(['SAVINGS_ACCOUNT', 'CHECKING_ACCOUNT', 'CREDIT_CARD']):
|
58
|
+
raise ValueError("must be one of enum values ('SAVINGS_ACCOUNT', 'CHECKING_ACCOUNT', 'CREDIT_CARD')")
|
59
|
+
return value
|
60
|
+
|
61
|
+
model_config = ConfigDict(
|
62
|
+
populate_by_name=True,
|
63
|
+
validate_assignment=True,
|
64
|
+
protected_namespaces=(),
|
65
|
+
)
|
66
|
+
|
67
|
+
|
68
|
+
def to_str(self) -> str:
|
69
|
+
"""Returns the string representation of the model using alias"""
|
70
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
71
|
+
|
72
|
+
def to_json(self) -> str:
|
73
|
+
"""Returns the JSON representation of the model using alias"""
|
74
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
75
|
+
return json.dumps(self.to_dict())
|
76
|
+
|
77
|
+
@classmethod
|
78
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
79
|
+
"""Create an instance of Account from a JSON string"""
|
80
|
+
return cls.from_dict(json.loads(json_str))
|
81
|
+
|
82
|
+
def to_dict(self) -> Dict[str, Any]:
|
83
|
+
"""Return the dictionary representation of the model using alias.
|
84
|
+
|
85
|
+
This has the following differences from calling pydantic's
|
86
|
+
`self.model_dump(by_alias=True)`:
|
87
|
+
|
88
|
+
* `None` is only added to the output dict for nullable fields that
|
89
|
+
were set at model initialization. Other fields with value `None`
|
90
|
+
are ignored.
|
91
|
+
"""
|
92
|
+
excluded_fields: Set[str] = set([
|
93
|
+
])
|
94
|
+
|
95
|
+
_dict = self.model_dump(
|
96
|
+
by_alias=True,
|
97
|
+
exclude=excluded_fields,
|
98
|
+
exclude_none=True,
|
99
|
+
)
|
100
|
+
# override the default output from pydantic by calling `to_dict()` of bank_data
|
101
|
+
if self.bank_data:
|
102
|
+
_dict['bankData'] = self.bank_data.to_dict()
|
103
|
+
# override the default output from pydantic by calling `to_dict()` of credit_data
|
104
|
+
if self.credit_data:
|
105
|
+
_dict['creditData'] = self.credit_data.to_dict()
|
106
|
+
return _dict
|
107
|
+
|
108
|
+
@classmethod
|
109
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
110
|
+
"""Create an instance of Account from a dict"""
|
111
|
+
if obj is None:
|
112
|
+
return None
|
113
|
+
|
114
|
+
if not isinstance(obj, dict):
|
115
|
+
return cls.model_validate(obj)
|
116
|
+
|
117
|
+
_obj = cls.model_validate({
|
118
|
+
"id": obj.get("id"),
|
119
|
+
"type": obj.get("type"),
|
120
|
+
"subtype": obj.get("subtype"),
|
121
|
+
"number": obj.get("number"),
|
122
|
+
"name": obj.get("name"),
|
123
|
+
"marketingName": obj.get("marketingName"),
|
124
|
+
"balance": obj.get("balance"),
|
125
|
+
"itemId": obj.get("itemId"),
|
126
|
+
"taxNumber": obj.get("taxNumber"),
|
127
|
+
"owner": obj.get("owner"),
|
128
|
+
"currencyCode": obj.get("currencyCode"),
|
129
|
+
"bankData": BankData.from_dict(obj["bankData"]) if obj.get("bankData") is not None else None,
|
130
|
+
"creditData": CreditData.from_dict(obj["creditData"]) if obj.get("creditData") is not None else None
|
131
|
+
})
|
132
|
+
return _obj
|
133
|
+
|
134
|
+
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
23
|
+
from pluggy_sdk.models.account import Account
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class AccountsList200Response(BaseModel):
|
28
|
+
"""
|
29
|
+
AccountsList200Response
|
30
|
+
""" # noqa: E501
|
31
|
+
page: Optional[Union[StrictFloat, StrictInt]] = None
|
32
|
+
total: Optional[Union[StrictFloat, StrictInt]] = None
|
33
|
+
total_pages: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalPages")
|
34
|
+
results: Optional[List[Account]] = Field(default=None, description="List of retrieved accounts")
|
35
|
+
__properties: ClassVar[List[str]] = ["page", "total", "totalPages", "results"]
|
36
|
+
|
37
|
+
model_config = ConfigDict(
|
38
|
+
populate_by_name=True,
|
39
|
+
validate_assignment=True,
|
40
|
+
protected_namespaces=(),
|
41
|
+
)
|
42
|
+
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
51
|
+
return json.dumps(self.to_dict())
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
55
|
+
"""Create an instance of AccountsList200Response from a JSON string"""
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
57
|
+
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
60
|
+
|
61
|
+
This has the following differences from calling pydantic's
|
62
|
+
`self.model_dump(by_alias=True)`:
|
63
|
+
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
65
|
+
were set at model initialization. Other fields with value `None`
|
66
|
+
are ignored.
|
67
|
+
"""
|
68
|
+
excluded_fields: Set[str] = set([
|
69
|
+
])
|
70
|
+
|
71
|
+
_dict = self.model_dump(
|
72
|
+
by_alias=True,
|
73
|
+
exclude=excluded_fields,
|
74
|
+
exclude_none=True,
|
75
|
+
)
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
|
77
|
+
_items = []
|
78
|
+
if self.results:
|
79
|
+
for _item_results in self.results:
|
80
|
+
if _item_results:
|
81
|
+
_items.append(_item_results.to_dict())
|
82
|
+
_dict['results'] = _items
|
83
|
+
return _dict
|
84
|
+
|
85
|
+
@classmethod
|
86
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
87
|
+
"""Create an instance of AccountsList200Response from a dict"""
|
88
|
+
if obj is None:
|
89
|
+
return None
|
90
|
+
|
91
|
+
if not isinstance(obj, dict):
|
92
|
+
return cls.model_validate(obj)
|
93
|
+
|
94
|
+
_obj = cls.model_validate({
|
95
|
+
"page": obj.get("page"),
|
96
|
+
"total": obj.get("total"),
|
97
|
+
"totalPages": obj.get("totalPages"),
|
98
|
+
"results": [Account.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
99
|
+
})
|
100
|
+
return _obj
|
101
|
+
|
102
|
+
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from datetime import datetime
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class AcquirerAnticipation(BaseModel):
|
28
|
+
"""
|
29
|
+
Acquirer Anticipation product
|
30
|
+
""" # noqa: E501
|
31
|
+
id: StrictStr = Field(description="Primary identifier of the acquirer anticipation")
|
32
|
+
item_id: StrictStr = Field(description="Primary identifier of the item associated to the acquirer anticipation", alias="itemId")
|
33
|
+
description: StrictStr = Field(description="Clean description of the acquirer anticipation")
|
34
|
+
currency_code: StrictStr = Field(description="Currency ISO code", alias="currencyCode")
|
35
|
+
var_date: datetime = Field(description="Date when the acquirer anticipation was requested", alias="date")
|
36
|
+
gross_amount: Union[StrictFloat, StrictInt] = Field(description="Acquirer anticipation gross amount", alias="grossAmount")
|
37
|
+
status: Optional[StrictStr] = Field(default=None, description="Status of the payment anticipation")
|
38
|
+
net_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Acquirer anticipation net amount", alias="netAmount")
|
39
|
+
fee: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage of monthly fee (e.g 1.5 = 1.5%)")
|
40
|
+
fee_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fee amount", alias="feeAmount")
|
41
|
+
__properties: ClassVar[List[str]] = ["id", "itemId", "description", "currencyCode", "date", "grossAmount", "status", "netAmount", "fee", "feeAmount"]
|
42
|
+
|
43
|
+
@field_validator('status')
|
44
|
+
def status_validate_enum(cls, value):
|
45
|
+
"""Validates the enum"""
|
46
|
+
if value is None:
|
47
|
+
return value
|
48
|
+
|
49
|
+
if value not in set(['SIMULATED', 'REQUESTED', 'CANCELLED', 'IN_ANALYSIS', 'APPROVED']):
|
50
|
+
raise ValueError("must be one of enum values ('SIMULATED', 'REQUESTED', 'CANCELLED', 'IN_ANALYSIS', 'APPROVED')")
|
51
|
+
return value
|
52
|
+
|
53
|
+
model_config = ConfigDict(
|
54
|
+
populate_by_name=True,
|
55
|
+
validate_assignment=True,
|
56
|
+
protected_namespaces=(),
|
57
|
+
)
|
58
|
+
|
59
|
+
|
60
|
+
def to_str(self) -> str:
|
61
|
+
"""Returns the string representation of the model using alias"""
|
62
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
63
|
+
|
64
|
+
def to_json(self) -> str:
|
65
|
+
"""Returns the JSON representation of the model using alias"""
|
66
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
67
|
+
return json.dumps(self.to_dict())
|
68
|
+
|
69
|
+
@classmethod
|
70
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
71
|
+
"""Create an instance of AcquirerAnticipation from a JSON string"""
|
72
|
+
return cls.from_dict(json.loads(json_str))
|
73
|
+
|
74
|
+
def to_dict(self) -> Dict[str, Any]:
|
75
|
+
"""Return the dictionary representation of the model using alias.
|
76
|
+
|
77
|
+
This has the following differences from calling pydantic's
|
78
|
+
`self.model_dump(by_alias=True)`:
|
79
|
+
|
80
|
+
* `None` is only added to the output dict for nullable fields that
|
81
|
+
were set at model initialization. Other fields with value `None`
|
82
|
+
are ignored.
|
83
|
+
"""
|
84
|
+
excluded_fields: Set[str] = set([
|
85
|
+
])
|
86
|
+
|
87
|
+
_dict = self.model_dump(
|
88
|
+
by_alias=True,
|
89
|
+
exclude=excluded_fields,
|
90
|
+
exclude_none=True,
|
91
|
+
)
|
92
|
+
return _dict
|
93
|
+
|
94
|
+
@classmethod
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
96
|
+
"""Create an instance of AcquirerAnticipation from a dict"""
|
97
|
+
if obj is None:
|
98
|
+
return None
|
99
|
+
|
100
|
+
if not isinstance(obj, dict):
|
101
|
+
return cls.model_validate(obj)
|
102
|
+
|
103
|
+
_obj = cls.model_validate({
|
104
|
+
"id": obj.get("id"),
|
105
|
+
"itemId": obj.get("itemId"),
|
106
|
+
"description": obj.get("description"),
|
107
|
+
"currencyCode": obj.get("currencyCode"),
|
108
|
+
"date": obj.get("date"),
|
109
|
+
"grossAmount": obj.get("grossAmount"),
|
110
|
+
"status": obj.get("status"),
|
111
|
+
"netAmount": obj.get("netAmount"),
|
112
|
+
"fee": obj.get("fee"),
|
113
|
+
"feeAmount": obj.get("feeAmount")
|
114
|
+
})
|
115
|
+
return _obj
|
116
|
+
|
117
|
+
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List, Union
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class AcquirerAnticipationData(BaseModel):
|
27
|
+
"""
|
28
|
+
AcquirerAnticipationData
|
29
|
+
""" # noqa: E501
|
30
|
+
status: StrictStr
|
31
|
+
net_amount: Union[StrictFloat, StrictInt] = Field(description="Net amount of the anticipation", alias="netAmount")
|
32
|
+
fee: Union[StrictFloat, StrictInt] = Field(description="Percentage of monthly fee (e.g 1.5 = 1.5%)")
|
33
|
+
fee_amount: Union[StrictFloat, StrictInt] = Field(description="Fee amount", alias="feeAmount")
|
34
|
+
__properties: ClassVar[List[str]] = ["status", "netAmount", "fee", "feeAmount"]
|
35
|
+
|
36
|
+
@field_validator('status')
|
37
|
+
def status_validate_enum(cls, value):
|
38
|
+
"""Validates the enum"""
|
39
|
+
if value not in set(['SIMULATED', 'REQUESTED', 'APPROVED', 'CANCELLED', 'IN_ANALYSIS']):
|
40
|
+
raise ValueError("must be one of enum values ('SIMULATED', 'REQUESTED', 'APPROVED', 'CANCELLED', 'IN_ANALYSIS')")
|
41
|
+
return value
|
42
|
+
|
43
|
+
model_config = ConfigDict(
|
44
|
+
populate_by_name=True,
|
45
|
+
validate_assignment=True,
|
46
|
+
protected_namespaces=(),
|
47
|
+
)
|
48
|
+
|
49
|
+
|
50
|
+
def to_str(self) -> str:
|
51
|
+
"""Returns the string representation of the model using alias"""
|
52
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
53
|
+
|
54
|
+
def to_json(self) -> str:
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
56
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
57
|
+
return json.dumps(self.to_dict())
|
58
|
+
|
59
|
+
@classmethod
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
61
|
+
"""Create an instance of AcquirerAnticipationData from a JSON string"""
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
63
|
+
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
66
|
+
|
67
|
+
This has the following differences from calling pydantic's
|
68
|
+
`self.model_dump(by_alias=True)`:
|
69
|
+
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
71
|
+
were set at model initialization. Other fields with value `None`
|
72
|
+
are ignored.
|
73
|
+
"""
|
74
|
+
excluded_fields: Set[str] = set([
|
75
|
+
])
|
76
|
+
|
77
|
+
_dict = self.model_dump(
|
78
|
+
by_alias=True,
|
79
|
+
exclude=excluded_fields,
|
80
|
+
exclude_none=True,
|
81
|
+
)
|
82
|
+
return _dict
|
83
|
+
|
84
|
+
@classmethod
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
86
|
+
"""Create an instance of AcquirerAnticipationData from a dict"""
|
87
|
+
if obj is None:
|
88
|
+
return None
|
89
|
+
|
90
|
+
if not isinstance(obj, dict):
|
91
|
+
return cls.model_validate(obj)
|
92
|
+
|
93
|
+
_obj = cls.model_validate({
|
94
|
+
"status": obj.get("status"),
|
95
|
+
"netAmount": obj.get("netAmount"),
|
96
|
+
"fee": obj.get("fee"),
|
97
|
+
"feeAmount": obj.get("feeAmount")
|
98
|
+
})
|
99
|
+
return _obj
|
100
|
+
|
101
|
+
|