From a8655f3e426576be5b3a571b7565af8ce13ea007 Mon Sep 17 00:00:00 2001 From: Franklin Date: Mon, 15 Jan 2024 16:49:05 -0500 Subject: [PATCH] add redirection_time --- .openapi-generator/FILES | 86 -- README.md | 43 - docs/Model/ApiKeyCreateResponse.md | 2 +- docs/Model/ApiKeyCreateResponseAllOf.md | 9 - ...geDataPaymentMethodBankTransferResponse.md | 24 - .../ChargeDataPaymentMethodCardResponse.md | 19 - .../ChargeDataPaymentMethodCashResponse.md | 16 - docs/Model/ChargeResponseRefundsAllOf.md | 9 - docs/Model/CheckoutRequest.md | 1 + docs/Model/CheckoutsResponseAllOf.md | 9 - .../CreateCustomerFiscalEntitiesResponse.md | 2 +- ...eateCustomerFiscalEntitiesResponseAllOf.md | 13 - .../CustomerFiscalEntitiesDataResponse.md | 2 +- docs/Model/CustomerFiscalEntitiesRequest.md | 2 +- .../CustomerFiscalEntitiesRequestAddress.md | 16 - .../CustomerFiscalEntitiesResponseAllOf.md | 9 - docs/Model/CustomerPaymentMethods.md | 9 - .../CustomerResponseShippingContactsAllOf.md | 9 - ...stomerShippingContactsDataResponseAllOf.md | 11 - .../CustomerUpdateFiscalEntitiesRequest.md | 2 +- docs/Model/CustomersResponse.md | 2 +- docs/Model/CustomersResponseAllOf.md | 9 - docs/Model/DeleteApiKeysResponseAllOf.md | 9 - docs/Model/DiscountLinesResponseAllOf.md | 11 - docs/Model/ErrorAllOf.md | 11 - docs/Model/GetApiKeysResponseAllOf.md | 9 - docs/Model/GetChargesResponseAllOf.md | 9 - docs/Model/GetCompaniesResponseAllOf.md | 9 - docs/Model/GetEventsResponseAllOf.md | 9 - .../GetOrderDiscountLinesResponseAllOf.md | 9 - docs/Model/GetPaymentMethodResponseAllOf.md | 9 - docs/Model/GetPlansResponseAllOf.md | 9 - docs/Model/GetTransactionsResponseAllOf.md | 9 - docs/Model/GetTransfersResponseAllOf.md | 9 - docs/Model/GetWebhookKeysResponseAllOf.md | 9 - docs/Model/GetWebhooksResponseAllOf.md | 9 - .../OrderFiscalEntityAddressResponseAllOf.md | 9 - docs/Model/OrderResponseChargesAllOf.md | 9 - docs/Model/OrderResponseCustomerInfo.md | 2 +- docs/Model/OrderResponseCustomerInfoAllOf.md | 9 - docs/Model/OrderResponseDiscountLinesAllOf.md | 9 - docs/Model/OrderResponseProductsAllOf.md | 9 - docs/Model/OrderResponseShippingContact.md | 6 +- .../OrderResponseShippingContactAllOf.md | 11 - docs/Model/PaymentMethodBankTransfer.md | 2 +- docs/Model/PaymentMethodCard.md | 2 +- docs/Model/PaymentMethodCardRequestAllOf.md | 9 - docs/Model/PaymentMethodCardResponseAllOf.md | 18 - docs/Model/PaymentMethodCashRequestAllOf.md | 9 - docs/Model/PaymentMethodCashResponseAllOf.md | 13 - docs/Model/PaymentMethodSpeiRecurrentAllOf.md | 10 - docs/Model/ProductDataResponseAllOf.md | 11 - docs/Model/ProductOrderResponseAllOf.md | 11 - docs/Model/RiskRules.md | 9 - .../UpdateCustomerFiscalEntitiesResponse.md | 2 +- ...dateCustomerFiscalEntitiesResponseAllOf.md | 13 - docs/Model/UpdateOrderTaxResponseAllOf.md | 11 - lib/Model/ApiKeyCreateResponse.php | 80 +- lib/Model/ApiKeyCreateResponseAllOf.php | 410 -------- ...eDataPaymentMethodBankTransferResponse.php | 991 ------------------ .../ChargeDataPaymentMethodCardResponse.php | 751 ------------- .../ChargeDataPaymentMethodCashResponse.php | 670 ------------ lib/Model/ChargeResponseRefundsAllOf.php | 410 -------- lib/Model/CheckoutRequest.php | 34 + lib/Model/CheckoutsResponseAllOf.php | 410 -------- .../CreateCustomerFiscalEntitiesResponse.php | 6 +- ...ateCustomerFiscalEntitiesResponseAllOf.php | 555 ---------- .../CustomerFiscalEntitiesDataResponse.php | 6 +- lib/Model/CustomerFiscalEntitiesRequest.php | 6 +- .../CustomerFiscalEntitiesRequestAddress.php | 657 ------------ .../CustomerFiscalEntitiesResponseAllOf.php | 410 -------- lib/Model/CustomerPaymentMethods.php | 410 -------- .../CustomerResponseShippingContactsAllOf.php | 410 -------- ...tomerShippingContactsDataResponseAllOf.php | 487 --------- .../CustomerUpdateFiscalEntitiesRequest.php | 6 +- lib/Model/CustomersResponse.php | 80 +- lib/Model/CustomersResponseAllOf.php | 410 -------- lib/Model/DeleteApiKeysResponseAllOf.php | 410 -------- lib/Model/DiscountLinesResponseAllOf.php | 487 --------- lib/Model/ErrorAllOf.php | 485 --------- lib/Model/GetApiKeysResponseAllOf.php | 410 -------- lib/Model/GetChargesResponseAllOf.php | 410 -------- lib/Model/GetCompaniesResponseAllOf.php | 410 -------- lib/Model/GetEventsResponseAllOf.php | 410 -------- .../GetOrderDiscountLinesResponseAllOf.php | 410 -------- lib/Model/GetPaymentMethodResponseAllOf.php | 410 -------- lib/Model/GetPlansResponseAllOf.php | 410 -------- lib/Model/GetTransactionsResponseAllOf.php | 410 -------- lib/Model/GetTransfersResponseAllOf.php | 410 -------- lib/Model/GetWebhookKeysResponseAllOf.php | 410 -------- lib/Model/GetWebhooksResponseAllOf.php | 410 -------- .../OrderFiscalEntityAddressResponseAllOf.php | 410 -------- lib/Model/OrderResponseChargesAllOf.php | 410 -------- lib/Model/OrderResponseCustomerInfo.php | 68 +- lib/Model/OrderResponseCustomerInfoAllOf.php | 410 -------- lib/Model/OrderResponseDiscountLinesAllOf.php | 410 -------- lib/Model/OrderResponseProductsAllOf.php | 410 -------- lib/Model/OrderResponseShippingContact.php | 204 ++-- .../OrderResponseShippingContactAllOf.php | 478 --------- lib/Model/PaymentMethodBankTransfer.php | 6 +- lib/Model/PaymentMethodCard.php | 6 +- lib/Model/PaymentMethodCardRequestAllOf.php | 410 -------- lib/Model/PaymentMethodCardResponseAllOf.php | 717 ------------- lib/Model/PaymentMethodCashRequestAllOf.php | 410 -------- lib/Model/PaymentMethodCashResponseAllOf.php | 547 ---------- lib/Model/PaymentMethodSpeiRecurrentAllOf.php | 445 -------- lib/Model/ProductDataResponseAllOf.php | 478 --------- lib/Model/ProductOrderResponseAllOf.php | 478 --------- lib/Model/RiskRules.php | 410 -------- .../UpdateCustomerFiscalEntitiesResponse.php | 6 +- ...ateCustomerFiscalEntitiesResponseAllOf.php | 555 ---------- lib/Model/UpdateOrderTaxResponseAllOf.php | 478 --------- 112 files changed, 285 insertions(+), 21170 deletions(-) delete mode 100644 docs/Model/ApiKeyCreateResponseAllOf.md delete mode 100644 docs/Model/ChargeDataPaymentMethodBankTransferResponse.md delete mode 100644 docs/Model/ChargeDataPaymentMethodCardResponse.md delete mode 100644 docs/Model/ChargeDataPaymentMethodCashResponse.md delete mode 100644 docs/Model/ChargeResponseRefundsAllOf.md delete mode 100644 docs/Model/CheckoutsResponseAllOf.md delete mode 100644 docs/Model/CreateCustomerFiscalEntitiesResponseAllOf.md delete mode 100644 docs/Model/CustomerFiscalEntitiesRequestAddress.md delete mode 100644 docs/Model/CustomerFiscalEntitiesResponseAllOf.md delete mode 100644 docs/Model/CustomerPaymentMethods.md delete mode 100644 docs/Model/CustomerResponseShippingContactsAllOf.md delete mode 100644 docs/Model/CustomerShippingContactsDataResponseAllOf.md delete mode 100644 docs/Model/CustomersResponseAllOf.md delete mode 100644 docs/Model/DeleteApiKeysResponseAllOf.md delete mode 100644 docs/Model/DiscountLinesResponseAllOf.md delete mode 100644 docs/Model/ErrorAllOf.md delete mode 100644 docs/Model/GetApiKeysResponseAllOf.md delete mode 100644 docs/Model/GetChargesResponseAllOf.md delete mode 100644 docs/Model/GetCompaniesResponseAllOf.md delete mode 100644 docs/Model/GetEventsResponseAllOf.md delete mode 100644 docs/Model/GetOrderDiscountLinesResponseAllOf.md delete mode 100644 docs/Model/GetPaymentMethodResponseAllOf.md delete mode 100644 docs/Model/GetPlansResponseAllOf.md delete mode 100644 docs/Model/GetTransactionsResponseAllOf.md delete mode 100644 docs/Model/GetTransfersResponseAllOf.md delete mode 100644 docs/Model/GetWebhookKeysResponseAllOf.md delete mode 100644 docs/Model/GetWebhooksResponseAllOf.md delete mode 100644 docs/Model/OrderFiscalEntityAddressResponseAllOf.md delete mode 100644 docs/Model/OrderResponseChargesAllOf.md delete mode 100644 docs/Model/OrderResponseCustomerInfoAllOf.md delete mode 100644 docs/Model/OrderResponseDiscountLinesAllOf.md delete mode 100644 docs/Model/OrderResponseProductsAllOf.md delete mode 100644 docs/Model/OrderResponseShippingContactAllOf.md delete mode 100644 docs/Model/PaymentMethodCardRequestAllOf.md delete mode 100644 docs/Model/PaymentMethodCardResponseAllOf.md delete mode 100644 docs/Model/PaymentMethodCashRequestAllOf.md delete mode 100644 docs/Model/PaymentMethodCashResponseAllOf.md delete mode 100644 docs/Model/PaymentMethodSpeiRecurrentAllOf.md delete mode 100644 docs/Model/ProductDataResponseAllOf.md delete mode 100644 docs/Model/ProductOrderResponseAllOf.md delete mode 100644 docs/Model/RiskRules.md delete mode 100644 docs/Model/UpdateCustomerFiscalEntitiesResponseAllOf.md delete mode 100644 docs/Model/UpdateOrderTaxResponseAllOf.md delete mode 100644 lib/Model/ApiKeyCreateResponseAllOf.php delete mode 100644 lib/Model/ChargeDataPaymentMethodBankTransferResponse.php delete mode 100644 lib/Model/ChargeDataPaymentMethodCardResponse.php delete mode 100644 lib/Model/ChargeDataPaymentMethodCashResponse.php delete mode 100644 lib/Model/ChargeResponseRefundsAllOf.php delete mode 100644 lib/Model/CheckoutsResponseAllOf.php delete mode 100644 lib/Model/CreateCustomerFiscalEntitiesResponseAllOf.php delete mode 100644 lib/Model/CustomerFiscalEntitiesRequestAddress.php delete mode 100644 lib/Model/CustomerFiscalEntitiesResponseAllOf.php delete mode 100644 lib/Model/CustomerPaymentMethods.php delete mode 100644 lib/Model/CustomerResponseShippingContactsAllOf.php delete mode 100644 lib/Model/CustomerShippingContactsDataResponseAllOf.php delete mode 100644 lib/Model/CustomersResponseAllOf.php delete mode 100644 lib/Model/DeleteApiKeysResponseAllOf.php delete mode 100644 lib/Model/DiscountLinesResponseAllOf.php delete mode 100644 lib/Model/ErrorAllOf.php delete mode 100644 lib/Model/GetApiKeysResponseAllOf.php delete mode 100644 lib/Model/GetChargesResponseAllOf.php delete mode 100644 lib/Model/GetCompaniesResponseAllOf.php delete mode 100644 lib/Model/GetEventsResponseAllOf.php delete mode 100644 lib/Model/GetOrderDiscountLinesResponseAllOf.php delete mode 100644 lib/Model/GetPaymentMethodResponseAllOf.php delete mode 100644 lib/Model/GetPlansResponseAllOf.php delete mode 100644 lib/Model/GetTransactionsResponseAllOf.php delete mode 100644 lib/Model/GetTransfersResponseAllOf.php delete mode 100644 lib/Model/GetWebhookKeysResponseAllOf.php delete mode 100644 lib/Model/GetWebhooksResponseAllOf.php delete mode 100644 lib/Model/OrderFiscalEntityAddressResponseAllOf.php delete mode 100644 lib/Model/OrderResponseChargesAllOf.php delete mode 100644 lib/Model/OrderResponseCustomerInfoAllOf.php delete mode 100644 lib/Model/OrderResponseDiscountLinesAllOf.php delete mode 100644 lib/Model/OrderResponseProductsAllOf.php delete mode 100644 lib/Model/OrderResponseShippingContactAllOf.php delete mode 100644 lib/Model/PaymentMethodCardRequestAllOf.php delete mode 100644 lib/Model/PaymentMethodCardResponseAllOf.php delete mode 100644 lib/Model/PaymentMethodCashRequestAllOf.php delete mode 100644 lib/Model/PaymentMethodCashResponseAllOf.php delete mode 100644 lib/Model/PaymentMethodSpeiRecurrentAllOf.php delete mode 100644 lib/Model/ProductDataResponseAllOf.php delete mode 100644 lib/Model/ProductOrderResponseAllOf.php delete mode 100644 lib/Model/RiskRules.php delete mode 100644 lib/Model/UpdateCustomerFiscalEntitiesResponseAllOf.php delete mode 100644 lib/Model/UpdateOrderTaxResponseAllOf.php diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ef71e7e8..98f62b4a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -32,7 +32,6 @@ docs/Api/TransfersApi.md docs/Api/WebhookKeysApi.md docs/Api/WebhooksApi.md docs/Model/ApiKeyCreateResponse.md -docs/Model/ApiKeyCreateResponseAllOf.md docs/Model/ApiKeyRequest.md docs/Model/ApiKeyResponse.md docs/Model/ApiKeyResponseOnDelete.md @@ -40,9 +39,6 @@ docs/Model/ApiKeyUpdateRequest.md docs/Model/BalanceCommonField.md docs/Model/BalanceResponse.md docs/Model/BlacklistRuleResponse.md -docs/Model/ChargeDataPaymentMethodBankTransferResponse.md -docs/Model/ChargeDataPaymentMethodCardResponse.md -docs/Model/ChargeDataPaymentMethodCashResponse.md docs/Model/ChargeOrderResponse.md docs/Model/ChargeOrderResponsePaymentMethod.md docs/Model/ChargeRequest.md @@ -51,7 +47,6 @@ docs/Model/ChargeResponse.md docs/Model/ChargeResponseChannel.md docs/Model/ChargeResponsePaymentMethod.md docs/Model/ChargeResponseRefunds.md -docs/Model/ChargeResponseRefundsAllOf.md docs/Model/ChargeResponseRefundsData.md docs/Model/ChargeUpdateRequest.md docs/Model/ChargesDataResponse.md @@ -61,13 +56,11 @@ docs/Model/CheckoutOrderTemplateCustomerInfo.md docs/Model/CheckoutRequest.md docs/Model/CheckoutResponse.md docs/Model/CheckoutsResponse.md -docs/Model/CheckoutsResponseAllOf.md docs/Model/CompanyFiscalInfoAddressResponse.md docs/Model/CompanyFiscalInfoResponse.md docs/Model/CompanyPayoutDestinationResponse.md docs/Model/CompanyResponse.md docs/Model/CreateCustomerFiscalEntitiesResponse.md -docs/Model/CreateCustomerFiscalEntitiesResponseAllOf.md docs/Model/CreateCustomerPaymentMethodsRequest.md docs/Model/CreateCustomerPaymentMethodsResponse.md docs/Model/CreateRiskRulesData.md @@ -77,69 +70,49 @@ docs/Model/CustomerAntifraudInfo.md docs/Model/CustomerAntifraudInfoResponse.md docs/Model/CustomerFiscalEntitiesDataResponse.md docs/Model/CustomerFiscalEntitiesRequest.md -docs/Model/CustomerFiscalEntitiesRequestAddress.md docs/Model/CustomerFiscalEntitiesResponse.md -docs/Model/CustomerFiscalEntitiesResponseAllOf.md docs/Model/CustomerInfo.md docs/Model/CustomerInfoJustCustomerId.md docs/Model/CustomerInfoJustCustomerIdResponse.md docs/Model/CustomerPaymentMethodRequest.md -docs/Model/CustomerPaymentMethods.md docs/Model/CustomerPaymentMethodsData.md docs/Model/CustomerPaymentMethodsRequest.md docs/Model/CustomerPaymentMethodsResponse.md docs/Model/CustomerResponse.md docs/Model/CustomerResponseShippingContacts.md -docs/Model/CustomerResponseShippingContactsAllOf.md docs/Model/CustomerShippingContacts.md docs/Model/CustomerShippingContactsAddress.md docs/Model/CustomerShippingContactsDataResponse.md -docs/Model/CustomerShippingContactsDataResponseAllOf.md docs/Model/CustomerShippingContactsResponse.md docs/Model/CustomerShippingContactsResponseAddress.md docs/Model/CustomerUpdateFiscalEntitiesRequest.md docs/Model/CustomerUpdateShippingContacts.md docs/Model/CustomersResponse.md -docs/Model/CustomersResponseAllOf.md docs/Model/DeleteApiKeysResponse.md -docs/Model/DeleteApiKeysResponseAllOf.md docs/Model/DeletedBlacklistRuleResponse.md docs/Model/DeletedWhitelistRuleResponse.md docs/Model/Details.md docs/Model/DetailsError.md docs/Model/DiscountLinesDataResponse.md docs/Model/DiscountLinesResponse.md -docs/Model/DiscountLinesResponseAllOf.md docs/Model/EmailCheckoutRequest.md docs/Model/Error.md -docs/Model/ErrorAllOf.md docs/Model/EventResponse.md docs/Model/EventsResendResponse.md docs/Model/FiscalEntityAddress.md docs/Model/GetApiKeysResponse.md -docs/Model/GetApiKeysResponseAllOf.md docs/Model/GetChargesResponse.md -docs/Model/GetChargesResponseAllOf.md docs/Model/GetCompaniesResponse.md -docs/Model/GetCompaniesResponseAllOf.md docs/Model/GetCustomerPaymentMethodDataResponse.md docs/Model/GetEventsResponse.md -docs/Model/GetEventsResponseAllOf.md docs/Model/GetOrderDiscountLinesResponse.md -docs/Model/GetOrderDiscountLinesResponseAllOf.md docs/Model/GetOrdersResponse.md docs/Model/GetPaymentMethodResponse.md -docs/Model/GetPaymentMethodResponseAllOf.md docs/Model/GetPlansResponse.md -docs/Model/GetPlansResponseAllOf.md docs/Model/GetTransactionsResponse.md -docs/Model/GetTransactionsResponseAllOf.md docs/Model/GetTransfersResponse.md -docs/Model/GetTransfersResponseAllOf.md docs/Model/GetWebhookKeysResponse.md -docs/Model/GetWebhookKeysResponseAllOf.md docs/Model/GetWebhooksResponse.md -docs/Model/GetWebhooksResponseAllOf.md docs/Model/LogResponse.md docs/Model/LogsResponse.md docs/Model/LogsResponseData.md @@ -147,7 +120,6 @@ docs/Model/OrderCaptureRequest.md docs/Model/OrderCustomerInfoResponse.md docs/Model/OrderDiscountLinesRequest.md docs/Model/OrderFiscalEntityAddressResponse.md -docs/Model/OrderFiscalEntityAddressResponseAllOf.md docs/Model/OrderFiscalEntityRequest.md docs/Model/OrderFiscalEntityResponse.md docs/Model/OrderNextActionResponse.md @@ -157,16 +129,11 @@ docs/Model/OrderRequest.md docs/Model/OrderRequestCustomerInfo.md docs/Model/OrderResponse.md docs/Model/OrderResponseCharges.md -docs/Model/OrderResponseChargesAllOf.md docs/Model/OrderResponseCheckout.md docs/Model/OrderResponseCustomerInfo.md -docs/Model/OrderResponseCustomerInfoAllOf.md docs/Model/OrderResponseDiscountLines.md -docs/Model/OrderResponseDiscountLinesAllOf.md docs/Model/OrderResponseProducts.md -docs/Model/OrderResponseProductsAllOf.md docs/Model/OrderResponseShippingContact.md -docs/Model/OrderResponseShippingContactAllOf.md docs/Model/OrderTaxRequest.md docs/Model/OrderUpdateFiscalEntityRequest.md docs/Model/OrderUpdateRequest.md @@ -178,27 +145,19 @@ docs/Model/PaymentMethod.md docs/Model/PaymentMethodBankTransfer.md docs/Model/PaymentMethodCard.md docs/Model/PaymentMethodCardRequest.md -docs/Model/PaymentMethodCardRequestAllOf.md docs/Model/PaymentMethodCardResponse.md -docs/Model/PaymentMethodCardResponseAllOf.md docs/Model/PaymentMethodCash.md docs/Model/PaymentMethodCashRequest.md -docs/Model/PaymentMethodCashRequestAllOf.md docs/Model/PaymentMethodCashResponse.md -docs/Model/PaymentMethodCashResponseAllOf.md docs/Model/PaymentMethodResponse.md docs/Model/PaymentMethodSpeiRecurrent.md -docs/Model/PaymentMethodSpeiRecurrentAllOf.md docs/Model/PaymentMethodSpeiRequest.md docs/Model/PlanRequest.md docs/Model/PlanResponse.md docs/Model/PlanUpdateRequest.md docs/Model/Product.md docs/Model/ProductDataResponse.md -docs/Model/ProductDataResponseAllOf.md docs/Model/ProductOrderResponse.md -docs/Model/ProductOrderResponseAllOf.md -docs/Model/RiskRules.md docs/Model/RiskRulesData.md docs/Model/RiskRulesList.md docs/Model/ShippingOrderResponse.md @@ -221,12 +180,10 @@ docs/Model/TransfersResponse.md docs/Model/UpdateCustomer.md docs/Model/UpdateCustomerAntifraudInfo.md docs/Model/UpdateCustomerFiscalEntitiesResponse.md -docs/Model/UpdateCustomerFiscalEntitiesResponseAllOf.md docs/Model/UpdateCustomerPaymentMethodsResponse.md docs/Model/UpdateOrderDiscountLinesRequest.md docs/Model/UpdateOrderTaxRequest.md docs/Model/UpdateOrderTaxResponse.md -docs/Model/UpdateOrderTaxResponseAllOf.md docs/Model/UpdatePaymentMethods.md docs/Model/UpdateProduct.md docs/Model/WebhookKeyCreateResponse.md @@ -266,7 +223,6 @@ lib/ApiException.php lib/Configuration.php lib/HeaderSelector.php lib/Model/ApiKeyCreateResponse.php -lib/Model/ApiKeyCreateResponseAllOf.php lib/Model/ApiKeyRequest.php lib/Model/ApiKeyResponse.php lib/Model/ApiKeyResponseOnDelete.php @@ -274,9 +230,6 @@ lib/Model/ApiKeyUpdateRequest.php lib/Model/BalanceCommonField.php lib/Model/BalanceResponse.php lib/Model/BlacklistRuleResponse.php -lib/Model/ChargeDataPaymentMethodBankTransferResponse.php -lib/Model/ChargeDataPaymentMethodCardResponse.php -lib/Model/ChargeDataPaymentMethodCashResponse.php lib/Model/ChargeOrderResponse.php lib/Model/ChargeOrderResponsePaymentMethod.php lib/Model/ChargeRequest.php @@ -285,7 +238,6 @@ lib/Model/ChargeResponse.php lib/Model/ChargeResponseChannel.php lib/Model/ChargeResponsePaymentMethod.php lib/Model/ChargeResponseRefunds.php -lib/Model/ChargeResponseRefundsAllOf.php lib/Model/ChargeResponseRefundsData.php lib/Model/ChargeUpdateRequest.php lib/Model/ChargesDataResponse.php @@ -295,13 +247,11 @@ lib/Model/CheckoutOrderTemplateCustomerInfo.php lib/Model/CheckoutRequest.php lib/Model/CheckoutResponse.php lib/Model/CheckoutsResponse.php -lib/Model/CheckoutsResponseAllOf.php lib/Model/CompanyFiscalInfoAddressResponse.php lib/Model/CompanyFiscalInfoResponse.php lib/Model/CompanyPayoutDestinationResponse.php lib/Model/CompanyResponse.php lib/Model/CreateCustomerFiscalEntitiesResponse.php -lib/Model/CreateCustomerFiscalEntitiesResponseAllOf.php lib/Model/CreateCustomerPaymentMethodsRequest.php lib/Model/CreateCustomerPaymentMethodsResponse.php lib/Model/CreateRiskRulesData.php @@ -311,69 +261,49 @@ lib/Model/CustomerAntifraudInfo.php lib/Model/CustomerAntifraudInfoResponse.php lib/Model/CustomerFiscalEntitiesDataResponse.php lib/Model/CustomerFiscalEntitiesRequest.php -lib/Model/CustomerFiscalEntitiesRequestAddress.php lib/Model/CustomerFiscalEntitiesResponse.php -lib/Model/CustomerFiscalEntitiesResponseAllOf.php lib/Model/CustomerInfo.php lib/Model/CustomerInfoJustCustomerId.php lib/Model/CustomerInfoJustCustomerIdResponse.php lib/Model/CustomerPaymentMethodRequest.php -lib/Model/CustomerPaymentMethods.php lib/Model/CustomerPaymentMethodsData.php lib/Model/CustomerPaymentMethodsRequest.php lib/Model/CustomerPaymentMethodsResponse.php lib/Model/CustomerResponse.php lib/Model/CustomerResponseShippingContacts.php -lib/Model/CustomerResponseShippingContactsAllOf.php lib/Model/CustomerShippingContacts.php lib/Model/CustomerShippingContactsAddress.php lib/Model/CustomerShippingContactsDataResponse.php -lib/Model/CustomerShippingContactsDataResponseAllOf.php lib/Model/CustomerShippingContactsResponse.php lib/Model/CustomerShippingContactsResponseAddress.php lib/Model/CustomerUpdateFiscalEntitiesRequest.php lib/Model/CustomerUpdateShippingContacts.php lib/Model/CustomersResponse.php -lib/Model/CustomersResponseAllOf.php lib/Model/DeleteApiKeysResponse.php -lib/Model/DeleteApiKeysResponseAllOf.php lib/Model/DeletedBlacklistRuleResponse.php lib/Model/DeletedWhitelistRuleResponse.php lib/Model/Details.php lib/Model/DetailsError.php lib/Model/DiscountLinesDataResponse.php lib/Model/DiscountLinesResponse.php -lib/Model/DiscountLinesResponseAllOf.php lib/Model/EmailCheckoutRequest.php lib/Model/Error.php -lib/Model/ErrorAllOf.php lib/Model/EventResponse.php lib/Model/EventsResendResponse.php lib/Model/FiscalEntityAddress.php lib/Model/GetApiKeysResponse.php -lib/Model/GetApiKeysResponseAllOf.php lib/Model/GetChargesResponse.php -lib/Model/GetChargesResponseAllOf.php lib/Model/GetCompaniesResponse.php -lib/Model/GetCompaniesResponseAllOf.php lib/Model/GetCustomerPaymentMethodDataResponse.php lib/Model/GetEventsResponse.php -lib/Model/GetEventsResponseAllOf.php lib/Model/GetOrderDiscountLinesResponse.php -lib/Model/GetOrderDiscountLinesResponseAllOf.php lib/Model/GetOrdersResponse.php lib/Model/GetPaymentMethodResponse.php -lib/Model/GetPaymentMethodResponseAllOf.php lib/Model/GetPlansResponse.php -lib/Model/GetPlansResponseAllOf.php lib/Model/GetTransactionsResponse.php -lib/Model/GetTransactionsResponseAllOf.php lib/Model/GetTransfersResponse.php -lib/Model/GetTransfersResponseAllOf.php lib/Model/GetWebhookKeysResponse.php -lib/Model/GetWebhookKeysResponseAllOf.php lib/Model/GetWebhooksResponse.php -lib/Model/GetWebhooksResponseAllOf.php lib/Model/LogResponse.php lib/Model/LogsResponse.php lib/Model/LogsResponseData.php @@ -382,7 +312,6 @@ lib/Model/OrderCaptureRequest.php lib/Model/OrderCustomerInfoResponse.php lib/Model/OrderDiscountLinesRequest.php lib/Model/OrderFiscalEntityAddressResponse.php -lib/Model/OrderFiscalEntityAddressResponseAllOf.php lib/Model/OrderFiscalEntityRequest.php lib/Model/OrderFiscalEntityResponse.php lib/Model/OrderNextActionResponse.php @@ -392,16 +321,11 @@ lib/Model/OrderRequest.php lib/Model/OrderRequestCustomerInfo.php lib/Model/OrderResponse.php lib/Model/OrderResponseCharges.php -lib/Model/OrderResponseChargesAllOf.php lib/Model/OrderResponseCheckout.php lib/Model/OrderResponseCustomerInfo.php -lib/Model/OrderResponseCustomerInfoAllOf.php lib/Model/OrderResponseDiscountLines.php -lib/Model/OrderResponseDiscountLinesAllOf.php lib/Model/OrderResponseProducts.php -lib/Model/OrderResponseProductsAllOf.php lib/Model/OrderResponseShippingContact.php -lib/Model/OrderResponseShippingContactAllOf.php lib/Model/OrderTaxRequest.php lib/Model/OrderUpdateFiscalEntityRequest.php lib/Model/OrderUpdateRequest.php @@ -413,27 +337,19 @@ lib/Model/PaymentMethod.php lib/Model/PaymentMethodBankTransfer.php lib/Model/PaymentMethodCard.php lib/Model/PaymentMethodCardRequest.php -lib/Model/PaymentMethodCardRequestAllOf.php lib/Model/PaymentMethodCardResponse.php -lib/Model/PaymentMethodCardResponseAllOf.php lib/Model/PaymentMethodCash.php lib/Model/PaymentMethodCashRequest.php -lib/Model/PaymentMethodCashRequestAllOf.php lib/Model/PaymentMethodCashResponse.php -lib/Model/PaymentMethodCashResponseAllOf.php lib/Model/PaymentMethodResponse.php lib/Model/PaymentMethodSpeiRecurrent.php -lib/Model/PaymentMethodSpeiRecurrentAllOf.php lib/Model/PaymentMethodSpeiRequest.php lib/Model/PlanRequest.php lib/Model/PlanResponse.php lib/Model/PlanUpdateRequest.php lib/Model/Product.php lib/Model/ProductDataResponse.php -lib/Model/ProductDataResponseAllOf.php lib/Model/ProductOrderResponse.php -lib/Model/ProductOrderResponseAllOf.php -lib/Model/RiskRules.php lib/Model/RiskRulesData.php lib/Model/RiskRulesList.php lib/Model/ShippingOrderResponse.php @@ -456,12 +372,10 @@ lib/Model/TransfersResponse.php lib/Model/UpdateCustomer.php lib/Model/UpdateCustomerAntifraudInfo.php lib/Model/UpdateCustomerFiscalEntitiesResponse.php -lib/Model/UpdateCustomerFiscalEntitiesResponseAllOf.php lib/Model/UpdateCustomerPaymentMethodsResponse.php lib/Model/UpdateOrderDiscountLinesRequest.php lib/Model/UpdateOrderTaxRequest.php lib/Model/UpdateOrderTaxResponse.php -lib/Model/UpdateOrderTaxResponseAllOf.php lib/Model/UpdatePaymentMethods.php lib/Model/UpdateProduct.php lib/Model/WebhookKeyCreateResponse.php diff --git a/README.md b/README.md index d981bd41..26b99fe5 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,6 @@ Class | Method | HTTP request | Description ## Models - [ApiKeyCreateResponse](docs/Model/ApiKeyCreateResponse.md) -- [ApiKeyCreateResponseAllOf](docs/Model/ApiKeyCreateResponseAllOf.md) - [ApiKeyRequest](docs/Model/ApiKeyRequest.md) - [ApiKeyResponse](docs/Model/ApiKeyResponse.md) - [ApiKeyResponseOnDelete](docs/Model/ApiKeyResponseOnDelete.md) @@ -182,9 +181,6 @@ Class | Method | HTTP request | Description - [BalanceCommonField](docs/Model/BalanceCommonField.md) - [BalanceResponse](docs/Model/BalanceResponse.md) - [BlacklistRuleResponse](docs/Model/BlacklistRuleResponse.md) -- [ChargeDataPaymentMethodBankTransferResponse](docs/Model/ChargeDataPaymentMethodBankTransferResponse.md) -- [ChargeDataPaymentMethodCardResponse](docs/Model/ChargeDataPaymentMethodCardResponse.md) -- [ChargeDataPaymentMethodCashResponse](docs/Model/ChargeDataPaymentMethodCashResponse.md) - [ChargeOrderResponse](docs/Model/ChargeOrderResponse.md) - [ChargeOrderResponsePaymentMethod](docs/Model/ChargeOrderResponsePaymentMethod.md) - [ChargeRequest](docs/Model/ChargeRequest.md) @@ -193,7 +189,6 @@ Class | Method | HTTP request | Description - [ChargeResponseChannel](docs/Model/ChargeResponseChannel.md) - [ChargeResponsePaymentMethod](docs/Model/ChargeResponsePaymentMethod.md) - [ChargeResponseRefunds](docs/Model/ChargeResponseRefunds.md) -- [ChargeResponseRefundsAllOf](docs/Model/ChargeResponseRefundsAllOf.md) - [ChargeResponseRefundsData](docs/Model/ChargeResponseRefundsData.md) - [ChargeUpdateRequest](docs/Model/ChargeUpdateRequest.md) - [ChargesDataResponse](docs/Model/ChargesDataResponse.md) @@ -203,13 +198,11 @@ Class | Method | HTTP request | Description - [CheckoutRequest](docs/Model/CheckoutRequest.md) - [CheckoutResponse](docs/Model/CheckoutResponse.md) - [CheckoutsResponse](docs/Model/CheckoutsResponse.md) -- [CheckoutsResponseAllOf](docs/Model/CheckoutsResponseAllOf.md) - [CompanyFiscalInfoAddressResponse](docs/Model/CompanyFiscalInfoAddressResponse.md) - [CompanyFiscalInfoResponse](docs/Model/CompanyFiscalInfoResponse.md) - [CompanyPayoutDestinationResponse](docs/Model/CompanyPayoutDestinationResponse.md) - [CompanyResponse](docs/Model/CompanyResponse.md) - [CreateCustomerFiscalEntitiesResponse](docs/Model/CreateCustomerFiscalEntitiesResponse.md) -- [CreateCustomerFiscalEntitiesResponseAllOf](docs/Model/CreateCustomerFiscalEntitiesResponseAllOf.md) - [CreateCustomerPaymentMethodsRequest](docs/Model/CreateCustomerPaymentMethodsRequest.md) - [CreateCustomerPaymentMethodsResponse](docs/Model/CreateCustomerPaymentMethodsResponse.md) - [CreateRiskRulesData](docs/Model/CreateRiskRulesData.md) @@ -219,69 +212,49 @@ Class | Method | HTTP request | Description - [CustomerAntifraudInfoResponse](docs/Model/CustomerAntifraudInfoResponse.md) - [CustomerFiscalEntitiesDataResponse](docs/Model/CustomerFiscalEntitiesDataResponse.md) - [CustomerFiscalEntitiesRequest](docs/Model/CustomerFiscalEntitiesRequest.md) -- [CustomerFiscalEntitiesRequestAddress](docs/Model/CustomerFiscalEntitiesRequestAddress.md) - [CustomerFiscalEntitiesResponse](docs/Model/CustomerFiscalEntitiesResponse.md) -- [CustomerFiscalEntitiesResponseAllOf](docs/Model/CustomerFiscalEntitiesResponseAllOf.md) - [CustomerInfo](docs/Model/CustomerInfo.md) - [CustomerInfoJustCustomerId](docs/Model/CustomerInfoJustCustomerId.md) - [CustomerInfoJustCustomerIdResponse](docs/Model/CustomerInfoJustCustomerIdResponse.md) - [CustomerPaymentMethodRequest](docs/Model/CustomerPaymentMethodRequest.md) -- [CustomerPaymentMethods](docs/Model/CustomerPaymentMethods.md) - [CustomerPaymentMethodsData](docs/Model/CustomerPaymentMethodsData.md) - [CustomerPaymentMethodsRequest](docs/Model/CustomerPaymentMethodsRequest.md) - [CustomerPaymentMethodsResponse](docs/Model/CustomerPaymentMethodsResponse.md) - [CustomerResponse](docs/Model/CustomerResponse.md) - [CustomerResponseShippingContacts](docs/Model/CustomerResponseShippingContacts.md) -- [CustomerResponseShippingContactsAllOf](docs/Model/CustomerResponseShippingContactsAllOf.md) - [CustomerShippingContacts](docs/Model/CustomerShippingContacts.md) - [CustomerShippingContactsAddress](docs/Model/CustomerShippingContactsAddress.md) - [CustomerShippingContactsDataResponse](docs/Model/CustomerShippingContactsDataResponse.md) -- [CustomerShippingContactsDataResponseAllOf](docs/Model/CustomerShippingContactsDataResponseAllOf.md) - [CustomerShippingContactsResponse](docs/Model/CustomerShippingContactsResponse.md) - [CustomerShippingContactsResponseAddress](docs/Model/CustomerShippingContactsResponseAddress.md) - [CustomerUpdateFiscalEntitiesRequest](docs/Model/CustomerUpdateFiscalEntitiesRequest.md) - [CustomerUpdateShippingContacts](docs/Model/CustomerUpdateShippingContacts.md) - [CustomersResponse](docs/Model/CustomersResponse.md) -- [CustomersResponseAllOf](docs/Model/CustomersResponseAllOf.md) - [DeleteApiKeysResponse](docs/Model/DeleteApiKeysResponse.md) -- [DeleteApiKeysResponseAllOf](docs/Model/DeleteApiKeysResponseAllOf.md) - [DeletedBlacklistRuleResponse](docs/Model/DeletedBlacklistRuleResponse.md) - [DeletedWhitelistRuleResponse](docs/Model/DeletedWhitelistRuleResponse.md) - [Details](docs/Model/Details.md) - [DetailsError](docs/Model/DetailsError.md) - [DiscountLinesDataResponse](docs/Model/DiscountLinesDataResponse.md) - [DiscountLinesResponse](docs/Model/DiscountLinesResponse.md) -- [DiscountLinesResponseAllOf](docs/Model/DiscountLinesResponseAllOf.md) - [EmailCheckoutRequest](docs/Model/EmailCheckoutRequest.md) - [Error](docs/Model/Error.md) -- [ErrorAllOf](docs/Model/ErrorAllOf.md) - [EventResponse](docs/Model/EventResponse.md) - [EventsResendResponse](docs/Model/EventsResendResponse.md) - [FiscalEntityAddress](docs/Model/FiscalEntityAddress.md) - [GetApiKeysResponse](docs/Model/GetApiKeysResponse.md) -- [GetApiKeysResponseAllOf](docs/Model/GetApiKeysResponseAllOf.md) - [GetChargesResponse](docs/Model/GetChargesResponse.md) -- [GetChargesResponseAllOf](docs/Model/GetChargesResponseAllOf.md) - [GetCompaniesResponse](docs/Model/GetCompaniesResponse.md) -- [GetCompaniesResponseAllOf](docs/Model/GetCompaniesResponseAllOf.md) - [GetCustomerPaymentMethodDataResponse](docs/Model/GetCustomerPaymentMethodDataResponse.md) - [GetEventsResponse](docs/Model/GetEventsResponse.md) -- [GetEventsResponseAllOf](docs/Model/GetEventsResponseAllOf.md) - [GetOrderDiscountLinesResponse](docs/Model/GetOrderDiscountLinesResponse.md) -- [GetOrderDiscountLinesResponseAllOf](docs/Model/GetOrderDiscountLinesResponseAllOf.md) - [GetOrdersResponse](docs/Model/GetOrdersResponse.md) - [GetPaymentMethodResponse](docs/Model/GetPaymentMethodResponse.md) -- [GetPaymentMethodResponseAllOf](docs/Model/GetPaymentMethodResponseAllOf.md) - [GetPlansResponse](docs/Model/GetPlansResponse.md) -- [GetPlansResponseAllOf](docs/Model/GetPlansResponseAllOf.md) - [GetTransactionsResponse](docs/Model/GetTransactionsResponse.md) -- [GetTransactionsResponseAllOf](docs/Model/GetTransactionsResponseAllOf.md) - [GetTransfersResponse](docs/Model/GetTransfersResponse.md) -- [GetTransfersResponseAllOf](docs/Model/GetTransfersResponseAllOf.md) - [GetWebhookKeysResponse](docs/Model/GetWebhookKeysResponse.md) -- [GetWebhookKeysResponseAllOf](docs/Model/GetWebhookKeysResponseAllOf.md) - [GetWebhooksResponse](docs/Model/GetWebhooksResponse.md) -- [GetWebhooksResponseAllOf](docs/Model/GetWebhooksResponseAllOf.md) - [LogResponse](docs/Model/LogResponse.md) - [LogsResponse](docs/Model/LogsResponse.md) - [LogsResponseData](docs/Model/LogsResponseData.md) @@ -289,7 +262,6 @@ Class | Method | HTTP request | Description - [OrderCustomerInfoResponse](docs/Model/OrderCustomerInfoResponse.md) - [OrderDiscountLinesRequest](docs/Model/OrderDiscountLinesRequest.md) - [OrderFiscalEntityAddressResponse](docs/Model/OrderFiscalEntityAddressResponse.md) -- [OrderFiscalEntityAddressResponseAllOf](docs/Model/OrderFiscalEntityAddressResponseAllOf.md) - [OrderFiscalEntityRequest](docs/Model/OrderFiscalEntityRequest.md) - [OrderFiscalEntityResponse](docs/Model/OrderFiscalEntityResponse.md) - [OrderNextActionResponse](docs/Model/OrderNextActionResponse.md) @@ -299,16 +271,11 @@ Class | Method | HTTP request | Description - [OrderRequestCustomerInfo](docs/Model/OrderRequestCustomerInfo.md) - [OrderResponse](docs/Model/OrderResponse.md) - [OrderResponseCharges](docs/Model/OrderResponseCharges.md) -- [OrderResponseChargesAllOf](docs/Model/OrderResponseChargesAllOf.md) - [OrderResponseCheckout](docs/Model/OrderResponseCheckout.md) - [OrderResponseCustomerInfo](docs/Model/OrderResponseCustomerInfo.md) -- [OrderResponseCustomerInfoAllOf](docs/Model/OrderResponseCustomerInfoAllOf.md) - [OrderResponseDiscountLines](docs/Model/OrderResponseDiscountLines.md) -- [OrderResponseDiscountLinesAllOf](docs/Model/OrderResponseDiscountLinesAllOf.md) - [OrderResponseProducts](docs/Model/OrderResponseProducts.md) -- [OrderResponseProductsAllOf](docs/Model/OrderResponseProductsAllOf.md) - [OrderResponseShippingContact](docs/Model/OrderResponseShippingContact.md) -- [OrderResponseShippingContactAllOf](docs/Model/OrderResponseShippingContactAllOf.md) - [OrderTaxRequest](docs/Model/OrderTaxRequest.md) - [OrderUpdateFiscalEntityRequest](docs/Model/OrderUpdateFiscalEntityRequest.md) - [OrderUpdateRequest](docs/Model/OrderUpdateRequest.md) @@ -320,27 +287,19 @@ Class | Method | HTTP request | Description - [PaymentMethodBankTransfer](docs/Model/PaymentMethodBankTransfer.md) - [PaymentMethodCard](docs/Model/PaymentMethodCard.md) - [PaymentMethodCardRequest](docs/Model/PaymentMethodCardRequest.md) -- [PaymentMethodCardRequestAllOf](docs/Model/PaymentMethodCardRequestAllOf.md) - [PaymentMethodCardResponse](docs/Model/PaymentMethodCardResponse.md) -- [PaymentMethodCardResponseAllOf](docs/Model/PaymentMethodCardResponseAllOf.md) - [PaymentMethodCash](docs/Model/PaymentMethodCash.md) - [PaymentMethodCashRequest](docs/Model/PaymentMethodCashRequest.md) -- [PaymentMethodCashRequestAllOf](docs/Model/PaymentMethodCashRequestAllOf.md) - [PaymentMethodCashResponse](docs/Model/PaymentMethodCashResponse.md) -- [PaymentMethodCashResponseAllOf](docs/Model/PaymentMethodCashResponseAllOf.md) - [PaymentMethodResponse](docs/Model/PaymentMethodResponse.md) - [PaymentMethodSpeiRecurrent](docs/Model/PaymentMethodSpeiRecurrent.md) -- [PaymentMethodSpeiRecurrentAllOf](docs/Model/PaymentMethodSpeiRecurrentAllOf.md) - [PaymentMethodSpeiRequest](docs/Model/PaymentMethodSpeiRequest.md) - [PlanRequest](docs/Model/PlanRequest.md) - [PlanResponse](docs/Model/PlanResponse.md) - [PlanUpdateRequest](docs/Model/PlanUpdateRequest.md) - [Product](docs/Model/Product.md) - [ProductDataResponse](docs/Model/ProductDataResponse.md) -- [ProductDataResponseAllOf](docs/Model/ProductDataResponseAllOf.md) - [ProductOrderResponse](docs/Model/ProductOrderResponse.md) -- [ProductOrderResponseAllOf](docs/Model/ProductOrderResponseAllOf.md) -- [RiskRules](docs/Model/RiskRules.md) - [RiskRulesData](docs/Model/RiskRulesData.md) - [RiskRulesList](docs/Model/RiskRulesList.md) - [ShippingOrderResponse](docs/Model/ShippingOrderResponse.md) @@ -363,12 +322,10 @@ Class | Method | HTTP request | Description - [UpdateCustomer](docs/Model/UpdateCustomer.md) - [UpdateCustomerAntifraudInfo](docs/Model/UpdateCustomerAntifraudInfo.md) - [UpdateCustomerFiscalEntitiesResponse](docs/Model/UpdateCustomerFiscalEntitiesResponse.md) -- [UpdateCustomerFiscalEntitiesResponseAllOf](docs/Model/UpdateCustomerFiscalEntitiesResponseAllOf.md) - [UpdateCustomerPaymentMethodsResponse](docs/Model/UpdateCustomerPaymentMethodsResponse.md) - [UpdateOrderDiscountLinesRequest](docs/Model/UpdateOrderDiscountLinesRequest.md) - [UpdateOrderTaxRequest](docs/Model/UpdateOrderTaxRequest.md) - [UpdateOrderTaxResponse](docs/Model/UpdateOrderTaxResponse.md) -- [UpdateOrderTaxResponseAllOf](docs/Model/UpdateOrderTaxResponseAllOf.md) - [UpdatePaymentMethods](docs/Model/UpdatePaymentMethods.md) - [UpdateProduct](docs/Model/UpdateProduct.md) - [WebhookKeyCreateResponse](docs/Model/WebhookKeyCreateResponse.md) diff --git a/docs/Model/ApiKeyCreateResponse.md b/docs/Model/ApiKeyCreateResponse.md index face2e0b..3aa526b0 100644 --- a/docs/Model/ApiKeyCreateResponse.md +++ b/docs/Model/ApiKeyCreateResponse.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**authentication_token** | **string** | It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. | [optional] **active** | **bool** | Indicates if the api key is active | [optional] **created_at** | **int** | Unix timestamp in seconds of when the api key was created | [optional] **updated_at** | **int** | Unix timestamp in seconds of when the api key was last updated | [optional] @@ -16,5 +15,6 @@ Name | Type | Description | Notes **object** | **string** | Object name, value is 'api_key' | [optional] **prefix** | **string** | The first few characters of the authentication_token | [optional] **role** | **string** | Indicates if the api key is private or public | [optional] +**authentication_token** | **string** | It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ApiKeyCreateResponseAllOf.md b/docs/Model/ApiKeyCreateResponseAllOf.md deleted file mode 100644 index 7d7354c1..00000000 --- a/docs/Model/ApiKeyCreateResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # ApiKeyCreateResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authentication_token** | **string** | It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChargeDataPaymentMethodBankTransferResponse.md b/docs/Model/ChargeDataPaymentMethodBankTransferResponse.md deleted file mode 100644 index ac6942e4..00000000 --- a/docs/Model/ChargeDataPaymentMethodBankTransferResponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# # ChargeDataPaymentMethodBankTransferResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bank** | **string** | | [optional] -**clabe** | **string** | | [optional] -**description** | **string** | | [optional] -**executed_at** | **int** | | [optional] -**expires_at** | **int** | | [optional] -**issuing_account_bank** | **string** | | [optional] -**issuing_account_number** | **string** | | [optional] -**issuing_account_holder_name** | **string** | | [optional] -**issuing_account_tax_id** | **string** | | [optional] -**payment_attempts** | **mixed[]** | | [optional] -**receiving_account_holder_name** | **string** | | [optional] -**receiving_account_number** | **string** | | [optional] -**receiving_account_bank** | **string** | | [optional] -**receiving_account_tax_id** | **string** | | [optional] -**reference_number** | **string** | | [optional] -**tracking_code** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChargeDataPaymentMethodCardResponse.md b/docs/Model/ChargeDataPaymentMethodCardResponse.md deleted file mode 100644 index d61f0502..00000000 --- a/docs/Model/ChargeDataPaymentMethodCardResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# # ChargeDataPaymentMethodCardResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_type** | **string** | | [optional] -**auth_code** | **string** | | [optional] -**brand** | **string** | | [optional] -**contract_id** | **string** | Id sent for recurrent charges. | [optional] -**country** | **string** | | [optional] -**exp_month** | **string** | | [optional] -**exp_year** | **string** | | [optional] -**fraud_indicators** | **mixed[]** | | [optional] -**issuer** | **string** | | [optional] -**last4** | **string** | | [optional] -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChargeDataPaymentMethodCashResponse.md b/docs/Model/ChargeDataPaymentMethodCashResponse.md deleted file mode 100644 index effe97a2..00000000 --- a/docs/Model/ChargeDataPaymentMethodCashResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# # ChargeDataPaymentMethodCashResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth_code** | **int** | | [optional] -**cashier_id** | **string** | | [optional] -**reference** | **string** | | [optional] -**barcode_url** | **string** | | [optional] -**expires_at** | **int** | | [optional] -**service_name** | **string** | | [optional] -**store** | **string** | | [optional] -**store_name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChargeResponseRefundsAllOf.md b/docs/Model/ChargeResponseRefundsAllOf.md deleted file mode 100644 index 287e648a..00000000 --- a/docs/Model/ChargeResponseRefundsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # ChargeResponseRefundsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\ChargeResponseRefundsData[]**](ChargeResponseRefundsData.md) | refunds | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CheckoutRequest.md b/docs/Model/CheckoutRequest.md index c312089d..8e6e636e 100644 --- a/docs/Model/CheckoutRequest.md +++ b/docs/Model/CheckoutRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **monthly_installments_options** | **int[]** | | [optional] **name** | **string** | Reason for payment | [optional] **on_demand_enabled** | **bool** | | [optional] +**redirection_time** | **int** | number of seconds to wait before redirecting to the success_url | [optional] **success_url** | **string** | Redirection url back to the site in case of successful payment, applies only to HostedPayment | [optional] **type** | **string** | This field represents the type of checkout | [optional] diff --git a/docs/Model/CheckoutsResponseAllOf.md b/docs/Model/CheckoutsResponseAllOf.md deleted file mode 100644 index 31d2369b..00000000 --- a/docs/Model/CheckoutsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # CheckoutsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CheckoutResponse[]**](CheckoutResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CreateCustomerFiscalEntitiesResponse.md b/docs/Model/CreateCustomerFiscalEntitiesResponse.md index f5a3f4ae..e20dd7c5 100644 --- a/docs/Model/CreateCustomerFiscalEntitiesResponse.md +++ b/docs/Model/CreateCustomerFiscalEntitiesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**\Conekta\Model\CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**\Conekta\Model\CustomerAddress**](CustomerAddress.md) | | **tax_id** | **string** | | [optional] **email** | **string** | | [optional] **phone** | **string** | | [optional] diff --git a/docs/Model/CreateCustomerFiscalEntitiesResponseAllOf.md b/docs/Model/CreateCustomerFiscalEntitiesResponseAllOf.md deleted file mode 100644 index f5cad8c9..00000000 --- a/docs/Model/CreateCustomerFiscalEntitiesResponseAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# # CreateCustomerFiscalEntitiesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | -**object** | **string** | | -**created_at** | **int** | | -**parent_id** | **string** | | [optional] -**default** | **bool** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerFiscalEntitiesDataResponse.md b/docs/Model/CustomerFiscalEntitiesDataResponse.md index 7add39ab..3a58c095 100644 --- a/docs/Model/CustomerFiscalEntitiesDataResponse.md +++ b/docs/Model/CustomerFiscalEntitiesDataResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**\Conekta\Model\CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**\Conekta\Model\CustomerAddress**](CustomerAddress.md) | | **tax_id** | **string** | | [optional] **email** | **string** | | [optional] **phone** | **string** | | [optional] diff --git a/docs/Model/CustomerFiscalEntitiesRequest.md b/docs/Model/CustomerFiscalEntitiesRequest.md index bdc6296e..9ce09d30 100644 --- a/docs/Model/CustomerFiscalEntitiesRequest.md +++ b/docs/Model/CustomerFiscalEntitiesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**\Conekta\Model\CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**\Conekta\Model\CustomerAddress**](CustomerAddress.md) | | **tax_id** | **string** | | [optional] **email** | **string** | | [optional] **phone** | **string** | | [optional] diff --git a/docs/Model/CustomerFiscalEntitiesRequestAddress.md b/docs/Model/CustomerFiscalEntitiesRequestAddress.md deleted file mode 100644 index 1ca0e560..00000000 --- a/docs/Model/CustomerFiscalEntitiesRequestAddress.md +++ /dev/null @@ -1,16 +0,0 @@ -# # CustomerFiscalEntitiesRequestAddress - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**street1** | **string** | | -**street2** | **string** | | [optional] -**postal_code** | **string** | | -**city** | **string** | | -**state** | **string** | | [optional] -**country** | **string** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | [optional] -**residential** | **bool** | | [optional] [default to false] -**external_number** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerFiscalEntitiesResponseAllOf.md b/docs/Model/CustomerFiscalEntitiesResponseAllOf.md deleted file mode 100644 index 77aad331..00000000 --- a/docs/Model/CustomerFiscalEntitiesResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # CustomerFiscalEntitiesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CustomerFiscalEntitiesDataResponse[]**](CustomerFiscalEntitiesDataResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerPaymentMethods.md b/docs/Model/CustomerPaymentMethods.md deleted file mode 100644 index c4bab58d..00000000 --- a/docs/Model/CustomerPaymentMethods.md +++ /dev/null @@ -1,9 +0,0 @@ -# # CustomerPaymentMethods - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CustomerPaymentMethodsData[]**](CustomerPaymentMethodsData.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerResponseShippingContactsAllOf.md b/docs/Model/CustomerResponseShippingContactsAllOf.md deleted file mode 100644 index f7d1116a..00000000 --- a/docs/Model/CustomerResponseShippingContactsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # CustomerResponseShippingContactsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CustomerShippingContactsDataResponse[]**](CustomerShippingContactsDataResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerShippingContactsDataResponseAllOf.md b/docs/Model/CustomerShippingContactsDataResponseAllOf.md deleted file mode 100644 index 0994ccf8..00000000 --- a/docs/Model/CustomerShippingContactsDataResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # CustomerShippingContactsDataResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | -**object** | **string** | | -**created_at** | **int** | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerUpdateFiscalEntitiesRequest.md b/docs/Model/CustomerUpdateFiscalEntitiesRequest.md index 1dc35ed4..14c16a0c 100644 --- a/docs/Model/CustomerUpdateFiscalEntitiesRequest.md +++ b/docs/Model/CustomerUpdateFiscalEntitiesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**\Conekta\Model\CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | [optional] +**address** | [**\Conekta\Model\CustomerAddress**](CustomerAddress.md) | | [optional] **tax_id** | **string** | | [optional] **email** | **string** | | [optional] **phone** | **string** | | [optional] diff --git a/docs/Model/CustomersResponse.md b/docs/Model/CustomersResponse.md index 179bf2ff..37cc0b64 100644 --- a/docs/Model/CustomersResponse.md +++ b/docs/Model/CustomersResponse.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CustomerResponse[]**](CustomerResponse.md) | | [optional] **has_more** | **bool** | Indicates if there are more pages to be requested | **object** | **string** | Object type, in this case is list | **next_page_url** | **string** | URL of the next page. | [optional] **previous_page_url** | **string** | Url of the previous page. | [optional] +**data** | [**\Conekta\Model\CustomerResponse[]**](CustomerResponse.md) | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomersResponseAllOf.md b/docs/Model/CustomersResponseAllOf.md deleted file mode 100644 index ccf00fc4..00000000 --- a/docs/Model/CustomersResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # CustomersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CustomerResponse[]**](CustomerResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DeleteApiKeysResponseAllOf.md b/docs/Model/DeleteApiKeysResponseAllOf.md deleted file mode 100644 index e7eb946c..00000000 --- a/docs/Model/DeleteApiKeysResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # DeleteApiKeysResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deleted** | **bool** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DiscountLinesResponseAllOf.md b/docs/Model/DiscountLinesResponseAllOf.md deleted file mode 100644 index 3cd56bc0..00000000 --- a/docs/Model/DiscountLinesResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # DiscountLinesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | The discount line id | -**object** | **string** | The object name | -**parent_id** | **string** | The order id | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ErrorAllOf.md b/docs/Model/ErrorAllOf.md deleted file mode 100644 index c1918c0b..00000000 --- a/docs/Model/ErrorAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # ErrorAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**log_id** | **string** | log id | [optional] -**type** | **string** | | [optional] -**object** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetApiKeysResponseAllOf.md b/docs/Model/GetApiKeysResponseAllOf.md deleted file mode 100644 index 80539761..00000000 --- a/docs/Model/GetApiKeysResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetApiKeysResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\ApiKeyResponse[]**](ApiKeyResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetChargesResponseAllOf.md b/docs/Model/GetChargesResponseAllOf.md deleted file mode 100644 index 789bfd35..00000000 --- a/docs/Model/GetChargesResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetChargesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\ChargeResponse[]**](ChargeResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetCompaniesResponseAllOf.md b/docs/Model/GetCompaniesResponseAllOf.md deleted file mode 100644 index 81888b85..00000000 --- a/docs/Model/GetCompaniesResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetCompaniesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\CompanyResponse[]**](CompanyResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetEventsResponseAllOf.md b/docs/Model/GetEventsResponseAllOf.md deleted file mode 100644 index 7981bd79..00000000 --- a/docs/Model/GetEventsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetEventsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\EventResponse[]**](EventResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetOrderDiscountLinesResponseAllOf.md b/docs/Model/GetOrderDiscountLinesResponseAllOf.md deleted file mode 100644 index 87880529..00000000 --- a/docs/Model/GetOrderDiscountLinesResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetOrderDiscountLinesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\DiscountLinesResponse[]**](DiscountLinesResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetPaymentMethodResponseAllOf.md b/docs/Model/GetPaymentMethodResponseAllOf.md deleted file mode 100644 index cb14c2ff..00000000 --- a/docs/Model/GetPaymentMethodResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetPaymentMethodResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\GetCustomerPaymentMethodDataResponse[]**](GetCustomerPaymentMethodDataResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetPlansResponseAllOf.md b/docs/Model/GetPlansResponseAllOf.md deleted file mode 100644 index 67bdd9f5..00000000 --- a/docs/Model/GetPlansResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetPlansResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\PlanResponse[]**](PlanResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetTransactionsResponseAllOf.md b/docs/Model/GetTransactionsResponseAllOf.md deleted file mode 100644 index a3ddbd76..00000000 --- a/docs/Model/GetTransactionsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetTransactionsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\TransactionResponse[]**](TransactionResponse.md) | Transactions | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetTransfersResponseAllOf.md b/docs/Model/GetTransfersResponseAllOf.md deleted file mode 100644 index d5e36677..00000000 --- a/docs/Model/GetTransfersResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetTransfersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\TransfersResponse[]**](TransfersResponse.md) | Transfers | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetWebhookKeysResponseAllOf.md b/docs/Model/GetWebhookKeysResponseAllOf.md deleted file mode 100644 index d89bbed9..00000000 --- a/docs/Model/GetWebhookKeysResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetWebhookKeysResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\WebhookKeyResponse[]**](WebhookKeyResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetWebhooksResponseAllOf.md b/docs/Model/GetWebhooksResponseAllOf.md deleted file mode 100644 index 9b730179..00000000 --- a/docs/Model/GetWebhooksResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # GetWebhooksResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\WebhookResponse[]**](WebhookResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderFiscalEntityAddressResponseAllOf.md b/docs/Model/OrderFiscalEntityAddressResponseAllOf.md deleted file mode 100644 index 6740616d..00000000 --- a/docs/Model/OrderFiscalEntityAddressResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # OrderFiscalEntityAddressResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseChargesAllOf.md b/docs/Model/OrderResponseChargesAllOf.md deleted file mode 100644 index 870d9bcc..00000000 --- a/docs/Model/OrderResponseChargesAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # OrderResponseChargesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\ChargesDataResponse[]**](ChargesDataResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseCustomerInfo.md b/docs/Model/OrderResponseCustomerInfo.md index 9a656b9a..8ade84d7 100644 --- a/docs/Model/OrderResponseCustomerInfo.md +++ b/docs/Model/OrderResponseCustomerInfo.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**object** | **string** | | [optional] **customer_custom_reference** | **string** | Custom reference | [optional] **name** | **string** | | [optional] **email** | **string** | | [optional] **phone** | **string** | | [optional] **corporate** | **bool** | | [optional] [default to false] +**object** | **string** | | [optional] **customer_id** | **string** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseCustomerInfoAllOf.md b/docs/Model/OrderResponseCustomerInfoAllOf.md deleted file mode 100644 index 53756cc4..00000000 --- a/docs/Model/OrderResponseCustomerInfoAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # OrderResponseCustomerInfoAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseDiscountLinesAllOf.md b/docs/Model/OrderResponseDiscountLinesAllOf.md deleted file mode 100644 index 87bd1c9a..00000000 --- a/docs/Model/OrderResponseDiscountLinesAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # OrderResponseDiscountLinesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\DiscountLinesDataResponse[]**](DiscountLinesDataResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseProductsAllOf.md b/docs/Model/OrderResponseProductsAllOf.md deleted file mode 100644 index 7dae9b00..00000000 --- a/docs/Model/OrderResponseProductsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # OrderResponseProductsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\ProductDataResponse[]**](ProductDataResponse.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseShippingContact.md b/docs/Model/OrderResponseShippingContact.md index 1d7edbd4..42367ef2 100644 --- a/docs/Model/OrderResponseShippingContact.md +++ b/docs/Model/OrderResponseShippingContact.md @@ -4,16 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created_at** | **int** | | [optional] -**id** | **string** | | [optional] -**object** | **string** | | [optional] **phone** | **string** | | [optional] **receiver** | **string** | | [optional] **between_streets** | **string** | | [optional] **address** | [**\Conekta\Model\CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] **parent_id** | **string** | | [optional] **default** | **bool** | | [optional] +**id** | **string** | | [optional] +**created_at** | **int** | | [optional] **metadata** | **array** | Metadata associated with the shipping contact | [optional] +**object** | **string** | | [optional] **deleted** | **bool** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderResponseShippingContactAllOf.md b/docs/Model/OrderResponseShippingContactAllOf.md deleted file mode 100644 index 4fef4665..00000000 --- a/docs/Model/OrderResponseShippingContactAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # OrderResponseShippingContactAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**created_at** | **int** | | [optional] -**id** | **string** | | [optional] -**object** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentMethodBankTransfer.md b/docs/Model/PaymentMethodBankTransfer.md index 29e202b3..5bd4f40b 100644 --- a/docs/Model/PaymentMethodBankTransfer.md +++ b/docs/Model/PaymentMethodBankTransfer.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **issuing_account_number** | **string** | | [optional] **issuing_account_holder_name** | **string** | | [optional] **issuing_account_tax_id** | **string** | | [optional] -**payment_attempts** | **object[]** | | [optional] +**payment_attempts** | **mixed[]** | | [optional] **receiving_account_holder_name** | **string** | | [optional] **receiving_account_number** | **string** | | [optional] **receiving_account_bank** | **string** | | [optional] diff --git a/docs/Model/PaymentMethodCard.md b/docs/Model/PaymentMethodCard.md index 35f7404a..f8cbf34d 100644 --- a/docs/Model/PaymentMethodCard.md +++ b/docs/Model/PaymentMethodCard.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **country** | **string** | | [optional] **exp_month** | **string** | | [optional] **exp_year** | **string** | | [optional] -**fraud_indicators** | **object[]** | | [optional] +**fraud_indicators** | **mixed[]** | | [optional] **issuer** | **string** | | [optional] **last4** | **string** | | [optional] **name** | **string** | | [optional] diff --git a/docs/Model/PaymentMethodCardRequestAllOf.md b/docs/Model/PaymentMethodCardRequestAllOf.md deleted file mode 100644 index 3630e148..00000000 --- a/docs/Model/PaymentMethodCardRequestAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # PaymentMethodCardRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token_id** | **string** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentMethodCardResponseAllOf.md b/docs/Model/PaymentMethodCardResponseAllOf.md deleted file mode 100644 index c60f6751..00000000 --- a/docs/Model/PaymentMethodCardResponseAllOf.md +++ /dev/null @@ -1,18 +0,0 @@ -# # PaymentMethodCardResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last4** | **string** | | [optional] -**bin** | **string** | | [optional] -**card_type** | **string** | | [optional] -**exp_month** | **string** | | [optional] -**exp_year** | **string** | | [optional] -**brand** | **string** | | [optional] -**name** | **string** | | [optional] -**default** | **bool** | | [optional] -**visible_on_checkout** | **bool** | | [optional] -**payment_source_status** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentMethodCashRequestAllOf.md b/docs/Model/PaymentMethodCashRequestAllOf.md deleted file mode 100644 index 1b31862e..00000000 --- a/docs/Model/PaymentMethodCashRequestAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# # PaymentMethodCashRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expires_at** | **int** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentMethodCashResponseAllOf.md b/docs/Model/PaymentMethodCashResponseAllOf.md deleted file mode 100644 index de0565fc..00000000 --- a/docs/Model/PaymentMethodCashResponseAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# # PaymentMethodCashResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference** | **string** | | [optional] -**barcode** | **string** | | [optional] -**barcode_url** | **string** | | [optional] -**expires_at** | **int** | | [optional] -**provider** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentMethodSpeiRecurrentAllOf.md b/docs/Model/PaymentMethodSpeiRecurrentAllOf.md deleted file mode 100644 index a2ead3f4..00000000 --- a/docs/Model/PaymentMethodSpeiRecurrentAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# # PaymentMethodSpeiRecurrentAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference** | **string** | | [optional] -**expires_at** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ProductDataResponseAllOf.md b/docs/Model/ProductDataResponseAllOf.md deleted file mode 100644 index c1e7fcc3..00000000 --- a/docs/Model/ProductDataResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # ProductDataResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | [optional] -**object** | **string** | | [optional] -**parent_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ProductOrderResponseAllOf.md b/docs/Model/ProductOrderResponseAllOf.md deleted file mode 100644 index 6db71e68..00000000 --- a/docs/Model/ProductOrderResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # ProductOrderResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | [optional] -**object** | **string** | | [optional] -**parent_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/RiskRules.md b/docs/Model/RiskRules.md deleted file mode 100644 index 616674e4..00000000 --- a/docs/Model/RiskRules.md +++ /dev/null @@ -1,9 +0,0 @@ -# # RiskRules - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\Conekta\Model\RiskRulesData[]**](RiskRulesData.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UpdateCustomerFiscalEntitiesResponse.md b/docs/Model/UpdateCustomerFiscalEntitiesResponse.md index e9c36204..5e97e6ce 100644 --- a/docs/Model/UpdateCustomerFiscalEntitiesResponse.md +++ b/docs/Model/UpdateCustomerFiscalEntitiesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**\Conekta\Model\CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**\Conekta\Model\CustomerAddress**](CustomerAddress.md) | | **tax_id** | **string** | | [optional] **email** | **string** | | [optional] **phone** | **string** | | [optional] diff --git a/docs/Model/UpdateCustomerFiscalEntitiesResponseAllOf.md b/docs/Model/UpdateCustomerFiscalEntitiesResponseAllOf.md deleted file mode 100644 index 8ecda15f..00000000 --- a/docs/Model/UpdateCustomerFiscalEntitiesResponseAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# # UpdateCustomerFiscalEntitiesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | -**object** | **string** | | -**created_at** | **int** | | -**parent_id** | **string** | | [optional] -**default** | **bool** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UpdateOrderTaxResponseAllOf.md b/docs/Model/UpdateOrderTaxResponseAllOf.md deleted file mode 100644 index 09a96653..00000000 --- a/docs/Model/UpdateOrderTaxResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # UpdateOrderTaxResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | [optional] -**object** | **string** | | [optional] -**parent_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/lib/Model/ApiKeyCreateResponse.php b/lib/Model/ApiKeyCreateResponse.php index ffc5681b..8d025dc8 100644 --- a/lib/Model/ApiKeyCreateResponse.php +++ b/lib/Model/ApiKeyCreateResponse.php @@ -58,7 +58,6 @@ class ApiKeyCreateResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'authentication_token' => 'string', 'active' => 'bool', 'created_at' => 'int', 'updated_at' => 'int', @@ -69,7 +68,8 @@ class ApiKeyCreateResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'deleted' => 'bool', 'object' => 'string', 'prefix' => 'string', - 'role' => 'string' + 'role' => 'string', + 'authentication_token' => 'string' ]; /** @@ -80,7 +80,6 @@ class ApiKeyCreateResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'authentication_token' => null, 'active' => null, 'created_at' => 'int64', 'updated_at' => 'int64', @@ -91,7 +90,8 @@ class ApiKeyCreateResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'deleted' => null, 'object' => null, 'prefix' => null, - 'role' => null + 'role' => null, + 'authentication_token' => null ]; /** @@ -100,7 +100,6 @@ class ApiKeyCreateResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @var boolean[] */ protected static array $openAPINullables = [ - 'authentication_token' => false, 'active' => false, 'created_at' => false, 'updated_at' => false, @@ -111,7 +110,8 @@ class ApiKeyCreateResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'deleted' => false, 'object' => false, 'prefix' => false, - 'role' => false + 'role' => false, + 'authentication_token' => false ]; /** @@ -200,7 +200,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'authentication_token' => 'authentication_token', 'active' => 'active', 'created_at' => 'created_at', 'updated_at' => 'updated_at', @@ -211,7 +210,8 @@ public function isNullableSetToNull(string $property): bool 'deleted' => 'deleted', 'object' => 'object', 'prefix' => 'prefix', - 'role' => 'role' + 'role' => 'role', + 'authentication_token' => 'authentication_token' ]; /** @@ -220,7 +220,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'authentication_token' => 'setAuthenticationToken', 'active' => 'setActive', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -231,7 +230,8 @@ public function isNullableSetToNull(string $property): bool 'deleted' => 'setDeleted', 'object' => 'setObject', 'prefix' => 'setPrefix', - 'role' => 'setRole' + 'role' => 'setRole', + 'authentication_token' => 'setAuthenticationToken' ]; /** @@ -240,7 +240,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'authentication_token' => 'getAuthenticationToken', 'active' => 'getActive', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -251,7 +250,8 @@ public function isNullableSetToNull(string $property): bool 'deleted' => 'getDeleted', 'object' => 'getObject', 'prefix' => 'getPrefix', - 'role' => 'getRole' + 'role' => 'getRole', + 'authentication_token' => 'getAuthenticationToken' ]; /** @@ -311,7 +311,6 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->setIfExists('authentication_token', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); @@ -323,6 +322,7 @@ public function __construct(array $data = null) $this->setIfExists('object', $data ?? [], null); $this->setIfExists('prefix', $data ?? [], null); $this->setIfExists('role', $data ?? [], null); + $this->setIfExists('authentication_token', $data ?? [], null); } /** @@ -367,33 +367,6 @@ public function valid() } - /** - * Gets authentication_token - * - * @return string|null - */ - public function getAuthenticationToken() - { - return $this->container['authentication_token']; - } - - /** - * Sets authentication_token - * - * @param string|null $authentication_token It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. - * - * @return self - */ - public function setAuthenticationToken($authentication_token) - { - if (is_null($authentication_token)) { - throw new \InvalidArgumentException('non-nullable authentication_token cannot be null'); - } - $this->container['authentication_token'] = $authentication_token; - - return $this; - } - /** * Gets active * @@ -697,6 +670,33 @@ public function setRole($role) return $this; } + + /** + * Gets authentication_token + * + * @return string|null + */ + public function getAuthenticationToken() + { + return $this->container['authentication_token']; + } + + /** + * Sets authentication_token + * + * @param string|null $authentication_token It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. + * + * @return self + */ + public function setAuthenticationToken($authentication_token) + { + if (is_null($authentication_token)) { + throw new \InvalidArgumentException('non-nullable authentication_token cannot be null'); + } + $this->container['authentication_token'] = $authentication_token; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ApiKeyCreateResponseAllOf.php b/lib/Model/ApiKeyCreateResponseAllOf.php deleted file mode 100644 index 6976a691..00000000 --- a/lib/Model/ApiKeyCreateResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class ApiKeyCreateResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'api_key_create_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'authentication_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'authentication_token' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'authentication_token' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'authentication_token' => 'authentication_token' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'authentication_token' => 'setAuthenticationToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'authentication_token' => 'getAuthenticationToken' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('authentication_token', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets authentication_token - * - * @return string|null - */ - public function getAuthenticationToken() - { - return $this->container['authentication_token']; - } - - /** - * Sets authentication_token - * - * @param string|null $authentication_token It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. - * - * @return self - */ - public function setAuthenticationToken($authentication_token) - { - if (is_null($authentication_token)) { - throw new \InvalidArgumentException('non-nullable authentication_token cannot be null'); - } - $this->container['authentication_token'] = $authentication_token; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ChargeDataPaymentMethodBankTransferResponse.php b/lib/Model/ChargeDataPaymentMethodBankTransferResponse.php deleted file mode 100644 index e1e4ffb8..00000000 --- a/lib/Model/ChargeDataPaymentMethodBankTransferResponse.php +++ /dev/null @@ -1,991 +0,0 @@ - - */ -class ChargeDataPaymentMethodBankTransferResponse implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'charge_data_payment_method_bank_transfer_response'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'bank' => 'string', - 'clabe' => 'string', - 'description' => 'string', - 'executed_at' => 'int', - 'expires_at' => 'int', - 'issuing_account_bank' => 'string', - 'issuing_account_number' => 'string', - 'issuing_account_holder_name' => 'string', - 'issuing_account_tax_id' => 'string', - 'payment_attempts' => 'mixed[]', - 'receiving_account_holder_name' => 'string', - 'receiving_account_number' => 'string', - 'receiving_account_bank' => 'string', - 'receiving_account_tax_id' => 'string', - 'reference_number' => 'string', - 'tracking_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'bank' => null, - 'clabe' => null, - 'description' => null, - 'executed_at' => null, - 'expires_at' => 'int64', - 'issuing_account_bank' => null, - 'issuing_account_number' => null, - 'issuing_account_holder_name' => null, - 'issuing_account_tax_id' => null, - 'payment_attempts' => null, - 'receiving_account_holder_name' => null, - 'receiving_account_number' => null, - 'receiving_account_bank' => null, - 'receiving_account_tax_id' => null, - 'reference_number' => null, - 'tracking_code' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'bank' => false, - 'clabe' => false, - 'description' => true, - 'executed_at' => true, - 'expires_at' => false, - 'issuing_account_bank' => true, - 'issuing_account_number' => true, - 'issuing_account_holder_name' => true, - 'issuing_account_tax_id' => true, - 'payment_attempts' => false, - 'receiving_account_holder_name' => true, - 'receiving_account_number' => false, - 'receiving_account_bank' => false, - 'receiving_account_tax_id' => true, - 'reference_number' => true, - 'tracking_code' => true - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'bank' => 'bank', - 'clabe' => 'clabe', - 'description' => 'description', - 'executed_at' => 'executed_at', - 'expires_at' => 'expires_at', - 'issuing_account_bank' => 'issuing_account_bank', - 'issuing_account_number' => 'issuing_account_number', - 'issuing_account_holder_name' => 'issuing_account_holder_name', - 'issuing_account_tax_id' => 'issuing_account_tax_id', - 'payment_attempts' => 'payment_attempts', - 'receiving_account_holder_name' => 'receiving_account_holder_name', - 'receiving_account_number' => 'receiving_account_number', - 'receiving_account_bank' => 'receiving_account_bank', - 'receiving_account_tax_id' => 'receiving_account_tax_id', - 'reference_number' => 'reference_number', - 'tracking_code' => 'tracking_code' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'bank' => 'setBank', - 'clabe' => 'setClabe', - 'description' => 'setDescription', - 'executed_at' => 'setExecutedAt', - 'expires_at' => 'setExpiresAt', - 'issuing_account_bank' => 'setIssuingAccountBank', - 'issuing_account_number' => 'setIssuingAccountNumber', - 'issuing_account_holder_name' => 'setIssuingAccountHolderName', - 'issuing_account_tax_id' => 'setIssuingAccountTaxId', - 'payment_attempts' => 'setPaymentAttempts', - 'receiving_account_holder_name' => 'setReceivingAccountHolderName', - 'receiving_account_number' => 'setReceivingAccountNumber', - 'receiving_account_bank' => 'setReceivingAccountBank', - 'receiving_account_tax_id' => 'setReceivingAccountTaxId', - 'reference_number' => 'setReferenceNumber', - 'tracking_code' => 'setTrackingCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'bank' => 'getBank', - 'clabe' => 'getClabe', - 'description' => 'getDescription', - 'executed_at' => 'getExecutedAt', - 'expires_at' => 'getExpiresAt', - 'issuing_account_bank' => 'getIssuingAccountBank', - 'issuing_account_number' => 'getIssuingAccountNumber', - 'issuing_account_holder_name' => 'getIssuingAccountHolderName', - 'issuing_account_tax_id' => 'getIssuingAccountTaxId', - 'payment_attempts' => 'getPaymentAttempts', - 'receiving_account_holder_name' => 'getReceivingAccountHolderName', - 'receiving_account_number' => 'getReceivingAccountNumber', - 'receiving_account_bank' => 'getReceivingAccountBank', - 'receiving_account_tax_id' => 'getReceivingAccountTaxId', - 'reference_number' => 'getReferenceNumber', - 'tracking_code' => 'getTrackingCode' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('bank', $data ?? [], null); - $this->setIfExists('clabe', $data ?? [], null); - $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('executed_at', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - $this->setIfExists('issuing_account_bank', $data ?? [], null); - $this->setIfExists('issuing_account_number', $data ?? [], null); - $this->setIfExists('issuing_account_holder_name', $data ?? [], null); - $this->setIfExists('issuing_account_tax_id', $data ?? [], null); - $this->setIfExists('payment_attempts', $data ?? [], null); - $this->setIfExists('receiving_account_holder_name', $data ?? [], null); - $this->setIfExists('receiving_account_number', $data ?? [], null); - $this->setIfExists('receiving_account_bank', $data ?? [], null); - $this->setIfExists('receiving_account_tax_id', $data ?? [], null); - $this->setIfExists('reference_number', $data ?? [], null); - $this->setIfExists('tracking_code', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets bank - * - * @return string|null - */ - public function getBank() - { - return $this->container['bank']; - } - - /** - * Sets bank - * - * @param string|null $bank bank - * - * @return self - */ - public function setBank($bank) - { - if (is_null($bank)) { - throw new \InvalidArgumentException('non-nullable bank cannot be null'); - } - $this->container['bank'] = $bank; - - return $this; - } - - /** - * Gets clabe - * - * @return string|null - */ - public function getClabe() - { - return $this->container['clabe']; - } - - /** - * Sets clabe - * - * @param string|null $clabe clabe - * - * @return self - */ - public function setClabe($clabe) - { - if (is_null($clabe)) { - throw new \InvalidArgumentException('non-nullable clabe cannot be null'); - } - $this->container['clabe'] = $clabe; - - return $this; - } - - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description description - * - * @return self - */ - public function setDescription($description) - { - if (is_null($description)) { - array_push($this->openAPINullablesSetToNull, 'description'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('description', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets executed_at - * - * @return int|null - */ - public function getExecutedAt() - { - return $this->container['executed_at']; - } - - /** - * Sets executed_at - * - * @param int|null $executed_at executed_at - * - * @return self - */ - public function setExecutedAt($executed_at) - { - if (is_null($executed_at)) { - array_push($this->openAPINullablesSetToNull, 'executed_at'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('executed_at', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['executed_at'] = $executed_at; - - return $this; - } - - /** - * Gets expires_at - * - * @return int|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param int|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - - /** - * Gets issuing_account_bank - * - * @return string|null - */ - public function getIssuingAccountBank() - { - return $this->container['issuing_account_bank']; - } - - /** - * Sets issuing_account_bank - * - * @param string|null $issuing_account_bank issuing_account_bank - * - * @return self - */ - public function setIssuingAccountBank($issuing_account_bank) - { - if (is_null($issuing_account_bank)) { - array_push($this->openAPINullablesSetToNull, 'issuing_account_bank'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('issuing_account_bank', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['issuing_account_bank'] = $issuing_account_bank; - - return $this; - } - - /** - * Gets issuing_account_number - * - * @return string|null - */ - public function getIssuingAccountNumber() - { - return $this->container['issuing_account_number']; - } - - /** - * Sets issuing_account_number - * - * @param string|null $issuing_account_number issuing_account_number - * - * @return self - */ - public function setIssuingAccountNumber($issuing_account_number) - { - if (is_null($issuing_account_number)) { - array_push($this->openAPINullablesSetToNull, 'issuing_account_number'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('issuing_account_number', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['issuing_account_number'] = $issuing_account_number; - - return $this; - } - - /** - * Gets issuing_account_holder_name - * - * @return string|null - */ - public function getIssuingAccountHolderName() - { - return $this->container['issuing_account_holder_name']; - } - - /** - * Sets issuing_account_holder_name - * - * @param string|null $issuing_account_holder_name issuing_account_holder_name - * - * @return self - */ - public function setIssuingAccountHolderName($issuing_account_holder_name) - { - if (is_null($issuing_account_holder_name)) { - array_push($this->openAPINullablesSetToNull, 'issuing_account_holder_name'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('issuing_account_holder_name', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['issuing_account_holder_name'] = $issuing_account_holder_name; - - return $this; - } - - /** - * Gets issuing_account_tax_id - * - * @return string|null - */ - public function getIssuingAccountTaxId() - { - return $this->container['issuing_account_tax_id']; - } - - /** - * Sets issuing_account_tax_id - * - * @param string|null $issuing_account_tax_id issuing_account_tax_id - * - * @return self - */ - public function setIssuingAccountTaxId($issuing_account_tax_id) - { - if (is_null($issuing_account_tax_id)) { - array_push($this->openAPINullablesSetToNull, 'issuing_account_tax_id'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('issuing_account_tax_id', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['issuing_account_tax_id'] = $issuing_account_tax_id; - - return $this; - } - - /** - * Gets payment_attempts - * - * @return mixed[]|null - */ - public function getPaymentAttempts() - { - return $this->container['payment_attempts']; - } - - /** - * Sets payment_attempts - * - * @param mixed[]|null $payment_attempts payment_attempts - * - * @return self - */ - public function setPaymentAttempts($payment_attempts) - { - if (is_null($payment_attempts)) { - throw new \InvalidArgumentException('non-nullable payment_attempts cannot be null'); - } - $this->container['payment_attempts'] = $payment_attempts; - - return $this; - } - - /** - * Gets receiving_account_holder_name - * - * @return string|null - */ - public function getReceivingAccountHolderName() - { - return $this->container['receiving_account_holder_name']; - } - - /** - * Sets receiving_account_holder_name - * - * @param string|null $receiving_account_holder_name receiving_account_holder_name - * - * @return self - */ - public function setReceivingAccountHolderName($receiving_account_holder_name) - { - if (is_null($receiving_account_holder_name)) { - array_push($this->openAPINullablesSetToNull, 'receiving_account_holder_name'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('receiving_account_holder_name', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['receiving_account_holder_name'] = $receiving_account_holder_name; - - return $this; - } - - /** - * Gets receiving_account_number - * - * @return string|null - */ - public function getReceivingAccountNumber() - { - return $this->container['receiving_account_number']; - } - - /** - * Sets receiving_account_number - * - * @param string|null $receiving_account_number receiving_account_number - * - * @return self - */ - public function setReceivingAccountNumber($receiving_account_number) - { - if (is_null($receiving_account_number)) { - throw new \InvalidArgumentException('non-nullable receiving_account_number cannot be null'); - } - $this->container['receiving_account_number'] = $receiving_account_number; - - return $this; - } - - /** - * Gets receiving_account_bank - * - * @return string|null - */ - public function getReceivingAccountBank() - { - return $this->container['receiving_account_bank']; - } - - /** - * Sets receiving_account_bank - * - * @param string|null $receiving_account_bank receiving_account_bank - * - * @return self - */ - public function setReceivingAccountBank($receiving_account_bank) - { - if (is_null($receiving_account_bank)) { - throw new \InvalidArgumentException('non-nullable receiving_account_bank cannot be null'); - } - $this->container['receiving_account_bank'] = $receiving_account_bank; - - return $this; - } - - /** - * Gets receiving_account_tax_id - * - * @return string|null - */ - public function getReceivingAccountTaxId() - { - return $this->container['receiving_account_tax_id']; - } - - /** - * Sets receiving_account_tax_id - * - * @param string|null $receiving_account_tax_id receiving_account_tax_id - * - * @return self - */ - public function setReceivingAccountTaxId($receiving_account_tax_id) - { - if (is_null($receiving_account_tax_id)) { - array_push($this->openAPINullablesSetToNull, 'receiving_account_tax_id'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('receiving_account_tax_id', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['receiving_account_tax_id'] = $receiving_account_tax_id; - - return $this; - } - - /** - * Gets reference_number - * - * @return string|null - */ - public function getReferenceNumber() - { - return $this->container['reference_number']; - } - - /** - * Sets reference_number - * - * @param string|null $reference_number reference_number - * - * @return self - */ - public function setReferenceNumber($reference_number) - { - if (is_null($reference_number)) { - array_push($this->openAPINullablesSetToNull, 'reference_number'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('reference_number', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['reference_number'] = $reference_number; - - return $this; - } - - /** - * Gets tracking_code - * - * @return string|null - */ - public function getTrackingCode() - { - return $this->container['tracking_code']; - } - - /** - * Sets tracking_code - * - * @param string|null $tracking_code tracking_code - * - * @return self - */ - public function setTrackingCode($tracking_code) - { - if (is_null($tracking_code)) { - array_push($this->openAPINullablesSetToNull, 'tracking_code'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('tracking_code', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['tracking_code'] = $tracking_code; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ChargeDataPaymentMethodCardResponse.php b/lib/Model/ChargeDataPaymentMethodCardResponse.php deleted file mode 100644 index 00a8c162..00000000 --- a/lib/Model/ChargeDataPaymentMethodCardResponse.php +++ /dev/null @@ -1,751 +0,0 @@ - - */ -class ChargeDataPaymentMethodCardResponse implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'charge_data_payment_method_card_response'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'account_type' => 'string', - 'auth_code' => 'string', - 'brand' => 'string', - 'contract_id' => 'string', - 'country' => 'string', - 'exp_month' => 'string', - 'exp_year' => 'string', - 'fraud_indicators' => 'mixed[]', - 'issuer' => 'string', - 'last4' => 'string', - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'account_type' => null, - 'auth_code' => null, - 'brand' => null, - 'contract_id' => null, - 'country' => null, - 'exp_month' => null, - 'exp_year' => null, - 'fraud_indicators' => null, - 'issuer' => null, - 'last4' => null, - 'name' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'account_type' => false, - 'auth_code' => false, - 'brand' => false, - 'contract_id' => false, - 'country' => false, - 'exp_month' => false, - 'exp_year' => false, - 'fraud_indicators' => false, - 'issuer' => false, - 'last4' => false, - 'name' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'account_type' => 'account_type', - 'auth_code' => 'auth_code', - 'brand' => 'brand', - 'contract_id' => 'contract_id', - 'country' => 'country', - 'exp_month' => 'exp_month', - 'exp_year' => 'exp_year', - 'fraud_indicators' => 'fraud_indicators', - 'issuer' => 'issuer', - 'last4' => 'last4', - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'account_type' => 'setAccountType', - 'auth_code' => 'setAuthCode', - 'brand' => 'setBrand', - 'contract_id' => 'setContractId', - 'country' => 'setCountry', - 'exp_month' => 'setExpMonth', - 'exp_year' => 'setExpYear', - 'fraud_indicators' => 'setFraudIndicators', - 'issuer' => 'setIssuer', - 'last4' => 'setLast4', - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'account_type' => 'getAccountType', - 'auth_code' => 'getAuthCode', - 'brand' => 'getBrand', - 'contract_id' => 'getContractId', - 'country' => 'getCountry', - 'exp_month' => 'getExpMonth', - 'exp_year' => 'getExpYear', - 'fraud_indicators' => 'getFraudIndicators', - 'issuer' => 'getIssuer', - 'last4' => 'getLast4', - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('account_type', $data ?? [], null); - $this->setIfExists('auth_code', $data ?? [], null); - $this->setIfExists('brand', $data ?? [], null); - $this->setIfExists('contract_id', $data ?? [], null); - $this->setIfExists('country', $data ?? [], null); - $this->setIfExists('exp_month', $data ?? [], null); - $this->setIfExists('exp_year', $data ?? [], null); - $this->setIfExists('fraud_indicators', $data ?? [], null); - $this->setIfExists('issuer', $data ?? [], null); - $this->setIfExists('last4', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets account_type - * - * @return string|null - */ - public function getAccountType() - { - return $this->container['account_type']; - } - - /** - * Sets account_type - * - * @param string|null $account_type account_type - * - * @return self - */ - public function setAccountType($account_type) - { - if (is_null($account_type)) { - throw new \InvalidArgumentException('non-nullable account_type cannot be null'); - } - $this->container['account_type'] = $account_type; - - return $this; - } - - /** - * Gets auth_code - * - * @return string|null - */ - public function getAuthCode() - { - return $this->container['auth_code']; - } - - /** - * Sets auth_code - * - * @param string|null $auth_code auth_code - * - * @return self - */ - public function setAuthCode($auth_code) - { - if (is_null($auth_code)) { - throw new \InvalidArgumentException('non-nullable auth_code cannot be null'); - } - $this->container['auth_code'] = $auth_code; - - return $this; - } - - /** - * Gets brand - * - * @return string|null - */ - public function getBrand() - { - return $this->container['brand']; - } - - /** - * Sets brand - * - * @param string|null $brand brand - * - * @return self - */ - public function setBrand($brand) - { - if (is_null($brand)) { - throw new \InvalidArgumentException('non-nullable brand cannot be null'); - } - $this->container['brand'] = $brand; - - return $this; - } - - /** - * Gets contract_id - * - * @return string|null - */ - public function getContractId() - { - return $this->container['contract_id']; - } - - /** - * Sets contract_id - * - * @param string|null $contract_id Id sent for recurrent charges. - * - * @return self - */ - public function setContractId($contract_id) - { - if (is_null($contract_id)) { - throw new \InvalidArgumentException('non-nullable contract_id cannot be null'); - } - $this->container['contract_id'] = $contract_id; - - return $this; - } - - /** - * Gets country - * - * @return string|null - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string|null $country country - * - * @return self - */ - public function setCountry($country) - { - if (is_null($country)) { - throw new \InvalidArgumentException('non-nullable country cannot be null'); - } - $this->container['country'] = $country; - - return $this; - } - - /** - * Gets exp_month - * - * @return string|null - */ - public function getExpMonth() - { - return $this->container['exp_month']; - } - - /** - * Sets exp_month - * - * @param string|null $exp_month exp_month - * - * @return self - */ - public function setExpMonth($exp_month) - { - if (is_null($exp_month)) { - throw new \InvalidArgumentException('non-nullable exp_month cannot be null'); - } - $this->container['exp_month'] = $exp_month; - - return $this; - } - - /** - * Gets exp_year - * - * @return string|null - */ - public function getExpYear() - { - return $this->container['exp_year']; - } - - /** - * Sets exp_year - * - * @param string|null $exp_year exp_year - * - * @return self - */ - public function setExpYear($exp_year) - { - if (is_null($exp_year)) { - throw new \InvalidArgumentException('non-nullable exp_year cannot be null'); - } - $this->container['exp_year'] = $exp_year; - - return $this; - } - - /** - * Gets fraud_indicators - * - * @return mixed[]|null - */ - public function getFraudIndicators() - { - return $this->container['fraud_indicators']; - } - - /** - * Sets fraud_indicators - * - * @param mixed[]|null $fraud_indicators fraud_indicators - * - * @return self - */ - public function setFraudIndicators($fraud_indicators) - { - if (is_null($fraud_indicators)) { - throw new \InvalidArgumentException('non-nullable fraud_indicators cannot be null'); - } - $this->container['fraud_indicators'] = $fraud_indicators; - - return $this; - } - - /** - * Gets issuer - * - * @return string|null - */ - public function getIssuer() - { - return $this->container['issuer']; - } - - /** - * Sets issuer - * - * @param string|null $issuer issuer - * - * @return self - */ - public function setIssuer($issuer) - { - if (is_null($issuer)) { - throw new \InvalidArgumentException('non-nullable issuer cannot be null'); - } - $this->container['issuer'] = $issuer; - - return $this; - } - - /** - * Gets last4 - * - * @return string|null - */ - public function getLast4() - { - return $this->container['last4']; - } - - /** - * Sets last4 - * - * @param string|null $last4 last4 - * - * @return self - */ - public function setLast4($last4) - { - if (is_null($last4)) { - throw new \InvalidArgumentException('non-nullable last4 cannot be null'); - } - $this->container['last4'] = $last4; - - return $this; - } - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return self - */ - public function setName($name) - { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ChargeDataPaymentMethodCashResponse.php b/lib/Model/ChargeDataPaymentMethodCashResponse.php deleted file mode 100644 index afc143d3..00000000 --- a/lib/Model/ChargeDataPaymentMethodCashResponse.php +++ /dev/null @@ -1,670 +0,0 @@ - - */ -class ChargeDataPaymentMethodCashResponse implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'charge_data_payment_method_cash_response'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'auth_code' => 'int', - 'cashier_id' => 'string', - 'reference' => 'string', - 'barcode_url' => 'string', - 'expires_at' => 'int', - 'service_name' => 'string', - 'store' => 'string', - 'store_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'auth_code' => null, - 'cashier_id' => null, - 'reference' => null, - 'barcode_url' => null, - 'expires_at' => 'int64', - 'service_name' => null, - 'store' => null, - 'store_name' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'auth_code' => true, - 'cashier_id' => true, - 'reference' => false, - 'barcode_url' => false, - 'expires_at' => false, - 'service_name' => false, - 'store' => true, - 'store_name' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'auth_code' => 'auth_code', - 'cashier_id' => 'cashier_id', - 'reference' => 'reference', - 'barcode_url' => 'barcode_url', - 'expires_at' => 'expires_at', - 'service_name' => 'service_name', - 'store' => 'store', - 'store_name' => 'store_name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'auth_code' => 'setAuthCode', - 'cashier_id' => 'setCashierId', - 'reference' => 'setReference', - 'barcode_url' => 'setBarcodeUrl', - 'expires_at' => 'setExpiresAt', - 'service_name' => 'setServiceName', - 'store' => 'setStore', - 'store_name' => 'setStoreName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'auth_code' => 'getAuthCode', - 'cashier_id' => 'getCashierId', - 'reference' => 'getReference', - 'barcode_url' => 'getBarcodeUrl', - 'expires_at' => 'getExpiresAt', - 'service_name' => 'getServiceName', - 'store' => 'getStore', - 'store_name' => 'getStoreName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('auth_code', $data ?? [], null); - $this->setIfExists('cashier_id', $data ?? [], null); - $this->setIfExists('reference', $data ?? [], null); - $this->setIfExists('barcode_url', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - $this->setIfExists('service_name', $data ?? [], null); - $this->setIfExists('store', $data ?? [], null); - $this->setIfExists('store_name', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets auth_code - * - * @return int|null - */ - public function getAuthCode() - { - return $this->container['auth_code']; - } - - /** - * Sets auth_code - * - * @param int|null $auth_code auth_code - * - * @return self - */ - public function setAuthCode($auth_code) - { - if (is_null($auth_code)) { - array_push($this->openAPINullablesSetToNull, 'auth_code'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('auth_code', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['auth_code'] = $auth_code; - - return $this; - } - - /** - * Gets cashier_id - * - * @return string|null - */ - public function getCashierId() - { - return $this->container['cashier_id']; - } - - /** - * Sets cashier_id - * - * @param string|null $cashier_id cashier_id - * - * @return self - */ - public function setCashierId($cashier_id) - { - if (is_null($cashier_id)) { - array_push($this->openAPINullablesSetToNull, 'cashier_id'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('cashier_id', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['cashier_id'] = $cashier_id; - - return $this; - } - - /** - * Gets reference - * - * @return string|null - */ - public function getReference() - { - return $this->container['reference']; - } - - /** - * Sets reference - * - * @param string|null $reference reference - * - * @return self - */ - public function setReference($reference) - { - if (is_null($reference)) { - throw new \InvalidArgumentException('non-nullable reference cannot be null'); - } - $this->container['reference'] = $reference; - - return $this; - } - - /** - * Gets barcode_url - * - * @return string|null - */ - public function getBarcodeUrl() - { - return $this->container['barcode_url']; - } - - /** - * Sets barcode_url - * - * @param string|null $barcode_url barcode_url - * - * @return self - */ - public function setBarcodeUrl($barcode_url) - { - if (is_null($barcode_url)) { - throw new \InvalidArgumentException('non-nullable barcode_url cannot be null'); - } - $this->container['barcode_url'] = $barcode_url; - - return $this; - } - - /** - * Gets expires_at - * - * @return int|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param int|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - - /** - * Gets service_name - * - * @return string|null - */ - public function getServiceName() - { - return $this->container['service_name']; - } - - /** - * Sets service_name - * - * @param string|null $service_name service_name - * - * @return self - */ - public function setServiceName($service_name) - { - if (is_null($service_name)) { - throw new \InvalidArgumentException('non-nullable service_name cannot be null'); - } - $this->container['service_name'] = $service_name; - - return $this; - } - - /** - * Gets store - * - * @return string|null - */ - public function getStore() - { - return $this->container['store']; - } - - /** - * Sets store - * - * @param string|null $store store - * - * @return self - */ - public function setStore($store) - { - if (is_null($store)) { - array_push($this->openAPINullablesSetToNull, 'store'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('store', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['store'] = $store; - - return $this; - } - - /** - * Gets store_name - * - * @return string|null - */ - public function getStoreName() - { - return $this->container['store_name']; - } - - /** - * Sets store_name - * - * @param string|null $store_name store_name - * - * @return self - */ - public function setStoreName($store_name) - { - if (is_null($store_name)) { - throw new \InvalidArgumentException('non-nullable store_name cannot be null'); - } - $this->container['store_name'] = $store_name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ChargeResponseRefundsAllOf.php b/lib/Model/ChargeResponseRefundsAllOf.php deleted file mode 100644 index ec3e608c..00000000 --- a/lib/Model/ChargeResponseRefundsAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class ChargeResponseRefundsAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'charge_response_refunds_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\ChargeResponseRefundsData[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\ChargeResponseRefundsData[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\ChargeResponseRefundsData[]|null $data refunds - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CheckoutRequest.php b/lib/Model/CheckoutRequest.php index 25bb910c..5e9ceaa4 100644 --- a/lib/Model/CheckoutRequest.php +++ b/lib/Model/CheckoutRequest.php @@ -66,6 +66,7 @@ class CheckoutRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'monthly_installments_options' => 'int[]', 'name' => 'string', 'on_demand_enabled' => 'bool', + 'redirection_time' => 'int', 'success_url' => 'string', 'type' => 'string' ]; @@ -85,6 +86,7 @@ class CheckoutRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'monthly_installments_options' => 'int8', 'name' => null, 'on_demand_enabled' => null, + 'redirection_time' => 'int8', 'success_url' => null, 'type' => null ]; @@ -102,6 +104,7 @@ class CheckoutRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'monthly_installments_options' => false, 'name' => false, 'on_demand_enabled' => false, + 'redirection_time' => false, 'success_url' => false, 'type' => false ]; @@ -199,6 +202,7 @@ public function isNullableSetToNull(string $property): bool 'monthly_installments_options' => 'monthly_installments_options', 'name' => 'name', 'on_demand_enabled' => 'on_demand_enabled', + 'redirection_time' => 'redirection_time', 'success_url' => 'success_url', 'type' => 'type' ]; @@ -216,6 +220,7 @@ public function isNullableSetToNull(string $property): bool 'monthly_installments_options' => 'setMonthlyInstallmentsOptions', 'name' => 'setName', 'on_demand_enabled' => 'setOnDemandEnabled', + 'redirection_time' => 'setRedirectionTime', 'success_url' => 'setSuccessUrl', 'type' => 'setType' ]; @@ -233,6 +238,7 @@ public function isNullableSetToNull(string $property): bool 'monthly_installments_options' => 'getMonthlyInstallmentsOptions', 'name' => 'getName', 'on_demand_enabled' => 'getOnDemandEnabled', + 'redirection_time' => 'getRedirectionTime', 'success_url' => 'getSuccessUrl', 'type' => 'getType' ]; @@ -301,6 +307,7 @@ public function __construct(array $data = null) $this->setIfExists('monthly_installments_options', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('on_demand_enabled', $data ?? [], null); + $this->setIfExists('redirection_time', $data ?? [], null); $this->setIfExists('success_url', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -539,6 +546,33 @@ public function setOnDemandEnabled($on_demand_enabled) return $this; } + /** + * Gets redirection_time + * + * @return int|null + */ + public function getRedirectionTime() + { + return $this->container['redirection_time']; + } + + /** + * Sets redirection_time + * + * @param int|null $redirection_time number of seconds to wait before redirecting to the success_url + * + * @return self + */ + public function setRedirectionTime($redirection_time) + { + if (is_null($redirection_time)) { + throw new \InvalidArgumentException('non-nullable redirection_time cannot be null'); + } + $this->container['redirection_time'] = $redirection_time; + + return $this; + } + /** * Gets success_url * diff --git a/lib/Model/CheckoutsResponseAllOf.php b/lib/Model/CheckoutsResponseAllOf.php deleted file mode 100644 index d7a72193..00000000 --- a/lib/Model/CheckoutsResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class CheckoutsResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'checkouts_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CheckoutResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\CheckoutResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CheckoutResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CreateCustomerFiscalEntitiesResponse.php b/lib/Model/CreateCustomerFiscalEntitiesResponse.php index b158f1d3..cc0a7ed0 100644 --- a/lib/Model/CreateCustomerFiscalEntitiesResponse.php +++ b/lib/Model/CreateCustomerFiscalEntitiesResponse.php @@ -58,7 +58,7 @@ class CreateCustomerFiscalEntitiesResponse implements ModelInterface, ArrayAcces * @var string[] */ protected static $openAPITypes = [ - 'address' => '\Conekta\Model\CustomerFiscalEntitiesRequestAddress', + 'address' => '\Conekta\Model\CustomerAddress', 'tax_id' => 'string', 'email' => 'string', 'phone' => 'string', @@ -375,7 +375,7 @@ public function valid() /** * Gets address * - * @return \Conekta\Model\CustomerFiscalEntitiesRequestAddress + * @return \Conekta\Model\CustomerAddress */ public function getAddress() { @@ -385,7 +385,7 @@ public function getAddress() /** * Sets address * - * @param \Conekta\Model\CustomerFiscalEntitiesRequestAddress $address address + * @param \Conekta\Model\CustomerAddress $address address * * @return self */ diff --git a/lib/Model/CreateCustomerFiscalEntitiesResponseAllOf.php b/lib/Model/CreateCustomerFiscalEntitiesResponseAllOf.php deleted file mode 100644 index 7edb0424..00000000 --- a/lib/Model/CreateCustomerFiscalEntitiesResponseAllOf.php +++ /dev/null @@ -1,555 +0,0 @@ - - */ -class CreateCustomerFiscalEntitiesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'create_customer_fiscal_entities_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'created_at' => 'int', - 'parent_id' => 'string', - 'default' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'created_at' => 'int64', - 'parent_id' => null, - 'default' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'created_at' => false, - 'parent_id' => false, - 'default' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'created_at' => 'created_at', - 'parent_id' => 'parent_id', - 'default' => 'default' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'created_at' => 'setCreatedAt', - 'parent_id' => 'setParentId', - 'default' => 'setDefault' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'created_at' => 'getCreatedAt', - 'parent_id' => 'getParentId', - 'default' => 'getDefault' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - $this->setIfExists('default', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['object'] === null) { - $invalidProperties[] = "'object' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalidProperties[] = "'created_at' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets created_at - * - * @return int - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param int $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets parent_id - * - * @return string|null - */ - public function getParentId() - { - return $this->container['parent_id']; - } - - /** - * Sets parent_id - * - * @param string|null $parent_id parent_id - * - * @return self - */ - public function setParentId($parent_id) - { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); - } - $this->container['parent_id'] = $parent_id; - - return $this; - } - - /** - * Gets default - * - * @return bool|null - */ - public function getDefault() - { - return $this->container['default']; - } - - /** - * Sets default - * - * @param bool|null $default default - * - * @return self - */ - public function setDefault($default) - { - if (is_null($default)) { - throw new \InvalidArgumentException('non-nullable default cannot be null'); - } - $this->container['default'] = $default; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CustomerFiscalEntitiesDataResponse.php b/lib/Model/CustomerFiscalEntitiesDataResponse.php index 9afcde10..875d2877 100644 --- a/lib/Model/CustomerFiscalEntitiesDataResponse.php +++ b/lib/Model/CustomerFiscalEntitiesDataResponse.php @@ -58,7 +58,7 @@ class CustomerFiscalEntitiesDataResponse implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'address' => '\Conekta\Model\CustomerFiscalEntitiesRequestAddress', + 'address' => '\Conekta\Model\CustomerAddress', 'tax_id' => 'string', 'email' => 'string', 'phone' => 'string', @@ -375,7 +375,7 @@ public function valid() /** * Gets address * - * @return \Conekta\Model\CustomerFiscalEntitiesRequestAddress + * @return \Conekta\Model\CustomerAddress */ public function getAddress() { @@ -385,7 +385,7 @@ public function getAddress() /** * Sets address * - * @param \Conekta\Model\CustomerFiscalEntitiesRequestAddress $address address + * @param \Conekta\Model\CustomerAddress $address address * * @return self */ diff --git a/lib/Model/CustomerFiscalEntitiesRequest.php b/lib/Model/CustomerFiscalEntitiesRequest.php index 5cbcda27..f2e01a77 100644 --- a/lib/Model/CustomerFiscalEntitiesRequest.php +++ b/lib/Model/CustomerFiscalEntitiesRequest.php @@ -58,7 +58,7 @@ class CustomerFiscalEntitiesRequest implements ModelInterface, ArrayAccess, \Jso * @var string[] */ protected static $openAPITypes = [ - 'address' => '\Conekta\Model\CustomerFiscalEntitiesRequestAddress', + 'address' => '\Conekta\Model\CustomerAddress', 'tax_id' => 'string', 'email' => 'string', 'phone' => 'string', @@ -331,7 +331,7 @@ public function valid() /** * Gets address * - * @return \Conekta\Model\CustomerFiscalEntitiesRequestAddress + * @return \Conekta\Model\CustomerAddress */ public function getAddress() { @@ -341,7 +341,7 @@ public function getAddress() /** * Sets address * - * @param \Conekta\Model\CustomerFiscalEntitiesRequestAddress $address address + * @param \Conekta\Model\CustomerAddress $address address * * @return self */ diff --git a/lib/Model/CustomerFiscalEntitiesRequestAddress.php b/lib/Model/CustomerFiscalEntitiesRequestAddress.php deleted file mode 100644 index 7f949594..00000000 --- a/lib/Model/CustomerFiscalEntitiesRequestAddress.php +++ /dev/null @@ -1,657 +0,0 @@ - - */ -class CustomerFiscalEntitiesRequestAddress implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'customer_fiscal_entities_request_address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'street1' => 'string', - 'street2' => 'string', - 'postal_code' => 'string', - 'city' => 'string', - 'state' => 'string', - 'country' => 'string', - 'residential' => 'bool', - 'external_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'street1' => null, - 'street2' => null, - 'postal_code' => null, - 'city' => null, - 'state' => null, - 'country' => null, - 'residential' => null, - 'external_number' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'street1' => false, - 'street2' => false, - 'postal_code' => false, - 'city' => false, - 'state' => false, - 'country' => false, - 'residential' => false, - 'external_number' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'street1' => 'street1', - 'street2' => 'street2', - 'postal_code' => 'postal_code', - 'city' => 'city', - 'state' => 'state', - 'country' => 'country', - 'residential' => 'residential', - 'external_number' => 'external_number' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'street1' => 'setStreet1', - 'street2' => 'setStreet2', - 'postal_code' => 'setPostalCode', - 'city' => 'setCity', - 'state' => 'setState', - 'country' => 'setCountry', - 'residential' => 'setResidential', - 'external_number' => 'setExternalNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'street1' => 'getStreet1', - 'street2' => 'getStreet2', - 'postal_code' => 'getPostalCode', - 'city' => 'getCity', - 'state' => 'getState', - 'country' => 'getCountry', - 'residential' => 'getResidential', - 'external_number' => 'getExternalNumber' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('street1', $data ?? [], null); - $this->setIfExists('street2', $data ?? [], null); - $this->setIfExists('postal_code', $data ?? [], null); - $this->setIfExists('city', $data ?? [], null); - $this->setIfExists('state', $data ?? [], null); - $this->setIfExists('country', $data ?? [], null); - $this->setIfExists('residential', $data ?? [], false); - $this->setIfExists('external_number', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['street1'] === null) { - $invalidProperties[] = "'street1' can't be null"; - } - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets street1 - * - * @return string - */ - public function getStreet1() - { - return $this->container['street1']; - } - - /** - * Sets street1 - * - * @param string $street1 street1 - * - * @return self - */ - public function setStreet1($street1) - { - if (is_null($street1)) { - throw new \InvalidArgumentException('non-nullable street1 cannot be null'); - } - $this->container['street1'] = $street1; - - return $this; - } - - /** - * Gets street2 - * - * @return string|null - */ - public function getStreet2() - { - return $this->container['street2']; - } - - /** - * Sets street2 - * - * @param string|null $street2 street2 - * - * @return self - */ - public function setStreet2($street2) - { - if (is_null($street2)) { - throw new \InvalidArgumentException('non-nullable street2 cannot be null'); - } - $this->container['street2'] = $street2; - - return $this; - } - - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code postal_code - * - * @return self - */ - public function setPostalCode($postal_code) - { - if (is_null($postal_code)) { - throw new \InvalidArgumentException('non-nullable postal_code cannot be null'); - } - $this->container['postal_code'] = $postal_code; - - return $this; - } - - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city city - * - * @return self - */ - public function setCity($city) - { - if (is_null($city)) { - throw new \InvalidArgumentException('non-nullable city cannot be null'); - } - $this->container['city'] = $city; - - return $this; - } - - /** - * Gets state - * - * @return string|null - */ - public function getState() - { - return $this->container['state']; - } - - /** - * Sets state - * - * @param string|null $state state - * - * @return self - */ - public function setState($state) - { - if (is_null($state)) { - throw new \InvalidArgumentException('non-nullable state cannot be null'); - } - $this->container['state'] = $state; - - return $this; - } - - /** - * Gets country - * - * @return string|null - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string|null $country this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * - * @return self - */ - public function setCountry($country) - { - if (is_null($country)) { - throw new \InvalidArgumentException('non-nullable country cannot be null'); - } - $this->container['country'] = $country; - - return $this; - } - - /** - * Gets residential - * - * @return bool|null - */ - public function getResidential() - { - return $this->container['residential']; - } - - /** - * Sets residential - * - * @param bool|null $residential residential - * - * @return self - */ - public function setResidential($residential) - { - if (is_null($residential)) { - throw new \InvalidArgumentException('non-nullable residential cannot be null'); - } - $this->container['residential'] = $residential; - - return $this; - } - - /** - * Gets external_number - * - * @return string|null - */ - public function getExternalNumber() - { - return $this->container['external_number']; - } - - /** - * Sets external_number - * - * @param string|null $external_number external_number - * - * @return self - */ - public function setExternalNumber($external_number) - { - if (is_null($external_number)) { - throw new \InvalidArgumentException('non-nullable external_number cannot be null'); - } - $this->container['external_number'] = $external_number; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CustomerFiscalEntitiesResponseAllOf.php b/lib/Model/CustomerFiscalEntitiesResponseAllOf.php deleted file mode 100644 index 89518741..00000000 --- a/lib/Model/CustomerFiscalEntitiesResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class CustomerFiscalEntitiesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'customer_fiscal_entities_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CustomerFiscalEntitiesDataResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\CustomerFiscalEntitiesDataResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CustomerFiscalEntitiesDataResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CustomerPaymentMethods.php b/lib/Model/CustomerPaymentMethods.php deleted file mode 100644 index 5765c45c..00000000 --- a/lib/Model/CustomerPaymentMethods.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class CustomerPaymentMethods implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'customerPaymentMethods'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CustomerPaymentMethodsData[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\CustomerPaymentMethodsData[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CustomerPaymentMethodsData[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CustomerResponseShippingContactsAllOf.php b/lib/Model/CustomerResponseShippingContactsAllOf.php deleted file mode 100644 index eb1e1673..00000000 --- a/lib/Model/CustomerResponseShippingContactsAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class CustomerResponseShippingContactsAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'customer_response_shipping_contacts_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CustomerShippingContactsDataResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\CustomerShippingContactsDataResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CustomerShippingContactsDataResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CustomerShippingContactsDataResponseAllOf.php b/lib/Model/CustomerShippingContactsDataResponseAllOf.php deleted file mode 100644 index 7a63ea75..00000000 --- a/lib/Model/CustomerShippingContactsDataResponseAllOf.php +++ /dev/null @@ -1,487 +0,0 @@ - - */ -class CustomerShippingContactsDataResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'customer_shipping_contacts_data_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'created_at' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'created_at' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'created_at' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'created_at' => 'created_at' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'created_at' => 'setCreatedAt' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'created_at' => 'getCreatedAt' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['object'] === null) { - $invalidProperties[] = "'object' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalidProperties[] = "'created_at' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets created_at - * - * @return int - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param int $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/CustomerUpdateFiscalEntitiesRequest.php b/lib/Model/CustomerUpdateFiscalEntitiesRequest.php index 203ca9e5..a29cbf17 100644 --- a/lib/Model/CustomerUpdateFiscalEntitiesRequest.php +++ b/lib/Model/CustomerUpdateFiscalEntitiesRequest.php @@ -58,7 +58,7 @@ class CustomerUpdateFiscalEntitiesRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'address' => '\Conekta\Model\CustomerFiscalEntitiesRequestAddress', + 'address' => '\Conekta\Model\CustomerAddress', 'tax_id' => 'string', 'email' => 'string', 'phone' => 'string', @@ -328,7 +328,7 @@ public function valid() /** * Gets address * - * @return \Conekta\Model\CustomerFiscalEntitiesRequestAddress|null + * @return \Conekta\Model\CustomerAddress|null */ public function getAddress() { @@ -338,7 +338,7 @@ public function getAddress() /** * Sets address * - * @param \Conekta\Model\CustomerFiscalEntitiesRequestAddress|null $address address + * @param \Conekta\Model\CustomerAddress|null $address address * * @return self */ diff --git a/lib/Model/CustomersResponse.php b/lib/Model/CustomersResponse.php index cb6b7008..adabb3fc 100644 --- a/lib/Model/CustomersResponse.php +++ b/lib/Model/CustomersResponse.php @@ -58,11 +58,11 @@ class CustomersResponse implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CustomerResponse[]', 'has_more' => 'bool', 'object' => 'string', 'next_page_url' => 'string', - 'previous_page_url' => 'string' + 'previous_page_url' => 'string', + 'data' => '\Conekta\Model\CustomerResponse[]' ]; /** @@ -73,11 +73,11 @@ class CustomersResponse implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $openAPIFormats = [ - 'data' => null, 'has_more' => null, 'object' => null, 'next_page_url' => null, - 'previous_page_url' => null + 'previous_page_url' => null, + 'data' => null ]; /** @@ -86,11 +86,11 @@ class CustomersResponse implements ModelInterface, ArrayAccess, \JsonSerializabl * @var boolean[] */ protected static array $openAPINullables = [ - 'data' => false, 'has_more' => false, 'object' => false, 'next_page_url' => true, - 'previous_page_url' => true + 'previous_page_url' => true, + 'data' => false ]; /** @@ -179,11 +179,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'data' => 'data', 'has_more' => 'has_more', 'object' => 'object', 'next_page_url' => 'next_page_url', - 'previous_page_url' => 'previous_page_url' + 'previous_page_url' => 'previous_page_url', + 'data' => 'data' ]; /** @@ -192,11 +192,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'data' => 'setData', 'has_more' => 'setHasMore', 'object' => 'setObject', 'next_page_url' => 'setNextPageUrl', - 'previous_page_url' => 'setPreviousPageUrl' + 'previous_page_url' => 'setPreviousPageUrl', + 'data' => 'setData' ]; /** @@ -205,11 +205,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'data' => 'getData', 'has_more' => 'getHasMore', 'object' => 'getObject', 'next_page_url' => 'getNextPageUrl', - 'previous_page_url' => 'getPreviousPageUrl' + 'previous_page_url' => 'getPreviousPageUrl', + 'data' => 'getData' ]; /** @@ -269,11 +269,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->setIfExists('data', $data ?? [], null); $this->setIfExists('has_more', $data ?? [], null); $this->setIfExists('object', $data ?? [], null); $this->setIfExists('next_page_url', $data ?? [], null); $this->setIfExists('previous_page_url', $data ?? [], null); + $this->setIfExists('data', $data ?? [], null); } /** @@ -324,33 +324,6 @@ public function valid() } - /** - * Gets data - * - * @return \Conekta\Model\CustomerResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CustomerResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** * Gets has_more * @@ -472,6 +445,33 @@ public function setPreviousPageUrl($previous_page_url) return $this; } + + /** + * Gets data + * + * @return \Conekta\Model\CustomerResponse[]|null + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Conekta\Model\CustomerResponse[]|null $data data + * + * @return self + */ + public function setData($data) + { + if (is_null($data)) { + throw new \InvalidArgumentException('non-nullable data cannot be null'); + } + $this->container['data'] = $data; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/CustomersResponseAllOf.php b/lib/Model/CustomersResponseAllOf.php deleted file mode 100644 index 4b8c5c52..00000000 --- a/lib/Model/CustomersResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class CustomersResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'customers_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CustomerResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\CustomerResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CustomerResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/DeleteApiKeysResponseAllOf.php b/lib/Model/DeleteApiKeysResponseAllOf.php deleted file mode 100644 index 7d88fc0a..00000000 --- a/lib/Model/DeleteApiKeysResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class DeleteApiKeysResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'delete_api_keys_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'deleted' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'deleted' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'deleted' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'deleted' => 'deleted' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'deleted' => 'setDeleted' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'deleted' => 'getDeleted' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('deleted', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets deleted - * - * @return bool|null - */ - public function getDeleted() - { - return $this->container['deleted']; - } - - /** - * Sets deleted - * - * @param bool|null $deleted deleted - * - * @return self - */ - public function setDeleted($deleted) - { - if (is_null($deleted)) { - throw new \InvalidArgumentException('non-nullable deleted cannot be null'); - } - $this->container['deleted'] = $deleted; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/DiscountLinesResponseAllOf.php b/lib/Model/DiscountLinesResponseAllOf.php deleted file mode 100644 index 1d74e893..00000000 --- a/lib/Model/DiscountLinesResponseAllOf.php +++ /dev/null @@ -1,487 +0,0 @@ - - */ -class DiscountLinesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'discount_lines_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'parent_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'parent_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'parent_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'parent_id' => 'parent_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'parent_id' => 'setParentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'parent_id' => 'getParentId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['object'] === null) { - $invalidProperties[] = "'object' can't be null"; - } - if ($this->container['parent_id'] === null) { - $invalidProperties[] = "'parent_id' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id The discount line id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string $object The object name - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets parent_id - * - * @return string - */ - public function getParentId() - { - return $this->container['parent_id']; - } - - /** - * Sets parent_id - * - * @param string $parent_id The order id - * - * @return self - */ - public function setParentId($parent_id) - { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); - } - $this->container['parent_id'] = $parent_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ErrorAllOf.php b/lib/Model/ErrorAllOf.php deleted file mode 100644 index 44c1c1c7..00000000 --- a/lib/Model/ErrorAllOf.php +++ /dev/null @@ -1,485 +0,0 @@ - - */ -class ErrorAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'error_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'log_id' => 'string', - 'type' => 'string', - 'object' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'log_id' => null, - 'type' => null, - 'object' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'log_id' => true, - 'type' => false, - 'object' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'log_id' => 'log_id', - 'type' => 'type', - 'object' => 'object' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'log_id' => 'setLogId', - 'type' => 'setType', - 'object' => 'setObject' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'log_id' => 'getLogId', - 'type' => 'getType', - 'object' => 'getObject' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('log_id', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets log_id - * - * @return string|null - */ - public function getLogId() - { - return $this->container['log_id']; - } - - /** - * Sets log_id - * - * @param string|null $log_id log id - * - * @return self - */ - public function setLogId($log_id) - { - if (is_null($log_id)) { - array_push($this->openAPINullablesSetToNull, 'log_id'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('log_id', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } - } - $this->container['log_id'] = $log_id; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetApiKeysResponseAllOf.php b/lib/Model/GetApiKeysResponseAllOf.php deleted file mode 100644 index 5bb7b277..00000000 --- a/lib/Model/GetApiKeysResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetApiKeysResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_api_keys_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\ApiKeyResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\ApiKeyResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\ApiKeyResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetChargesResponseAllOf.php b/lib/Model/GetChargesResponseAllOf.php deleted file mode 100644 index 31dd816e..00000000 --- a/lib/Model/GetChargesResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetChargesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_charges_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\ChargeResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\ChargeResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\ChargeResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetCompaniesResponseAllOf.php b/lib/Model/GetCompaniesResponseAllOf.php deleted file mode 100644 index 11e89b04..00000000 --- a/lib/Model/GetCompaniesResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetCompaniesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_companies_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\CompanyResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\CompanyResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\CompanyResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetEventsResponseAllOf.php b/lib/Model/GetEventsResponseAllOf.php deleted file mode 100644 index 4a61d39a..00000000 --- a/lib/Model/GetEventsResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetEventsResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_events_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\EventResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\EventResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\EventResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetOrderDiscountLinesResponseAllOf.php b/lib/Model/GetOrderDiscountLinesResponseAllOf.php deleted file mode 100644 index c39a95e7..00000000 --- a/lib/Model/GetOrderDiscountLinesResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetOrderDiscountLinesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_order_discount_lines_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\DiscountLinesResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\DiscountLinesResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\DiscountLinesResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetPaymentMethodResponseAllOf.php b/lib/Model/GetPaymentMethodResponseAllOf.php deleted file mode 100644 index 9cccc1ce..00000000 --- a/lib/Model/GetPaymentMethodResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetPaymentMethodResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_payment_method_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\GetCustomerPaymentMethodDataResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\GetCustomerPaymentMethodDataResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\GetCustomerPaymentMethodDataResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetPlansResponseAllOf.php b/lib/Model/GetPlansResponseAllOf.php deleted file mode 100644 index c8022800..00000000 --- a/lib/Model/GetPlansResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetPlansResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_plans_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\PlanResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\PlanResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\PlanResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetTransactionsResponseAllOf.php b/lib/Model/GetTransactionsResponseAllOf.php deleted file mode 100644 index d06ec4ab..00000000 --- a/lib/Model/GetTransactionsResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetTransactionsResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_transactions_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\TransactionResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\TransactionResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\TransactionResponse[]|null $data Transactions - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetTransfersResponseAllOf.php b/lib/Model/GetTransfersResponseAllOf.php deleted file mode 100644 index 89805a7c..00000000 --- a/lib/Model/GetTransfersResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetTransfersResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_transfers_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\TransfersResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\TransfersResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\TransfersResponse[]|null $data Transfers - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetWebhookKeysResponseAllOf.php b/lib/Model/GetWebhookKeysResponseAllOf.php deleted file mode 100644 index 25c63ba6..00000000 --- a/lib/Model/GetWebhookKeysResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetWebhookKeysResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_webhook_keys_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\WebhookKeyResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\WebhookKeyResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\WebhookKeyResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/GetWebhooksResponseAllOf.php b/lib/Model/GetWebhooksResponseAllOf.php deleted file mode 100644 index c280a897..00000000 --- a/lib/Model/GetWebhooksResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class GetWebhooksResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'get_webhooks_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\WebhookResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\WebhookResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\WebhookResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/OrderFiscalEntityAddressResponseAllOf.php b/lib/Model/OrderFiscalEntityAddressResponseAllOf.php deleted file mode 100644 index 509cb2ec..00000000 --- a/lib/Model/OrderFiscalEntityAddressResponseAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class OrderFiscalEntityAddressResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'order_fiscal_entity_address_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'object' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'object' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'object' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'object' => 'object' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'object' => 'setObject' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'object' => 'getObject' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('object', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/OrderResponseChargesAllOf.php b/lib/Model/OrderResponseChargesAllOf.php deleted file mode 100644 index 49be2622..00000000 --- a/lib/Model/OrderResponseChargesAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class OrderResponseChargesAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'order_response_charges_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\ChargesDataResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\ChargesDataResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\ChargesDataResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/OrderResponseCustomerInfo.php b/lib/Model/OrderResponseCustomerInfo.php index 36da2dca..66f118ba 100644 --- a/lib/Model/OrderResponseCustomerInfo.php +++ b/lib/Model/OrderResponseCustomerInfo.php @@ -58,12 +58,12 @@ class OrderResponseCustomerInfo implements ModelInterface, ArrayAccess, \JsonSer * @var string[] */ protected static $openAPITypes = [ - 'object' => 'string', 'customer_custom_reference' => 'string', 'name' => 'string', 'email' => 'string', 'phone' => 'string', 'corporate' => 'bool', + 'object' => 'string', 'customer_id' => 'string' ]; @@ -75,12 +75,12 @@ class OrderResponseCustomerInfo implements ModelInterface, ArrayAccess, \JsonSer * @psalm-var array */ protected static $openAPIFormats = [ - 'object' => null, 'customer_custom_reference' => null, 'name' => null, 'email' => 'email', 'phone' => null, 'corporate' => null, + 'object' => null, 'customer_id' => null ]; @@ -90,12 +90,12 @@ class OrderResponseCustomerInfo implements ModelInterface, ArrayAccess, \JsonSer * @var boolean[] */ protected static array $openAPINullables = [ - 'object' => false, 'customer_custom_reference' => true, 'name' => false, 'email' => false, 'phone' => false, 'corporate' => false, + 'object' => false, 'customer_id' => false ]; @@ -185,12 +185,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'object' => 'object', 'customer_custom_reference' => 'customer_custom_reference', 'name' => 'name', 'email' => 'email', 'phone' => 'phone', 'corporate' => 'corporate', + 'object' => 'object', 'customer_id' => 'customer_id' ]; @@ -200,12 +200,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'object' => 'setObject', 'customer_custom_reference' => 'setCustomerCustomReference', 'name' => 'setName', 'email' => 'setEmail', 'phone' => 'setPhone', 'corporate' => 'setCorporate', + 'object' => 'setObject', 'customer_id' => 'setCustomerId' ]; @@ -215,12 +215,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'object' => 'getObject', 'customer_custom_reference' => 'getCustomerCustomReference', 'name' => 'getName', 'email' => 'getEmail', 'phone' => 'getPhone', 'corporate' => 'getCorporate', + 'object' => 'getObject', 'customer_id' => 'getCustomerId' ]; @@ -281,12 +281,12 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->setIfExists('object', $data ?? [], null); $this->setIfExists('customer_custom_reference', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('phone', $data ?? [], null); $this->setIfExists('corporate', $data ?? [], false); + $this->setIfExists('object', $data ?? [], null); $this->setIfExists('customer_id', $data ?? [], null); } @@ -332,33 +332,6 @@ public function valid() } - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - /** * Gets customer_custom_reference * @@ -501,6 +474,33 @@ public function setCorporate($corporate) return $this; } + /** + * Gets object + * + * @return string|null + */ + public function getObject() + { + return $this->container['object']; + } + + /** + * Sets object + * + * @param string|null $object object + * + * @return self + */ + public function setObject($object) + { + if (is_null($object)) { + throw new \InvalidArgumentException('non-nullable object cannot be null'); + } + $this->container['object'] = $object; + + return $this; + } + /** * Gets customer_id * diff --git a/lib/Model/OrderResponseCustomerInfoAllOf.php b/lib/Model/OrderResponseCustomerInfoAllOf.php deleted file mode 100644 index 63577864..00000000 --- a/lib/Model/OrderResponseCustomerInfoAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class OrderResponseCustomerInfoAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'order_response_customer_info_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'object' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'object' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'object' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'object' => 'object' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'object' => 'setObject' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'object' => 'getObject' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('object', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/OrderResponseDiscountLinesAllOf.php b/lib/Model/OrderResponseDiscountLinesAllOf.php deleted file mode 100644 index 21342910..00000000 --- a/lib/Model/OrderResponseDiscountLinesAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class OrderResponseDiscountLinesAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'order_response_discount_lines_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\DiscountLinesDataResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\DiscountLinesDataResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\DiscountLinesDataResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/OrderResponseProductsAllOf.php b/lib/Model/OrderResponseProductsAllOf.php deleted file mode 100644 index fd873aa4..00000000 --- a/lib/Model/OrderResponseProductsAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class OrderResponseProductsAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'order_response_products_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\ProductDataResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\ProductDataResponse[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\ProductDataResponse[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/OrderResponseShippingContact.php b/lib/Model/OrderResponseShippingContact.php index cd18ab7e..f76f927d 100644 --- a/lib/Model/OrderResponseShippingContact.php +++ b/lib/Model/OrderResponseShippingContact.php @@ -58,16 +58,16 @@ class OrderResponseShippingContact implements ModelInterface, ArrayAccess, \Json * @var string[] */ protected static $openAPITypes = [ - 'created_at' => 'int', - 'id' => 'string', - 'object' => 'string', 'phone' => 'string', 'receiver' => 'string', 'between_streets' => 'string', 'address' => '\Conekta\Model\CustomerShippingContactsResponseAddress', 'parent_id' => 'string', 'default' => 'bool', + 'id' => 'string', + 'created_at' => 'int', 'metadata' => 'array', + 'object' => 'string', 'deleted' => 'bool' ]; @@ -79,16 +79,16 @@ class OrderResponseShippingContact implements ModelInterface, ArrayAccess, \Json * @psalm-var array */ protected static $openAPIFormats = [ - 'created_at' => 'int64', - 'id' => null, - 'object' => null, 'phone' => null, 'receiver' => null, 'between_streets' => null, 'address' => null, 'parent_id' => null, 'default' => null, + 'id' => null, + 'created_at' => 'int64', 'metadata' => null, + 'object' => null, 'deleted' => null ]; @@ -98,16 +98,16 @@ class OrderResponseShippingContact implements ModelInterface, ArrayAccess, \Json * @var boolean[] */ protected static array $openAPINullables = [ - 'created_at' => false, - 'id' => false, - 'object' => false, 'phone' => false, 'receiver' => false, 'between_streets' => true, 'address' => false, 'parent_id' => false, 'default' => false, + 'id' => false, + 'created_at' => false, 'metadata' => false, + 'object' => false, 'deleted' => false ]; @@ -197,16 +197,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'created_at' => 'created_at', - 'id' => 'id', - 'object' => 'object', 'phone' => 'phone', 'receiver' => 'receiver', 'between_streets' => 'between_streets', 'address' => 'address', 'parent_id' => 'parent_id', 'default' => 'default', + 'id' => 'id', + 'created_at' => 'created_at', 'metadata' => 'metadata', + 'object' => 'object', 'deleted' => 'deleted' ]; @@ -216,16 +216,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'created_at' => 'setCreatedAt', - 'id' => 'setId', - 'object' => 'setObject', 'phone' => 'setPhone', 'receiver' => 'setReceiver', 'between_streets' => 'setBetweenStreets', 'address' => 'setAddress', 'parent_id' => 'setParentId', 'default' => 'setDefault', + 'id' => 'setId', + 'created_at' => 'setCreatedAt', 'metadata' => 'setMetadata', + 'object' => 'setObject', 'deleted' => 'setDeleted' ]; @@ -235,16 +235,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'created_at' => 'getCreatedAt', - 'id' => 'getId', - 'object' => 'getObject', 'phone' => 'getPhone', 'receiver' => 'getReceiver', 'between_streets' => 'getBetweenStreets', 'address' => 'getAddress', 'parent_id' => 'getParentId', 'default' => 'getDefault', + 'id' => 'getId', + 'created_at' => 'getCreatedAt', 'metadata' => 'getMetadata', + 'object' => 'getObject', 'deleted' => 'getDeleted' ]; @@ -305,16 +305,16 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); $this->setIfExists('phone', $data ?? [], null); $this->setIfExists('receiver', $data ?? [], null); $this->setIfExists('between_streets', $data ?? [], null); $this->setIfExists('address', $data ?? [], null); $this->setIfExists('parent_id', $data ?? [], null); $this->setIfExists('default', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('object', $data ?? [], null); $this->setIfExists('deleted', $data ?? [], null); } @@ -364,87 +364,6 @@ public function valid() } - /** - * Gets created_at - * - * @return int|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param int|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets id - * - * @return string|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - /** * Gets phone * @@ -614,6 +533,60 @@ public function setDefault($default) return $this; } + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); + } + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets created_at + * + * @return int|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param int|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + /** * Gets metadata * @@ -645,6 +618,33 @@ public function setMetadata($metadata) return $this; } + /** + * Gets object + * + * @return string|null + */ + public function getObject() + { + return $this->container['object']; + } + + /** + * Sets object + * + * @param string|null $object object + * + * @return self + */ + public function setObject($object) + { + if (is_null($object)) { + throw new \InvalidArgumentException('non-nullable object cannot be null'); + } + $this->container['object'] = $object; + + return $this; + } + /** * Gets deleted * diff --git a/lib/Model/OrderResponseShippingContactAllOf.php b/lib/Model/OrderResponseShippingContactAllOf.php deleted file mode 100644 index 7b0a4bb7..00000000 --- a/lib/Model/OrderResponseShippingContactAllOf.php +++ /dev/null @@ -1,478 +0,0 @@ - - */ -class OrderResponseShippingContactAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'order_response_shipping_contact_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'created_at' => 'int', - 'id' => 'string', - 'object' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'created_at' => 'int64', - 'id' => null, - 'object' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'created_at' => false, - 'id' => false, - 'object' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'created_at' => 'created_at', - 'id' => 'id', - 'object' => 'object' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'created_at' => 'setCreatedAt', - 'id' => 'setId', - 'object' => 'setObject' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'created_at' => 'getCreatedAt', - 'id' => 'getId', - 'object' => 'getObject' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets created_at - * - * @return int|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param int|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets id - * - * @return string|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/PaymentMethodBankTransfer.php b/lib/Model/PaymentMethodBankTransfer.php index f1042cd0..702d135d 100644 --- a/lib/Model/PaymentMethodBankTransfer.php +++ b/lib/Model/PaymentMethodBankTransfer.php @@ -69,7 +69,7 @@ class PaymentMethodBankTransfer implements ModelInterface, ArrayAccess, \JsonSer 'issuing_account_number' => 'string', 'issuing_account_holder_name' => 'string', 'issuing_account_tax_id' => 'string', - 'payment_attempts' => 'object[]', + 'payment_attempts' => 'mixed[]', 'receiving_account_holder_name' => 'string', 'receiving_account_number' => 'string', 'receiving_account_bank' => 'string', @@ -754,7 +754,7 @@ public function setIssuingAccountTaxId($issuing_account_tax_id) /** * Gets payment_attempts * - * @return object[]|null + * @return mixed[]|null */ public function getPaymentAttempts() { @@ -764,7 +764,7 @@ public function getPaymentAttempts() /** * Sets payment_attempts * - * @param object[]|null $payment_attempts payment_attempts + * @param mixed[]|null $payment_attempts payment_attempts * * @return self */ diff --git a/lib/Model/PaymentMethodCard.php b/lib/Model/PaymentMethodCard.php index 38de627e..c70b52bc 100644 --- a/lib/Model/PaymentMethodCard.php +++ b/lib/Model/PaymentMethodCard.php @@ -67,7 +67,7 @@ class PaymentMethodCard implements ModelInterface, ArrayAccess, \JsonSerializabl 'country' => 'string', 'exp_month' => 'string', 'exp_year' => 'string', - 'fraud_indicators' => 'object[]', + 'fraud_indicators' => 'mixed[]', 'issuer' => 'string', 'last4' => 'string', 'name' => 'string' @@ -623,7 +623,7 @@ public function setExpYear($exp_year) /** * Gets fraud_indicators * - * @return object[]|null + * @return mixed[]|null */ public function getFraudIndicators() { @@ -633,7 +633,7 @@ public function getFraudIndicators() /** * Sets fraud_indicators * - * @param object[]|null $fraud_indicators fraud_indicators + * @param mixed[]|null $fraud_indicators fraud_indicators * * @return self */ diff --git a/lib/Model/PaymentMethodCardRequestAllOf.php b/lib/Model/PaymentMethodCardRequestAllOf.php deleted file mode 100644 index bbcdc3c1..00000000 --- a/lib/Model/PaymentMethodCardRequestAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class PaymentMethodCardRequestAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'payment_method_card_request_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'token_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'token_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'token_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'token_id' => 'token_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'token_id' => 'setTokenId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'token_id' => 'getTokenId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('token_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets token_id - * - * @return string|null - */ - public function getTokenId() - { - return $this->container['token_id']; - } - - /** - * Sets token_id - * - * @param string|null $token_id Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. - * - * @return self - */ - public function setTokenId($token_id) - { - if (is_null($token_id)) { - throw new \InvalidArgumentException('non-nullable token_id cannot be null'); - } - $this->container['token_id'] = $token_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/PaymentMethodCardResponseAllOf.php b/lib/Model/PaymentMethodCardResponseAllOf.php deleted file mode 100644 index 6719f55c..00000000 --- a/lib/Model/PaymentMethodCardResponseAllOf.php +++ /dev/null @@ -1,717 +0,0 @@ - - */ -class PaymentMethodCardResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'payment_method_card_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'last4' => 'string', - 'bin' => 'string', - 'card_type' => 'string', - 'exp_month' => 'string', - 'exp_year' => 'string', - 'brand' => 'string', - 'name' => 'string', - 'default' => 'bool', - 'visible_on_checkout' => 'bool', - 'payment_source_status' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'last4' => null, - 'bin' => null, - 'card_type' => null, - 'exp_month' => null, - 'exp_year' => null, - 'brand' => null, - 'name' => null, - 'default' => null, - 'visible_on_checkout' => null, - 'payment_source_status' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'last4' => false, - 'bin' => false, - 'card_type' => false, - 'exp_month' => false, - 'exp_year' => false, - 'brand' => false, - 'name' => false, - 'default' => false, - 'visible_on_checkout' => false, - 'payment_source_status' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'last4' => 'last4', - 'bin' => 'bin', - 'card_type' => 'card_type', - 'exp_month' => 'exp_month', - 'exp_year' => 'exp_year', - 'brand' => 'brand', - 'name' => 'name', - 'default' => 'default', - 'visible_on_checkout' => 'visible_on_checkout', - 'payment_source_status' => 'payment_source_status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'last4' => 'setLast4', - 'bin' => 'setBin', - 'card_type' => 'setCardType', - 'exp_month' => 'setExpMonth', - 'exp_year' => 'setExpYear', - 'brand' => 'setBrand', - 'name' => 'setName', - 'default' => 'setDefault', - 'visible_on_checkout' => 'setVisibleOnCheckout', - 'payment_source_status' => 'setPaymentSourceStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'last4' => 'getLast4', - 'bin' => 'getBin', - 'card_type' => 'getCardType', - 'exp_month' => 'getExpMonth', - 'exp_year' => 'getExpYear', - 'brand' => 'getBrand', - 'name' => 'getName', - 'default' => 'getDefault', - 'visible_on_checkout' => 'getVisibleOnCheckout', - 'payment_source_status' => 'getPaymentSourceStatus' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('last4', $data ?? [], null); - $this->setIfExists('bin', $data ?? [], null); - $this->setIfExists('card_type', $data ?? [], null); - $this->setIfExists('exp_month', $data ?? [], null); - $this->setIfExists('exp_year', $data ?? [], null); - $this->setIfExists('brand', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('default', $data ?? [], null); - $this->setIfExists('visible_on_checkout', $data ?? [], null); - $this->setIfExists('payment_source_status', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets last4 - * - * @return string|null - */ - public function getLast4() - { - return $this->container['last4']; - } - - /** - * Sets last4 - * - * @param string|null $last4 last4 - * - * @return self - */ - public function setLast4($last4) - { - if (is_null($last4)) { - throw new \InvalidArgumentException('non-nullable last4 cannot be null'); - } - $this->container['last4'] = $last4; - - return $this; - } - - /** - * Gets bin - * - * @return string|null - */ - public function getBin() - { - return $this->container['bin']; - } - - /** - * Sets bin - * - * @param string|null $bin bin - * - * @return self - */ - public function setBin($bin) - { - if (is_null($bin)) { - throw new \InvalidArgumentException('non-nullable bin cannot be null'); - } - $this->container['bin'] = $bin; - - return $this; - } - - /** - * Gets card_type - * - * @return string|null - */ - public function getCardType() - { - return $this->container['card_type']; - } - - /** - * Sets card_type - * - * @param string|null $card_type card_type - * - * @return self - */ - public function setCardType($card_type) - { - if (is_null($card_type)) { - throw new \InvalidArgumentException('non-nullable card_type cannot be null'); - } - $this->container['card_type'] = $card_type; - - return $this; - } - - /** - * Gets exp_month - * - * @return string|null - */ - public function getExpMonth() - { - return $this->container['exp_month']; - } - - /** - * Sets exp_month - * - * @param string|null $exp_month exp_month - * - * @return self - */ - public function setExpMonth($exp_month) - { - if (is_null($exp_month)) { - throw new \InvalidArgumentException('non-nullable exp_month cannot be null'); - } - $this->container['exp_month'] = $exp_month; - - return $this; - } - - /** - * Gets exp_year - * - * @return string|null - */ - public function getExpYear() - { - return $this->container['exp_year']; - } - - /** - * Sets exp_year - * - * @param string|null $exp_year exp_year - * - * @return self - */ - public function setExpYear($exp_year) - { - if (is_null($exp_year)) { - throw new \InvalidArgumentException('non-nullable exp_year cannot be null'); - } - $this->container['exp_year'] = $exp_year; - - return $this; - } - - /** - * Gets brand - * - * @return string|null - */ - public function getBrand() - { - return $this->container['brand']; - } - - /** - * Sets brand - * - * @param string|null $brand brand - * - * @return self - */ - public function setBrand($brand) - { - if (is_null($brand)) { - throw new \InvalidArgumentException('non-nullable brand cannot be null'); - } - $this->container['brand'] = $brand; - - return $this; - } - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return self - */ - public function setName($name) - { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets default - * - * @return bool|null - */ - public function getDefault() - { - return $this->container['default']; - } - - /** - * Sets default - * - * @param bool|null $default default - * - * @return self - */ - public function setDefault($default) - { - if (is_null($default)) { - throw new \InvalidArgumentException('non-nullable default cannot be null'); - } - $this->container['default'] = $default; - - return $this; - } - - /** - * Gets visible_on_checkout - * - * @return bool|null - */ - public function getVisibleOnCheckout() - { - return $this->container['visible_on_checkout']; - } - - /** - * Sets visible_on_checkout - * - * @param bool|null $visible_on_checkout visible_on_checkout - * - * @return self - */ - public function setVisibleOnCheckout($visible_on_checkout) - { - if (is_null($visible_on_checkout)) { - throw new \InvalidArgumentException('non-nullable visible_on_checkout cannot be null'); - } - $this->container['visible_on_checkout'] = $visible_on_checkout; - - return $this; - } - - /** - * Gets payment_source_status - * - * @return string|null - */ - public function getPaymentSourceStatus() - { - return $this->container['payment_source_status']; - } - - /** - * Sets payment_source_status - * - * @param string|null $payment_source_status payment_source_status - * - * @return self - */ - public function setPaymentSourceStatus($payment_source_status) - { - if (is_null($payment_source_status)) { - throw new \InvalidArgumentException('non-nullable payment_source_status cannot be null'); - } - $this->container['payment_source_status'] = $payment_source_status; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/PaymentMethodCashRequestAllOf.php b/lib/Model/PaymentMethodCashRequestAllOf.php deleted file mode 100644 index d1198dcf..00000000 --- a/lib/Model/PaymentMethodCashRequestAllOf.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class PaymentMethodCashRequestAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'payment_method_cash_request_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'expires_at' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'expires_at' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'expires_at' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'expires_at' => 'expires_at' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'expires_at' => 'setExpiresAt' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'expires_at' => 'getExpiresAt' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('expires_at', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets expires_at - * - * @return int|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param int|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/PaymentMethodCashResponseAllOf.php b/lib/Model/PaymentMethodCashResponseAllOf.php deleted file mode 100644 index d41be0b2..00000000 --- a/lib/Model/PaymentMethodCashResponseAllOf.php +++ /dev/null @@ -1,547 +0,0 @@ - - */ -class PaymentMethodCashResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'payment_method_cash_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reference' => 'string', - 'barcode' => 'string', - 'barcode_url' => 'string', - 'expires_at' => 'int', - 'provider' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reference' => null, - 'barcode' => null, - 'barcode_url' => null, - 'expires_at' => 'int64', - 'provider' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'reference' => false, - 'barcode' => false, - 'barcode_url' => false, - 'expires_at' => false, - 'provider' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reference' => 'reference', - 'barcode' => 'barcode', - 'barcode_url' => 'barcode_url', - 'expires_at' => 'expires_at', - 'provider' => 'provider' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reference' => 'setReference', - 'barcode' => 'setBarcode', - 'barcode_url' => 'setBarcodeUrl', - 'expires_at' => 'setExpiresAt', - 'provider' => 'setProvider' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reference' => 'getReference', - 'barcode' => 'getBarcode', - 'barcode_url' => 'getBarcodeUrl', - 'expires_at' => 'getExpiresAt', - 'provider' => 'getProvider' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('reference', $data ?? [], null); - $this->setIfExists('barcode', $data ?? [], null); - $this->setIfExists('barcode_url', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - $this->setIfExists('provider', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets reference - * - * @return string|null - */ - public function getReference() - { - return $this->container['reference']; - } - - /** - * Sets reference - * - * @param string|null $reference reference - * - * @return self - */ - public function setReference($reference) - { - if (is_null($reference)) { - throw new \InvalidArgumentException('non-nullable reference cannot be null'); - } - $this->container['reference'] = $reference; - - return $this; - } - - /** - * Gets barcode - * - * @return string|null - */ - public function getBarcode() - { - return $this->container['barcode']; - } - - /** - * Sets barcode - * - * @param string|null $barcode barcode - * - * @return self - */ - public function setBarcode($barcode) - { - if (is_null($barcode)) { - throw new \InvalidArgumentException('non-nullable barcode cannot be null'); - } - $this->container['barcode'] = $barcode; - - return $this; - } - - /** - * Gets barcode_url - * - * @return string|null - */ - public function getBarcodeUrl() - { - return $this->container['barcode_url']; - } - - /** - * Sets barcode_url - * - * @param string|null $barcode_url barcode_url - * - * @return self - */ - public function setBarcodeUrl($barcode_url) - { - if (is_null($barcode_url)) { - throw new \InvalidArgumentException('non-nullable barcode_url cannot be null'); - } - $this->container['barcode_url'] = $barcode_url; - - return $this; - } - - /** - * Gets expires_at - * - * @return int|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param int|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - - /** - * Gets provider - * - * @return string|null - */ - public function getProvider() - { - return $this->container['provider']; - } - - /** - * Sets provider - * - * @param string|null $provider provider - * - * @return self - */ - public function setProvider($provider) - { - if (is_null($provider)) { - throw new \InvalidArgumentException('non-nullable provider cannot be null'); - } - $this->container['provider'] = $provider; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/PaymentMethodSpeiRecurrentAllOf.php b/lib/Model/PaymentMethodSpeiRecurrentAllOf.php deleted file mode 100644 index 7ce0462d..00000000 --- a/lib/Model/PaymentMethodSpeiRecurrentAllOf.php +++ /dev/null @@ -1,445 +0,0 @@ - - */ -class PaymentMethodSpeiRecurrentAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'payment_method_spei_recurrent_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reference' => 'string', - 'expires_at' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reference' => null, - 'expires_at' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'reference' => false, - 'expires_at' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reference' => 'reference', - 'expires_at' => 'expires_at' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reference' => 'setReference', - 'expires_at' => 'setExpiresAt' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reference' => 'getReference', - 'expires_at' => 'getExpiresAt' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('reference', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets reference - * - * @return string|null - */ - public function getReference() - { - return $this->container['reference']; - } - - /** - * Sets reference - * - * @param string|null $reference reference - * - * @return self - */ - public function setReference($reference) - { - if (is_null($reference)) { - throw new \InvalidArgumentException('non-nullable reference cannot be null'); - } - $this->container['reference'] = $reference; - - return $this; - } - - /** - * Gets expires_at - * - * @return string|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param string|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ProductDataResponseAllOf.php b/lib/Model/ProductDataResponseAllOf.php deleted file mode 100644 index c4704e9d..00000000 --- a/lib/Model/ProductDataResponseAllOf.php +++ /dev/null @@ -1,478 +0,0 @@ - - */ -class ProductDataResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'product_data_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'parent_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'parent_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'parent_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'parent_id' => 'parent_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'parent_id' => 'setParentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'parent_id' => 'getParentId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets parent_id - * - * @return string|null - */ - public function getParentId() - { - return $this->container['parent_id']; - } - - /** - * Sets parent_id - * - * @param string|null $parent_id parent_id - * - * @return self - */ - public function setParentId($parent_id) - { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); - } - $this->container['parent_id'] = $parent_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/ProductOrderResponseAllOf.php b/lib/Model/ProductOrderResponseAllOf.php deleted file mode 100644 index 9668bd90..00000000 --- a/lib/Model/ProductOrderResponseAllOf.php +++ /dev/null @@ -1,478 +0,0 @@ - - */ -class ProductOrderResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'product_order_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'parent_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'parent_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'parent_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'parent_id' => 'parent_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'parent_id' => 'setParentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'parent_id' => 'getParentId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets parent_id - * - * @return string|null - */ - public function getParentId() - { - return $this->container['parent_id']; - } - - /** - * Sets parent_id - * - * @param string|null $parent_id parent_id - * - * @return self - */ - public function setParentId($parent_id) - { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); - } - $this->container['parent_id'] = $parent_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/RiskRules.php b/lib/Model/RiskRules.php deleted file mode 100644 index f0737acb..00000000 --- a/lib/Model/RiskRules.php +++ /dev/null @@ -1,410 +0,0 @@ - - */ -class RiskRules implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'risk_rules'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\Conekta\Model\RiskRulesData[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'data' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data' => 'getData' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('data', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets data - * - * @return \Conekta\Model\RiskRulesData[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Conekta\Model\RiskRulesData[]|null $data data - * - * @return self - */ - public function setData($data) - { - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - $this->container['data'] = $data; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/UpdateCustomerFiscalEntitiesResponse.php b/lib/Model/UpdateCustomerFiscalEntitiesResponse.php index a840886a..5b30d87f 100644 --- a/lib/Model/UpdateCustomerFiscalEntitiesResponse.php +++ b/lib/Model/UpdateCustomerFiscalEntitiesResponse.php @@ -58,7 +58,7 @@ class UpdateCustomerFiscalEntitiesResponse implements ModelInterface, ArrayAcces * @var string[] */ protected static $openAPITypes = [ - 'address' => '\Conekta\Model\CustomerFiscalEntitiesRequestAddress', + 'address' => '\Conekta\Model\CustomerAddress', 'tax_id' => 'string', 'email' => 'string', 'phone' => 'string', @@ -375,7 +375,7 @@ public function valid() /** * Gets address * - * @return \Conekta\Model\CustomerFiscalEntitiesRequestAddress + * @return \Conekta\Model\CustomerAddress */ public function getAddress() { @@ -385,7 +385,7 @@ public function getAddress() /** * Sets address * - * @param \Conekta\Model\CustomerFiscalEntitiesRequestAddress $address address + * @param \Conekta\Model\CustomerAddress $address address * * @return self */ diff --git a/lib/Model/UpdateCustomerFiscalEntitiesResponseAllOf.php b/lib/Model/UpdateCustomerFiscalEntitiesResponseAllOf.php deleted file mode 100644 index 3a436dff..00000000 --- a/lib/Model/UpdateCustomerFiscalEntitiesResponseAllOf.php +++ /dev/null @@ -1,555 +0,0 @@ - - */ -class UpdateCustomerFiscalEntitiesResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'update_customer_fiscal_entities_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'created_at' => 'int', - 'parent_id' => 'string', - 'default' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'created_at' => 'int64', - 'parent_id' => null, - 'default' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'created_at' => false, - 'parent_id' => false, - 'default' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'created_at' => 'created_at', - 'parent_id' => 'parent_id', - 'default' => 'default' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'created_at' => 'setCreatedAt', - 'parent_id' => 'setParentId', - 'default' => 'setDefault' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'created_at' => 'getCreatedAt', - 'parent_id' => 'getParentId', - 'default' => 'getDefault' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - $this->setIfExists('default', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['object'] === null) { - $invalidProperties[] = "'object' can't be null"; - } - if ($this->container['created_at'] === null) { - $invalidProperties[] = "'created_at' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets created_at - * - * @return int - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param int $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets parent_id - * - * @return string|null - */ - public function getParentId() - { - return $this->container['parent_id']; - } - - /** - * Sets parent_id - * - * @param string|null $parent_id parent_id - * - * @return self - */ - public function setParentId($parent_id) - { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); - } - $this->container['parent_id'] = $parent_id; - - return $this; - } - - /** - * Gets default - * - * @return bool|null - */ - public function getDefault() - { - return $this->container['default']; - } - - /** - * Sets default - * - * @param bool|null $default default - * - * @return self - */ - public function setDefault($default) - { - if (is_null($default)) { - throw new \InvalidArgumentException('non-nullable default cannot be null'); - } - $this->container['default'] = $default; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/UpdateOrderTaxResponseAllOf.php b/lib/Model/UpdateOrderTaxResponseAllOf.php deleted file mode 100644 index e8709727..00000000 --- a/lib/Model/UpdateOrderTaxResponseAllOf.php +++ /dev/null @@ -1,478 +0,0 @@ - - */ -class UpdateOrderTaxResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'update_order_tax_response_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'object' => 'string', - 'parent_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'object' => null, - 'parent_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'object' => false, - 'parent_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'object' => 'object', - 'parent_id' => 'parent_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'object' => 'setObject', - 'parent_id' => 'setParentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'object' => 'getObject', - 'parent_id' => 'getParentId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets object - * - * @return string|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param string|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets parent_id - * - * @return string|null - */ - public function getParentId() - { - return $this->container['parent_id']; - } - - /** - * Sets parent_id - * - * @param string|null $parent_id parent_id - * - * @return self - */ - public function setParentId($parent_id) - { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); - } - $this->container['parent_id'] = $parent_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - -