diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 3dd8ea5..aaa1395 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -13,7 +13,7 @@ jobs: test: strategy: matrix: - sdk: [2.15.1, 2.16.2, 2.17.7, 2.18.7, 2.19.6] + sdk: [2.15.1, 2.16.2, 2.17.7, 2.18.7, 2.19.6, 3.0.7, 3.1.5, 3.2.6] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,7 +25,7 @@ jobs: - name: Run Mockoon CLI uses: mockoon/cli-action@v1 with: - version: 'latest' + version: '6.0.1' data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json' port: 3000 diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index be8db61..1ba65ec 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -7,7 +7,6 @@ analysis_options.yaml conekta.png doc/AntifraudApi.md doc/ApiKeyCreateResponse.md -doc/ApiKeyCreateResponseAllOf.md doc/ApiKeyRequest.md doc/ApiKeyResponse.md doc/ApiKeyResponseOnDelete.md @@ -17,9 +16,6 @@ doc/BalanceCommonField.md doc/BalanceResponse.md doc/BalancesApi.md doc/BlacklistRuleResponse.md -doc/ChargeDataPaymentMethodBankTransferResponse.md -doc/ChargeDataPaymentMethodCardResponse.md -doc/ChargeDataPaymentMethodCashResponse.md doc/ChargeOrderResponse.md doc/ChargeOrderResponsePaymentMethod.md doc/ChargeRequest.md @@ -28,7 +24,6 @@ doc/ChargeResponse.md doc/ChargeResponseChannel.md doc/ChargeResponsePaymentMethod.md doc/ChargeResponseRefunds.md -doc/ChargeResponseRefundsAllOf.md doc/ChargeResponseRefundsData.md doc/ChargeUpdateRequest.md doc/ChargesApi.md @@ -39,14 +34,12 @@ doc/CheckoutOrderTemplateCustomerInfo.md doc/CheckoutRequest.md doc/CheckoutResponse.md doc/CheckoutsResponse.md -doc/CheckoutsResponseAllOf.md doc/CompaniesApi.md doc/CompanyFiscalInfoAddressResponse.md doc/CompanyFiscalInfoResponse.md doc/CompanyPayoutDestinationResponse.md doc/CompanyResponse.md doc/CreateCustomerFiscalEntitiesResponse.md -doc/CreateCustomerFiscalEntitiesResponseAllOf.md doc/CreateCustomerPaymentMethodsRequest.md doc/CreateCustomerPaymentMethodsResponse.md doc/CreateRiskRulesData.md @@ -56,72 +49,53 @@ doc/CustomerAntifraudInfo.md doc/CustomerAntifraudInfoResponse.md doc/CustomerFiscalEntitiesDataResponse.md doc/CustomerFiscalEntitiesRequest.md -doc/CustomerFiscalEntitiesRequestAddress.md doc/CustomerFiscalEntitiesResponse.md -doc/CustomerFiscalEntitiesResponseAllOf.md doc/CustomerInfo.md doc/CustomerInfoJustCustomerId.md doc/CustomerInfoJustCustomerIdResponse.md doc/CustomerPaymentMethodRequest.md -doc/CustomerPaymentMethods.md doc/CustomerPaymentMethodsData.md doc/CustomerPaymentMethodsRequest.md doc/CustomerPaymentMethodsResponse.md doc/CustomerResponse.md doc/CustomerResponseShippingContacts.md -doc/CustomerResponseShippingContactsAllOf.md doc/CustomerShippingContacts.md doc/CustomerShippingContactsAddress.md doc/CustomerShippingContactsDataResponse.md -doc/CustomerShippingContactsDataResponseAllOf.md doc/CustomerShippingContactsResponse.md doc/CustomerShippingContactsResponseAddress.md doc/CustomerUpdateFiscalEntitiesRequest.md doc/CustomerUpdateShippingContacts.md doc/CustomersApi.md doc/CustomersResponse.md -doc/CustomersResponseAllOf.md doc/DeleteApiKeysResponse.md -doc/DeleteApiKeysResponseAllOf.md doc/DeletedBlacklistRuleResponse.md doc/DeletedWhitelistRuleResponse.md doc/Details.md doc/DetailsError.md doc/DiscountLinesDataResponse.md doc/DiscountLinesResponse.md -doc/DiscountLinesResponseAllOf.md doc/DiscountsApi.md doc/EmailCheckoutRequest.md doc/Error.md -doc/ErrorAllOf.md doc/EventResponse.md +doc/EventTypes.md doc/EventsApi.md doc/EventsResendResponse.md doc/FiscalEntityAddress.md doc/GetApiKeysResponse.md -doc/GetApiKeysResponseAllOf.md doc/GetChargesResponse.md -doc/GetChargesResponseAllOf.md doc/GetCompaniesResponse.md -doc/GetCompaniesResponseAllOf.md doc/GetCustomerPaymentMethodDataResponse.md doc/GetEventsResponse.md -doc/GetEventsResponseAllOf.md doc/GetOrderDiscountLinesResponse.md -doc/GetOrderDiscountLinesResponseAllOf.md doc/GetOrdersResponse.md doc/GetPaymentMethodResponse.md -doc/GetPaymentMethodResponseAllOf.md doc/GetPlansResponse.md -doc/GetPlansResponseAllOf.md doc/GetTransactionsResponse.md -doc/GetTransactionsResponseAllOf.md doc/GetTransfersResponse.md -doc/GetTransfersResponseAllOf.md doc/GetWebhookKeysResponse.md -doc/GetWebhookKeysResponseAllOf.md doc/GetWebhooksResponse.md -doc/GetWebhooksResponseAllOf.md doc/LogResponse.md doc/LogsApi.md doc/LogsResponse.md @@ -130,7 +104,6 @@ doc/OrderCaptureRequest.md doc/OrderCustomerInfoResponse.md doc/OrderDiscountLinesRequest.md doc/OrderFiscalEntityAddressResponse.md -doc/OrderFiscalEntityAddressResponseAllOf.md doc/OrderFiscalEntityRequest.md doc/OrderFiscalEntityResponse.md doc/OrderNextActionResponse.md @@ -140,16 +113,11 @@ doc/OrderRequest.md doc/OrderRequestCustomerInfo.md doc/OrderResponse.md doc/OrderResponseCharges.md -doc/OrderResponseChargesAllOf.md doc/OrderResponseCheckout.md doc/OrderResponseCustomerInfo.md -doc/OrderResponseCustomerInfoAllOf.md doc/OrderResponseDiscountLines.md -doc/OrderResponseDiscountLinesAllOf.md doc/OrderResponseProducts.md -doc/OrderResponseProductsAllOf.md doc/OrderResponseShippingContact.md -doc/OrderResponseShippingContactAllOf.md doc/OrderTaxRequest.md doc/OrderUpdateFiscalEntityRequest.md doc/OrderUpdateRequest.md @@ -163,17 +131,12 @@ doc/PaymentMethod.md doc/PaymentMethodBankTransfer.md doc/PaymentMethodCard.md doc/PaymentMethodCardRequest.md -doc/PaymentMethodCardRequestAllOf.md doc/PaymentMethodCardResponse.md -doc/PaymentMethodCardResponseAllOf.md doc/PaymentMethodCash.md doc/PaymentMethodCashRequest.md -doc/PaymentMethodCashRequestAllOf.md doc/PaymentMethodCashResponse.md -doc/PaymentMethodCashResponseAllOf.md doc/PaymentMethodResponse.md doc/PaymentMethodSpeiRecurrent.md -doc/PaymentMethodSpeiRecurrentAllOf.md doc/PaymentMethodSpeiRequest.md doc/PaymentMethodsApi.md doc/PlanRequest.md @@ -182,11 +145,8 @@ doc/PlanUpdateRequest.md doc/PlansApi.md doc/Product.md doc/ProductDataResponse.md -doc/ProductDataResponseAllOf.md doc/ProductOrderResponse.md -doc/ProductOrderResponseAllOf.md doc/ProductsApi.md -doc/RiskRules.md doc/RiskRulesData.md doc/RiskRulesList.md doc/ShippingContactsApi.md @@ -216,12 +176,10 @@ doc/TransfersResponse.md doc/UpdateCustomer.md doc/UpdateCustomerAntifraudInfo.md doc/UpdateCustomerFiscalEntitiesResponse.md -doc/UpdateCustomerFiscalEntitiesResponseAllOf.md doc/UpdateCustomerPaymentMethodsResponse.md doc/UpdateOrderDiscountLinesRequest.md doc/UpdateOrderTaxRequest.md doc/UpdateOrderTaxResponse.md -doc/UpdateOrderTaxResponseAllOf.md doc/UpdatePaymentMethods.md doc/UpdateProduct.md doc/WebhookKeyCreateResponse.md @@ -269,7 +227,6 @@ lib/src/auth/bearer_auth.dart lib/src/auth/oauth.dart lib/src/date_serializer.dart lib/src/model/api_key_create_response.dart -lib/src/model/api_key_create_response_all_of.dart lib/src/model/api_key_request.dart lib/src/model/api_key_response.dart lib/src/model/api_key_response_on_delete.dart @@ -277,9 +234,6 @@ lib/src/model/api_key_update_request.dart lib/src/model/balance_common_field.dart lib/src/model/balance_response.dart lib/src/model/blacklist_rule_response.dart -lib/src/model/charge_data_payment_method_bank_transfer_response.dart -lib/src/model/charge_data_payment_method_card_response.dart -lib/src/model/charge_data_payment_method_cash_response.dart lib/src/model/charge_order_response.dart lib/src/model/charge_order_response_payment_method.dart lib/src/model/charge_request.dart @@ -288,7 +242,6 @@ lib/src/model/charge_response.dart lib/src/model/charge_response_channel.dart lib/src/model/charge_response_payment_method.dart lib/src/model/charge_response_refunds.dart -lib/src/model/charge_response_refunds_all_of.dart lib/src/model/charge_response_refunds_data.dart lib/src/model/charge_update_request.dart lib/src/model/charges_data_response.dart @@ -298,13 +251,11 @@ lib/src/model/checkout_order_template_customer_info.dart lib/src/model/checkout_request.dart lib/src/model/checkout_response.dart lib/src/model/checkouts_response.dart -lib/src/model/checkouts_response_all_of.dart lib/src/model/company_fiscal_info_address_response.dart lib/src/model/company_fiscal_info_response.dart lib/src/model/company_payout_destination_response.dart lib/src/model/company_response.dart lib/src/model/create_customer_fiscal_entities_response.dart -lib/src/model/create_customer_fiscal_entities_response_all_of.dart lib/src/model/create_customer_payment_methods_request.dart lib/src/model/create_customer_payment_methods_response.dart lib/src/model/create_risk_rules_data.dart @@ -314,70 +265,51 @@ lib/src/model/customer_antifraud_info.dart lib/src/model/customer_antifraud_info_response.dart lib/src/model/customer_fiscal_entities_data_response.dart lib/src/model/customer_fiscal_entities_request.dart -lib/src/model/customer_fiscal_entities_request_address.dart lib/src/model/customer_fiscal_entities_response.dart -lib/src/model/customer_fiscal_entities_response_all_of.dart lib/src/model/customer_info.dart lib/src/model/customer_info_just_customer_id.dart lib/src/model/customer_info_just_customer_id_response.dart lib/src/model/customer_payment_method_request.dart -lib/src/model/customer_payment_methods.dart lib/src/model/customer_payment_methods_data.dart lib/src/model/customer_payment_methods_request.dart lib/src/model/customer_payment_methods_response.dart lib/src/model/customer_response.dart lib/src/model/customer_response_shipping_contacts.dart -lib/src/model/customer_response_shipping_contacts_all_of.dart lib/src/model/customer_shipping_contacts.dart lib/src/model/customer_shipping_contacts_address.dart lib/src/model/customer_shipping_contacts_data_response.dart -lib/src/model/customer_shipping_contacts_data_response_all_of.dart lib/src/model/customer_shipping_contacts_response.dart lib/src/model/customer_shipping_contacts_response_address.dart lib/src/model/customer_update_fiscal_entities_request.dart lib/src/model/customer_update_shipping_contacts.dart lib/src/model/customers_response.dart -lib/src/model/customers_response_all_of.dart lib/src/model/date.dart lib/src/model/delete_api_keys_response.dart -lib/src/model/delete_api_keys_response_all_of.dart lib/src/model/deleted_blacklist_rule_response.dart lib/src/model/deleted_whitelist_rule_response.dart lib/src/model/details.dart lib/src/model/details_error.dart lib/src/model/discount_lines_data_response.dart lib/src/model/discount_lines_response.dart -lib/src/model/discount_lines_response_all_of.dart lib/src/model/email_checkout_request.dart lib/src/model/error.dart -lib/src/model/error_all_of.dart lib/src/model/event_response.dart +lib/src/model/event_types.dart lib/src/model/events_resend_response.dart lib/src/model/fiscal_entity_address.dart lib/src/model/get_api_keys_response.dart -lib/src/model/get_api_keys_response_all_of.dart lib/src/model/get_charges_response.dart -lib/src/model/get_charges_response_all_of.dart lib/src/model/get_companies_response.dart -lib/src/model/get_companies_response_all_of.dart lib/src/model/get_customer_payment_method_data_response.dart lib/src/model/get_events_response.dart -lib/src/model/get_events_response_all_of.dart lib/src/model/get_order_discount_lines_response.dart -lib/src/model/get_order_discount_lines_response_all_of.dart lib/src/model/get_orders_response.dart lib/src/model/get_payment_method_response.dart -lib/src/model/get_payment_method_response_all_of.dart lib/src/model/get_plans_response.dart -lib/src/model/get_plans_response_all_of.dart lib/src/model/get_transactions_response.dart -lib/src/model/get_transactions_response_all_of.dart lib/src/model/get_transfers_response.dart -lib/src/model/get_transfers_response_all_of.dart lib/src/model/get_webhook_keys_response.dart -lib/src/model/get_webhook_keys_response_all_of.dart lib/src/model/get_webhooks_response.dart -lib/src/model/get_webhooks_response_all_of.dart lib/src/model/log_response.dart lib/src/model/logs_response.dart lib/src/model/logs_response_data.dart @@ -385,7 +317,6 @@ lib/src/model/order_capture_request.dart lib/src/model/order_customer_info_response.dart lib/src/model/order_discount_lines_request.dart lib/src/model/order_fiscal_entity_address_response.dart -lib/src/model/order_fiscal_entity_address_response_all_of.dart lib/src/model/order_fiscal_entity_request.dart lib/src/model/order_fiscal_entity_response.dart lib/src/model/order_next_action_response.dart @@ -395,16 +326,11 @@ lib/src/model/order_request.dart lib/src/model/order_request_customer_info.dart lib/src/model/order_response.dart lib/src/model/order_response_charges.dart -lib/src/model/order_response_charges_all_of.dart lib/src/model/order_response_checkout.dart lib/src/model/order_response_customer_info.dart -lib/src/model/order_response_customer_info_all_of.dart lib/src/model/order_response_discount_lines.dart -lib/src/model/order_response_discount_lines_all_of.dart lib/src/model/order_response_products.dart -lib/src/model/order_response_products_all_of.dart lib/src/model/order_response_shipping_contact.dart -lib/src/model/order_response_shipping_contact_all_of.dart lib/src/model/order_tax_request.dart lib/src/model/order_update_fiscal_entity_request.dart lib/src/model/order_update_request.dart @@ -416,27 +342,19 @@ lib/src/model/payment_method.dart lib/src/model/payment_method_bank_transfer.dart lib/src/model/payment_method_card.dart lib/src/model/payment_method_card_request.dart -lib/src/model/payment_method_card_request_all_of.dart lib/src/model/payment_method_card_response.dart -lib/src/model/payment_method_card_response_all_of.dart lib/src/model/payment_method_cash.dart lib/src/model/payment_method_cash_request.dart -lib/src/model/payment_method_cash_request_all_of.dart lib/src/model/payment_method_cash_response.dart -lib/src/model/payment_method_cash_response_all_of.dart lib/src/model/payment_method_response.dart lib/src/model/payment_method_spei_recurrent.dart -lib/src/model/payment_method_spei_recurrent_all_of.dart lib/src/model/payment_method_spei_request.dart lib/src/model/plan_request.dart lib/src/model/plan_response.dart lib/src/model/plan_update_request.dart lib/src/model/product.dart lib/src/model/product_data_response.dart -lib/src/model/product_data_response_all_of.dart lib/src/model/product_order_response.dart -lib/src/model/product_order_response_all_of.dart -lib/src/model/risk_rules.dart lib/src/model/risk_rules_data.dart lib/src/model/risk_rules_list.dart lib/src/model/shipping_order_response.dart @@ -459,12 +377,10 @@ lib/src/model/transfers_response.dart lib/src/model/update_customer.dart lib/src/model/update_customer_antifraud_info.dart lib/src/model/update_customer_fiscal_entities_response.dart -lib/src/model/update_customer_fiscal_entities_response_all_of.dart lib/src/model/update_customer_payment_methods_response.dart lib/src/model/update_order_discount_lines_request.dart lib/src/model/update_order_tax_request.dart lib/src/model/update_order_tax_response.dart -lib/src/model/update_order_tax_response_all_of.dart lib/src/model/update_payment_methods.dart lib/src/model/update_product.dart lib/src/model/webhook_key_create_response.dart diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 4b49d9b..8b23b8d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.2.0 \ No newline at end of file +7.3.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 195bbc4..114464f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 6.0.2 -2024-12-02 +* [#3](https://github.com/conekta/conekta-dart/pull/2) update documentation + * update documentation + * Fix regex issue + * Update openapi version to 7.3.0 +## 6.0.1 - 2023-12-26 +* [#2](https://github.com/conekta/conekta-dart/pull/2) update documentation + * update documentation + * add generated models + * add changelog + * add example + ## 6.0.0 - 2023-12-22 * [#1](https://github.com/conekta/conekta-dart/pull/1) Initial Release * AntifraudApi @@ -22,9 +34,3 @@ * TransfersApi * WebhookKeysApi * WebhooksApi -## 6.0.1 - 2023-12-26 -* [#2](https://github.com/conekta/conekta-dart/pull/2) update documentation - * update documentation - * add generated models - * add changelog - * add example diff --git a/Makefile b/Makefile index 307186e..c627906 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ dart: rm -rf ../conekta-dart/doc && \ rm -rf ../conekta-dart/lib/src/model && \ docker run --rm \ - -v ${PWD}:/local openapitools/openapi-generator-cli:v7.2.0 generate \ + -v ${PWD}:/local openapitools/openapi-generator-cli:v7.3.0 generate \ -i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \ -g dart-dio \ -o /local \ diff --git a/VERSION b/VERSION index 5fe6072..9b9a244 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.1 +6.0.2 diff --git a/config-dart.json b/config-dart.json index 33d987d..db636f0 100644 --- a/config-dart.json +++ b/config-dart.json @@ -2,12 +2,12 @@ "useEnumExtension": true, "pubAuthor": "conekta", "pubLibrary": "conekta", - "pubVersion": "6.0.1", + "pubVersion": "6.0.2", "pubName": "conekta", "pubRepository": "https://www.github.com/conekta/conekta-dart", "pubHomepage" : "https://www.github.com/conekta/conekta-dart", "pubAuthorEmail": "engineering@conekta.com", - "pubDescription": "Dart Library for the Conekta API.", + "pubDescription": "A simple Conekta API wrapper, that is meant to be used on the server.", "serializationLibrary" : "built_value", "templateDir": "/local/templates/dart", "files" : { diff --git a/doc/ApiKeyCreateResponse.md b/doc/ApiKeyCreateResponse.md index ba4502e..aae556b 100644 --- a/doc/ApiKeyCreateResponse.md +++ b/doc/ApiKeyCreateResponse.md @@ -8,7 +8,6 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**authenticationToken** | **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] **createdAt** | **int** | Unix timestamp in seconds of when the api key was created | [optional] **updatedAt** | **int** | Unix timestamp in seconds of when the api key was last updated | [optional] @@ -20,6 +19,7 @@ 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] +**authenticationToken** | **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#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/doc/ApiKeyCreateResponseAllOf.md b/doc/ApiKeyCreateResponseAllOf.md deleted file mode 100644 index db7acdf..0000000 --- a/doc/ApiKeyCreateResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.ApiKeyCreateResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticationToken** | **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#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ChargeDataPaymentMethodBankTransferResponse.md b/doc/ChargeDataPaymentMethodBankTransferResponse.md deleted file mode 100644 index 40ce043..0000000 --- a/doc/ChargeDataPaymentMethodBankTransferResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# conekta.model.ChargeDataPaymentMethodBankTransferResponse - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bank** | **String** | | [optional] -**clabe** | **String** | | [optional] -**description** | **String** | | [optional] -**executedAt** | **int** | | [optional] -**expiresAt** | **int** | | [optional] -**issuingAccountBank** | **String** | | [optional] -**issuingAccountNumber** | **String** | | [optional] -**issuingAccountHolderName** | **String** | | [optional] -**issuingAccountTaxId** | **String** | | [optional] -**paymentAttempts** | [**BuiltList<JsonObject>**](JsonObject.md) | | [optional] -**receivingAccountHolderName** | **String** | | [optional] -**receivingAccountNumber** | **String** | | [optional] -**receivingAccountBank** | **String** | | [optional] -**receivingAccountTaxId** | **String** | | [optional] -**referenceNumber** | **String** | | [optional] -**trackingCode** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ChargeDataPaymentMethodCardResponse.md b/doc/ChargeDataPaymentMethodCardResponse.md deleted file mode 100644 index c357a87..0000000 --- a/doc/ChargeDataPaymentMethodCardResponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# conekta.model.ChargeDataPaymentMethodCardResponse - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accountType** | **String** | | [optional] -**authCode** | **String** | | [optional] -**brand** | **String** | | [optional] -**contractId** | **String** | Id sent for recurrent charges. | [optional] -**country** | **String** | | [optional] -**expMonth** | **String** | | [optional] -**expYear** | **String** | | [optional] -**fraudIndicators** | [**BuiltList<JsonObject>**](JsonObject.md) | | [optional] -**issuer** | **String** | | [optional] -**last4** | **String** | | [optional] -**name** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ChargeDataPaymentMethodCashResponse.md b/doc/ChargeDataPaymentMethodCashResponse.md deleted file mode 100644 index 293e267..0000000 --- a/doc/ChargeDataPaymentMethodCashResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# conekta.model.ChargeDataPaymentMethodCashResponse - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authCode** | **int** | | [optional] -**cashierId** | **String** | | [optional] -**reference** | **String** | | [optional] -**barcodeUrl** | **String** | | [optional] -**expiresAt** | **int** | | [optional] -**serviceName** | **String** | | [optional] -**store** | **String** | | [optional] -**storeName** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ChargeResponseRefundsAllOf.md b/doc/ChargeResponseRefundsAllOf.md deleted file mode 100644 index cf84962..0000000 --- a/doc/ChargeResponseRefundsAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.ChargeResponseRefundsAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<ChargeResponseRefundsData>**](ChargeResponseRefundsData.md) | refunds | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CheckoutRequest.md b/doc/CheckoutRequest.md index c4a010a..758a33d 100644 --- a/doc/CheckoutRequest.md +++ b/doc/CheckoutRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **monthlyInstallmentsOptions** | **BuiltList<int>** | | [optional] **name** | **String** | Reason for payment | [optional] **onDemandEnabled** | **bool** | | [optional] +**redirectionTime** | **int** | number of seconds to wait before redirecting to the success_url | [optional] **successUrl** | **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/doc/CheckoutsResponseAllOf.md b/doc/CheckoutsResponseAllOf.md deleted file mode 100644 index b5e6d8e..0000000 --- a/doc/CheckoutsResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.CheckoutsResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<CheckoutResponse>**](CheckoutResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CreateCustomerFiscalEntitiesResponse.md b/doc/CreateCustomerFiscalEntitiesResponse.md index e2e9eb8..179c51a 100644 --- a/doc/CreateCustomerFiscalEntitiesResponse.md +++ b/doc/CreateCustomerFiscalEntitiesResponse.md @@ -8,7 +8,7 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**CustomerAddress**](CustomerAddress.md) | | **taxId** | **String** | | [optional] **email** | **String** | | [optional] **phone** | **String** | | [optional] diff --git a/doc/CreateCustomerFiscalEntitiesResponseAllOf.md b/doc/CreateCustomerFiscalEntitiesResponseAllOf.md deleted file mode 100644 index abb2559..0000000 --- a/doc/CreateCustomerFiscalEntitiesResponseAllOf.md +++ /dev/null @@ -1,19 +0,0 @@ -# conekta.model.CreateCustomerFiscalEntitiesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**object** | **String** | | -**createdAt** | **int** | | -**parentId** | **String** | | [optional] -**default_** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CustomerFiscalEntitiesDataResponse.md b/doc/CustomerFiscalEntitiesDataResponse.md index 0c482a1..f9abb21 100644 --- a/doc/CustomerFiscalEntitiesDataResponse.md +++ b/doc/CustomerFiscalEntitiesDataResponse.md @@ -8,7 +8,7 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**CustomerAddress**](CustomerAddress.md) | | **taxId** | **String** | | [optional] **email** | **String** | | [optional] **phone** | **String** | | [optional] diff --git a/doc/CustomerFiscalEntitiesRequest.md b/doc/CustomerFiscalEntitiesRequest.md index 59bfa01..52f9495 100644 --- a/doc/CustomerFiscalEntitiesRequest.md +++ b/doc/CustomerFiscalEntitiesRequest.md @@ -8,7 +8,7 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**CustomerAddress**](CustomerAddress.md) | | **taxId** | **String** | | [optional] **email** | **String** | | [optional] **phone** | **String** | | [optional] diff --git a/doc/CustomerFiscalEntitiesRequestAddress.md b/doc/CustomerFiscalEntitiesRequestAddress.md deleted file mode 100644 index 8958614..0000000 --- a/doc/CustomerFiscalEntitiesRequestAddress.md +++ /dev/null @@ -1,22 +0,0 @@ -# conekta.model.CustomerFiscalEntitiesRequestAddress - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**street1** | **String** | | -**street2** | **String** | | [optional] -**postalCode** | **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] -**externalNumber** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CustomerFiscalEntitiesResponseAllOf.md b/doc/CustomerFiscalEntitiesResponseAllOf.md deleted file mode 100644 index 3e70b80..0000000 --- a/doc/CustomerFiscalEntitiesResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.CustomerFiscalEntitiesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<CustomerFiscalEntitiesDataResponse>**](CustomerFiscalEntitiesDataResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CustomerPaymentMethods.md b/doc/CustomerPaymentMethods.md deleted file mode 100644 index b7ba9e4..0000000 --- a/doc/CustomerPaymentMethods.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.CustomerPaymentMethods - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<CustomerPaymentMethodsData>**](CustomerPaymentMethodsData.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CustomerResponseShippingContactsAllOf.md b/doc/CustomerResponseShippingContactsAllOf.md deleted file mode 100644 index 418c541..0000000 --- a/doc/CustomerResponseShippingContactsAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.CustomerResponseShippingContactsAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<CustomerShippingContactsDataResponse>**](CustomerShippingContactsDataResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CustomerShippingContactsDataResponseAllOf.md b/doc/CustomerShippingContactsDataResponseAllOf.md deleted file mode 100644 index 98f6270..0000000 --- a/doc/CustomerShippingContactsDataResponseAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.CustomerShippingContactsDataResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**object** | **String** | | -**createdAt** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/CustomerUpdateFiscalEntitiesRequest.md b/doc/CustomerUpdateFiscalEntitiesRequest.md index 07957d1..57516e1 100644 --- a/doc/CustomerUpdateFiscalEntitiesRequest.md +++ b/doc/CustomerUpdateFiscalEntitiesRequest.md @@ -8,7 +8,7 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | [optional] +**address** | [**CustomerAddress**](CustomerAddress.md) | | [optional] **taxId** | **String** | | [optional] **email** | **String** | | [optional] **phone** | **String** | | [optional] diff --git a/doc/CustomersResponse.md b/doc/CustomersResponse.md index 21c16b6..7ae5261 100644 --- a/doc/CustomersResponse.md +++ b/doc/CustomersResponse.md @@ -8,11 +8,11 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**BuiltList<CustomerResponse>**](CustomerResponse.md) | | [optional] **hasMore** | **bool** | Indicates if there are more pages to be requested | **object** | **String** | Object type, in this case is list | **nextPageUrl** | **String** | URL of the next page. | [optional] **previousPageUrl** | **String** | Url of the previous page. | [optional] +**data** | [**BuiltList<CustomerResponse>**](CustomerResponse.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/doc/CustomersResponseAllOf.md b/doc/CustomersResponseAllOf.md deleted file mode 100644 index 3aff483..0000000 --- a/doc/CustomersResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.CustomersResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<CustomerResponse>**](CustomerResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/DiscountLinesResponseAllOf.md b/doc/DiscountLinesResponseAllOf.md deleted file mode 100644 index d377e58..0000000 --- a/doc/DiscountLinesResponseAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.DiscountLinesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The discount line id | -**object** | **String** | The object name | -**parentId** | **String** | The order id | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ErrorAllOf.md b/doc/ErrorAllOf.md deleted file mode 100644 index e4d6db7..0000000 --- a/doc/ErrorAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.ErrorAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**logId** | **String** | log id | [optional] -**type** | **String** | | [optional] -**object** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/DeleteApiKeysResponseAllOf.md b/doc/EventTypes.md similarity index 80% rename from doc/DeleteApiKeysResponseAllOf.md rename to doc/EventTypes.md index cd29cf1..7560ef9 100644 --- a/doc/DeleteApiKeysResponseAllOf.md +++ b/doc/EventTypes.md @@ -1,4 +1,4 @@ -# conekta.model.DeleteApiKeysResponseAllOf +# conekta.model.EventTypes ## Load the model package ```dart @@ -8,7 +8,6 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**deleted** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/doc/GetApiKeysResponseAllOf.md b/doc/GetApiKeysResponseAllOf.md deleted file mode 100644 index 604eec7..0000000 --- a/doc/GetApiKeysResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetApiKeysResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<ApiKeyResponse>**](ApiKeyResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetChargesResponseAllOf.md b/doc/GetChargesResponseAllOf.md deleted file mode 100644 index 29753f9..0000000 --- a/doc/GetChargesResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetChargesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<ChargeResponse>**](ChargeResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetCompaniesResponseAllOf.md b/doc/GetCompaniesResponseAllOf.md deleted file mode 100644 index f4dbfc0..0000000 --- a/doc/GetCompaniesResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetCompaniesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<CompanyResponse>**](CompanyResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetEventsResponseAllOf.md b/doc/GetEventsResponseAllOf.md deleted file mode 100644 index 84abfa0..0000000 --- a/doc/GetEventsResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetEventsResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<EventResponse>**](EventResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetOrderDiscountLinesResponseAllOf.md b/doc/GetOrderDiscountLinesResponseAllOf.md deleted file mode 100644 index 94f6908..0000000 --- a/doc/GetOrderDiscountLinesResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetOrderDiscountLinesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<DiscountLinesResponse>**](DiscountLinesResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetPaymentMethodResponseAllOf.md b/doc/GetPaymentMethodResponseAllOf.md deleted file mode 100644 index 78a033c..0000000 --- a/doc/GetPaymentMethodResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetPaymentMethodResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<GetCustomerPaymentMethodDataResponse>**](GetCustomerPaymentMethodDataResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetPlansResponseAllOf.md b/doc/GetPlansResponseAllOf.md deleted file mode 100644 index 912c52f..0000000 --- a/doc/GetPlansResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetPlansResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<PlanResponse>**](PlanResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetTransactionsResponseAllOf.md b/doc/GetTransactionsResponseAllOf.md deleted file mode 100644 index 36fd06b..0000000 --- a/doc/GetTransactionsResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetTransactionsResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<TransactionResponse>**](TransactionResponse.md) | Transactions | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetTransfersResponseAllOf.md b/doc/GetTransfersResponseAllOf.md deleted file mode 100644 index 4d4a40f..0000000 --- a/doc/GetTransfersResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetTransfersResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<TransfersResponse>**](TransfersResponse.md) | Transfers | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetWebhookKeysResponseAllOf.md b/doc/GetWebhookKeysResponseAllOf.md deleted file mode 100644 index ed46b9e..0000000 --- a/doc/GetWebhookKeysResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetWebhookKeysResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<WebhookKeyResponse>**](WebhookKeyResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/GetWebhooksResponseAllOf.md b/doc/GetWebhooksResponseAllOf.md deleted file mode 100644 index 7500008..0000000 --- a/doc/GetWebhooksResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.GetWebhooksResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<WebhookResponse>**](WebhookResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/OrderFiscalEntityAddressResponseAllOf.md b/doc/OrderFiscalEntityAddressResponseAllOf.md deleted file mode 100644 index adcd16c..0000000 --- a/doc/OrderFiscalEntityAddressResponseAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.OrderFiscalEntityAddressResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/OrderResponseChargesAllOf.md b/doc/OrderResponseChargesAllOf.md deleted file mode 100644 index a97adb4..0000000 --- a/doc/OrderResponseChargesAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.OrderResponseChargesAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<ChargesDataResponse>**](ChargesDataResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/OrderResponseCustomerInfo.md b/doc/OrderResponseCustomerInfo.md index 97c6ea7..e6d2925 100644 --- a/doc/OrderResponseCustomerInfo.md +++ b/doc/OrderResponseCustomerInfo.md @@ -8,12 +8,12 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**object** | **String** | | [optional] **customerCustomReference** | **String** | Custom reference | [optional] **name** | **String** | | [optional] **email** | **String** | | [optional] **phone** | **String** | | [optional] **corporate** | **bool** | | [optional] [default to false] +**object** | **String** | | [optional] **customerId** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/doc/OrderResponseCustomerInfoAllOf.md b/doc/OrderResponseCustomerInfoAllOf.md deleted file mode 100644 index e36d6d7..0000000 --- a/doc/OrderResponseCustomerInfoAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.OrderResponseCustomerInfoAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/OrderResponseDiscountLinesAllOf.md b/doc/OrderResponseDiscountLinesAllOf.md deleted file mode 100644 index 6c724e9..0000000 --- a/doc/OrderResponseDiscountLinesAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.OrderResponseDiscountLinesAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<DiscountLinesDataResponse>**](DiscountLinesDataResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/OrderResponseProductsAllOf.md b/doc/OrderResponseProductsAllOf.md deleted file mode 100644 index cb29a4e..0000000 --- a/doc/OrderResponseProductsAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.OrderResponseProductsAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<ProductDataResponse>**](ProductDataResponse.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/OrderResponseShippingContact.md b/doc/OrderResponseShippingContact.md index 020fe25..e52a9a2 100644 --- a/doc/OrderResponseShippingContact.md +++ b/doc/OrderResponseShippingContact.md @@ -8,16 +8,16 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**createdAt** | **int** | | [optional] -**id** | **String** | | [optional] -**object** | **String** | | [optional] **phone** | **String** | | [optional] **receiver** | **String** | | [optional] **betweenStreets** | **String** | | [optional] **address** | [**CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] **parentId** | **String** | | [optional] **default_** | **bool** | | [optional] +**id** | **String** | | [optional] +**createdAt** | **int** | | [optional] **metadata** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | Metadata associated with the shipping contact | [optional] +**object** | **String** | | [optional] **deleted** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/doc/OrderResponseShippingContactAllOf.md b/doc/OrderResponseShippingContactAllOf.md deleted file mode 100644 index cd7a866..0000000 --- a/doc/OrderResponseShippingContactAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.OrderResponseShippingContactAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **int** | | [optional] -**id** | **String** | | [optional] -**object** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/PaymentMethodCardRequestAllOf.md b/doc/PaymentMethodCardRequestAllOf.md deleted file mode 100644 index 33a0b39..0000000 --- a/doc/PaymentMethodCardRequestAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.PaymentMethodCardRequestAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tokenId** | **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#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/PaymentMethodCardResponseAllOf.md b/doc/PaymentMethodCardResponseAllOf.md deleted file mode 100644 index 396ee41..0000000 --- a/doc/PaymentMethodCardResponseAllOf.md +++ /dev/null @@ -1,24 +0,0 @@ -# conekta.model.PaymentMethodCardResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last4** | **String** | | [optional] -**bin** | **String** | | [optional] -**cardType** | **String** | | [optional] -**expMonth** | **String** | | [optional] -**expYear** | **String** | | [optional] -**brand** | **String** | | [optional] -**name** | **String** | | [optional] -**default_** | **bool** | | [optional] -**visibleOnCheckout** | **bool** | | [optional] -**paymentSourceStatus** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/PaymentMethodCashRequestAllOf.md b/doc/PaymentMethodCashRequestAllOf.md deleted file mode 100644 index b51a41d..0000000 --- a/doc/PaymentMethodCashRequestAllOf.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.PaymentMethodCashRequestAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expiresAt** | **int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/PaymentMethodCashResponseAllOf.md b/doc/PaymentMethodCashResponseAllOf.md deleted file mode 100644 index 7bd4226..0000000 --- a/doc/PaymentMethodCashResponseAllOf.md +++ /dev/null @@ -1,19 +0,0 @@ -# conekta.model.PaymentMethodCashResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference** | **String** | | [optional] -**barcode** | **String** | | [optional] -**barcodeUrl** | **String** | | [optional] -**expiresAt** | **int** | | [optional] -**provider** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/PaymentMethodSpeiRecurrentAllOf.md b/doc/PaymentMethodSpeiRecurrentAllOf.md deleted file mode 100644 index bc476d1..0000000 --- a/doc/PaymentMethodSpeiRecurrentAllOf.md +++ /dev/null @@ -1,16 +0,0 @@ -# conekta.model.PaymentMethodSpeiRecurrentAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference** | **String** | | [optional] -**expiresAt** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ProductDataResponseAllOf.md b/doc/ProductDataResponseAllOf.md deleted file mode 100644 index ee097c2..0000000 --- a/doc/ProductDataResponseAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.ProductDataResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**object** | **String** | | [optional] -**parentId** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/ProductOrderResponseAllOf.md b/doc/ProductOrderResponseAllOf.md deleted file mode 100644 index 261b8cc..0000000 --- a/doc/ProductOrderResponseAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.ProductOrderResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**object** | **String** | | [optional] -**parentId** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/RiskRules.md b/doc/RiskRules.md deleted file mode 100644 index 0727bdb..0000000 --- a/doc/RiskRules.md +++ /dev/null @@ -1,15 +0,0 @@ -# conekta.model.RiskRules - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BuiltList<RiskRulesData>**](RiskRulesData.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/UpdateCustomerFiscalEntitiesResponse.md b/doc/UpdateCustomerFiscalEntitiesResponse.md index 1b182e8..781d63b 100644 --- a/doc/UpdateCustomerFiscalEntitiesResponse.md +++ b/doc/UpdateCustomerFiscalEntitiesResponse.md @@ -8,7 +8,7 @@ import 'package:conekta/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | +**address** | [**CustomerAddress**](CustomerAddress.md) | | **taxId** | **String** | | [optional] **email** | **String** | | [optional] **phone** | **String** | | [optional] diff --git a/doc/UpdateCustomerFiscalEntitiesResponseAllOf.md b/doc/UpdateCustomerFiscalEntitiesResponseAllOf.md deleted file mode 100644 index 4da8d17..0000000 --- a/doc/UpdateCustomerFiscalEntitiesResponseAllOf.md +++ /dev/null @@ -1,19 +0,0 @@ -# conekta.model.UpdateCustomerFiscalEntitiesResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**object** | **String** | | -**createdAt** | **int** | | -**parentId** | **String** | | [optional] -**default_** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/doc/UpdateOrderTaxResponseAllOf.md b/doc/UpdateOrderTaxResponseAllOf.md deleted file mode 100644 index a1f25a3..0000000 --- a/doc/UpdateOrderTaxResponseAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# conekta.model.UpdateOrderTaxResponseAllOf - -## Load the model package -```dart -import 'package:conekta/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**object** | **String** | | [optional] -**parentId** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/lib/conekta.dart b/lib/conekta.dart index 734113c..f5c5b18 100644 --- a/lib/conekta.dart +++ b/lib/conekta.dart @@ -34,7 +34,6 @@ export 'package:conekta/src/api/webhook_keys_api.dart'; export 'package:conekta/src/api/webhooks_api.dart'; export 'package:conekta/src/model/api_key_create_response.dart'; -export 'package:conekta/src/model/api_key_create_response_all_of.dart'; export 'package:conekta/src/model/api_key_request.dart'; export 'package:conekta/src/model/api_key_response.dart'; export 'package:conekta/src/model/api_key_response_on_delete.dart'; @@ -42,9 +41,6 @@ export 'package:conekta/src/model/api_key_update_request.dart'; export 'package:conekta/src/model/balance_common_field.dart'; export 'package:conekta/src/model/balance_response.dart'; export 'package:conekta/src/model/blacklist_rule_response.dart'; -export 'package:conekta/src/model/charge_data_payment_method_bank_transfer_response.dart'; -export 'package:conekta/src/model/charge_data_payment_method_card_response.dart'; -export 'package:conekta/src/model/charge_data_payment_method_cash_response.dart'; export 'package:conekta/src/model/charge_order_response.dart'; export 'package:conekta/src/model/charge_order_response_payment_method.dart'; export 'package:conekta/src/model/charge_request.dart'; @@ -53,7 +49,6 @@ export 'package:conekta/src/model/charge_response.dart'; export 'package:conekta/src/model/charge_response_channel.dart'; export 'package:conekta/src/model/charge_response_payment_method.dart'; export 'package:conekta/src/model/charge_response_refunds.dart'; -export 'package:conekta/src/model/charge_response_refunds_all_of.dart'; export 'package:conekta/src/model/charge_response_refunds_data.dart'; export 'package:conekta/src/model/charge_update_request.dart'; export 'package:conekta/src/model/charges_data_response.dart'; @@ -63,13 +58,11 @@ export 'package:conekta/src/model/checkout_order_template_customer_info.dart'; export 'package:conekta/src/model/checkout_request.dart'; export 'package:conekta/src/model/checkout_response.dart'; export 'package:conekta/src/model/checkouts_response.dart'; -export 'package:conekta/src/model/checkouts_response_all_of.dart'; export 'package:conekta/src/model/company_fiscal_info_address_response.dart'; export 'package:conekta/src/model/company_fiscal_info_response.dart'; export 'package:conekta/src/model/company_payout_destination_response.dart'; export 'package:conekta/src/model/company_response.dart'; export 'package:conekta/src/model/create_customer_fiscal_entities_response.dart'; -export 'package:conekta/src/model/create_customer_fiscal_entities_response_all_of.dart'; export 'package:conekta/src/model/create_customer_payment_methods_request.dart'; export 'package:conekta/src/model/create_customer_payment_methods_response.dart'; export 'package:conekta/src/model/create_risk_rules_data.dart'; @@ -79,69 +72,50 @@ export 'package:conekta/src/model/customer_antifraud_info.dart'; export 'package:conekta/src/model/customer_antifraud_info_response.dart'; export 'package:conekta/src/model/customer_fiscal_entities_data_response.dart'; export 'package:conekta/src/model/customer_fiscal_entities_request.dart'; -export 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; export 'package:conekta/src/model/customer_fiscal_entities_response.dart'; -export 'package:conekta/src/model/customer_fiscal_entities_response_all_of.dart'; export 'package:conekta/src/model/customer_info.dart'; export 'package:conekta/src/model/customer_info_just_customer_id.dart'; export 'package:conekta/src/model/customer_info_just_customer_id_response.dart'; export 'package:conekta/src/model/customer_payment_method_request.dart'; -export 'package:conekta/src/model/customer_payment_methods.dart'; export 'package:conekta/src/model/customer_payment_methods_data.dart'; export 'package:conekta/src/model/customer_payment_methods_request.dart'; export 'package:conekta/src/model/customer_payment_methods_response.dart'; export 'package:conekta/src/model/customer_response.dart'; export 'package:conekta/src/model/customer_response_shipping_contacts.dart'; -export 'package:conekta/src/model/customer_response_shipping_contacts_all_of.dart'; export 'package:conekta/src/model/customer_shipping_contacts.dart'; export 'package:conekta/src/model/customer_shipping_contacts_address.dart'; export 'package:conekta/src/model/customer_shipping_contacts_data_response.dart'; -export 'package:conekta/src/model/customer_shipping_contacts_data_response_all_of.dart'; export 'package:conekta/src/model/customer_shipping_contacts_response.dart'; export 'package:conekta/src/model/customer_shipping_contacts_response_address.dart'; export 'package:conekta/src/model/customer_update_fiscal_entities_request.dart'; export 'package:conekta/src/model/customer_update_shipping_contacts.dart'; export 'package:conekta/src/model/customers_response.dart'; -export 'package:conekta/src/model/customers_response_all_of.dart'; export 'package:conekta/src/model/delete_api_keys_response.dart'; -export 'package:conekta/src/model/delete_api_keys_response_all_of.dart'; export 'package:conekta/src/model/deleted_blacklist_rule_response.dart'; export 'package:conekta/src/model/deleted_whitelist_rule_response.dart'; export 'package:conekta/src/model/details.dart'; export 'package:conekta/src/model/details_error.dart'; export 'package:conekta/src/model/discount_lines_data_response.dart'; export 'package:conekta/src/model/discount_lines_response.dart'; -export 'package:conekta/src/model/discount_lines_response_all_of.dart'; export 'package:conekta/src/model/email_checkout_request.dart'; export 'package:conekta/src/model/error.dart'; -export 'package:conekta/src/model/error_all_of.dart'; export 'package:conekta/src/model/event_response.dart'; +export 'package:conekta/src/model/event_types.dart'; export 'package:conekta/src/model/events_resend_response.dart'; export 'package:conekta/src/model/fiscal_entity_address.dart'; export 'package:conekta/src/model/get_api_keys_response.dart'; -export 'package:conekta/src/model/get_api_keys_response_all_of.dart'; export 'package:conekta/src/model/get_charges_response.dart'; -export 'package:conekta/src/model/get_charges_response_all_of.dart'; export 'package:conekta/src/model/get_companies_response.dart'; -export 'package:conekta/src/model/get_companies_response_all_of.dart'; export 'package:conekta/src/model/get_customer_payment_method_data_response.dart'; export 'package:conekta/src/model/get_events_response.dart'; -export 'package:conekta/src/model/get_events_response_all_of.dart'; export 'package:conekta/src/model/get_order_discount_lines_response.dart'; -export 'package:conekta/src/model/get_order_discount_lines_response_all_of.dart'; export 'package:conekta/src/model/get_orders_response.dart'; export 'package:conekta/src/model/get_payment_method_response.dart'; -export 'package:conekta/src/model/get_payment_method_response_all_of.dart'; export 'package:conekta/src/model/get_plans_response.dart'; -export 'package:conekta/src/model/get_plans_response_all_of.dart'; export 'package:conekta/src/model/get_transactions_response.dart'; -export 'package:conekta/src/model/get_transactions_response_all_of.dart'; export 'package:conekta/src/model/get_transfers_response.dart'; -export 'package:conekta/src/model/get_transfers_response_all_of.dart'; export 'package:conekta/src/model/get_webhook_keys_response.dart'; -export 'package:conekta/src/model/get_webhook_keys_response_all_of.dart'; export 'package:conekta/src/model/get_webhooks_response.dart'; -export 'package:conekta/src/model/get_webhooks_response_all_of.dart'; export 'package:conekta/src/model/log_response.dart'; export 'package:conekta/src/model/logs_response.dart'; export 'package:conekta/src/model/logs_response_data.dart'; @@ -149,7 +123,6 @@ export 'package:conekta/src/model/order_capture_request.dart'; export 'package:conekta/src/model/order_customer_info_response.dart'; export 'package:conekta/src/model/order_discount_lines_request.dart'; export 'package:conekta/src/model/order_fiscal_entity_address_response.dart'; -export 'package:conekta/src/model/order_fiscal_entity_address_response_all_of.dart'; export 'package:conekta/src/model/order_fiscal_entity_request.dart'; export 'package:conekta/src/model/order_fiscal_entity_response.dart'; export 'package:conekta/src/model/order_next_action_response.dart'; @@ -159,16 +132,11 @@ export 'package:conekta/src/model/order_request.dart'; export 'package:conekta/src/model/order_request_customer_info.dart'; export 'package:conekta/src/model/order_response.dart'; export 'package:conekta/src/model/order_response_charges.dart'; -export 'package:conekta/src/model/order_response_charges_all_of.dart'; export 'package:conekta/src/model/order_response_checkout.dart'; export 'package:conekta/src/model/order_response_customer_info.dart'; -export 'package:conekta/src/model/order_response_customer_info_all_of.dart'; export 'package:conekta/src/model/order_response_discount_lines.dart'; -export 'package:conekta/src/model/order_response_discount_lines_all_of.dart'; export 'package:conekta/src/model/order_response_products.dart'; -export 'package:conekta/src/model/order_response_products_all_of.dart'; export 'package:conekta/src/model/order_response_shipping_contact.dart'; -export 'package:conekta/src/model/order_response_shipping_contact_all_of.dart'; export 'package:conekta/src/model/order_tax_request.dart'; export 'package:conekta/src/model/order_update_fiscal_entity_request.dart'; export 'package:conekta/src/model/order_update_request.dart'; @@ -180,27 +148,19 @@ export 'package:conekta/src/model/payment_method.dart'; export 'package:conekta/src/model/payment_method_bank_transfer.dart'; export 'package:conekta/src/model/payment_method_card.dart'; export 'package:conekta/src/model/payment_method_card_request.dart'; -export 'package:conekta/src/model/payment_method_card_request_all_of.dart'; export 'package:conekta/src/model/payment_method_card_response.dart'; -export 'package:conekta/src/model/payment_method_card_response_all_of.dart'; export 'package:conekta/src/model/payment_method_cash.dart'; export 'package:conekta/src/model/payment_method_cash_request.dart'; -export 'package:conekta/src/model/payment_method_cash_request_all_of.dart'; export 'package:conekta/src/model/payment_method_cash_response.dart'; -export 'package:conekta/src/model/payment_method_cash_response_all_of.dart'; export 'package:conekta/src/model/payment_method_response.dart'; export 'package:conekta/src/model/payment_method_spei_recurrent.dart'; -export 'package:conekta/src/model/payment_method_spei_recurrent_all_of.dart'; export 'package:conekta/src/model/payment_method_spei_request.dart'; export 'package:conekta/src/model/plan_request.dart'; export 'package:conekta/src/model/plan_response.dart'; export 'package:conekta/src/model/plan_update_request.dart'; export 'package:conekta/src/model/product.dart'; export 'package:conekta/src/model/product_data_response.dart'; -export 'package:conekta/src/model/product_data_response_all_of.dart'; export 'package:conekta/src/model/product_order_response.dart'; -export 'package:conekta/src/model/product_order_response_all_of.dart'; -export 'package:conekta/src/model/risk_rules.dart'; export 'package:conekta/src/model/risk_rules_data.dart'; export 'package:conekta/src/model/risk_rules_list.dart'; export 'package:conekta/src/model/shipping_order_response.dart'; @@ -223,12 +183,10 @@ export 'package:conekta/src/model/transfers_response.dart'; export 'package:conekta/src/model/update_customer.dart'; export 'package:conekta/src/model/update_customer_antifraud_info.dart'; export 'package:conekta/src/model/update_customer_fiscal_entities_response.dart'; -export 'package:conekta/src/model/update_customer_fiscal_entities_response_all_of.dart'; export 'package:conekta/src/model/update_customer_payment_methods_response.dart'; export 'package:conekta/src/model/update_order_discount_lines_request.dart'; export 'package:conekta/src/model/update_order_tax_request.dart'; export 'package:conekta/src/model/update_order_tax_response.dart'; -export 'package:conekta/src/model/update_order_tax_response_all_of.dart'; export 'package:conekta/src/model/update_payment_methods.dart'; export 'package:conekta/src/model/update_product.dart'; export 'package:conekta/src/model/webhook_key_create_response.dart'; diff --git a/lib/src/api/antifraud_api.dart b/lib/src/api/antifraud_api.dart index c2edd89..38f5c4f 100644 --- a/lib/src/api/antifraud_api.dart +++ b/lib/src/api/antifraud_api.dart @@ -65,7 +65,7 @@ class AntifraudApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -184,7 +184,7 @@ class AntifraudApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -304,7 +304,7 @@ class AntifraudApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -405,7 +405,7 @@ class AntifraudApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -502,7 +502,7 @@ class AntifraudApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -598,7 +598,7 @@ class AntifraudApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/api_keys_api.dart b/lib/src/api/api_keys_api.dart index 37fba53..6ca46c6 100644 --- a/lib/src/api/api_keys_api.dart +++ b/lib/src/api/api_keys_api.dart @@ -67,7 +67,7 @@ class ApiKeysApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -186,7 +186,7 @@ class ApiKeysApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -286,7 +286,7 @@ class ApiKeysApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -393,7 +393,7 @@ class ApiKeysApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -503,7 +503,7 @@ class ApiKeysApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/balances_api.dart b/lib/src/api/balances_api.dart index ae537bd..0bf7635 100644 --- a/lib/src/api/balances_api.dart +++ b/lib/src/api/balances_api.dart @@ -56,7 +56,7 @@ class BalancesApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/charges_api.dart b/lib/src/api/charges_api.dart index 603769f..5b505ca 100644 --- a/lib/src/api/charges_api.dart +++ b/lib/src/api/charges_api.dart @@ -71,7 +71,7 @@ class ChargesApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -183,7 +183,7 @@ class ChargesApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -307,7 +307,7 @@ class ChargesApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/companies_api.dart b/lib/src/api/companies_api.dart index 67c0526..1c4215e 100644 --- a/lib/src/api/companies_api.dart +++ b/lib/src/api/companies_api.dart @@ -66,7 +66,7 @@ class CompaniesApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -172,7 +172,7 @@ class CompaniesApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/customers_api.dart b/lib/src/api/customers_api.dart index 389d5d7..09998ba 100644 --- a/lib/src/api/customers_api.dart +++ b/lib/src/api/customers_api.dart @@ -69,7 +69,7 @@ class CustomersApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -193,7 +193,7 @@ class CustomersApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -314,7 +314,7 @@ class CustomersApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -415,7 +415,7 @@ class CustomersApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -522,7 +522,7 @@ class CustomersApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -634,7 +634,7 @@ class CustomersApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -760,7 +760,7 @@ class CustomersApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/discounts_api.dart b/lib/src/api/discounts_api.dart index b424b96..6216263 100644 --- a/lib/src/api/discounts_api.dart +++ b/lib/src/api/discounts_api.dart @@ -67,7 +67,7 @@ class DiscountsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -190,7 +190,7 @@ class DiscountsApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -293,7 +293,7 @@ class DiscountsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -402,7 +402,7 @@ class DiscountsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -516,7 +516,7 @@ class DiscountsApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/events_api.dart b/lib/src/api/events_api.dart index ca8e771..e8951ae 100644 --- a/lib/src/api/events_api.dart +++ b/lib/src/api/events_api.dart @@ -63,7 +63,7 @@ class EventsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -170,7 +170,7 @@ class EventsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -279,7 +279,7 @@ class EventsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/logs_api.dart b/lib/src/api/logs_api.dart index 5846c6a..4c8edef 100644 --- a/lib/src/api/logs_api.dart +++ b/lib/src/api/logs_api.dart @@ -62,7 +62,7 @@ class LogsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -169,7 +169,7 @@ class LogsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/orders_api.dart b/lib/src/api/orders_api.dart index a6e8994..a6f4310 100644 --- a/lib/src/api/orders_api.dart +++ b/lib/src/api/orders_api.dart @@ -66,7 +66,7 @@ class OrdersApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -168,7 +168,7 @@ class OrdersApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -289,7 +289,7 @@ class OrdersApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -396,7 +396,7 @@ class OrdersApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -507,7 +507,7 @@ class OrdersApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -611,7 +611,7 @@ class OrdersApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -735,7 +735,7 @@ class OrdersApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -857,7 +857,7 @@ class OrdersApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/payment_link_api.dart b/lib/src/api/payment_link_api.dart index ed66bc3..d97dbab 100644 --- a/lib/src/api/payment_link_api.dart +++ b/lib/src/api/payment_link_api.dart @@ -65,7 +65,7 @@ class PaymentLinkApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -167,7 +167,7 @@ class PaymentLinkApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -291,7 +291,7 @@ class PaymentLinkApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -412,7 +412,7 @@ class PaymentLinkApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -519,7 +519,7 @@ class PaymentLinkApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -631,7 +631,7 @@ class PaymentLinkApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/payment_methods_api.dart b/lib/src/api/payment_methods_api.dart index e30f29d..b0c7489 100644 --- a/lib/src/api/payment_methods_api.dart +++ b/lib/src/api/payment_methods_api.dart @@ -68,7 +68,7 @@ class PaymentMethodsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -191,7 +191,7 @@ class PaymentMethodsApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -300,7 +300,7 @@ class PaymentMethodsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -414,7 +414,7 @@ class PaymentMethodsApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/plans_api.dart b/lib/src/api/plans_api.dart index 0111a86..11a4897 100644 --- a/lib/src/api/plans_api.dart +++ b/lib/src/api/plans_api.dart @@ -65,7 +65,7 @@ class PlansApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -184,7 +184,7 @@ class PlansApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -284,7 +284,7 @@ class PlansApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -391,7 +391,7 @@ class PlansApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -503,7 +503,7 @@ class PlansApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/products_api.dart b/lib/src/api/products_api.dart index 34e0c8e..e1e747e 100644 --- a/lib/src/api/products_api.dart +++ b/lib/src/api/products_api.dart @@ -66,7 +66,7 @@ class ProductsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -189,7 +189,7 @@ class ProductsApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -295,7 +295,7 @@ class ProductsApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/shipping_contacts_api.dart b/lib/src/api/shipping_contacts_api.dart index 24e210f..1efb50b 100644 --- a/lib/src/api/shipping_contacts_api.dart +++ b/lib/src/api/shipping_contacts_api.dart @@ -66,7 +66,7 @@ class ShippingContactsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -189,7 +189,7 @@ class ShippingContactsApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -295,7 +295,7 @@ class ShippingContactsApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/shippings_api.dart b/lib/src/api/shippings_api.dart index 8126767..f5b8b75 100644 --- a/lib/src/api/shippings_api.dart +++ b/lib/src/api/shippings_api.dart @@ -65,7 +65,7 @@ class ShippingsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -188,7 +188,7 @@ class ShippingsApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -294,7 +294,7 @@ class ShippingsApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/subscriptions_api.dart b/lib/src/api/subscriptions_api.dart index cdbaece..ddc6b50 100644 --- a/lib/src/api/subscriptions_api.dart +++ b/lib/src/api/subscriptions_api.dart @@ -64,7 +64,7 @@ class SubscriptionsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -168,7 +168,7 @@ class SubscriptionsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -289,7 +289,7 @@ class SubscriptionsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -388,7 +388,7 @@ class SubscriptionsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -488,7 +488,7 @@ class SubscriptionsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -589,7 +589,7 @@ class SubscriptionsApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -693,7 +693,7 @@ class SubscriptionsApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/taxes_api.dart b/lib/src/api/taxes_api.dart index 948f946..30ae48b 100644 --- a/lib/src/api/taxes_api.dart +++ b/lib/src/api/taxes_api.dart @@ -66,7 +66,7 @@ class TaxesApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -189,7 +189,7 @@ class TaxesApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -295,7 +295,7 @@ class TaxesApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/tokens_api.dart b/lib/src/api/tokens_api.dart index b5661ea..ce7f20f 100644 --- a/lib/src/api/tokens_api.dart +++ b/lib/src/api/tokens_api.dart @@ -60,7 +60,7 @@ class TokensApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/transactions_api.dart b/lib/src/api/transactions_api.dart index 9268238..7d06343 100644 --- a/lib/src/api/transactions_api.dart +++ b/lib/src/api/transactions_api.dart @@ -62,7 +62,7 @@ class TransactionsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -175,7 +175,7 @@ class TransactionsApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/transfers_api.dart b/lib/src/api/transfers_api.dart index 0a81a87..e593419 100644 --- a/lib/src/api/transfers_api.dart +++ b/lib/src/api/transfers_api.dart @@ -62,7 +62,7 @@ class TransfersApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -169,7 +169,7 @@ class TransfersApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/api/webhook_keys_api.dart b/lib/src/api/webhook_keys_api.dart index 70f522f..6d8eccd 100644 --- a/lib/src/api/webhook_keys_api.dart +++ b/lib/src/api/webhook_keys_api.dart @@ -65,7 +65,7 @@ class WebhookKeysApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -183,7 +183,7 @@ class WebhookKeysApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -283,7 +283,7 @@ class WebhookKeysApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -390,7 +390,7 @@ class WebhookKeysApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -500,7 +500,7 @@ class WebhookKeysApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, diff --git a/lib/src/api/webhooks_api.dart b/lib/src/api/webhooks_api.dart index 7f7b08c..e1c6ec4 100644 --- a/lib/src/api/webhooks_api.dart +++ b/lib/src/api/webhooks_api.dart @@ -63,7 +63,7 @@ class WebhooksApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -181,7 +181,7 @@ class WebhooksApi { final _options = Options( method: r'DELETE', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -281,7 +281,7 @@ class WebhooksApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -388,7 +388,7 @@ class WebhooksApi { final _options = Options( method: r'GET', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, @@ -495,7 +495,7 @@ class WebhooksApi { final _options = Options( method: r'POST', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (localVarAccept != null) r'Accept': localVarAccept, if (localVarContentType != null) r'Content-Type': localVarContentType, @@ -598,7 +598,7 @@ class WebhooksApi { final _options = Options( method: r'PUT', headers: { - r'User-Agent': r'Conekta/v2 DartBindings/6.0.1', + r'User-Agent': r'Conekta/v2 DartBindings/6.0.2', if (acceptLanguage != null) r'Accept-Language': acceptLanguage, if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId, if (localVarAccept != null) r'Accept': localVarAccept, diff --git a/lib/src/model/api_key_create_response.dart b/lib/src/model/api_key_create_response.dart index 8516a4d..efae9c5 100644 --- a/lib/src/model/api_key_create_response.dart +++ b/lib/src/model/api_key_create_response.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/api_key_response.dart'; -import 'package:conekta/src/model/api_key_create_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -13,7 +12,6 @@ part 'api_key_create_response.g.dart'; /// ApiKeyCreateResponse /// /// Properties: -/// * [authenticationToken] - 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. /// * [active] - Indicates if the api key is active /// * [createdAt] - Unix timestamp in seconds of when the api key was created /// * [updatedAt] - Unix timestamp in seconds of when the api key was last updated @@ -25,8 +23,13 @@ part 'api_key_create_response.g.dart'; /// * [object] - Object name, value is 'api_key' /// * [prefix] - The first few characters of the authentication_token /// * [role] - Indicates if the api key is private or public +/// * [authenticationToken] - 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. @BuiltValue() -abstract class ApiKeyCreateResponse implements ApiKeyCreateResponseAllOf, ApiKeyResponse, Built { +abstract class ApiKeyCreateResponse implements ApiKeyResponse, Built { + /// 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. + @BuiltValueField(wireName: r'authentication_token') + String? get authenticationToken; + ApiKeyCreateResponse._(); factory ApiKeyCreateResponse([void updates(ApiKeyCreateResponseBuilder b)]) = _$ApiKeyCreateResponse; @@ -50,6 +53,20 @@ class _$ApiKeyCreateResponseSerializer implements PrimitiveSerializer, - ApiKeyCreateResponseAllOfBuilder, ApiKeyResponseBuilder { _$ApiKeyCreateResponse? _$v; @@ -210,7 +209,6 @@ class ApiKeyCreateResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant ApiKeyCreateResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$ApiKeyCreateResponse; diff --git a/lib/src/model/api_key_create_response_all_of.dart b/lib/src/model/api_key_create_response_all_of.dart deleted file mode 100644 index e5f5c11..0000000 --- a/lib/src/model/api_key_create_response_all_of.dart +++ /dev/null @@ -1,142 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'api_key_create_response_all_of.g.dart'; - -/// ApiKeyCreateResponseAllOf -/// -/// Properties: -/// * [authenticationToken] - 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. -@BuiltValue(instantiable: false) -abstract class ApiKeyCreateResponseAllOf { - /// 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. - @BuiltValueField(wireName: r'authentication_token') - String? get authenticationToken; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ApiKeyCreateResponseAllOfSerializer(); -} - -class _$ApiKeyCreateResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ApiKeyCreateResponseAllOf]; - - @override - final String wireName = r'ApiKeyCreateResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - ApiKeyCreateResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.authenticationToken != null) { - yield r'authentication_token'; - yield serializers.serialize( - object.authenticationToken, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ApiKeyCreateResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ApiKeyCreateResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ApiKeyCreateResponseAllOf)) as $ApiKeyCreateResponseAllOf; - } -} - -/// a concrete implementation of [ApiKeyCreateResponseAllOf], since [ApiKeyCreateResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ApiKeyCreateResponseAllOf implements ApiKeyCreateResponseAllOf, Built<$ApiKeyCreateResponseAllOf, $ApiKeyCreateResponseAllOfBuilder> { - $ApiKeyCreateResponseAllOf._(); - - factory $ApiKeyCreateResponseAllOf([void Function($ApiKeyCreateResponseAllOfBuilder)? updates]) = _$$ApiKeyCreateResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ApiKeyCreateResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ApiKeyCreateResponseAllOf> get serializer => _$$ApiKeyCreateResponseAllOfSerializer(); -} - -class _$$ApiKeyCreateResponseAllOfSerializer implements PrimitiveSerializer<$ApiKeyCreateResponseAllOf> { - @override - final Iterable types = const [$ApiKeyCreateResponseAllOf, _$$ApiKeyCreateResponseAllOf]; - - @override - final String wireName = r'$ApiKeyCreateResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $ApiKeyCreateResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ApiKeyCreateResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ApiKeyCreateResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'authentication_token': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.authenticationToken = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ApiKeyCreateResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ApiKeyCreateResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/api_key_create_response_all_of.g.dart b/lib/src/model/api_key_create_response_all_of.g.dart deleted file mode 100644 index 23f89c2..0000000 --- a/lib/src/model/api_key_create_response_all_of.g.dart +++ /dev/null @@ -1,102 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api_key_create_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ApiKeyCreateResponseAllOfBuilder { - void replace(ApiKeyCreateResponseAllOf other); - void update(void Function(ApiKeyCreateResponseAllOfBuilder) updates); - String? get authenticationToken; - set authenticationToken(String? authenticationToken); -} - -class _$$ApiKeyCreateResponseAllOf extends $ApiKeyCreateResponseAllOf { - @override - final String? authenticationToken; - - factory _$$ApiKeyCreateResponseAllOf( - [void Function($ApiKeyCreateResponseAllOfBuilder)? updates]) => - (new $ApiKeyCreateResponseAllOfBuilder()..update(updates))._build(); - - _$$ApiKeyCreateResponseAllOf._({this.authenticationToken}) : super._(); - - @override - $ApiKeyCreateResponseAllOf rebuild( - void Function($ApiKeyCreateResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ApiKeyCreateResponseAllOfBuilder toBuilder() => - new $ApiKeyCreateResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ApiKeyCreateResponseAllOf && - authenticationToken == other.authenticationToken; - } - - @override - int get hashCode { - return $jf($jc(0, authenticationToken.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ApiKeyCreateResponseAllOf') - ..add('authenticationToken', authenticationToken)) - .toString(); - } -} - -class $ApiKeyCreateResponseAllOfBuilder - implements - Builder<$ApiKeyCreateResponseAllOf, $ApiKeyCreateResponseAllOfBuilder>, - ApiKeyCreateResponseAllOfBuilder { - _$$ApiKeyCreateResponseAllOf? _$v; - - String? _authenticationToken; - String? get authenticationToken => _$this._authenticationToken; - set authenticationToken(covariant String? authenticationToken) => - _$this._authenticationToken = authenticationToken; - - $ApiKeyCreateResponseAllOfBuilder() { - $ApiKeyCreateResponseAllOf._defaults(this); - } - - $ApiKeyCreateResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _authenticationToken = $v.authenticationToken; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ApiKeyCreateResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ApiKeyCreateResponseAllOf; - } - - @override - void update(void Function($ApiKeyCreateResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ApiKeyCreateResponseAllOf build() => _build(); - - _$$ApiKeyCreateResponseAllOf _build() { - final _$result = _$v ?? - new _$$ApiKeyCreateResponseAllOf._( - authenticationToken: authenticationToken); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/charge_data_payment_method_bank_transfer_response.dart b/lib/src/model/charge_data_payment_method_bank_transfer_response.dart deleted file mode 100644 index 14dd13f..0000000 --- a/lib/src/model/charge_data_payment_method_bank_transfer_response.dart +++ /dev/null @@ -1,423 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/json_object.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'charge_data_payment_method_bank_transfer_response.g.dart'; - -/// use for bank transfer responses -/// -/// Properties: -/// * [bank] -/// * [clabe] -/// * [description] -/// * [executedAt] -/// * [expiresAt] -/// * [issuingAccountBank] -/// * [issuingAccountNumber] -/// * [issuingAccountHolderName] -/// * [issuingAccountTaxId] -/// * [paymentAttempts] -/// * [receivingAccountHolderName] -/// * [receivingAccountNumber] -/// * [receivingAccountBank] -/// * [receivingAccountTaxId] -/// * [referenceNumber] -/// * [trackingCode] -@BuiltValue(instantiable: false) -abstract class ChargeDataPaymentMethodBankTransferResponse { - @BuiltValueField(wireName: r'bank') - String? get bank; - - @BuiltValueField(wireName: r'clabe') - String? get clabe; - - @BuiltValueField(wireName: r'description') - String? get description; - - @BuiltValueField(wireName: r'executed_at') - int? get executedAt; - - @BuiltValueField(wireName: r'expires_at') - int? get expiresAt; - - @BuiltValueField(wireName: r'issuing_account_bank') - String? get issuingAccountBank; - - @BuiltValueField(wireName: r'issuing_account_number') - String? get issuingAccountNumber; - - @BuiltValueField(wireName: r'issuing_account_holder_name') - String? get issuingAccountHolderName; - - @BuiltValueField(wireName: r'issuing_account_tax_id') - String? get issuingAccountTaxId; - - @BuiltValueField(wireName: r'payment_attempts') - BuiltList? get paymentAttempts; - - @BuiltValueField(wireName: r'receiving_account_holder_name') - String? get receivingAccountHolderName; - - @BuiltValueField(wireName: r'receiving_account_number') - String? get receivingAccountNumber; - - @BuiltValueField(wireName: r'receiving_account_bank') - String? get receivingAccountBank; - - @BuiltValueField(wireName: r'receiving_account_tax_id') - String? get receivingAccountTaxId; - - @BuiltValueField(wireName: r'reference_number') - String? get referenceNumber; - - @BuiltValueField(wireName: r'tracking_code') - String? get trackingCode; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ChargeDataPaymentMethodBankTransferResponseSerializer(); -} - -class _$ChargeDataPaymentMethodBankTransferResponseSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChargeDataPaymentMethodBankTransferResponse]; - - @override - final String wireName = r'ChargeDataPaymentMethodBankTransferResponse'; - - Iterable _serializeProperties( - Serializers serializers, - ChargeDataPaymentMethodBankTransferResponse object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.bank != null) { - yield r'bank'; - yield serializers.serialize( - object.bank, - specifiedType: const FullType(String), - ); - } - if (object.clabe != null) { - yield r'clabe'; - yield serializers.serialize( - object.clabe, - specifiedType: const FullType(String), - ); - } - if (object.description != null) { - yield r'description'; - yield serializers.serialize( - object.description, - specifiedType: const FullType.nullable(String), - ); - } - if (object.executedAt != null) { - yield r'executed_at'; - yield serializers.serialize( - object.executedAt, - specifiedType: const FullType.nullable(int), - ); - } - if (object.expiresAt != null) { - yield r'expires_at'; - yield serializers.serialize( - object.expiresAt, - specifiedType: const FullType(int), - ); - } - if (object.issuingAccountBank != null) { - yield r'issuing_account_bank'; - yield serializers.serialize( - object.issuingAccountBank, - specifiedType: const FullType.nullable(String), - ); - } - if (object.issuingAccountNumber != null) { - yield r'issuing_account_number'; - yield serializers.serialize( - object.issuingAccountNumber, - specifiedType: const FullType.nullable(String), - ); - } - if (object.issuingAccountHolderName != null) { - yield r'issuing_account_holder_name'; - yield serializers.serialize( - object.issuingAccountHolderName, - specifiedType: const FullType.nullable(String), - ); - } - if (object.issuingAccountTaxId != null) { - yield r'issuing_account_tax_id'; - yield serializers.serialize( - object.issuingAccountTaxId, - specifiedType: const FullType.nullable(String), - ); - } - if (object.paymentAttempts != null) { - yield r'payment_attempts'; - yield serializers.serialize( - object.paymentAttempts, - specifiedType: const FullType(BuiltList, [FullType.nullable(JsonObject)]), - ); - } - if (object.receivingAccountHolderName != null) { - yield r'receiving_account_holder_name'; - yield serializers.serialize( - object.receivingAccountHolderName, - specifiedType: const FullType.nullable(String), - ); - } - if (object.receivingAccountNumber != null) { - yield r'receiving_account_number'; - yield serializers.serialize( - object.receivingAccountNumber, - specifiedType: const FullType(String), - ); - } - if (object.receivingAccountBank != null) { - yield r'receiving_account_bank'; - yield serializers.serialize( - object.receivingAccountBank, - specifiedType: const FullType(String), - ); - } - if (object.receivingAccountTaxId != null) { - yield r'receiving_account_tax_id'; - yield serializers.serialize( - object.receivingAccountTaxId, - specifiedType: const FullType.nullable(String), - ); - } - if (object.referenceNumber != null) { - yield r'reference_number'; - yield serializers.serialize( - object.referenceNumber, - specifiedType: const FullType.nullable(String), - ); - } - if (object.trackingCode != null) { - yield r'tracking_code'; - yield serializers.serialize( - object.trackingCode, - specifiedType: const FullType.nullable(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ChargeDataPaymentMethodBankTransferResponse object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ChargeDataPaymentMethodBankTransferResponse deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ChargeDataPaymentMethodBankTransferResponse)) as $ChargeDataPaymentMethodBankTransferResponse; - } -} - -/// a concrete implementation of [ChargeDataPaymentMethodBankTransferResponse], since [ChargeDataPaymentMethodBankTransferResponse] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ChargeDataPaymentMethodBankTransferResponse implements ChargeDataPaymentMethodBankTransferResponse, Built<$ChargeDataPaymentMethodBankTransferResponse, $ChargeDataPaymentMethodBankTransferResponseBuilder> { - $ChargeDataPaymentMethodBankTransferResponse._(); - - factory $ChargeDataPaymentMethodBankTransferResponse([void Function($ChargeDataPaymentMethodBankTransferResponseBuilder)? updates]) = _$$ChargeDataPaymentMethodBankTransferResponse; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChargeDataPaymentMethodBankTransferResponseBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ChargeDataPaymentMethodBankTransferResponse> get serializer => _$$ChargeDataPaymentMethodBankTransferResponseSerializer(); -} - -class _$$ChargeDataPaymentMethodBankTransferResponseSerializer implements PrimitiveSerializer<$ChargeDataPaymentMethodBankTransferResponse> { - @override - final Iterable types = const [$ChargeDataPaymentMethodBankTransferResponse, _$$ChargeDataPaymentMethodBankTransferResponse]; - - @override - final String wireName = r'$ChargeDataPaymentMethodBankTransferResponse'; - - @override - Object serialize( - Serializers serializers, - $ChargeDataPaymentMethodBankTransferResponse object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ChargeDataPaymentMethodBankTransferResponse))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ChargeDataPaymentMethodBankTransferResponseBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'bank': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.bank = valueDes; - break; - case r'clabe': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.clabe = valueDes; - break; - case r'description': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.description = valueDes; - break; - case r'executed_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(int), - ) as int?; - if (valueDes == null) continue; - result.executedAt = valueDes; - break; - case r'expires_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.expiresAt = valueDes; - break; - case r'issuing_account_bank': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.issuingAccountBank = valueDes; - break; - case r'issuing_account_number': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.issuingAccountNumber = valueDes; - break; - case r'issuing_account_holder_name': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.issuingAccountHolderName = valueDes; - break; - case r'issuing_account_tax_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.issuingAccountTaxId = valueDes; - break; - case r'payment_attempts': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType.nullable(JsonObject)]), - ) as BuiltList; - result.paymentAttempts.replace(valueDes); - break; - case r'receiving_account_holder_name': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.receivingAccountHolderName = valueDes; - break; - case r'receiving_account_number': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.receivingAccountNumber = valueDes; - break; - case r'receiving_account_bank': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.receivingAccountBank = valueDes; - break; - case r'receiving_account_tax_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.receivingAccountTaxId = valueDes; - break; - case r'reference_number': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.referenceNumber = valueDes; - break; - case r'tracking_code': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.trackingCode = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ChargeDataPaymentMethodBankTransferResponse deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ChargeDataPaymentMethodBankTransferResponseBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/charge_data_payment_method_bank_transfer_response.g.dart b/lib/src/model/charge_data_payment_method_bank_transfer_response.g.dart deleted file mode 100644 index a10330e..0000000 --- a/lib/src/model/charge_data_payment_method_bank_transfer_response.g.dart +++ /dev/null @@ -1,387 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_data_payment_method_bank_transfer_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ChargeDataPaymentMethodBankTransferResponseBuilder { - void replace(ChargeDataPaymentMethodBankTransferResponse other); - void update( - void Function(ChargeDataPaymentMethodBankTransferResponseBuilder) - updates); - String? get bank; - set bank(String? bank); - - String? get clabe; - set clabe(String? clabe); - - String? get description; - set description(String? description); - - int? get executedAt; - set executedAt(int? executedAt); - - int? get expiresAt; - set expiresAt(int? expiresAt); - - String? get issuingAccountBank; - set issuingAccountBank(String? issuingAccountBank); - - String? get issuingAccountNumber; - set issuingAccountNumber(String? issuingAccountNumber); - - String? get issuingAccountHolderName; - set issuingAccountHolderName(String? issuingAccountHolderName); - - String? get issuingAccountTaxId; - set issuingAccountTaxId(String? issuingAccountTaxId); - - ListBuilder get paymentAttempts; - set paymentAttempts(ListBuilder? paymentAttempts); - - String? get receivingAccountHolderName; - set receivingAccountHolderName(String? receivingAccountHolderName); - - String? get receivingAccountNumber; - set receivingAccountNumber(String? receivingAccountNumber); - - String? get receivingAccountBank; - set receivingAccountBank(String? receivingAccountBank); - - String? get receivingAccountTaxId; - set receivingAccountTaxId(String? receivingAccountTaxId); - - String? get referenceNumber; - set referenceNumber(String? referenceNumber); - - String? get trackingCode; - set trackingCode(String? trackingCode); -} - -class _$$ChargeDataPaymentMethodBankTransferResponse - extends $ChargeDataPaymentMethodBankTransferResponse { - @override - final String? bank; - @override - final String? clabe; - @override - final String? description; - @override - final int? executedAt; - @override - final int? expiresAt; - @override - final String? issuingAccountBank; - @override - final String? issuingAccountNumber; - @override - final String? issuingAccountHolderName; - @override - final String? issuingAccountTaxId; - @override - final BuiltList? paymentAttempts; - @override - final String? receivingAccountHolderName; - @override - final String? receivingAccountNumber; - @override - final String? receivingAccountBank; - @override - final String? receivingAccountTaxId; - @override - final String? referenceNumber; - @override - final String? trackingCode; - - factory _$$ChargeDataPaymentMethodBankTransferResponse( - [void Function($ChargeDataPaymentMethodBankTransferResponseBuilder)? - updates]) => - (new $ChargeDataPaymentMethodBankTransferResponseBuilder() - ..update(updates)) - ._build(); - - _$$ChargeDataPaymentMethodBankTransferResponse._( - {this.bank, - this.clabe, - this.description, - this.executedAt, - this.expiresAt, - this.issuingAccountBank, - this.issuingAccountNumber, - this.issuingAccountHolderName, - this.issuingAccountTaxId, - this.paymentAttempts, - this.receivingAccountHolderName, - this.receivingAccountNumber, - this.receivingAccountBank, - this.receivingAccountTaxId, - this.referenceNumber, - this.trackingCode}) - : super._(); - - @override - $ChargeDataPaymentMethodBankTransferResponse rebuild( - void Function($ChargeDataPaymentMethodBankTransferResponseBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - $ChargeDataPaymentMethodBankTransferResponseBuilder toBuilder() => - new $ChargeDataPaymentMethodBankTransferResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ChargeDataPaymentMethodBankTransferResponse && - bank == other.bank && - clabe == other.clabe && - description == other.description && - executedAt == other.executedAt && - expiresAt == other.expiresAt && - issuingAccountBank == other.issuingAccountBank && - issuingAccountNumber == other.issuingAccountNumber && - issuingAccountHolderName == other.issuingAccountHolderName && - issuingAccountTaxId == other.issuingAccountTaxId && - paymentAttempts == other.paymentAttempts && - receivingAccountHolderName == other.receivingAccountHolderName && - receivingAccountNumber == other.receivingAccountNumber && - receivingAccountBank == other.receivingAccountBank && - receivingAccountTaxId == other.receivingAccountTaxId && - referenceNumber == other.referenceNumber && - trackingCode == other.trackingCode; - } - - @override - int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - 0, - bank - .hashCode), - clabe.hashCode), - description - .hashCode), - executedAt.hashCode), - expiresAt.hashCode), - issuingAccountBank.hashCode), - issuingAccountNumber.hashCode), - issuingAccountHolderName.hashCode), - issuingAccountTaxId.hashCode), - paymentAttempts.hashCode), - receivingAccountHolderName.hashCode), - receivingAccountNumber.hashCode), - receivingAccountBank.hashCode), - receivingAccountTaxId.hashCode), - referenceNumber.hashCode), - trackingCode.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'$ChargeDataPaymentMethodBankTransferResponse') - ..add('bank', bank) - ..add('clabe', clabe) - ..add('description', description) - ..add('executedAt', executedAt) - ..add('expiresAt', expiresAt) - ..add('issuingAccountBank', issuingAccountBank) - ..add('issuingAccountNumber', issuingAccountNumber) - ..add('issuingAccountHolderName', issuingAccountHolderName) - ..add('issuingAccountTaxId', issuingAccountTaxId) - ..add('paymentAttempts', paymentAttempts) - ..add('receivingAccountHolderName', receivingAccountHolderName) - ..add('receivingAccountNumber', receivingAccountNumber) - ..add('receivingAccountBank', receivingAccountBank) - ..add('receivingAccountTaxId', receivingAccountTaxId) - ..add('referenceNumber', referenceNumber) - ..add('trackingCode', trackingCode)) - .toString(); - } -} - -class $ChargeDataPaymentMethodBankTransferResponseBuilder - implements - Builder<$ChargeDataPaymentMethodBankTransferResponse, - $ChargeDataPaymentMethodBankTransferResponseBuilder>, - ChargeDataPaymentMethodBankTransferResponseBuilder { - _$$ChargeDataPaymentMethodBankTransferResponse? _$v; - - String? _bank; - String? get bank => _$this._bank; - set bank(covariant String? bank) => _$this._bank = bank; - - String? _clabe; - String? get clabe => _$this._clabe; - set clabe(covariant String? clabe) => _$this._clabe = clabe; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - int? _executedAt; - int? get executedAt => _$this._executedAt; - set executedAt(covariant int? executedAt) => _$this._executedAt = executedAt; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _issuingAccountBank; - String? get issuingAccountBank => _$this._issuingAccountBank; - set issuingAccountBank(covariant String? issuingAccountBank) => - _$this._issuingAccountBank = issuingAccountBank; - - String? _issuingAccountNumber; - String? get issuingAccountNumber => _$this._issuingAccountNumber; - set issuingAccountNumber(covariant String? issuingAccountNumber) => - _$this._issuingAccountNumber = issuingAccountNumber; - - String? _issuingAccountHolderName; - String? get issuingAccountHolderName => _$this._issuingAccountHolderName; - set issuingAccountHolderName(covariant String? issuingAccountHolderName) => - _$this._issuingAccountHolderName = issuingAccountHolderName; - - String? _issuingAccountTaxId; - String? get issuingAccountTaxId => _$this._issuingAccountTaxId; - set issuingAccountTaxId(covariant String? issuingAccountTaxId) => - _$this._issuingAccountTaxId = issuingAccountTaxId; - - ListBuilder? _paymentAttempts; - ListBuilder get paymentAttempts => - _$this._paymentAttempts ??= new ListBuilder(); - set paymentAttempts(covariant ListBuilder? paymentAttempts) => - _$this._paymentAttempts = paymentAttempts; - - String? _receivingAccountHolderName; - String? get receivingAccountHolderName => _$this._receivingAccountHolderName; - set receivingAccountHolderName( - covariant String? receivingAccountHolderName) => - _$this._receivingAccountHolderName = receivingAccountHolderName; - - String? _receivingAccountNumber; - String? get receivingAccountNumber => _$this._receivingAccountNumber; - set receivingAccountNumber(covariant String? receivingAccountNumber) => - _$this._receivingAccountNumber = receivingAccountNumber; - - String? _receivingAccountBank; - String? get receivingAccountBank => _$this._receivingAccountBank; - set receivingAccountBank(covariant String? receivingAccountBank) => - _$this._receivingAccountBank = receivingAccountBank; - - String? _receivingAccountTaxId; - String? get receivingAccountTaxId => _$this._receivingAccountTaxId; - set receivingAccountTaxId(covariant String? receivingAccountTaxId) => - _$this._receivingAccountTaxId = receivingAccountTaxId; - - String? _referenceNumber; - String? get referenceNumber => _$this._referenceNumber; - set referenceNumber(covariant String? referenceNumber) => - _$this._referenceNumber = referenceNumber; - - String? _trackingCode; - String? get trackingCode => _$this._trackingCode; - set trackingCode(covariant String? trackingCode) => - _$this._trackingCode = trackingCode; - - $ChargeDataPaymentMethodBankTransferResponseBuilder() { - $ChargeDataPaymentMethodBankTransferResponse._defaults(this); - } - - $ChargeDataPaymentMethodBankTransferResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _bank = $v.bank; - _clabe = $v.clabe; - _description = $v.description; - _executedAt = $v.executedAt; - _expiresAt = $v.expiresAt; - _issuingAccountBank = $v.issuingAccountBank; - _issuingAccountNumber = $v.issuingAccountNumber; - _issuingAccountHolderName = $v.issuingAccountHolderName; - _issuingAccountTaxId = $v.issuingAccountTaxId; - _paymentAttempts = $v.paymentAttempts?.toBuilder(); - _receivingAccountHolderName = $v.receivingAccountHolderName; - _receivingAccountNumber = $v.receivingAccountNumber; - _receivingAccountBank = $v.receivingAccountBank; - _receivingAccountTaxId = $v.receivingAccountTaxId; - _referenceNumber = $v.referenceNumber; - _trackingCode = $v.trackingCode; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ChargeDataPaymentMethodBankTransferResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ChargeDataPaymentMethodBankTransferResponse; - } - - @override - void update( - void Function($ChargeDataPaymentMethodBankTransferResponseBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - $ChargeDataPaymentMethodBankTransferResponse build() => _build(); - - _$$ChargeDataPaymentMethodBankTransferResponse _build() { - _$$ChargeDataPaymentMethodBankTransferResponse _$result; - try { - _$result = _$v ?? - new _$$ChargeDataPaymentMethodBankTransferResponse._( - bank: bank, - clabe: clabe, - description: description, - executedAt: executedAt, - expiresAt: expiresAt, - issuingAccountBank: issuingAccountBank, - issuingAccountNumber: issuingAccountNumber, - issuingAccountHolderName: issuingAccountHolderName, - issuingAccountTaxId: issuingAccountTaxId, - paymentAttempts: _paymentAttempts?.build(), - receivingAccountHolderName: receivingAccountHolderName, - receivingAccountNumber: receivingAccountNumber, - receivingAccountBank: receivingAccountBank, - receivingAccountTaxId: receivingAccountTaxId, - referenceNumber: referenceNumber, - trackingCode: trackingCode); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'paymentAttempts'; - _paymentAttempts?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$ChargeDataPaymentMethodBankTransferResponse', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/charge_data_payment_method_card_response.dart b/lib/src/model/charge_data_payment_method_card_response.dart deleted file mode 100644 index 5867513..0000000 --- a/lib/src/model/charge_data_payment_method_card_response.dart +++ /dev/null @@ -1,324 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/json_object.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'charge_data_payment_method_card_response.g.dart'; - -/// use for card responses -/// -/// Properties: -/// * [accountType] -/// * [authCode] -/// * [brand] -/// * [contractId] - Id sent for recurrent charges. -/// * [country] -/// * [expMonth] -/// * [expYear] -/// * [fraudIndicators] -/// * [issuer] -/// * [last4] -/// * [name] -@BuiltValue(instantiable: false) -abstract class ChargeDataPaymentMethodCardResponse { - @BuiltValueField(wireName: r'account_type') - String? get accountType; - - @BuiltValueField(wireName: r'auth_code') - String? get authCode; - - @BuiltValueField(wireName: r'brand') - String? get brand; - - /// Id sent for recurrent charges. - @BuiltValueField(wireName: r'contract_id') - String? get contractId; - - @BuiltValueField(wireName: r'country') - String? get country; - - @BuiltValueField(wireName: r'exp_month') - String? get expMonth; - - @BuiltValueField(wireName: r'exp_year') - String? get expYear; - - @BuiltValueField(wireName: r'fraud_indicators') - BuiltList? get fraudIndicators; - - @BuiltValueField(wireName: r'issuer') - String? get issuer; - - @BuiltValueField(wireName: r'last4') - String? get last4; - - @BuiltValueField(wireName: r'name') - String? get name; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ChargeDataPaymentMethodCardResponseSerializer(); -} - -class _$ChargeDataPaymentMethodCardResponseSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChargeDataPaymentMethodCardResponse]; - - @override - final String wireName = r'ChargeDataPaymentMethodCardResponse'; - - Iterable _serializeProperties( - Serializers serializers, - ChargeDataPaymentMethodCardResponse object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.accountType != null) { - yield r'account_type'; - yield serializers.serialize( - object.accountType, - specifiedType: const FullType(String), - ); - } - if (object.authCode != null) { - yield r'auth_code'; - yield serializers.serialize( - object.authCode, - specifiedType: const FullType(String), - ); - } - if (object.brand != null) { - yield r'brand'; - yield serializers.serialize( - object.brand, - specifiedType: const FullType(String), - ); - } - if (object.contractId != null) { - yield r'contract_id'; - yield serializers.serialize( - object.contractId, - specifiedType: const FullType(String), - ); - } - if (object.country != null) { - yield r'country'; - yield serializers.serialize( - object.country, - specifiedType: const FullType(String), - ); - } - if (object.expMonth != null) { - yield r'exp_month'; - yield serializers.serialize( - object.expMonth, - specifiedType: const FullType(String), - ); - } - if (object.expYear != null) { - yield r'exp_year'; - yield serializers.serialize( - object.expYear, - specifiedType: const FullType(String), - ); - } - if (object.fraudIndicators != null) { - yield r'fraud_indicators'; - yield serializers.serialize( - object.fraudIndicators, - specifiedType: const FullType(BuiltList, [FullType.nullable(JsonObject)]), - ); - } - if (object.issuer != null) { - yield r'issuer'; - yield serializers.serialize( - object.issuer, - specifiedType: const FullType(String), - ); - } - if (object.last4 != null) { - yield r'last4'; - yield serializers.serialize( - object.last4, - specifiedType: const FullType(String), - ); - } - if (object.name != null) { - yield r'name'; - yield serializers.serialize( - object.name, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ChargeDataPaymentMethodCardResponse object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ChargeDataPaymentMethodCardResponse deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ChargeDataPaymentMethodCardResponse)) as $ChargeDataPaymentMethodCardResponse; - } -} - -/// a concrete implementation of [ChargeDataPaymentMethodCardResponse], since [ChargeDataPaymentMethodCardResponse] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ChargeDataPaymentMethodCardResponse implements ChargeDataPaymentMethodCardResponse, Built<$ChargeDataPaymentMethodCardResponse, $ChargeDataPaymentMethodCardResponseBuilder> { - $ChargeDataPaymentMethodCardResponse._(); - - factory $ChargeDataPaymentMethodCardResponse([void Function($ChargeDataPaymentMethodCardResponseBuilder)? updates]) = _$$ChargeDataPaymentMethodCardResponse; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChargeDataPaymentMethodCardResponseBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ChargeDataPaymentMethodCardResponse> get serializer => _$$ChargeDataPaymentMethodCardResponseSerializer(); -} - -class _$$ChargeDataPaymentMethodCardResponseSerializer implements PrimitiveSerializer<$ChargeDataPaymentMethodCardResponse> { - @override - final Iterable types = const [$ChargeDataPaymentMethodCardResponse, _$$ChargeDataPaymentMethodCardResponse]; - - @override - final String wireName = r'$ChargeDataPaymentMethodCardResponse'; - - @override - Object serialize( - Serializers serializers, - $ChargeDataPaymentMethodCardResponse object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ChargeDataPaymentMethodCardResponse))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ChargeDataPaymentMethodCardResponseBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'account_type': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.accountType = valueDes; - break; - case r'auth_code': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.authCode = valueDes; - break; - case r'brand': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.brand = valueDes; - break; - case r'contract_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.contractId = valueDes; - break; - case r'country': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.country = valueDes; - break; - case r'exp_month': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.expMonth = valueDes; - break; - case r'exp_year': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.expYear = valueDes; - break; - case r'fraud_indicators': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType.nullable(JsonObject)]), - ) as BuiltList; - result.fraudIndicators.replace(valueDes); - break; - case r'issuer': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.issuer = valueDes; - break; - case r'last4': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.last4 = valueDes; - break; - case r'name': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.name = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ChargeDataPaymentMethodCardResponse deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ChargeDataPaymentMethodCardResponseBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/charge_data_payment_method_card_response.g.dart b/lib/src/model/charge_data_payment_method_card_response.g.dart deleted file mode 100644 index de7cd4d..0000000 --- a/lib/src/model/charge_data_payment_method_card_response.g.dart +++ /dev/null @@ -1,287 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_data_payment_method_card_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ChargeDataPaymentMethodCardResponseBuilder { - void replace(ChargeDataPaymentMethodCardResponse other); - void update( - void Function(ChargeDataPaymentMethodCardResponseBuilder) updates); - String? get accountType; - set accountType(String? accountType); - - String? get authCode; - set authCode(String? authCode); - - String? get brand; - set brand(String? brand); - - String? get contractId; - set contractId(String? contractId); - - String? get country; - set country(String? country); - - String? get expMonth; - set expMonth(String? expMonth); - - String? get expYear; - set expYear(String? expYear); - - ListBuilder get fraudIndicators; - set fraudIndicators(ListBuilder? fraudIndicators); - - String? get issuer; - set issuer(String? issuer); - - String? get last4; - set last4(String? last4); - - String? get name; - set name(String? name); -} - -class _$$ChargeDataPaymentMethodCardResponse - extends $ChargeDataPaymentMethodCardResponse { - @override - final String? accountType; - @override - final String? authCode; - @override - final String? brand; - @override - final String? contractId; - @override - final String? country; - @override - final String? expMonth; - @override - final String? expYear; - @override - final BuiltList? fraudIndicators; - @override - final String? issuer; - @override - final String? last4; - @override - final String? name; - - factory _$$ChargeDataPaymentMethodCardResponse( - [void Function($ChargeDataPaymentMethodCardResponseBuilder)? - updates]) => - (new $ChargeDataPaymentMethodCardResponseBuilder()..update(updates)) - ._build(); - - _$$ChargeDataPaymentMethodCardResponse._( - {this.accountType, - this.authCode, - this.brand, - this.contractId, - this.country, - this.expMonth, - this.expYear, - this.fraudIndicators, - this.issuer, - this.last4, - this.name}) - : super._(); - - @override - $ChargeDataPaymentMethodCardResponse rebuild( - void Function($ChargeDataPaymentMethodCardResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ChargeDataPaymentMethodCardResponseBuilder toBuilder() => - new $ChargeDataPaymentMethodCardResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ChargeDataPaymentMethodCardResponse && - accountType == other.accountType && - authCode == other.authCode && - brand == other.brand && - contractId == other.contractId && - country == other.country && - expMonth == other.expMonth && - expYear == other.expYear && - fraudIndicators == other.fraudIndicators && - issuer == other.issuer && - last4 == other.last4 && - name == other.name; - } - - @override - int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc(0, accountType.hashCode), - authCode.hashCode), - brand.hashCode), - contractId.hashCode), - country.hashCode), - expMonth.hashCode), - expYear.hashCode), - fraudIndicators.hashCode), - issuer.hashCode), - last4.hashCode), - name.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ChargeDataPaymentMethodCardResponse') - ..add('accountType', accountType) - ..add('authCode', authCode) - ..add('brand', brand) - ..add('contractId', contractId) - ..add('country', country) - ..add('expMonth', expMonth) - ..add('expYear', expYear) - ..add('fraudIndicators', fraudIndicators) - ..add('issuer', issuer) - ..add('last4', last4) - ..add('name', name)) - .toString(); - } -} - -class $ChargeDataPaymentMethodCardResponseBuilder - implements - Builder<$ChargeDataPaymentMethodCardResponse, - $ChargeDataPaymentMethodCardResponseBuilder>, - ChargeDataPaymentMethodCardResponseBuilder { - _$$ChargeDataPaymentMethodCardResponse? _$v; - - String? _accountType; - String? get accountType => _$this._accountType; - set accountType(covariant String? accountType) => - _$this._accountType = accountType; - - String? _authCode; - String? get authCode => _$this._authCode; - set authCode(covariant String? authCode) => _$this._authCode = authCode; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - String? _contractId; - String? get contractId => _$this._contractId; - set contractId(covariant String? contractId) => - _$this._contractId = contractId; - - String? _country; - String? get country => _$this._country; - set country(covariant String? country) => _$this._country = country; - - String? _expMonth; - String? get expMonth => _$this._expMonth; - set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; - - String? _expYear; - String? get expYear => _$this._expYear; - set expYear(covariant String? expYear) => _$this._expYear = expYear; - - ListBuilder? _fraudIndicators; - ListBuilder get fraudIndicators => - _$this._fraudIndicators ??= new ListBuilder(); - set fraudIndicators(covariant ListBuilder? fraudIndicators) => - _$this._fraudIndicators = fraudIndicators; - - String? _issuer; - String? get issuer => _$this._issuer; - set issuer(covariant String? issuer) => _$this._issuer = issuer; - - String? _last4; - String? get last4 => _$this._last4; - set last4(covariant String? last4) => _$this._last4 = last4; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - $ChargeDataPaymentMethodCardResponseBuilder() { - $ChargeDataPaymentMethodCardResponse._defaults(this); - } - - $ChargeDataPaymentMethodCardResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _accountType = $v.accountType; - _authCode = $v.authCode; - _brand = $v.brand; - _contractId = $v.contractId; - _country = $v.country; - _expMonth = $v.expMonth; - _expYear = $v.expYear; - _fraudIndicators = $v.fraudIndicators?.toBuilder(); - _issuer = $v.issuer; - _last4 = $v.last4; - _name = $v.name; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ChargeDataPaymentMethodCardResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ChargeDataPaymentMethodCardResponse; - } - - @override - void update( - void Function($ChargeDataPaymentMethodCardResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ChargeDataPaymentMethodCardResponse build() => _build(); - - _$$ChargeDataPaymentMethodCardResponse _build() { - _$$ChargeDataPaymentMethodCardResponse _$result; - try { - _$result = _$v ?? - new _$$ChargeDataPaymentMethodCardResponse._( - accountType: accountType, - authCode: authCode, - brand: brand, - contractId: contractId, - country: country, - expMonth: expMonth, - expYear: expYear, - fraudIndicators: _fraudIndicators?.build(), - issuer: issuer, - last4: last4, - name: name); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'fraudIndicators'; - _fraudIndicators?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$ChargeDataPaymentMethodCardResponse', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/charge_data_payment_method_cash_response.dart b/lib/src/model/charge_data_payment_method_cash_response.dart deleted file mode 100644 index ca7b41f..0000000 --- a/lib/src/model/charge_data_payment_method_cash_response.dart +++ /dev/null @@ -1,270 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'charge_data_payment_method_cash_response.g.dart'; - -/// use for cash responses -/// -/// Properties: -/// * [authCode] -/// * [cashierId] -/// * [reference] -/// * [barcodeUrl] -/// * [expiresAt] -/// * [serviceName] -/// * [store] -/// * [storeName] -@BuiltValue(instantiable: false) -abstract class ChargeDataPaymentMethodCashResponse { - @BuiltValueField(wireName: r'auth_code') - int? get authCode; - - @BuiltValueField(wireName: r'cashier_id') - String? get cashierId; - - @BuiltValueField(wireName: r'reference') - String? get reference; - - @BuiltValueField(wireName: r'barcode_url') - String? get barcodeUrl; - - @BuiltValueField(wireName: r'expires_at') - int? get expiresAt; - - @BuiltValueField(wireName: r'service_name') - String? get serviceName; - - @BuiltValueField(wireName: r'store') - String? get store; - - @BuiltValueField(wireName: r'store_name') - String? get storeName; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ChargeDataPaymentMethodCashResponseSerializer(); -} - -class _$ChargeDataPaymentMethodCashResponseSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChargeDataPaymentMethodCashResponse]; - - @override - final String wireName = r'ChargeDataPaymentMethodCashResponse'; - - Iterable _serializeProperties( - Serializers serializers, - ChargeDataPaymentMethodCashResponse object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.authCode != null) { - yield r'auth_code'; - yield serializers.serialize( - object.authCode, - specifiedType: const FullType.nullable(int), - ); - } - if (object.cashierId != null) { - yield r'cashier_id'; - yield serializers.serialize( - object.cashierId, - specifiedType: const FullType.nullable(String), - ); - } - if (object.reference != null) { - yield r'reference'; - yield serializers.serialize( - object.reference, - specifiedType: const FullType(String), - ); - } - if (object.barcodeUrl != null) { - yield r'barcode_url'; - yield serializers.serialize( - object.barcodeUrl, - specifiedType: const FullType(String), - ); - } - if (object.expiresAt != null) { - yield r'expires_at'; - yield serializers.serialize( - object.expiresAt, - specifiedType: const FullType(int), - ); - } - if (object.serviceName != null) { - yield r'service_name'; - yield serializers.serialize( - object.serviceName, - specifiedType: const FullType(String), - ); - } - if (object.store != null) { - yield r'store'; - yield serializers.serialize( - object.store, - specifiedType: const FullType.nullable(String), - ); - } - if (object.storeName != null) { - yield r'store_name'; - yield serializers.serialize( - object.storeName, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ChargeDataPaymentMethodCashResponse object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ChargeDataPaymentMethodCashResponse deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ChargeDataPaymentMethodCashResponse)) as $ChargeDataPaymentMethodCashResponse; - } -} - -/// a concrete implementation of [ChargeDataPaymentMethodCashResponse], since [ChargeDataPaymentMethodCashResponse] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ChargeDataPaymentMethodCashResponse implements ChargeDataPaymentMethodCashResponse, Built<$ChargeDataPaymentMethodCashResponse, $ChargeDataPaymentMethodCashResponseBuilder> { - $ChargeDataPaymentMethodCashResponse._(); - - factory $ChargeDataPaymentMethodCashResponse([void Function($ChargeDataPaymentMethodCashResponseBuilder)? updates]) = _$$ChargeDataPaymentMethodCashResponse; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChargeDataPaymentMethodCashResponseBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ChargeDataPaymentMethodCashResponse> get serializer => _$$ChargeDataPaymentMethodCashResponseSerializer(); -} - -class _$$ChargeDataPaymentMethodCashResponseSerializer implements PrimitiveSerializer<$ChargeDataPaymentMethodCashResponse> { - @override - final Iterable types = const [$ChargeDataPaymentMethodCashResponse, _$$ChargeDataPaymentMethodCashResponse]; - - @override - final String wireName = r'$ChargeDataPaymentMethodCashResponse'; - - @override - Object serialize( - Serializers serializers, - $ChargeDataPaymentMethodCashResponse object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ChargeDataPaymentMethodCashResponse))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ChargeDataPaymentMethodCashResponseBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'auth_code': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(int), - ) as int?; - if (valueDes == null) continue; - result.authCode = valueDes; - break; - case r'cashier_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.cashierId = valueDes; - break; - case r'reference': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.reference = valueDes; - break; - case r'barcode_url': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.barcodeUrl = valueDes; - break; - case r'expires_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.expiresAt = valueDes; - break; - case r'service_name': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.serviceName = valueDes; - break; - case r'store': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.store = valueDes; - break; - case r'store_name': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.storeName = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ChargeDataPaymentMethodCashResponse deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ChargeDataPaymentMethodCashResponseBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/charge_data_payment_method_cash_response.g.dart b/lib/src/model/charge_data_payment_method_cash_response.g.dart deleted file mode 100644 index cddecfb..0000000 --- a/lib/src/model/charge_data_payment_method_cash_response.g.dart +++ /dev/null @@ -1,220 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_data_payment_method_cash_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ChargeDataPaymentMethodCashResponseBuilder { - void replace(ChargeDataPaymentMethodCashResponse other); - void update( - void Function(ChargeDataPaymentMethodCashResponseBuilder) updates); - int? get authCode; - set authCode(int? authCode); - - String? get cashierId; - set cashierId(String? cashierId); - - String? get reference; - set reference(String? reference); - - String? get barcodeUrl; - set barcodeUrl(String? barcodeUrl); - - int? get expiresAt; - set expiresAt(int? expiresAt); - - String? get serviceName; - set serviceName(String? serviceName); - - String? get store; - set store(String? store); - - String? get storeName; - set storeName(String? storeName); -} - -class _$$ChargeDataPaymentMethodCashResponse - extends $ChargeDataPaymentMethodCashResponse { - @override - final int? authCode; - @override - final String? cashierId; - @override - final String? reference; - @override - final String? barcodeUrl; - @override - final int? expiresAt; - @override - final String? serviceName; - @override - final String? store; - @override - final String? storeName; - - factory _$$ChargeDataPaymentMethodCashResponse( - [void Function($ChargeDataPaymentMethodCashResponseBuilder)? - updates]) => - (new $ChargeDataPaymentMethodCashResponseBuilder()..update(updates)) - ._build(); - - _$$ChargeDataPaymentMethodCashResponse._( - {this.authCode, - this.cashierId, - this.reference, - this.barcodeUrl, - this.expiresAt, - this.serviceName, - this.store, - this.storeName}) - : super._(); - - @override - $ChargeDataPaymentMethodCashResponse rebuild( - void Function($ChargeDataPaymentMethodCashResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ChargeDataPaymentMethodCashResponseBuilder toBuilder() => - new $ChargeDataPaymentMethodCashResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ChargeDataPaymentMethodCashResponse && - authCode == other.authCode && - cashierId == other.cashierId && - reference == other.reference && - barcodeUrl == other.barcodeUrl && - expiresAt == other.expiresAt && - serviceName == other.serviceName && - store == other.store && - storeName == other.storeName; - } - - @override - int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, authCode.hashCode), cashierId.hashCode), - reference.hashCode), - barcodeUrl.hashCode), - expiresAt.hashCode), - serviceName.hashCode), - store.hashCode), - storeName.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ChargeDataPaymentMethodCashResponse') - ..add('authCode', authCode) - ..add('cashierId', cashierId) - ..add('reference', reference) - ..add('barcodeUrl', barcodeUrl) - ..add('expiresAt', expiresAt) - ..add('serviceName', serviceName) - ..add('store', store) - ..add('storeName', storeName)) - .toString(); - } -} - -class $ChargeDataPaymentMethodCashResponseBuilder - implements - Builder<$ChargeDataPaymentMethodCashResponse, - $ChargeDataPaymentMethodCashResponseBuilder>, - ChargeDataPaymentMethodCashResponseBuilder { - _$$ChargeDataPaymentMethodCashResponse? _$v; - - int? _authCode; - int? get authCode => _$this._authCode; - set authCode(covariant int? authCode) => _$this._authCode = authCode; - - String? _cashierId; - String? get cashierId => _$this._cashierId; - set cashierId(covariant String? cashierId) => _$this._cashierId = cashierId; - - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - String? _barcodeUrl; - String? get barcodeUrl => _$this._barcodeUrl; - set barcodeUrl(covariant String? barcodeUrl) => - _$this._barcodeUrl = barcodeUrl; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _serviceName; - String? get serviceName => _$this._serviceName; - set serviceName(covariant String? serviceName) => - _$this._serviceName = serviceName; - - String? _store; - String? get store => _$this._store; - set store(covariant String? store) => _$this._store = store; - - String? _storeName; - String? get storeName => _$this._storeName; - set storeName(covariant String? storeName) => _$this._storeName = storeName; - - $ChargeDataPaymentMethodCashResponseBuilder() { - $ChargeDataPaymentMethodCashResponse._defaults(this); - } - - $ChargeDataPaymentMethodCashResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _authCode = $v.authCode; - _cashierId = $v.cashierId; - _reference = $v.reference; - _barcodeUrl = $v.barcodeUrl; - _expiresAt = $v.expiresAt; - _serviceName = $v.serviceName; - _store = $v.store; - _storeName = $v.storeName; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ChargeDataPaymentMethodCashResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ChargeDataPaymentMethodCashResponse; - } - - @override - void update( - void Function($ChargeDataPaymentMethodCashResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ChargeDataPaymentMethodCashResponse build() => _build(); - - _$$ChargeDataPaymentMethodCashResponse _build() { - final _$result = _$v ?? - new _$$ChargeDataPaymentMethodCashResponse._( - authCode: authCode, - cashierId: cashierId, - reference: reference, - barcodeUrl: barcodeUrl, - expiresAt: expiresAt, - serviceName: serviceName, - store: store, - storeName: storeName); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/charge_response_refunds.dart b/lib/src/model/charge_response_refunds.dart index e97e556..4d1785b 100644 --- a/lib/src/model/charge_response_refunds.dart +++ b/lib/src/model/charge_response_refunds.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; -import 'package:conekta/src/model/charge_response_refunds_all_of.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/charge_response_refunds_data.dart'; import 'package:conekta/src/model/page.dart'; @@ -22,7 +21,11 @@ part 'charge_response_refunds.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] - refunds @BuiltValue() -abstract class ChargeResponseRefunds implements ChargeResponseRefundsAllOf, Page, Pagination, Built { +abstract class ChargeResponseRefunds implements Page, Pagination, Built { + /// refunds + @BuiltValueField(wireName: r'data') + BuiltList? get data; + ChargeResponseRefunds._(); factory ChargeResponseRefunds([void updates(ChargeResponseRefundsBuilder b)]) = _$ChargeResponseRefunds; diff --git a/lib/src/model/charge_response_refunds.g.dart b/lib/src/model/charge_response_refunds.g.dart index 88a121e..4237a80 100644 --- a/lib/src/model/charge_response_refunds.g.dart +++ b/lib/src/model/charge_response_refunds.g.dart @@ -80,7 +80,6 @@ class _$ChargeResponseRefunds extends ChargeResponseRefunds { class ChargeResponseRefundsBuilder implements Builder, - ChargeResponseRefundsAllOfBuilder, PageBuilder, PaginationBuilder { _$ChargeResponseRefunds? _$v; diff --git a/lib/src/model/charge_response_refunds_all_of.dart b/lib/src/model/charge_response_refunds_all_of.dart deleted file mode 100644 index 17d465b..0000000 --- a/lib/src/model/charge_response_refunds_all_of.dart +++ /dev/null @@ -1,144 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/charge_response_refunds_data.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'charge_response_refunds_all_of.g.dart'; - -/// ChargeResponseRefundsAllOf -/// -/// Properties: -/// * [data] - refunds -@BuiltValue(instantiable: false) -abstract class ChargeResponseRefundsAllOf { - /// refunds - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ChargeResponseRefundsAllOfSerializer(); -} - -class _$ChargeResponseRefundsAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChargeResponseRefundsAllOf]; - - @override - final String wireName = r'ChargeResponseRefundsAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - ChargeResponseRefundsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(ChargeResponseRefundsData)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ChargeResponseRefundsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ChargeResponseRefundsAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ChargeResponseRefundsAllOf)) as $ChargeResponseRefundsAllOf; - } -} - -/// a concrete implementation of [ChargeResponseRefundsAllOf], since [ChargeResponseRefundsAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ChargeResponseRefundsAllOf implements ChargeResponseRefundsAllOf, Built<$ChargeResponseRefundsAllOf, $ChargeResponseRefundsAllOfBuilder> { - $ChargeResponseRefundsAllOf._(); - - factory $ChargeResponseRefundsAllOf([void Function($ChargeResponseRefundsAllOfBuilder)? updates]) = _$$ChargeResponseRefundsAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChargeResponseRefundsAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ChargeResponseRefundsAllOf> get serializer => _$$ChargeResponseRefundsAllOfSerializer(); -} - -class _$$ChargeResponseRefundsAllOfSerializer implements PrimitiveSerializer<$ChargeResponseRefundsAllOf> { - @override - final Iterable types = const [$ChargeResponseRefundsAllOf, _$$ChargeResponseRefundsAllOf]; - - @override - final String wireName = r'$ChargeResponseRefundsAllOf'; - - @override - Object serialize( - Serializers serializers, - $ChargeResponseRefundsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ChargeResponseRefundsAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ChargeResponseRefundsAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(ChargeResponseRefundsData)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ChargeResponseRefundsAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ChargeResponseRefundsAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/charge_response_refunds_all_of.g.dart b/lib/src/model/charge_response_refunds_all_of.g.dart deleted file mode 100644 index 9258cba..0000000 --- a/lib/src/model/charge_response_refunds_all_of.g.dart +++ /dev/null @@ -1,115 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_response_refunds_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ChargeResponseRefundsAllOfBuilder { - void replace(ChargeResponseRefundsAllOf other); - void update(void Function(ChargeResponseRefundsAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$ChargeResponseRefundsAllOf extends $ChargeResponseRefundsAllOf { - @override - final BuiltList? data; - - factory _$$ChargeResponseRefundsAllOf( - [void Function($ChargeResponseRefundsAllOfBuilder)? updates]) => - (new $ChargeResponseRefundsAllOfBuilder()..update(updates))._build(); - - _$$ChargeResponseRefundsAllOf._({this.data}) : super._(); - - @override - $ChargeResponseRefundsAllOf rebuild( - void Function($ChargeResponseRefundsAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ChargeResponseRefundsAllOfBuilder toBuilder() => - new $ChargeResponseRefundsAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ChargeResponseRefundsAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ChargeResponseRefundsAllOf') - ..add('data', data)) - .toString(); - } -} - -class $ChargeResponseRefundsAllOfBuilder - implements - Builder<$ChargeResponseRefundsAllOf, - $ChargeResponseRefundsAllOfBuilder>, - ChargeResponseRefundsAllOfBuilder { - _$$ChargeResponseRefundsAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $ChargeResponseRefundsAllOfBuilder() { - $ChargeResponseRefundsAllOf._defaults(this); - } - - $ChargeResponseRefundsAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $ChargeResponseRefundsAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ChargeResponseRefundsAllOf; - } - - @override - void update(void Function($ChargeResponseRefundsAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ChargeResponseRefundsAllOf build() => _build(); - - _$$ChargeResponseRefundsAllOf _build() { - _$$ChargeResponseRefundsAllOf _$result; - try { - _$result = - _$v ?? new _$$ChargeResponseRefundsAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$ChargeResponseRefundsAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/checkout_request.dart b/lib/src/model/checkout_request.dart index 882c934..3214b9a 100644 --- a/lib/src/model/checkout_request.dart +++ b/lib/src/model/checkout_request.dart @@ -19,6 +19,7 @@ part 'checkout_request.g.dart'; /// * [monthlyInstallmentsOptions] /// * [name] - Reason for payment /// * [onDemandEnabled] +/// * [redirectionTime] - number of seconds to wait before redirecting to the success_url /// * [successUrl] - Redirection url back to the site in case of successful payment, applies only to HostedPayment /// * [type] - This field represents the type of checkout @BuiltValue() @@ -48,6 +49,10 @@ abstract class CheckoutRequest implements Built _$this._onDemandEnabled = onDemandEnabled; + int? _redirectionTime; + int? get redirectionTime => _$this._redirectionTime; + set redirectionTime(int? redirectionTime) => + _$this._redirectionTime = redirectionTime; + String? _successUrl; String? get successUrl => _$this._successUrl; set successUrl(String? successUrl) => _$this._successUrl = successUrl; @@ -164,6 +176,7 @@ class CheckoutRequestBuilder _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); _name = $v.name; _onDemandEnabled = $v.onDemandEnabled; + _redirectionTime = $v.redirectionTime; _successUrl = $v.successUrl; _type = $v.type; _$v = null; @@ -197,6 +210,7 @@ class CheckoutRequestBuilder monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), name: name, onDemandEnabled: onDemandEnabled, + redirectionTime: redirectionTime, successUrl: successUrl, type: type); } catch (_) { diff --git a/lib/src/model/checkouts_response.dart b/lib/src/model/checkouts_response.dart index 3dd1fd5..43bc7dc 100644 --- a/lib/src/model/checkouts_response.dart +++ b/lib/src/model/checkouts_response.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:conekta/src/model/checkout_response.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; -import 'package:conekta/src/model/checkouts_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'checkouts_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class CheckoutsResponse implements CheckoutsResponseAllOf, Page, Pagination, Built { +abstract class CheckoutsResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + CheckoutsResponse._(); factory CheckoutsResponse([void updates(CheckoutsResponseBuilder b)]) = _$CheckoutsResponse; diff --git a/lib/src/model/checkouts_response.g.dart b/lib/src/model/checkouts_response.g.dart index 54d2067..1416bad 100644 --- a/lib/src/model/checkouts_response.g.dart +++ b/lib/src/model/checkouts_response.g.dart @@ -79,7 +79,6 @@ class _$CheckoutsResponse extends CheckoutsResponse { class CheckoutsResponseBuilder implements Builder, - CheckoutsResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$CheckoutsResponse? _$v; diff --git a/lib/src/model/checkouts_response_all_of.dart b/lib/src/model/checkouts_response_all_of.dart deleted file mode 100644 index 51f5e69..0000000 --- a/lib/src/model/checkouts_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:conekta/src/model/checkout_response.dart'; -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'checkouts_response_all_of.g.dart'; - -/// CheckoutsResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class CheckoutsResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CheckoutsResponseAllOfSerializer(); -} - -class _$CheckoutsResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CheckoutsResponseAllOf]; - - @override - final String wireName = r'CheckoutsResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - CheckoutsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(CheckoutResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CheckoutsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CheckoutsResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CheckoutsResponseAllOf)) as $CheckoutsResponseAllOf; - } -} - -/// a concrete implementation of [CheckoutsResponseAllOf], since [CheckoutsResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CheckoutsResponseAllOf implements CheckoutsResponseAllOf, Built<$CheckoutsResponseAllOf, $CheckoutsResponseAllOfBuilder> { - $CheckoutsResponseAllOf._(); - - factory $CheckoutsResponseAllOf([void Function($CheckoutsResponseAllOfBuilder)? updates]) = _$$CheckoutsResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CheckoutsResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CheckoutsResponseAllOf> get serializer => _$$CheckoutsResponseAllOfSerializer(); -} - -class _$$CheckoutsResponseAllOfSerializer implements PrimitiveSerializer<$CheckoutsResponseAllOf> { - @override - final Iterable types = const [$CheckoutsResponseAllOf, _$$CheckoutsResponseAllOf]; - - @override - final String wireName = r'$CheckoutsResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $CheckoutsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CheckoutsResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CheckoutsResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(CheckoutResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CheckoutsResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CheckoutsResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/checkouts_response_all_of.g.dart b/lib/src/model/checkouts_response_all_of.g.dart deleted file mode 100644 index b5c4918..0000000 --- a/lib/src/model/checkouts_response_all_of.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkouts_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CheckoutsResponseAllOfBuilder { - void replace(CheckoutsResponseAllOf other); - void update(void Function(CheckoutsResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$CheckoutsResponseAllOf extends $CheckoutsResponseAllOf { - @override - final BuiltList? data; - - factory _$$CheckoutsResponseAllOf( - [void Function($CheckoutsResponseAllOfBuilder)? updates]) => - (new $CheckoutsResponseAllOfBuilder()..update(updates))._build(); - - _$$CheckoutsResponseAllOf._({this.data}) : super._(); - - @override - $CheckoutsResponseAllOf rebuild( - void Function($CheckoutsResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CheckoutsResponseAllOfBuilder toBuilder() => - new $CheckoutsResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CheckoutsResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CheckoutsResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $CheckoutsResponseAllOfBuilder - implements - Builder<$CheckoutsResponseAllOf, $CheckoutsResponseAllOfBuilder>, - CheckoutsResponseAllOfBuilder { - _$$CheckoutsResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $CheckoutsResponseAllOfBuilder() { - $CheckoutsResponseAllOf._defaults(this); - } - - $CheckoutsResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $CheckoutsResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CheckoutsResponseAllOf; - } - - @override - void update(void Function($CheckoutsResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CheckoutsResponseAllOf build() => _build(); - - _$$CheckoutsResponseAllOf _build() { - _$$CheckoutsResponseAllOf _$result; - try { - _$result = _$v ?? new _$$CheckoutsResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CheckoutsResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/create_customer_fiscal_entities_response.dart b/lib/src/model/create_customer_fiscal_entities_response.dart index 0d4dee1..d5540b4 100644 --- a/lib/src/model/create_customer_fiscal_entities_response.dart +++ b/lib/src/model/create_customer_fiscal_entities_response.dart @@ -4,9 +4,8 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/create_customer_fiscal_entities_response_all_of.dart'; +import 'package:conekta/src/model/customer_address.dart'; import 'package:conekta/src/model/customer_fiscal_entities_request.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -28,7 +27,22 @@ part 'create_customer_fiscal_entities_response.g.dart'; /// * [parentId] /// * [default_] @BuiltValue() -abstract class CreateCustomerFiscalEntitiesResponse implements CreateCustomerFiscalEntitiesResponseAllOf, CustomerFiscalEntitiesRequest, Built { +abstract class CreateCustomerFiscalEntitiesResponse implements CustomerFiscalEntitiesRequest, Built { + @BuiltValueField(wireName: r'created_at') + int get createdAt; + + @BuiltValueField(wireName: r'default') + bool? get default_; + + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String get object; + CreateCustomerFiscalEntitiesResponse._(); factory CreateCustomerFiscalEntitiesResponse([void updates(CreateCustomerFiscalEntitiesResponseBuilder b)]) = _$CreateCustomerFiscalEntitiesResponse; @@ -67,7 +81,7 @@ class _$CreateCustomerFiscalEntitiesResponseSerializer implements PrimitiveSeria yield r'address'; yield serializers.serialize( object.address, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), + specifiedType: const FullType(CustomerAddress), ); if (object.phone != null) { yield r'phone'; @@ -161,8 +175,8 @@ class _$CreateCustomerFiscalEntitiesResponseSerializer implements PrimitiveSeria case r'address': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), - ) as CustomerFiscalEntitiesRequestAddress; + specifiedType: const FullType(CustomerAddress), + ) as CustomerAddress; result.address.replace(valueDes); break; case r'phone': diff --git a/lib/src/model/create_customer_fiscal_entities_response.g.dart b/lib/src/model/create_customer_fiscal_entities_response.g.dart index 1166a21..21763f6 100644 --- a/lib/src/model/create_customer_fiscal_entities_response.g.dart +++ b/lib/src/model/create_customer_fiscal_entities_response.g.dart @@ -9,17 +9,17 @@ part of 'create_customer_fiscal_entities_response.dart'; class _$CreateCustomerFiscalEntitiesResponse extends CreateCustomerFiscalEntitiesResponse { @override - final String id; + final int createdAt; @override - final String object; + final bool? default_; @override - final int createdAt; + final String id; @override final String? parentId; @override - final bool? default_; + final String object; @override - final CustomerFiscalEntitiesRequestAddress address; + final CustomerAddress address; @override final String? taxId; @override @@ -38,11 +38,11 @@ class _$CreateCustomerFiscalEntitiesResponse ._build(); _$CreateCustomerFiscalEntitiesResponse._( - {required this.id, - required this.object, - required this.createdAt, - this.parentId, + {required this.createdAt, this.default_, + required this.id, + this.parentId, + required this.object, required this.address, this.taxId, this.email, @@ -50,12 +50,12 @@ class _$CreateCustomerFiscalEntitiesResponse this.metadata, this.companyName}) : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'CreateCustomerFiscalEntitiesResponse', 'createdAt'); BuiltValueNullFieldError.checkNotNull( id, r'CreateCustomerFiscalEntitiesResponse', 'id'); BuiltValueNullFieldError.checkNotNull( object, r'CreateCustomerFiscalEntitiesResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'CreateCustomerFiscalEntitiesResponse', 'createdAt'); BuiltValueNullFieldError.checkNotNull( address, r'CreateCustomerFiscalEntitiesResponse', 'address'); } @@ -73,11 +73,11 @@ class _$CreateCustomerFiscalEntitiesResponse bool operator ==(Object other) { if (identical(other, this)) return true; return other is CreateCustomerFiscalEntitiesResponse && - id == other.id && - object == other.object && createdAt == other.createdAt && - parentId == other.parentId && default_ == other.default_ && + id == other.id && + parentId == other.parentId && + object == other.object && address == other.address && taxId == other.taxId && email == other.email && @@ -97,11 +97,11 @@ class _$CreateCustomerFiscalEntitiesResponse $jc( $jc( $jc( - $jc($jc(0, id.hashCode), - object.hashCode), - createdAt.hashCode), + $jc($jc(0, createdAt.hashCode), + default_.hashCode), + id.hashCode), parentId.hashCode), - default_.hashCode), + object.hashCode), address.hashCode), taxId.hashCode), email.hashCode), @@ -113,11 +113,11 @@ class _$CreateCustomerFiscalEntitiesResponse @override String toString() { return (newBuiltValueToStringHelper(r'CreateCustomerFiscalEntitiesResponse') - ..add('id', id) - ..add('object', object) ..add('createdAt', createdAt) - ..add('parentId', parentId) ..add('default_', default_) + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) ..add('address', address) ..add('taxId', taxId) ..add('email', email) @@ -132,34 +132,33 @@ class CreateCustomerFiscalEntitiesResponseBuilder implements Builder, - CreateCustomerFiscalEntitiesResponseAllOfBuilder, CustomerFiscalEntitiesRequestBuilder { _$CreateCustomerFiscalEntitiesResponse? _$v; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - int? _createdAt; int? get createdAt => _$this._createdAt; set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + bool? _default_; + bool? get default_ => _$this._default_; + set default_(covariant bool? default_) => _$this._default_ = default_; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + String? _parentId; String? get parentId => _$this._parentId; set parentId(covariant String? parentId) => _$this._parentId = parentId; - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; - CustomerFiscalEntitiesRequestAddressBuilder? _address; - CustomerFiscalEntitiesRequestAddressBuilder get address => - _$this._address ??= new CustomerFiscalEntitiesRequestAddressBuilder(); - set address(covariant CustomerFiscalEntitiesRequestAddressBuilder? address) => + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(covariant CustomerAddressBuilder? address) => _$this._address = address; String? _taxId; @@ -192,11 +191,11 @@ class CreateCustomerFiscalEntitiesResponseBuilder CreateCustomerFiscalEntitiesResponseBuilder get _$this { final $v = _$v; if ($v != null) { - _id = $v.id; - _object = $v.object; _createdAt = $v.createdAt; - _parentId = $v.parentId; _default_ = $v.default_; + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; _address = $v.address.toBuilder(); _taxId = $v.taxId; _email = $v.email; @@ -209,7 +208,6 @@ class CreateCustomerFiscalEntitiesResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant CreateCustomerFiscalEntitiesResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$CreateCustomerFiscalEntitiesResponse; @@ -229,14 +227,14 @@ class CreateCustomerFiscalEntitiesResponseBuilder try { _$result = _$v ?? new _$CreateCustomerFiscalEntitiesResponse._( + createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, + r'CreateCustomerFiscalEntitiesResponse', 'createdAt'), + default_: default_, id: BuiltValueNullFieldError.checkNotNull( id, r'CreateCustomerFiscalEntitiesResponse', 'id'), + parentId: parentId, object: BuiltValueNullFieldError.checkNotNull( object, r'CreateCustomerFiscalEntitiesResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'CreateCustomerFiscalEntitiesResponse', 'createdAt'), - parentId: parentId, - default_: default_, address: address.build(), taxId: taxId, email: email, diff --git a/lib/src/model/create_customer_fiscal_entities_response_all_of.dart b/lib/src/model/create_customer_fiscal_entities_response_all_of.dart deleted file mode 100644 index 752df4c..0000000 --- a/lib/src/model/create_customer_fiscal_entities_response_all_of.dart +++ /dev/null @@ -1,207 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'create_customer_fiscal_entities_response_all_of.g.dart'; - -/// CreateCustomerFiscalEntitiesResponseAllOf -/// -/// Properties: -/// * [id] -/// * [object] -/// * [createdAt] -/// * [parentId] -/// * [default_] -@BuiltValue(instantiable: false) -abstract class CreateCustomerFiscalEntitiesResponseAllOf { - @BuiltValueField(wireName: r'id') - String get id; - - @BuiltValueField(wireName: r'object') - String get object; - - @BuiltValueField(wireName: r'created_at') - int get createdAt; - - @BuiltValueField(wireName: r'parent_id') - String? get parentId; - - @BuiltValueField(wireName: r'default') - bool? get default_; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CreateCustomerFiscalEntitiesResponseAllOfSerializer(); -} - -class _$CreateCustomerFiscalEntitiesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CreateCustomerFiscalEntitiesResponseAllOf]; - - @override - final String wireName = r'CreateCustomerFiscalEntitiesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - CreateCustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - yield r'created_at'; - yield serializers.serialize( - object.createdAt, - specifiedType: const FullType(int), - ); - if (object.parentId != null) { - yield r'parent_id'; - yield serializers.serialize( - object.parentId, - specifiedType: const FullType(String), - ); - } - if (object.default_ != null) { - yield r'default'; - yield serializers.serialize( - object.default_, - specifiedType: const FullType(bool), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CreateCustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CreateCustomerFiscalEntitiesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CreateCustomerFiscalEntitiesResponseAllOf)) as $CreateCustomerFiscalEntitiesResponseAllOf; - } -} - -/// a concrete implementation of [CreateCustomerFiscalEntitiesResponseAllOf], since [CreateCustomerFiscalEntitiesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CreateCustomerFiscalEntitiesResponseAllOf implements CreateCustomerFiscalEntitiesResponseAllOf, Built<$CreateCustomerFiscalEntitiesResponseAllOf, $CreateCustomerFiscalEntitiesResponseAllOfBuilder> { - $CreateCustomerFiscalEntitiesResponseAllOf._(); - - factory $CreateCustomerFiscalEntitiesResponseAllOf([void Function($CreateCustomerFiscalEntitiesResponseAllOfBuilder)? updates]) = _$$CreateCustomerFiscalEntitiesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CreateCustomerFiscalEntitiesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CreateCustomerFiscalEntitiesResponseAllOf> get serializer => _$$CreateCustomerFiscalEntitiesResponseAllOfSerializer(); -} - -class _$$CreateCustomerFiscalEntitiesResponseAllOfSerializer implements PrimitiveSerializer<$CreateCustomerFiscalEntitiesResponseAllOf> { - @override - final Iterable types = const [$CreateCustomerFiscalEntitiesResponseAllOf, _$$CreateCustomerFiscalEntitiesResponseAllOf]; - - @override - final String wireName = r'$CreateCustomerFiscalEntitiesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $CreateCustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CreateCustomerFiscalEntitiesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CreateCustomerFiscalEntitiesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'created_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.createdAt = valueDes; - break; - case r'parent_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.parentId = valueDes; - break; - case r'default': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.default_ = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CreateCustomerFiscalEntitiesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CreateCustomerFiscalEntitiesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/create_customer_fiscal_entities_response_all_of.g.dart b/lib/src/model/create_customer_fiscal_entities_response_all_of.g.dart deleted file mode 100644 index 68933d7..0000000 --- a/lib/src/model/create_customer_fiscal_entities_response_all_of.g.dart +++ /dev/null @@ -1,181 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'create_customer_fiscal_entities_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CreateCustomerFiscalEntitiesResponseAllOfBuilder { - void replace(CreateCustomerFiscalEntitiesResponseAllOf other); - void update( - void Function(CreateCustomerFiscalEntitiesResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - int? get createdAt; - set createdAt(int? createdAt); - - String? get parentId; - set parentId(String? parentId); - - bool? get default_; - set default_(bool? default_); -} - -class _$$CreateCustomerFiscalEntitiesResponseAllOf - extends $CreateCustomerFiscalEntitiesResponseAllOf { - @override - final String id; - @override - final String object; - @override - final int createdAt; - @override - final String? parentId; - @override - final bool? default_; - - factory _$$CreateCustomerFiscalEntitiesResponseAllOf( - [void Function($CreateCustomerFiscalEntitiesResponseAllOfBuilder)? - updates]) => - (new $CreateCustomerFiscalEntitiesResponseAllOfBuilder()..update(updates)) - ._build(); - - _$$CreateCustomerFiscalEntitiesResponseAllOf._( - {required this.id, - required this.object, - required this.createdAt, - this.parentId, - this.default_}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - id, r'$CreateCustomerFiscalEntitiesResponseAllOf', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'$CreateCustomerFiscalEntitiesResponseAllOf', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'$CreateCustomerFiscalEntitiesResponseAllOf', 'createdAt'); - } - - @override - $CreateCustomerFiscalEntitiesResponseAllOf rebuild( - void Function($CreateCustomerFiscalEntitiesResponseAllOfBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - $CreateCustomerFiscalEntitiesResponseAllOfBuilder toBuilder() => - new $CreateCustomerFiscalEntitiesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CreateCustomerFiscalEntitiesResponseAllOf && - id == other.id && - object == other.object && - createdAt == other.createdAt && - parentId == other.parentId && - default_ == other.default_; - } - - @override - int get hashCode { - return $jf($jc( - $jc($jc($jc($jc(0, id.hashCode), object.hashCode), createdAt.hashCode), - parentId.hashCode), - default_.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'$CreateCustomerFiscalEntitiesResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt) - ..add('parentId', parentId) - ..add('default_', default_)) - .toString(); - } -} - -class $CreateCustomerFiscalEntitiesResponseAllOfBuilder - implements - Builder<$CreateCustomerFiscalEntitiesResponseAllOf, - $CreateCustomerFiscalEntitiesResponseAllOfBuilder>, - CreateCustomerFiscalEntitiesResponseAllOfBuilder { - _$$CreateCustomerFiscalEntitiesResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; - - $CreateCustomerFiscalEntitiesResponseAllOfBuilder() { - $CreateCustomerFiscalEntitiesResponseAllOf._defaults(this); - } - - $CreateCustomerFiscalEntitiesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _parentId = $v.parentId; - _default_ = $v.default_; - _$v = null; - } - return this; - } - - @override - void replace(covariant $CreateCustomerFiscalEntitiesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CreateCustomerFiscalEntitiesResponseAllOf; - } - - @override - void update( - void Function($CreateCustomerFiscalEntitiesResponseAllOfBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - $CreateCustomerFiscalEntitiesResponseAllOf build() => _build(); - - _$$CreateCustomerFiscalEntitiesResponseAllOf _build() { - final _$result = _$v ?? - new _$$CreateCustomerFiscalEntitiesResponseAllOf._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'$CreateCustomerFiscalEntitiesResponseAllOf', 'id'), - object: BuiltValueNullFieldError.checkNotNull(object, - r'$CreateCustomerFiscalEntitiesResponseAllOf', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'$CreateCustomerFiscalEntitiesResponseAllOf', 'createdAt'), - parentId: parentId, - default_: default_); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/customer_address.dart b/lib/src/model/customer_address.dart index d6b9ae1..4effb3d 100644 --- a/lib/src/model/customer_address.dart +++ b/lib/src/model/customer_address.dart @@ -19,8 +19,8 @@ part 'customer_address.g.dart'; /// * [country] - this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) /// * [residential] /// * [externalNumber] -@BuiltValue(instantiable: false) -abstract class CustomerAddress { +@BuiltValue() +abstract class CustomerAddress implements Built { @BuiltValueField(wireName: r'street1') String get street1; @@ -46,13 +46,21 @@ abstract class CustomerAddress { @BuiltValueField(wireName: r'external_number') String? get externalNumber; + CustomerAddress._(); + + factory CustomerAddress([void updates(CustomerAddressBuilder b)]) = _$CustomerAddress; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CustomerAddressBuilder b) => b + ..residential = false; + @BuiltValueSerializer(custom: true) static Serializer get serializer => _$CustomerAddressSerializer(); } class _$CustomerAddressSerializer implements PrimitiveSerializer { @override - final Iterable types = const [CustomerAddress]; + final Iterable types = const [CustomerAddress, _$CustomerAddress]; @override final String wireName = r'CustomerAddress'; @@ -123,46 +131,6 @@ class _$CustomerAddressSerializer implements PrimitiveSerializer { - $CustomerAddress._(); - - factory $CustomerAddress([void Function($CustomerAddressBuilder)? updates]) = _$$CustomerAddress; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CustomerAddressBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CustomerAddress> get serializer => _$$CustomerAddressSerializer(); -} - -class _$$CustomerAddressSerializer implements PrimitiveSerializer<$CustomerAddress> { - @override - final Iterable types = const [$CustomerAddress, _$$CustomerAddress]; - - @override - final String wireName = r'$CustomerAddress'; - - @override - Object serialize( - Serializers serializers, - $CustomerAddress object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CustomerAddress))!; - } - void _deserializeProperties( Serializers serializers, Object serialized, { @@ -240,12 +208,12 @@ class _$$CustomerAddressSerializer implements PrimitiveSerializer<$CustomerAddre } @override - $CustomerAddress deserialize( + CustomerAddress deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, }) { - final result = $CustomerAddressBuilder(); + final result = CustomerAddressBuilder(); final serializedList = (serialized as Iterable).toList(); final unhandled = []; _deserializeProperties( diff --git a/lib/src/model/customer_address.g.dart b/lib/src/model/customer_address.g.dart index 6fdf51f..0c6a692 100644 --- a/lib/src/model/customer_address.g.dart +++ b/lib/src/model/customer_address.g.dart @@ -6,35 +6,7 @@ part of 'customer_address.dart'; // BuiltValueGenerator // ************************************************************************** -abstract class CustomerAddressBuilder { - void replace(CustomerAddress other); - void update(void Function(CustomerAddressBuilder) updates); - String? get street1; - set street1(String? street1); - - String? get street2; - set street2(String? street2); - - String? get postalCode; - set postalCode(String? postalCode); - - String? get city; - set city(String? city); - - String? get state; - set state(String? state); - - String? get country; - set country(String? country); - - bool? get residential; - set residential(bool? residential); - - String? get externalNumber; - set externalNumber(String? externalNumber); -} - -class _$$CustomerAddress extends $CustomerAddress { +class _$CustomerAddress extends CustomerAddress { @override final String street1; @override @@ -52,11 +24,10 @@ class _$$CustomerAddress extends $CustomerAddress { @override final String? externalNumber; - factory _$$CustomerAddress( - [void Function($CustomerAddressBuilder)? updates]) => - (new $CustomerAddressBuilder()..update(updates))._build(); + factory _$CustomerAddress([void Function(CustomerAddressBuilder)? updates]) => + (new CustomerAddressBuilder()..update(updates))._build(); - _$$CustomerAddress._( + _$CustomerAddress._( {required this.street1, this.street2, required this.postalCode, @@ -67,24 +38,24 @@ class _$$CustomerAddress extends $CustomerAddress { this.externalNumber}) : super._() { BuiltValueNullFieldError.checkNotNull( - street1, r'$CustomerAddress', 'street1'); + street1, r'CustomerAddress', 'street1'); BuiltValueNullFieldError.checkNotNull( - postalCode, r'$CustomerAddress', 'postalCode'); - BuiltValueNullFieldError.checkNotNull(city, r'$CustomerAddress', 'city'); + postalCode, r'CustomerAddress', 'postalCode'); + BuiltValueNullFieldError.checkNotNull(city, r'CustomerAddress', 'city'); } @override - $CustomerAddress rebuild(void Function($CustomerAddressBuilder) updates) => + CustomerAddress rebuild(void Function(CustomerAddressBuilder) updates) => (toBuilder()..update(updates)).build(); @override - $CustomerAddressBuilder toBuilder() => - new $CustomerAddressBuilder()..replace(this); + CustomerAddressBuilder toBuilder() => + new CustomerAddressBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is $CustomerAddress && + return other is CustomerAddress && street1 == other.street1 && street2 == other.street2 && postalCode == other.postalCode && @@ -113,7 +84,7 @@ class _$$CustomerAddress extends $CustomerAddress { @override String toString() { - return (newBuiltValueToStringHelper(r'$CustomerAddress') + return (newBuiltValueToStringHelper(r'CustomerAddress') ..add('street1', street1) ..add('street2', street2) ..add('postalCode', postalCode) @@ -126,52 +97,48 @@ class _$$CustomerAddress extends $CustomerAddress { } } -class $CustomerAddressBuilder - implements - Builder<$CustomerAddress, $CustomerAddressBuilder>, - CustomerAddressBuilder { - _$$CustomerAddress? _$v; +class CustomerAddressBuilder + implements Builder { + _$CustomerAddress? _$v; String? _street1; String? get street1 => _$this._street1; - set street1(covariant String? street1) => _$this._street1 = street1; + set street1(String? street1) => _$this._street1 = street1; String? _street2; String? get street2 => _$this._street2; - set street2(covariant String? street2) => _$this._street2 = street2; + set street2(String? street2) => _$this._street2 = street2; String? _postalCode; String? get postalCode => _$this._postalCode; - set postalCode(covariant String? postalCode) => - _$this._postalCode = postalCode; + set postalCode(String? postalCode) => _$this._postalCode = postalCode; String? _city; String? get city => _$this._city; - set city(covariant String? city) => _$this._city = city; + set city(String? city) => _$this._city = city; String? _state; String? get state => _$this._state; - set state(covariant String? state) => _$this._state = state; + set state(String? state) => _$this._state = state; String? _country; String? get country => _$this._country; - set country(covariant String? country) => _$this._country = country; + set country(String? country) => _$this._country = country; bool? _residential; bool? get residential => _$this._residential; - set residential(covariant bool? residential) => - _$this._residential = residential; + set residential(bool? residential) => _$this._residential = residential; String? _externalNumber; String? get externalNumber => _$this._externalNumber; - set externalNumber(covariant String? externalNumber) => + set externalNumber(String? externalNumber) => _$this._externalNumber = externalNumber; - $CustomerAddressBuilder() { - $CustomerAddress._defaults(this); + CustomerAddressBuilder() { + CustomerAddress._defaults(this); } - $CustomerAddressBuilder get _$this { + CustomerAddressBuilder get _$this { final $v = _$v; if ($v != null) { _street1 = $v.street1; @@ -188,29 +155,29 @@ class $CustomerAddressBuilder } @override - void replace(covariant $CustomerAddress other) { + void replace(CustomerAddress other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerAddress; + _$v = other as _$CustomerAddress; } @override - void update(void Function($CustomerAddressBuilder)? updates) { + void update(void Function(CustomerAddressBuilder)? updates) { if (updates != null) updates(this); } @override - $CustomerAddress build() => _build(); + CustomerAddress build() => _build(); - _$$CustomerAddress _build() { + _$CustomerAddress _build() { final _$result = _$v ?? - new _$$CustomerAddress._( + new _$CustomerAddress._( street1: BuiltValueNullFieldError.checkNotNull( - street1, r'$CustomerAddress', 'street1'), + street1, r'CustomerAddress', 'street1'), street2: street2, postalCode: BuiltValueNullFieldError.checkNotNull( - postalCode, r'$CustomerAddress', 'postalCode'), + postalCode, r'CustomerAddress', 'postalCode'), city: BuiltValueNullFieldError.checkNotNull( - city, r'$CustomerAddress', 'city'), + city, r'CustomerAddress', 'city'), state: state, country: country, residential: residential, diff --git a/lib/src/model/customer_fiscal_entities_data_response.dart b/lib/src/model/customer_fiscal_entities_data_response.dart index 6ab7e46..da5c951 100644 --- a/lib/src/model/customer_fiscal_entities_data_response.dart +++ b/lib/src/model/customer_fiscal_entities_data_response.dart @@ -4,9 +4,8 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/create_customer_fiscal_entities_response_all_of.dart'; +import 'package:conekta/src/model/customer_address.dart'; import 'package:conekta/src/model/customer_fiscal_entities_request.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -28,7 +27,22 @@ part 'customer_fiscal_entities_data_response.g.dart'; /// * [parentId] /// * [default_] @BuiltValue() -abstract class CustomerFiscalEntitiesDataResponse implements CreateCustomerFiscalEntitiesResponseAllOf, CustomerFiscalEntitiesRequest, Built { +abstract class CustomerFiscalEntitiesDataResponse implements CustomerFiscalEntitiesRequest, Built { + @BuiltValueField(wireName: r'created_at') + int get createdAt; + + @BuiltValueField(wireName: r'default') + bool? get default_; + + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String get object; + CustomerFiscalEntitiesDataResponse._(); factory CustomerFiscalEntitiesDataResponse([void updates(CustomerFiscalEntitiesDataResponseBuilder b)]) = _$CustomerFiscalEntitiesDataResponse; @@ -67,7 +81,7 @@ class _$CustomerFiscalEntitiesDataResponseSerializer implements PrimitiveSeriali yield r'address'; yield serializers.serialize( object.address, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), + specifiedType: const FullType(CustomerAddress), ); if (object.phone != null) { yield r'phone'; @@ -161,8 +175,8 @@ class _$CustomerFiscalEntitiesDataResponseSerializer implements PrimitiveSeriali case r'address': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), - ) as CustomerFiscalEntitiesRequestAddress; + specifiedType: const FullType(CustomerAddress), + ) as CustomerAddress; result.address.replace(valueDes); break; case r'phone': diff --git a/lib/src/model/customer_fiscal_entities_data_response.g.dart b/lib/src/model/customer_fiscal_entities_data_response.g.dart index 0acf802..6f3e2c0 100644 --- a/lib/src/model/customer_fiscal_entities_data_response.g.dart +++ b/lib/src/model/customer_fiscal_entities_data_response.g.dart @@ -9,17 +9,17 @@ part of 'customer_fiscal_entities_data_response.dart'; class _$CustomerFiscalEntitiesDataResponse extends CustomerFiscalEntitiesDataResponse { @override - final String id; + final int createdAt; @override - final String object; + final bool? default_; @override - final int createdAt; + final String id; @override final String? parentId; @override - final bool? default_; + final String object; @override - final CustomerFiscalEntitiesRequestAddress address; + final CustomerAddress address; @override final String? taxId; @override @@ -38,11 +38,11 @@ class _$CustomerFiscalEntitiesDataResponse ._build(); _$CustomerFiscalEntitiesDataResponse._( - {required this.id, - required this.object, - required this.createdAt, - this.parentId, + {required this.createdAt, this.default_, + required this.id, + this.parentId, + required this.object, required this.address, this.taxId, this.email, @@ -50,12 +50,12 @@ class _$CustomerFiscalEntitiesDataResponse this.metadata, this.companyName}) : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'CustomerFiscalEntitiesDataResponse', 'createdAt'); BuiltValueNullFieldError.checkNotNull( id, r'CustomerFiscalEntitiesDataResponse', 'id'); BuiltValueNullFieldError.checkNotNull( object, r'CustomerFiscalEntitiesDataResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'CustomerFiscalEntitiesDataResponse', 'createdAt'); BuiltValueNullFieldError.checkNotNull( address, r'CustomerFiscalEntitiesDataResponse', 'address'); } @@ -73,11 +73,11 @@ class _$CustomerFiscalEntitiesDataResponse bool operator ==(Object other) { if (identical(other, this)) return true; return other is CustomerFiscalEntitiesDataResponse && - id == other.id && - object == other.object && createdAt == other.createdAt && - parentId == other.parentId && default_ == other.default_ && + id == other.id && + parentId == other.parentId && + object == other.object && address == other.address && taxId == other.taxId && email == other.email && @@ -97,11 +97,11 @@ class _$CustomerFiscalEntitiesDataResponse $jc( $jc( $jc( - $jc($jc(0, id.hashCode), - object.hashCode), - createdAt.hashCode), + $jc($jc(0, createdAt.hashCode), + default_.hashCode), + id.hashCode), parentId.hashCode), - default_.hashCode), + object.hashCode), address.hashCode), taxId.hashCode), email.hashCode), @@ -113,11 +113,11 @@ class _$CustomerFiscalEntitiesDataResponse @override String toString() { return (newBuiltValueToStringHelper(r'CustomerFiscalEntitiesDataResponse') - ..add('id', id) - ..add('object', object) ..add('createdAt', createdAt) - ..add('parentId', parentId) ..add('default_', default_) + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) ..add('address', address) ..add('taxId', taxId) ..add('email', email) @@ -132,34 +132,33 @@ class CustomerFiscalEntitiesDataResponseBuilder implements Builder, - CreateCustomerFiscalEntitiesResponseAllOfBuilder, CustomerFiscalEntitiesRequestBuilder { _$CustomerFiscalEntitiesDataResponse? _$v; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - int? _createdAt; int? get createdAt => _$this._createdAt; set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + bool? _default_; + bool? get default_ => _$this._default_; + set default_(covariant bool? default_) => _$this._default_ = default_; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + String? _parentId; String? get parentId => _$this._parentId; set parentId(covariant String? parentId) => _$this._parentId = parentId; - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; - CustomerFiscalEntitiesRequestAddressBuilder? _address; - CustomerFiscalEntitiesRequestAddressBuilder get address => - _$this._address ??= new CustomerFiscalEntitiesRequestAddressBuilder(); - set address(covariant CustomerFiscalEntitiesRequestAddressBuilder? address) => + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(covariant CustomerAddressBuilder? address) => _$this._address = address; String? _taxId; @@ -192,11 +191,11 @@ class CustomerFiscalEntitiesDataResponseBuilder CustomerFiscalEntitiesDataResponseBuilder get _$this { final $v = _$v; if ($v != null) { - _id = $v.id; - _object = $v.object; _createdAt = $v.createdAt; - _parentId = $v.parentId; _default_ = $v.default_; + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; _address = $v.address.toBuilder(); _taxId = $v.taxId; _email = $v.email; @@ -209,7 +208,6 @@ class CustomerFiscalEntitiesDataResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant CustomerFiscalEntitiesDataResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$CustomerFiscalEntitiesDataResponse; @@ -229,14 +227,14 @@ class CustomerFiscalEntitiesDataResponseBuilder try { _$result = _$v ?? new _$CustomerFiscalEntitiesDataResponse._( + createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, + r'CustomerFiscalEntitiesDataResponse', 'createdAt'), + default_: default_, id: BuiltValueNullFieldError.checkNotNull( id, r'CustomerFiscalEntitiesDataResponse', 'id'), + parentId: parentId, object: BuiltValueNullFieldError.checkNotNull( object, r'CustomerFiscalEntitiesDataResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'CustomerFiscalEntitiesDataResponse', 'createdAt'), - parentId: parentId, - default_: default_, address: address.build(), taxId: taxId, email: email, diff --git a/lib/src/model/customer_fiscal_entities_request.dart b/lib/src/model/customer_fiscal_entities_request.dart index f05efa0..8adfd24 100644 --- a/lib/src/model/customer_fiscal_entities_request.dart +++ b/lib/src/model/customer_fiscal_entities_request.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; +import 'package:conekta/src/model/customer_address.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -23,7 +23,7 @@ part 'customer_fiscal_entities_request.g.dart'; @BuiltValue(instantiable: false) abstract class CustomerFiscalEntitiesRequest { @BuiltValueField(wireName: r'address') - CustomerFiscalEntitiesRequestAddress get address; + CustomerAddress get address; @BuiltValueField(wireName: r'tax_id') String? get taxId; @@ -59,7 +59,7 @@ class _$CustomerFiscalEntitiesRequestSerializer implements PrimitiveSerializer - _$this._address ??= new CustomerFiscalEntitiesRequestAddressBuilder(); - set address(covariant CustomerFiscalEntitiesRequestAddressBuilder? address) => + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(covariant CustomerAddressBuilder? address) => _$this._address = address; String? _taxId; diff --git a/lib/src/model/customer_fiscal_entities_request_address.dart b/lib/src/model/customer_fiscal_entities_request_address.dart deleted file mode 100644 index d625f11..0000000 --- a/lib/src/model/customer_fiscal_entities_request_address.dart +++ /dev/null @@ -1,206 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:conekta/src/model/customer_address.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'customer_fiscal_entities_request_address.g.dart'; - -/// CustomerFiscalEntitiesRequestAddress -/// -/// Properties: -/// * [street1] -/// * [street2] -/// * [postalCode] -/// * [city] -/// * [state] -/// * [country] - this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) -/// * [residential] -/// * [externalNumber] -@BuiltValue() -abstract class CustomerFiscalEntitiesRequestAddress implements CustomerAddress, Built { - CustomerFiscalEntitiesRequestAddress._(); - - factory CustomerFiscalEntitiesRequestAddress([void updates(CustomerFiscalEntitiesRequestAddressBuilder b)]) = _$CustomerFiscalEntitiesRequestAddress; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(CustomerFiscalEntitiesRequestAddressBuilder b) => b - ..residential = false; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CustomerFiscalEntitiesRequestAddressSerializer(); -} - -class _$CustomerFiscalEntitiesRequestAddressSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CustomerFiscalEntitiesRequestAddress, _$CustomerFiscalEntitiesRequestAddress]; - - @override - final String wireName = r'CustomerFiscalEntitiesRequestAddress'; - - Iterable _serializeProperties( - Serializers serializers, - CustomerFiscalEntitiesRequestAddress object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.country != null) { - yield r'country'; - yield serializers.serialize( - object.country, - specifiedType: const FullType(String), - ); - } - if (object.residential != null) { - yield r'residential'; - yield serializers.serialize( - object.residential, - specifiedType: const FullType(bool), - ); - } - yield r'city'; - yield serializers.serialize( - object.city, - specifiedType: const FullType(String), - ); - if (object.externalNumber != null) { - yield r'external_number'; - yield serializers.serialize( - object.externalNumber, - specifiedType: const FullType(String), - ); - } - yield r'postal_code'; - yield serializers.serialize( - object.postalCode, - specifiedType: const FullType(String), - ); - yield r'street1'; - yield serializers.serialize( - object.street1, - specifiedType: const FullType(String), - ); - if (object.street2 != null) { - yield r'street2'; - yield serializers.serialize( - object.street2, - specifiedType: const FullType(String), - ); - } - if (object.state != null) { - yield r'state'; - yield serializers.serialize( - object.state, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CustomerFiscalEntitiesRequestAddress object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CustomerFiscalEntitiesRequestAddressBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'country': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.country = valueDes; - break; - case r'residential': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.residential = valueDes; - break; - case r'city': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.city = valueDes; - break; - case r'external_number': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.externalNumber = valueDes; - break; - case r'postal_code': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.postalCode = valueDes; - break; - case r'street1': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.street1 = valueDes; - break; - case r'street2': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.street2 = valueDes; - break; - case r'state': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.state = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - CustomerFiscalEntitiesRequestAddress deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = CustomerFiscalEntitiesRequestAddressBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/customer_fiscal_entities_request_address.g.dart b/lib/src/model/customer_fiscal_entities_request_address.g.dart deleted file mode 100644 index c94a358..0000000 --- a/lib/src/model/customer_fiscal_entities_request_address.g.dart +++ /dev/null @@ -1,202 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_fiscal_entities_request_address.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerFiscalEntitiesRequestAddress - extends CustomerFiscalEntitiesRequestAddress { - @override - final String street1; - @override - final String? street2; - @override - final String postalCode; - @override - final String city; - @override - final String? state; - @override - final String? country; - @override - final bool? residential; - @override - final String? externalNumber; - - factory _$CustomerFiscalEntitiesRequestAddress( - [void Function(CustomerFiscalEntitiesRequestAddressBuilder)? - updates]) => - (new CustomerFiscalEntitiesRequestAddressBuilder()..update(updates)) - ._build(); - - _$CustomerFiscalEntitiesRequestAddress._( - {required this.street1, - this.street2, - required this.postalCode, - required this.city, - this.state, - this.country, - this.residential, - this.externalNumber}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - street1, r'CustomerFiscalEntitiesRequestAddress', 'street1'); - BuiltValueNullFieldError.checkNotNull( - postalCode, r'CustomerFiscalEntitiesRequestAddress', 'postalCode'); - BuiltValueNullFieldError.checkNotNull( - city, r'CustomerFiscalEntitiesRequestAddress', 'city'); - } - - @override - CustomerFiscalEntitiesRequestAddress rebuild( - void Function(CustomerFiscalEntitiesRequestAddressBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerFiscalEntitiesRequestAddressBuilder toBuilder() => - new CustomerFiscalEntitiesRequestAddressBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerFiscalEntitiesRequestAddress && - street1 == other.street1 && - street2 == other.street2 && - postalCode == other.postalCode && - city == other.city && - state == other.state && - country == other.country && - residential == other.residential && - externalNumber == other.externalNumber; - } - - @override - int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, street1.hashCode), street2.hashCode), - postalCode.hashCode), - city.hashCode), - state.hashCode), - country.hashCode), - residential.hashCode), - externalNumber.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerFiscalEntitiesRequestAddress') - ..add('street1', street1) - ..add('street2', street2) - ..add('postalCode', postalCode) - ..add('city', city) - ..add('state', state) - ..add('country', country) - ..add('residential', residential) - ..add('externalNumber', externalNumber)) - .toString(); - } -} - -class CustomerFiscalEntitiesRequestAddressBuilder - implements - Builder, - CustomerAddressBuilder { - _$CustomerFiscalEntitiesRequestAddress? _$v; - - String? _street1; - String? get street1 => _$this._street1; - set street1(covariant String? street1) => _$this._street1 = street1; - - String? _street2; - String? get street2 => _$this._street2; - set street2(covariant String? street2) => _$this._street2 = street2; - - String? _postalCode; - String? get postalCode => _$this._postalCode; - set postalCode(covariant String? postalCode) => - _$this._postalCode = postalCode; - - String? _city; - String? get city => _$this._city; - set city(covariant String? city) => _$this._city = city; - - String? _state; - String? get state => _$this._state; - set state(covariant String? state) => _$this._state = state; - - String? _country; - String? get country => _$this._country; - set country(covariant String? country) => _$this._country = country; - - bool? _residential; - bool? get residential => _$this._residential; - set residential(covariant bool? residential) => - _$this._residential = residential; - - String? _externalNumber; - String? get externalNumber => _$this._externalNumber; - set externalNumber(covariant String? externalNumber) => - _$this._externalNumber = externalNumber; - - CustomerFiscalEntitiesRequestAddressBuilder() { - CustomerFiscalEntitiesRequestAddress._defaults(this); - } - - CustomerFiscalEntitiesRequestAddressBuilder get _$this { - final $v = _$v; - if ($v != null) { - _street1 = $v.street1; - _street2 = $v.street2; - _postalCode = $v.postalCode; - _city = $v.city; - _state = $v.state; - _country = $v.country; - _residential = $v.residential; - _externalNumber = $v.externalNumber; - _$v = null; - } - return this; - } - - @override - void replace(covariant CustomerFiscalEntitiesRequestAddress other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerFiscalEntitiesRequestAddress; - } - - @override - void update( - void Function(CustomerFiscalEntitiesRequestAddressBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerFiscalEntitiesRequestAddress build() => _build(); - - _$CustomerFiscalEntitiesRequestAddress _build() { - final _$result = _$v ?? - new _$CustomerFiscalEntitiesRequestAddress._( - street1: BuiltValueNullFieldError.checkNotNull( - street1, r'CustomerFiscalEntitiesRequestAddress', 'street1'), - street2: street2, - postalCode: BuiltValueNullFieldError.checkNotNull(postalCode, - r'CustomerFiscalEntitiesRequestAddress', 'postalCode'), - city: BuiltValueNullFieldError.checkNotNull( - city, r'CustomerFiscalEntitiesRequestAddress', 'city'), - state: state, - country: country, - residential: residential, - externalNumber: externalNumber); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/customer_fiscal_entities_response.dart b/lib/src/model/customer_fiscal_entities_response.dart index 04b6938..4ebc637 100644 --- a/lib/src/model/customer_fiscal_entities_response.dart +++ b/lib/src/model/customer_fiscal_entities_response.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_response_all_of.dart'; import 'package:conekta/src/model/customer_fiscal_entities_data_response.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -19,7 +18,10 @@ part 'customer_fiscal_entities_response.g.dart'; /// * [object] - Object type, in this case is list /// * [data] @BuiltValue() -abstract class CustomerFiscalEntitiesResponse implements CustomerFiscalEntitiesResponseAllOf, Pagination, Built { +abstract class CustomerFiscalEntitiesResponse implements Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + CustomerFiscalEntitiesResponse._(); factory CustomerFiscalEntitiesResponse([void updates(CustomerFiscalEntitiesResponseBuilder b)]) = _$CustomerFiscalEntitiesResponse; @@ -43,11 +45,6 @@ class _$CustomerFiscalEntitiesResponseSerializer implements PrimitiveSerializer< CustomerFiscalEntitiesResponse object, { FullType specifiedType = FullType.unspecified, }) sync* { - yield r'has_more'; - yield serializers.serialize( - object.hasMore, - specifiedType: const FullType(bool), - ); if (object.data != null) { yield r'data'; yield serializers.serialize( @@ -55,6 +52,11 @@ class _$CustomerFiscalEntitiesResponseSerializer implements PrimitiveSerializer< specifiedType: const FullType(BuiltList, [FullType(CustomerFiscalEntitiesDataResponse)]), ); } + yield r'has_more'; + yield serializers.serialize( + object.hasMore, + specifiedType: const FullType(bool), + ); yield r'object'; yield serializers.serialize( object.object, @@ -83,13 +85,6 @@ class _$CustomerFiscalEntitiesResponseSerializer implements PrimitiveSerializer< final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { - case r'has_more': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.hasMore = valueDes; - break; case r'data': final valueDes = serializers.deserialize( value, @@ -97,6 +92,13 @@ class _$CustomerFiscalEntitiesResponseSerializer implements PrimitiveSerializer< ) as BuiltList; result.data.replace(valueDes); break; + case r'has_more': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.hasMore = valueDes; + break; case r'object': final valueDes = serializers.deserialize( value, diff --git a/lib/src/model/customer_fiscal_entities_response.g.dart b/lib/src/model/customer_fiscal_entities_response.g.dart index c827cd7..4a66d48 100644 --- a/lib/src/model/customer_fiscal_entities_response.g.dart +++ b/lib/src/model/customer_fiscal_entities_response.g.dart @@ -65,7 +65,6 @@ class CustomerFiscalEntitiesResponseBuilder implements Builder, - CustomerFiscalEntitiesResponseAllOfBuilder, PaginationBuilder { _$CustomerFiscalEntitiesResponse? _$v; @@ -99,7 +98,6 @@ class CustomerFiscalEntitiesResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant CustomerFiscalEntitiesResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$CustomerFiscalEntitiesResponse; diff --git a/lib/src/model/customer_fiscal_entities_response_all_of.dart b/lib/src/model/customer_fiscal_entities_response_all_of.dart deleted file mode 100644 index 4bc52bf..0000000 --- a/lib/src/model/customer_fiscal_entities_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_data_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'customer_fiscal_entities_response_all_of.g.dart'; - -/// CustomerFiscalEntitiesResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class CustomerFiscalEntitiesResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CustomerFiscalEntitiesResponseAllOfSerializer(); -} - -class _$CustomerFiscalEntitiesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CustomerFiscalEntitiesResponseAllOf]; - - @override - final String wireName = r'CustomerFiscalEntitiesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - CustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(CustomerFiscalEntitiesDataResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CustomerFiscalEntitiesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CustomerFiscalEntitiesResponseAllOf)) as $CustomerFiscalEntitiesResponseAllOf; - } -} - -/// a concrete implementation of [CustomerFiscalEntitiesResponseAllOf], since [CustomerFiscalEntitiesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CustomerFiscalEntitiesResponseAllOf implements CustomerFiscalEntitiesResponseAllOf, Built<$CustomerFiscalEntitiesResponseAllOf, $CustomerFiscalEntitiesResponseAllOfBuilder> { - $CustomerFiscalEntitiesResponseAllOf._(); - - factory $CustomerFiscalEntitiesResponseAllOf([void Function($CustomerFiscalEntitiesResponseAllOfBuilder)? updates]) = _$$CustomerFiscalEntitiesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CustomerFiscalEntitiesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CustomerFiscalEntitiesResponseAllOf> get serializer => _$$CustomerFiscalEntitiesResponseAllOfSerializer(); -} - -class _$$CustomerFiscalEntitiesResponseAllOfSerializer implements PrimitiveSerializer<$CustomerFiscalEntitiesResponseAllOf> { - @override - final Iterable types = const [$CustomerFiscalEntitiesResponseAllOf, _$$CustomerFiscalEntitiesResponseAllOf]; - - @override - final String wireName = r'$CustomerFiscalEntitiesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $CustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CustomerFiscalEntitiesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CustomerFiscalEntitiesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(CustomerFiscalEntitiesDataResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CustomerFiscalEntitiesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CustomerFiscalEntitiesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/customer_fiscal_entities_response_all_of.g.dart b/lib/src/model/customer_fiscal_entities_response_all_of.g.dart deleted file mode 100644 index b3a7cbd..0000000 --- a/lib/src/model/customer_fiscal_entities_response_all_of.g.dart +++ /dev/null @@ -1,122 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_fiscal_entities_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerFiscalEntitiesResponseAllOfBuilder { - void replace(CustomerFiscalEntitiesResponseAllOf other); - void update( - void Function(CustomerFiscalEntitiesResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$CustomerFiscalEntitiesResponseAllOf - extends $CustomerFiscalEntitiesResponseAllOf { - @override - final BuiltList? data; - - factory _$$CustomerFiscalEntitiesResponseAllOf( - [void Function($CustomerFiscalEntitiesResponseAllOfBuilder)? - updates]) => - (new $CustomerFiscalEntitiesResponseAllOfBuilder()..update(updates)) - ._build(); - - _$$CustomerFiscalEntitiesResponseAllOf._({this.data}) : super._(); - - @override - $CustomerFiscalEntitiesResponseAllOf rebuild( - void Function($CustomerFiscalEntitiesResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerFiscalEntitiesResponseAllOfBuilder toBuilder() => - new $CustomerFiscalEntitiesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerFiscalEntitiesResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerFiscalEntitiesResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $CustomerFiscalEntitiesResponseAllOfBuilder - implements - Builder<$CustomerFiscalEntitiesResponseAllOf, - $CustomerFiscalEntitiesResponseAllOfBuilder>, - CustomerFiscalEntitiesResponseAllOfBuilder { - _$$CustomerFiscalEntitiesResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $CustomerFiscalEntitiesResponseAllOfBuilder() { - $CustomerFiscalEntitiesResponseAllOf._defaults(this); - } - - $CustomerFiscalEntitiesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerFiscalEntitiesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerFiscalEntitiesResponseAllOf; - } - - @override - void update( - void Function($CustomerFiscalEntitiesResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerFiscalEntitiesResponseAllOf build() => _build(); - - _$$CustomerFiscalEntitiesResponseAllOf _build() { - _$$CustomerFiscalEntitiesResponseAllOf _$result; - try { - _$result = _$v ?? - new _$$CustomerFiscalEntitiesResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomerFiscalEntitiesResponseAllOf', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/customer_payment_methods.dart b/lib/src/model/customer_payment_methods.dart deleted file mode 100644 index 8181fbb..0000000 --- a/lib/src/model/customer_payment_methods.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_payment_methods_data.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'customer_payment_methods.g.dart'; - -/// CustomerPaymentMethods -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class CustomerPaymentMethods { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CustomerPaymentMethodsSerializer(); -} - -class _$CustomerPaymentMethodsSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CustomerPaymentMethods]; - - @override - final String wireName = r'CustomerPaymentMethods'; - - Iterable _serializeProperties( - Serializers serializers, - CustomerPaymentMethods object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(CustomerPaymentMethodsData)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CustomerPaymentMethods object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CustomerPaymentMethods deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CustomerPaymentMethods)) as $CustomerPaymentMethods; - } -} - -/// a concrete implementation of [CustomerPaymentMethods], since [CustomerPaymentMethods] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CustomerPaymentMethods implements CustomerPaymentMethods, Built<$CustomerPaymentMethods, $CustomerPaymentMethodsBuilder> { - $CustomerPaymentMethods._(); - - factory $CustomerPaymentMethods([void Function($CustomerPaymentMethodsBuilder)? updates]) = _$$CustomerPaymentMethods; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CustomerPaymentMethodsBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CustomerPaymentMethods> get serializer => _$$CustomerPaymentMethodsSerializer(); -} - -class _$$CustomerPaymentMethodsSerializer implements PrimitiveSerializer<$CustomerPaymentMethods> { - @override - final Iterable types = const [$CustomerPaymentMethods, _$$CustomerPaymentMethods]; - - @override - final String wireName = r'$CustomerPaymentMethods'; - - @override - Object serialize( - Serializers serializers, - $CustomerPaymentMethods object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CustomerPaymentMethods))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CustomerPaymentMethodsBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(CustomerPaymentMethodsData)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CustomerPaymentMethods deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CustomerPaymentMethodsBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/customer_payment_methods.g.dart b/lib/src/model/customer_payment_methods.g.dart deleted file mode 100644 index ce77ccd..0000000 --- a/lib/src/model/customer_payment_methods.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_payment_methods.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerPaymentMethodsBuilder { - void replace(CustomerPaymentMethods other); - void update(void Function(CustomerPaymentMethodsBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$CustomerPaymentMethods extends $CustomerPaymentMethods { - @override - final BuiltList? data; - - factory _$$CustomerPaymentMethods( - [void Function($CustomerPaymentMethodsBuilder)? updates]) => - (new $CustomerPaymentMethodsBuilder()..update(updates))._build(); - - _$$CustomerPaymentMethods._({this.data}) : super._(); - - @override - $CustomerPaymentMethods rebuild( - void Function($CustomerPaymentMethodsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerPaymentMethodsBuilder toBuilder() => - new $CustomerPaymentMethodsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerPaymentMethods && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerPaymentMethods') - ..add('data', data)) - .toString(); - } -} - -class $CustomerPaymentMethodsBuilder - implements - Builder<$CustomerPaymentMethods, $CustomerPaymentMethodsBuilder>, - CustomerPaymentMethodsBuilder { - _$$CustomerPaymentMethods? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $CustomerPaymentMethodsBuilder() { - $CustomerPaymentMethods._defaults(this); - } - - $CustomerPaymentMethodsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerPaymentMethods other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerPaymentMethods; - } - - @override - void update(void Function($CustomerPaymentMethodsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerPaymentMethods build() => _build(); - - _$$CustomerPaymentMethods _build() { - _$$CustomerPaymentMethods _$result; - try { - _$result = _$v ?? new _$$CustomerPaymentMethods._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomerPaymentMethods', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/customer_payment_methods_response.dart b/lib/src/model/customer_payment_methods_response.dart index 2fcd41c..e7ce812 100644 --- a/lib/src/model/customer_payment_methods_response.dart +++ b/lib/src/model/customer_payment_methods_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/customer_payment_methods.dart'; import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; @@ -22,7 +21,10 @@ part 'customer_payment_methods_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class CustomerPaymentMethodsResponse implements CustomerPaymentMethods, Page, Pagination, Built { +abstract class CustomerPaymentMethodsResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + CustomerPaymentMethodsResponse._(); factory CustomerPaymentMethodsResponse([void updates(CustomerPaymentMethodsResponseBuilder b)]) = _$CustomerPaymentMethodsResponse; diff --git a/lib/src/model/customer_payment_methods_response.g.dart b/lib/src/model/customer_payment_methods_response.g.dart index dc724c8..399493e 100644 --- a/lib/src/model/customer_payment_methods_response.g.dart +++ b/lib/src/model/customer_payment_methods_response.g.dart @@ -81,7 +81,6 @@ class CustomerPaymentMethodsResponseBuilder implements Builder, - CustomerPaymentMethodsBuilder, PageBuilder, PaginationBuilder { _$CustomerPaymentMethodsResponse? _$v; diff --git a/lib/src/model/customer_response_shipping_contacts.dart b/lib/src/model/customer_response_shipping_contacts.dart index 8b32c63..ffce43b 100644 --- a/lib/src/model/customer_response_shipping_contacts.dart +++ b/lib/src/model/customer_response_shipping_contacts.dart @@ -6,7 +6,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:conekta/src/model/customer_shipping_contacts_data_response.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_response_shipping_contacts_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -19,7 +18,10 @@ part 'customer_response_shipping_contacts.g.dart'; /// * [object] - Object type, in this case is list /// * [data] @BuiltValue() -abstract class CustomerResponseShippingContacts implements CustomerResponseShippingContactsAllOf, Pagination, Built { +abstract class CustomerResponseShippingContacts implements Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + CustomerResponseShippingContacts._(); factory CustomerResponseShippingContacts([void updates(CustomerResponseShippingContactsBuilder b)]) = _$CustomerResponseShippingContacts; @@ -43,11 +45,6 @@ class _$CustomerResponseShippingContactsSerializer implements PrimitiveSerialize CustomerResponseShippingContacts object, { FullType specifiedType = FullType.unspecified, }) sync* { - yield r'has_more'; - yield serializers.serialize( - object.hasMore, - specifiedType: const FullType(bool), - ); if (object.data != null) { yield r'data'; yield serializers.serialize( @@ -55,6 +52,11 @@ class _$CustomerResponseShippingContactsSerializer implements PrimitiveSerialize specifiedType: const FullType(BuiltList, [FullType(CustomerShippingContactsDataResponse)]), ); } + yield r'has_more'; + yield serializers.serialize( + object.hasMore, + specifiedType: const FullType(bool), + ); yield r'object'; yield serializers.serialize( object.object, @@ -83,13 +85,6 @@ class _$CustomerResponseShippingContactsSerializer implements PrimitiveSerialize final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { - case r'has_more': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.hasMore = valueDes; - break; case r'data': final valueDes = serializers.deserialize( value, @@ -97,6 +92,13 @@ class _$CustomerResponseShippingContactsSerializer implements PrimitiveSerialize ) as BuiltList; result.data.replace(valueDes); break; + case r'has_more': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.hasMore = valueDes; + break; case r'object': final valueDes = serializers.deserialize( value, diff --git a/lib/src/model/customer_response_shipping_contacts.g.dart b/lib/src/model/customer_response_shipping_contacts.g.dart index f379d4f..aeeba3f 100644 --- a/lib/src/model/customer_response_shipping_contacts.g.dart +++ b/lib/src/model/customer_response_shipping_contacts.g.dart @@ -66,7 +66,6 @@ class CustomerResponseShippingContactsBuilder implements Builder, - CustomerResponseShippingContactsAllOfBuilder, PaginationBuilder { _$CustomerResponseShippingContacts? _$v; @@ -100,7 +99,6 @@ class CustomerResponseShippingContactsBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant CustomerResponseShippingContacts other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$CustomerResponseShippingContacts; diff --git a/lib/src/model/customer_response_shipping_contacts_all_of.dart b/lib/src/model/customer_response_shipping_contacts_all_of.dart deleted file mode 100644 index f724349..0000000 --- a/lib/src/model/customer_response_shipping_contacts_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:conekta/src/model/customer_shipping_contacts_data_response.dart'; -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'customer_response_shipping_contacts_all_of.g.dart'; - -/// CustomerResponseShippingContactsAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class CustomerResponseShippingContactsAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CustomerResponseShippingContactsAllOfSerializer(); -} - -class _$CustomerResponseShippingContactsAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CustomerResponseShippingContactsAllOf]; - - @override - final String wireName = r'CustomerResponseShippingContactsAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - CustomerResponseShippingContactsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(CustomerShippingContactsDataResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CustomerResponseShippingContactsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CustomerResponseShippingContactsAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CustomerResponseShippingContactsAllOf)) as $CustomerResponseShippingContactsAllOf; - } -} - -/// a concrete implementation of [CustomerResponseShippingContactsAllOf], since [CustomerResponseShippingContactsAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CustomerResponseShippingContactsAllOf implements CustomerResponseShippingContactsAllOf, Built<$CustomerResponseShippingContactsAllOf, $CustomerResponseShippingContactsAllOfBuilder> { - $CustomerResponseShippingContactsAllOf._(); - - factory $CustomerResponseShippingContactsAllOf([void Function($CustomerResponseShippingContactsAllOfBuilder)? updates]) = _$$CustomerResponseShippingContactsAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CustomerResponseShippingContactsAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CustomerResponseShippingContactsAllOf> get serializer => _$$CustomerResponseShippingContactsAllOfSerializer(); -} - -class _$$CustomerResponseShippingContactsAllOfSerializer implements PrimitiveSerializer<$CustomerResponseShippingContactsAllOf> { - @override - final Iterable types = const [$CustomerResponseShippingContactsAllOf, _$$CustomerResponseShippingContactsAllOf]; - - @override - final String wireName = r'$CustomerResponseShippingContactsAllOf'; - - @override - Object serialize( - Serializers serializers, - $CustomerResponseShippingContactsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CustomerResponseShippingContactsAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CustomerResponseShippingContactsAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(CustomerShippingContactsDataResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CustomerResponseShippingContactsAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CustomerResponseShippingContactsAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/customer_response_shipping_contacts_all_of.g.dart b/lib/src/model/customer_response_shipping_contacts_all_of.g.dart deleted file mode 100644 index 9fe4b7b..0000000 --- a/lib/src/model/customer_response_shipping_contacts_all_of.g.dart +++ /dev/null @@ -1,125 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_response_shipping_contacts_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerResponseShippingContactsAllOfBuilder { - void replace(CustomerResponseShippingContactsAllOf other); - void update( - void Function(CustomerResponseShippingContactsAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$CustomerResponseShippingContactsAllOf - extends $CustomerResponseShippingContactsAllOf { - @override - final BuiltList? data; - - factory _$$CustomerResponseShippingContactsAllOf( - [void Function($CustomerResponseShippingContactsAllOfBuilder)? - updates]) => - (new $CustomerResponseShippingContactsAllOfBuilder()..update(updates)) - ._build(); - - _$$CustomerResponseShippingContactsAllOf._({this.data}) : super._(); - - @override - $CustomerResponseShippingContactsAllOf rebuild( - void Function($CustomerResponseShippingContactsAllOfBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerResponseShippingContactsAllOfBuilder toBuilder() => - new $CustomerResponseShippingContactsAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerResponseShippingContactsAllOf && - data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'$CustomerResponseShippingContactsAllOf') - ..add('data', data)) - .toString(); - } -} - -class $CustomerResponseShippingContactsAllOfBuilder - implements - Builder<$CustomerResponseShippingContactsAllOf, - $CustomerResponseShippingContactsAllOfBuilder>, - CustomerResponseShippingContactsAllOfBuilder { - _$$CustomerResponseShippingContactsAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $CustomerResponseShippingContactsAllOfBuilder() { - $CustomerResponseShippingContactsAllOf._defaults(this); - } - - $CustomerResponseShippingContactsAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerResponseShippingContactsAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerResponseShippingContactsAllOf; - } - - @override - void update( - void Function($CustomerResponseShippingContactsAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerResponseShippingContactsAllOf build() => _build(); - - _$$CustomerResponseShippingContactsAllOf _build() { - _$$CustomerResponseShippingContactsAllOf _$result; - try { - _$result = _$v ?? - new _$$CustomerResponseShippingContactsAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomerResponseShippingContactsAllOf', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/customer_shipping_contacts_data_response.dart b/lib/src/model/customer_shipping_contacts_data_response.dart index 3705dfe..a5e44b1 100644 --- a/lib/src/model/customer_shipping_contacts_data_response.dart +++ b/lib/src/model/customer_shipping_contacts_data_response.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_shipping_contacts_data_response_all_of.dart'; import 'package:conekta/src/model/customer_shipping_contacts.dart'; import 'package:conekta/src/model/customer_shipping_contacts_address.dart'; import 'package:built_value/json_object.dart'; @@ -28,7 +27,16 @@ part 'customer_shipping_contacts_data_response.g.dart'; /// * [object] /// * [createdAt] @BuiltValue() -abstract class CustomerShippingContactsDataResponse implements CustomerShippingContacts, CustomerShippingContactsDataResponseAllOf, Built { +abstract class CustomerShippingContactsDataResponse implements CustomerShippingContacts, Built { + @BuiltValueField(wireName: r'created_at') + int get createdAt; + + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'object') + String get object; + CustomerShippingContactsDataResponse._(); factory CustomerShippingContactsDataResponse([void updates(CustomerShippingContactsDataResponseBuilder b)]) = _$CustomerShippingContactsDataResponse; diff --git a/lib/src/model/customer_shipping_contacts_data_response.g.dart b/lib/src/model/customer_shipping_contacts_data_response.g.dart index 3d631c0..1ee77fb 100644 --- a/lib/src/model/customer_shipping_contacts_data_response.g.dart +++ b/lib/src/model/customer_shipping_contacts_data_response.g.dart @@ -9,6 +9,12 @@ part of 'customer_shipping_contacts_data_response.dart'; class _$CustomerShippingContactsDataResponse extends CustomerShippingContactsDataResponse { @override + final int createdAt; + @override + final String id; + @override + final String object; + @override final String? phone; @override final String? receiver; @@ -24,12 +30,6 @@ class _$CustomerShippingContactsDataResponse final bool? deleted; @override final BuiltMap? metadata; - @override - final String id; - @override - final String object; - @override - final int createdAt; factory _$CustomerShippingContactsDataResponse( [void Function(CustomerShippingContactsDataResponseBuilder)? @@ -38,26 +38,26 @@ class _$CustomerShippingContactsDataResponse ._build(); _$CustomerShippingContactsDataResponse._( - {this.phone, + {required this.createdAt, + required this.id, + required this.object, + this.phone, this.receiver, this.betweenStreets, required this.address, this.parentId, this.default_, this.deleted, - this.metadata, - required this.id, - required this.object, - required this.createdAt}) + this.metadata}) : super._() { BuiltValueNullFieldError.checkNotNull( - address, r'CustomerShippingContactsDataResponse', 'address'); + createdAt, r'CustomerShippingContactsDataResponse', 'createdAt'); BuiltValueNullFieldError.checkNotNull( id, r'CustomerShippingContactsDataResponse', 'id'); BuiltValueNullFieldError.checkNotNull( object, r'CustomerShippingContactsDataResponse', 'object'); BuiltValueNullFieldError.checkNotNull( - createdAt, r'CustomerShippingContactsDataResponse', 'createdAt'); + address, r'CustomerShippingContactsDataResponse', 'address'); } @override @@ -73,6 +73,9 @@ class _$CustomerShippingContactsDataResponse bool operator ==(Object other) { if (identical(other, this)) return true; return other is CustomerShippingContactsDataResponse && + createdAt == other.createdAt && + id == other.id && + object == other.object && phone == other.phone && receiver == other.receiver && betweenStreets == other.betweenStreets && @@ -80,10 +83,7 @@ class _$CustomerShippingContactsDataResponse parentId == other.parentId && default_ == other.default_ && deleted == other.deleted && - metadata == other.metadata && - id == other.id && - object == other.object && - createdAt == other.createdAt; + metadata == other.metadata; } @override @@ -97,22 +97,25 @@ class _$CustomerShippingContactsDataResponse $jc( $jc( $jc( - $jc($jc(0, phone.hashCode), - receiver.hashCode), - betweenStreets.hashCode), - address.hashCode), - parentId.hashCode), - default_.hashCode), - deleted.hashCode), - metadata.hashCode), - id.hashCode), - object.hashCode), - createdAt.hashCode)); + $jc($jc(0, createdAt.hashCode), + id.hashCode), + object.hashCode), + phone.hashCode), + receiver.hashCode), + betweenStreets.hashCode), + address.hashCode), + parentId.hashCode), + default_.hashCode), + deleted.hashCode), + metadata.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'CustomerShippingContactsDataResponse') + ..add('createdAt', createdAt) + ..add('id', id) + ..add('object', object) ..add('phone', phone) ..add('receiver', receiver) ..add('betweenStreets', betweenStreets) @@ -120,10 +123,7 @@ class _$CustomerShippingContactsDataResponse ..add('parentId', parentId) ..add('default_', default_) ..add('deleted', deleted) - ..add('metadata', metadata) - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt)) + ..add('metadata', metadata)) .toString(); } } @@ -132,10 +132,21 @@ class CustomerShippingContactsDataResponseBuilder implements Builder, - CustomerShippingContactsBuilder, - CustomerShippingContactsDataResponseAllOfBuilder { + CustomerShippingContactsBuilder { _$CustomerShippingContactsDataResponse? _$v; + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + String? _phone; String? get phone => _$this._phone; set phone(covariant String? phone) => _$this._phone = phone; @@ -173,18 +184,6 @@ class CustomerShippingContactsDataResponseBuilder set metadata(covariant MapBuilder? metadata) => _$this._metadata = metadata; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - CustomerShippingContactsDataResponseBuilder() { CustomerShippingContactsDataResponse._defaults(this); } @@ -192,6 +191,9 @@ class CustomerShippingContactsDataResponseBuilder CustomerShippingContactsDataResponseBuilder get _$this { final $v = _$v; if ($v != null) { + _createdAt = $v.createdAt; + _id = $v.id; + _object = $v.object; _phone = $v.phone; _receiver = $v.receiver; _betweenStreets = $v.betweenStreets; @@ -200,16 +202,12 @@ class CustomerShippingContactsDataResponseBuilder _default_ = $v.default_; _deleted = $v.deleted; _metadata = $v.metadata?.toBuilder(); - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant CustomerShippingContactsDataResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$CustomerShippingContactsDataResponse; @@ -229,6 +227,12 @@ class CustomerShippingContactsDataResponseBuilder try { _$result = _$v ?? new _$CustomerShippingContactsDataResponse._( + createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, + r'CustomerShippingContactsDataResponse', 'createdAt'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'CustomerShippingContactsDataResponse', 'id'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CustomerShippingContactsDataResponse', 'object'), phone: phone, receiver: receiver, betweenStreets: betweenStreets, @@ -236,13 +240,7 @@ class CustomerShippingContactsDataResponseBuilder parentId: parentId, default_: default_, deleted: deleted, - metadata: _metadata?.build(), - id: BuiltValueNullFieldError.checkNotNull( - id, r'CustomerShippingContactsDataResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CustomerShippingContactsDataResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'CustomerShippingContactsDataResponse', 'createdAt')); + metadata: _metadata?.build()); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/customer_shipping_contacts_data_response_all_of.dart b/lib/src/model/customer_shipping_contacts_data_response_all_of.dart deleted file mode 100644 index 17e7029..0000000 --- a/lib/src/model/customer_shipping_contacts_data_response_all_of.dart +++ /dev/null @@ -1,171 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'customer_shipping_contacts_data_response_all_of.g.dart'; - -/// CustomerShippingContactsDataResponseAllOf -/// -/// Properties: -/// * [id] -/// * [object] -/// * [createdAt] -@BuiltValue(instantiable: false) -abstract class CustomerShippingContactsDataResponseAllOf { - @BuiltValueField(wireName: r'id') - String get id; - - @BuiltValueField(wireName: r'object') - String get object; - - @BuiltValueField(wireName: r'created_at') - int get createdAt; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CustomerShippingContactsDataResponseAllOfSerializer(); -} - -class _$CustomerShippingContactsDataResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CustomerShippingContactsDataResponseAllOf]; - - @override - final String wireName = r'CustomerShippingContactsDataResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - CustomerShippingContactsDataResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - yield r'created_at'; - yield serializers.serialize( - object.createdAt, - specifiedType: const FullType(int), - ); - } - - @override - Object serialize( - Serializers serializers, - CustomerShippingContactsDataResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CustomerShippingContactsDataResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CustomerShippingContactsDataResponseAllOf)) as $CustomerShippingContactsDataResponseAllOf; - } -} - -/// a concrete implementation of [CustomerShippingContactsDataResponseAllOf], since [CustomerShippingContactsDataResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CustomerShippingContactsDataResponseAllOf implements CustomerShippingContactsDataResponseAllOf, Built<$CustomerShippingContactsDataResponseAllOf, $CustomerShippingContactsDataResponseAllOfBuilder> { - $CustomerShippingContactsDataResponseAllOf._(); - - factory $CustomerShippingContactsDataResponseAllOf([void Function($CustomerShippingContactsDataResponseAllOfBuilder)? updates]) = _$$CustomerShippingContactsDataResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CustomerShippingContactsDataResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CustomerShippingContactsDataResponseAllOf> get serializer => _$$CustomerShippingContactsDataResponseAllOfSerializer(); -} - -class _$$CustomerShippingContactsDataResponseAllOfSerializer implements PrimitiveSerializer<$CustomerShippingContactsDataResponseAllOf> { - @override - final Iterable types = const [$CustomerShippingContactsDataResponseAllOf, _$$CustomerShippingContactsDataResponseAllOf]; - - @override - final String wireName = r'$CustomerShippingContactsDataResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $CustomerShippingContactsDataResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CustomerShippingContactsDataResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CustomerShippingContactsDataResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'created_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.createdAt = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CustomerShippingContactsDataResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CustomerShippingContactsDataResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/customer_shipping_contacts_data_response_all_of.g.dart b/lib/src/model/customer_shipping_contacts_data_response_all_of.g.dart deleted file mode 100644 index beb1623..0000000 --- a/lib/src/model/customer_shipping_contacts_data_response_all_of.g.dart +++ /dev/null @@ -1,149 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_shipping_contacts_data_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerShippingContactsDataResponseAllOfBuilder { - void replace(CustomerShippingContactsDataResponseAllOf other); - void update( - void Function(CustomerShippingContactsDataResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - int? get createdAt; - set createdAt(int? createdAt); -} - -class _$$CustomerShippingContactsDataResponseAllOf - extends $CustomerShippingContactsDataResponseAllOf { - @override - final String id; - @override - final String object; - @override - final int createdAt; - - factory _$$CustomerShippingContactsDataResponseAllOf( - [void Function($CustomerShippingContactsDataResponseAllOfBuilder)? - updates]) => - (new $CustomerShippingContactsDataResponseAllOfBuilder()..update(updates)) - ._build(); - - _$$CustomerShippingContactsDataResponseAllOf._( - {required this.id, required this.object, required this.createdAt}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - id, r'$CustomerShippingContactsDataResponseAllOf', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'$CustomerShippingContactsDataResponseAllOf', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'$CustomerShippingContactsDataResponseAllOf', 'createdAt'); - } - - @override - $CustomerShippingContactsDataResponseAllOf rebuild( - void Function($CustomerShippingContactsDataResponseAllOfBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerShippingContactsDataResponseAllOfBuilder toBuilder() => - new $CustomerShippingContactsDataResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerShippingContactsDataResponseAllOf && - id == other.id && - object == other.object && - createdAt == other.createdAt; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, id.hashCode), object.hashCode), createdAt.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'$CustomerShippingContactsDataResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt)) - .toString(); - } -} - -class $CustomerShippingContactsDataResponseAllOfBuilder - implements - Builder<$CustomerShippingContactsDataResponseAllOf, - $CustomerShippingContactsDataResponseAllOfBuilder>, - CustomerShippingContactsDataResponseAllOfBuilder { - _$$CustomerShippingContactsDataResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - $CustomerShippingContactsDataResponseAllOfBuilder() { - $CustomerShippingContactsDataResponseAllOf._defaults(this); - } - - $CustomerShippingContactsDataResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerShippingContactsDataResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerShippingContactsDataResponseAllOf; - } - - @override - void update( - void Function($CustomerShippingContactsDataResponseAllOfBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - $CustomerShippingContactsDataResponseAllOf build() => _build(); - - _$$CustomerShippingContactsDataResponseAllOf _build() { - final _$result = _$v ?? - new _$$CustomerShippingContactsDataResponseAllOf._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'$CustomerShippingContactsDataResponseAllOf', 'id'), - object: BuiltValueNullFieldError.checkNotNull(object, - r'$CustomerShippingContactsDataResponseAllOf', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'$CustomerShippingContactsDataResponseAllOf', 'createdAt')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/customer_update_fiscal_entities_request.dart b/lib/src/model/customer_update_fiscal_entities_request.dart index 20e9820..a2b6a29 100644 --- a/lib/src/model/customer_update_fiscal_entities_request.dart +++ b/lib/src/model/customer_update_fiscal_entities_request.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; +import 'package:conekta/src/model/customer_address.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -23,7 +23,7 @@ part 'customer_update_fiscal_entities_request.g.dart'; @BuiltValue() abstract class CustomerUpdateFiscalEntitiesRequest implements Built { @BuiltValueField(wireName: r'address') - CustomerFiscalEntitiesRequestAddress? get address; + CustomerAddress? get address; @BuiltValueField(wireName: r'tax_id') String? get taxId; @@ -67,7 +67,7 @@ class _$CustomerUpdateFiscalEntitiesRequestSerializer implements PrimitiveSerial yield r'address'; yield serializers.serialize( object.address, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), + specifiedType: const FullType(CustomerAddress), ); } if (object.taxId != null) { @@ -131,8 +131,8 @@ class _$CustomerUpdateFiscalEntitiesRequestSerializer implements PrimitiveSerial case r'address': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), - ) as CustomerFiscalEntitiesRequestAddress; + specifiedType: const FullType(CustomerAddress), + ) as CustomerAddress; result.address.replace(valueDes); break; case r'tax_id': diff --git a/lib/src/model/customer_update_fiscal_entities_request.g.dart b/lib/src/model/customer_update_fiscal_entities_request.g.dart index 2ee0cb9..9c38066 100644 --- a/lib/src/model/customer_update_fiscal_entities_request.g.dart +++ b/lib/src/model/customer_update_fiscal_entities_request.g.dart @@ -9,7 +9,7 @@ part of 'customer_update_fiscal_entities_request.dart'; class _$CustomerUpdateFiscalEntitiesRequest extends CustomerUpdateFiscalEntitiesRequest { @override - final CustomerFiscalEntitiesRequestAddress? address; + final CustomerAddress? address; @override final String? taxId; @override @@ -88,11 +88,10 @@ class CustomerUpdateFiscalEntitiesRequestBuilder CustomerUpdateFiscalEntitiesRequestBuilder> { _$CustomerUpdateFiscalEntitiesRequest? _$v; - CustomerFiscalEntitiesRequestAddressBuilder? _address; - CustomerFiscalEntitiesRequestAddressBuilder get address => - _$this._address ??= new CustomerFiscalEntitiesRequestAddressBuilder(); - set address(CustomerFiscalEntitiesRequestAddressBuilder? address) => - _$this._address = address; + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(CustomerAddressBuilder? address) => _$this._address = address; String? _taxId; String? get taxId => _$this._taxId; diff --git a/lib/src/model/customers_response.dart b/lib/src/model/customers_response.dart index 61aa9c5..a7913c4 100644 --- a/lib/src/model/customers_response.dart +++ b/lib/src/model/customers_response.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/customer_response.dart'; import 'package:conekta/src/model/page.dart'; -import 'package:conekta/src/model/customers_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,13 +15,16 @@ part 'customers_response.g.dart'; /// CustomersResponse /// /// Properties: -/// * [data] /// * [hasMore] - Indicates if there are more pages to be requested /// * [object] - Object type, in this case is list /// * [nextPageUrl] - URL of the next page. /// * [previousPageUrl] - Url of the previous page. +/// * [data] @BuiltValue() -abstract class CustomersResponse implements CustomersResponseAllOf, Page, Pagination, Built { +abstract class CustomersResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + CustomersResponse._(); factory CustomersResponse([void updates(CustomersResponseBuilder b)]) = _$CustomersResponse; diff --git a/lib/src/model/customers_response.g.dart b/lib/src/model/customers_response.g.dart index cc906f8..7c5de78 100644 --- a/lib/src/model/customers_response.g.dart +++ b/lib/src/model/customers_response.g.dart @@ -79,7 +79,6 @@ class _$CustomersResponse extends CustomersResponse { class CustomersResponseBuilder implements Builder, - CustomersResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$CustomersResponse? _$v; diff --git a/lib/src/model/customers_response_all_of.dart b/lib/src/model/customers_response_all_of.dart deleted file mode 100644 index ad6100c..0000000 --- a/lib/src/model/customers_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/customer_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'customers_response_all_of.g.dart'; - -/// CustomersResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class CustomersResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$CustomersResponseAllOfSerializer(); -} - -class _$CustomersResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CustomersResponseAllOf]; - - @override - final String wireName = r'CustomersResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - CustomersResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(CustomerResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - CustomersResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - CustomersResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($CustomersResponseAllOf)) as $CustomersResponseAllOf; - } -} - -/// a concrete implementation of [CustomersResponseAllOf], since [CustomersResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $CustomersResponseAllOf implements CustomersResponseAllOf, Built<$CustomersResponseAllOf, $CustomersResponseAllOfBuilder> { - $CustomersResponseAllOf._(); - - factory $CustomersResponseAllOf([void Function($CustomersResponseAllOfBuilder)? updates]) = _$$CustomersResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CustomersResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$CustomersResponseAllOf> get serializer => _$$CustomersResponseAllOfSerializer(); -} - -class _$$CustomersResponseAllOfSerializer implements PrimitiveSerializer<$CustomersResponseAllOf> { - @override - final Iterable types = const [$CustomersResponseAllOf, _$$CustomersResponseAllOf]; - - @override - final String wireName = r'$CustomersResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $CustomersResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(CustomersResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required CustomersResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(CustomerResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $CustomersResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $CustomersResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/customers_response_all_of.g.dart b/lib/src/model/customers_response_all_of.g.dart deleted file mode 100644 index 4e79fc9..0000000 --- a/lib/src/model/customers_response_all_of.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customers_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomersResponseAllOfBuilder { - void replace(CustomersResponseAllOf other); - void update(void Function(CustomersResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$CustomersResponseAllOf extends $CustomersResponseAllOf { - @override - final BuiltList? data; - - factory _$$CustomersResponseAllOf( - [void Function($CustomersResponseAllOfBuilder)? updates]) => - (new $CustomersResponseAllOfBuilder()..update(updates))._build(); - - _$$CustomersResponseAllOf._({this.data}) : super._(); - - @override - $CustomersResponseAllOf rebuild( - void Function($CustomersResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomersResponseAllOfBuilder toBuilder() => - new $CustomersResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomersResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomersResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $CustomersResponseAllOfBuilder - implements - Builder<$CustomersResponseAllOf, $CustomersResponseAllOfBuilder>, - CustomersResponseAllOfBuilder { - _$$CustomersResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $CustomersResponseAllOfBuilder() { - $CustomersResponseAllOf._defaults(this); - } - - $CustomersResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomersResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomersResponseAllOf; - } - - @override - void update(void Function($CustomersResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomersResponseAllOf build() => _build(); - - _$$CustomersResponseAllOf _build() { - _$$CustomersResponseAllOf _$result; - try { - _$result = _$v ?? new _$$CustomersResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomersResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/delete_api_keys_response.dart b/lib/src/model/delete_api_keys_response.dart index 1050b9e..1616c99 100644 --- a/lib/src/model/delete_api_keys_response.dart +++ b/lib/src/model/delete_api_keys_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/delete_api_keys_response_all_of.dart'; import 'package:conekta/src/model/api_key_response_on_delete.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -23,7 +22,7 @@ part 'delete_api_keys_response.g.dart'; /// * [deleted] /// * [role] - Indicates if the api key is private or public @BuiltValue() -abstract class DeleteApiKeysResponse implements ApiKeyResponseOnDelete, DeleteApiKeysResponseAllOf, Built { +abstract class DeleteApiKeysResponse implements ApiKeyResponseOnDelete, Built { DeleteApiKeysResponse._(); factory DeleteApiKeysResponse([void updates(DeleteApiKeysResponseBuilder b)]) = _$DeleteApiKeysResponse; diff --git a/lib/src/model/delete_api_keys_response.g.dart b/lib/src/model/delete_api_keys_response.g.dart index 7db38c3..69c580c 100644 --- a/lib/src/model/delete_api_keys_response.g.dart +++ b/lib/src/model/delete_api_keys_response.g.dart @@ -105,8 +105,7 @@ class _$DeleteApiKeysResponse extends DeleteApiKeysResponse { class DeleteApiKeysResponseBuilder implements Builder, - ApiKeyResponseOnDeleteBuilder, - DeleteApiKeysResponseAllOfBuilder { + ApiKeyResponseOnDeleteBuilder { _$DeleteApiKeysResponse? _$v; bool? _active; @@ -168,7 +167,6 @@ class DeleteApiKeysResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant DeleteApiKeysResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$DeleteApiKeysResponse; diff --git a/lib/src/model/delete_api_keys_response_all_of.dart b/lib/src/model/delete_api_keys_response_all_of.dart deleted file mode 100644 index c96607f..0000000 --- a/lib/src/model/delete_api_keys_response_all_of.dart +++ /dev/null @@ -1,141 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'delete_api_keys_response_all_of.g.dart'; - -/// DeleteApiKeysResponseAllOf -/// -/// Properties: -/// * [deleted] -@BuiltValue(instantiable: false) -abstract class DeleteApiKeysResponseAllOf { - @BuiltValueField(wireName: r'deleted') - bool? get deleted; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$DeleteApiKeysResponseAllOfSerializer(); -} - -class _$DeleteApiKeysResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [DeleteApiKeysResponseAllOf]; - - @override - final String wireName = r'DeleteApiKeysResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - DeleteApiKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.deleted != null) { - yield r'deleted'; - yield serializers.serialize( - object.deleted, - specifiedType: const FullType(bool), - ); - } - } - - @override - Object serialize( - Serializers serializers, - DeleteApiKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - DeleteApiKeysResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($DeleteApiKeysResponseAllOf)) as $DeleteApiKeysResponseAllOf; - } -} - -/// a concrete implementation of [DeleteApiKeysResponseAllOf], since [DeleteApiKeysResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $DeleteApiKeysResponseAllOf implements DeleteApiKeysResponseAllOf, Built<$DeleteApiKeysResponseAllOf, $DeleteApiKeysResponseAllOfBuilder> { - $DeleteApiKeysResponseAllOf._(); - - factory $DeleteApiKeysResponseAllOf([void Function($DeleteApiKeysResponseAllOfBuilder)? updates]) = _$$DeleteApiKeysResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($DeleteApiKeysResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$DeleteApiKeysResponseAllOf> get serializer => _$$DeleteApiKeysResponseAllOfSerializer(); -} - -class _$$DeleteApiKeysResponseAllOfSerializer implements PrimitiveSerializer<$DeleteApiKeysResponseAllOf> { - @override - final Iterable types = const [$DeleteApiKeysResponseAllOf, _$$DeleteApiKeysResponseAllOf]; - - @override - final String wireName = r'$DeleteApiKeysResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $DeleteApiKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(DeleteApiKeysResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required DeleteApiKeysResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'deleted': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.deleted = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $DeleteApiKeysResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $DeleteApiKeysResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/delete_api_keys_response_all_of.g.dart b/lib/src/model/delete_api_keys_response_all_of.g.dart deleted file mode 100644 index f026a44..0000000 --- a/lib/src/model/delete_api_keys_response_all_of.g.dart +++ /dev/null @@ -1,100 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'delete_api_keys_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class DeleteApiKeysResponseAllOfBuilder { - void replace(DeleteApiKeysResponseAllOf other); - void update(void Function(DeleteApiKeysResponseAllOfBuilder) updates); - bool? get deleted; - set deleted(bool? deleted); -} - -class _$$DeleteApiKeysResponseAllOf extends $DeleteApiKeysResponseAllOf { - @override - final bool? deleted; - - factory _$$DeleteApiKeysResponseAllOf( - [void Function($DeleteApiKeysResponseAllOfBuilder)? updates]) => - (new $DeleteApiKeysResponseAllOfBuilder()..update(updates))._build(); - - _$$DeleteApiKeysResponseAllOf._({this.deleted}) : super._(); - - @override - $DeleteApiKeysResponseAllOf rebuild( - void Function($DeleteApiKeysResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $DeleteApiKeysResponseAllOfBuilder toBuilder() => - new $DeleteApiKeysResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $DeleteApiKeysResponseAllOf && deleted == other.deleted; - } - - @override - int get hashCode { - return $jf($jc(0, deleted.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$DeleteApiKeysResponseAllOf') - ..add('deleted', deleted)) - .toString(); - } -} - -class $DeleteApiKeysResponseAllOfBuilder - implements - Builder<$DeleteApiKeysResponseAllOf, - $DeleteApiKeysResponseAllOfBuilder>, - DeleteApiKeysResponseAllOfBuilder { - _$$DeleteApiKeysResponseAllOf? _$v; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - $DeleteApiKeysResponseAllOfBuilder() { - $DeleteApiKeysResponseAllOf._defaults(this); - } - - $DeleteApiKeysResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _deleted = $v.deleted; - _$v = null; - } - return this; - } - - @override - void replace(covariant $DeleteApiKeysResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$DeleteApiKeysResponseAllOf; - } - - @override - void update(void Function($DeleteApiKeysResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $DeleteApiKeysResponseAllOf build() => _build(); - - _$$DeleteApiKeysResponseAllOf _build() { - final _$result = - _$v ?? new _$$DeleteApiKeysResponseAllOf._(deleted: deleted); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/discount_lines_data_response.g.dart b/lib/src/model/discount_lines_data_response.g.dart index 9044289..4359dca 100644 --- a/lib/src/model/discount_lines_data_response.g.dart +++ b/lib/src/model/discount_lines_data_response.g.dart @@ -10,10 +10,10 @@ class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { @override final String id; @override - final String object; - @override final String parentId; @override + final String object; + @override final int amount; @override final String code; @@ -26,18 +26,18 @@ class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { _$DiscountLinesDataResponse._( {required this.id, - required this.object, required this.parentId, + required this.object, required this.amount, required this.code, required this.type}) : super._() { BuiltValueNullFieldError.checkNotNull( id, r'DiscountLinesDataResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'DiscountLinesDataResponse', 'object'); BuiltValueNullFieldError.checkNotNull( parentId, r'DiscountLinesDataResponse', 'parentId'); + BuiltValueNullFieldError.checkNotNull( + object, r'DiscountLinesDataResponse', 'object'); BuiltValueNullFieldError.checkNotNull( amount, r'DiscountLinesDataResponse', 'amount'); BuiltValueNullFieldError.checkNotNull( @@ -60,8 +60,8 @@ class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { if (identical(other, this)) return true; return other is DiscountLinesDataResponse && id == other.id && - object == other.object && parentId == other.parentId && + object == other.object && amount == other.amount && code == other.code && type == other.type; @@ -72,8 +72,8 @@ class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { return $jf($jc( $jc( $jc( - $jc($jc($jc(0, id.hashCode), object.hashCode), - parentId.hashCode), + $jc($jc($jc(0, id.hashCode), parentId.hashCode), + object.hashCode), amount.hashCode), code.hashCode), type.hashCode)); @@ -83,8 +83,8 @@ class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { String toString() { return (newBuiltValueToStringHelper(r'DiscountLinesDataResponse') ..add('id', id) - ..add('object', object) ..add('parentId', parentId) + ..add('object', object) ..add('amount', amount) ..add('code', code) ..add('type', type)) @@ -102,14 +102,14 @@ class DiscountLinesDataResponseBuilder String? get id => _$this._id; set id(covariant String? id) => _$this._id = id; - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - String? _parentId; String? get parentId => _$this._parentId; set parentId(covariant String? parentId) => _$this._parentId = parentId; + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + int? _amount; int? get amount => _$this._amount; set amount(covariant int? amount) => _$this._amount = amount; @@ -130,8 +130,8 @@ class DiscountLinesDataResponseBuilder final $v = _$v; if ($v != null) { _id = $v.id; - _object = $v.object; _parentId = $v.parentId; + _object = $v.object; _amount = $v.amount; _code = $v.code; _type = $v.type; @@ -159,10 +159,10 @@ class DiscountLinesDataResponseBuilder new _$DiscountLinesDataResponse._( id: BuiltValueNullFieldError.checkNotNull( id, r'DiscountLinesDataResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'DiscountLinesDataResponse', 'object'), parentId: BuiltValueNullFieldError.checkNotNull( parentId, r'DiscountLinesDataResponse', 'parentId'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'DiscountLinesDataResponse', 'object'), amount: BuiltValueNullFieldError.checkNotNull( amount, r'DiscountLinesDataResponse', 'amount'), code: BuiltValueNullFieldError.checkNotNull( diff --git a/lib/src/model/discount_lines_response.dart b/lib/src/model/discount_lines_response.dart index 1dfb1d2..3aff97f 100644 --- a/lib/src/model/discount_lines_response.dart +++ b/lib/src/model/discount_lines_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/discount_lines_response_all_of.dart'; import 'package:conekta/src/model/order_discount_lines_request.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -20,7 +19,19 @@ part 'discount_lines_response.g.dart'; /// * [object] - The object name /// * [parentId] - The order id @BuiltValue(instantiable: false) -abstract class DiscountLinesResponse implements DiscountLinesResponseAllOf, OrderDiscountLinesRequest { +abstract class DiscountLinesResponse implements OrderDiscountLinesRequest { + /// The discount line id + @BuiltValueField(wireName: r'id') + String get id; + + /// The order id + @BuiltValueField(wireName: r'parent_id') + String get parentId; + + /// The object name + @BuiltValueField(wireName: r'object') + String get object; + @BuiltValueSerializer(custom: true) static Serializer get serializer => _$DiscountLinesResponseSerializer(); } @@ -42,14 +53,14 @@ class _$DiscountLinesResponseSerializer implements PrimitiveSerializer _$this._id; set id(covariant String? id) => _$this._id = id; - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - String? _parentId; String? get parentId => _$this._parentId; set parentId(covariant String? parentId) => _$this._parentId = parentId; + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + int? _amount; int? get amount => _$this._amount; set amount(covariant int? amount) => _$this._amount = amount; @@ -154,8 +152,8 @@ class $DiscountLinesResponseBuilder final $v = _$v; if ($v != null) { _id = $v.id; - _object = $v.object; _parentId = $v.parentId; + _object = $v.object; _amount = $v.amount; _code = $v.code; _type = $v.type; @@ -183,10 +181,10 @@ class $DiscountLinesResponseBuilder new _$$DiscountLinesResponse._( id: BuiltValueNullFieldError.checkNotNull( id, r'$DiscountLinesResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'$DiscountLinesResponse', 'object'), parentId: BuiltValueNullFieldError.checkNotNull( parentId, r'$DiscountLinesResponse', 'parentId'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'$DiscountLinesResponse', 'object'), amount: BuiltValueNullFieldError.checkNotNull( amount, r'$DiscountLinesResponse', 'amount'), code: BuiltValueNullFieldError.checkNotNull( diff --git a/lib/src/model/discount_lines_response_all_of.dart b/lib/src/model/discount_lines_response_all_of.dart deleted file mode 100644 index 2dadf89..0000000 --- a/lib/src/model/discount_lines_response_all_of.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'discount_lines_response_all_of.g.dart'; - -/// DiscountLinesResponseAllOf -/// -/// Properties: -/// * [id] - The discount line id -/// * [object] - The object name -/// * [parentId] - The order id -@BuiltValue(instantiable: false) -abstract class DiscountLinesResponseAllOf { - /// The discount line id - @BuiltValueField(wireName: r'id') - String get id; - - /// The object name - @BuiltValueField(wireName: r'object') - String get object; - - /// The order id - @BuiltValueField(wireName: r'parent_id') - String get parentId; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$DiscountLinesResponseAllOfSerializer(); -} - -class _$DiscountLinesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [DiscountLinesResponseAllOf]; - - @override - final String wireName = r'DiscountLinesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - DiscountLinesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - yield r'parent_id'; - yield serializers.serialize( - object.parentId, - specifiedType: const FullType(String), - ); - } - - @override - Object serialize( - Serializers serializers, - DiscountLinesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - DiscountLinesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($DiscountLinesResponseAllOf)) as $DiscountLinesResponseAllOf; - } -} - -/// a concrete implementation of [DiscountLinesResponseAllOf], since [DiscountLinesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $DiscountLinesResponseAllOf implements DiscountLinesResponseAllOf, Built<$DiscountLinesResponseAllOf, $DiscountLinesResponseAllOfBuilder> { - $DiscountLinesResponseAllOf._(); - - factory $DiscountLinesResponseAllOf([void Function($DiscountLinesResponseAllOfBuilder)? updates]) = _$$DiscountLinesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($DiscountLinesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$DiscountLinesResponseAllOf> get serializer => _$$DiscountLinesResponseAllOfSerializer(); -} - -class _$$DiscountLinesResponseAllOfSerializer implements PrimitiveSerializer<$DiscountLinesResponseAllOf> { - @override - final Iterable types = const [$DiscountLinesResponseAllOf, _$$DiscountLinesResponseAllOf]; - - @override - final String wireName = r'$DiscountLinesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $DiscountLinesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(DiscountLinesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required DiscountLinesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'parent_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.parentId = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $DiscountLinesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $DiscountLinesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/discount_lines_response_all_of.g.dart b/lib/src/model/discount_lines_response_all_of.g.dart deleted file mode 100644 index 4ea5238..0000000 --- a/lib/src/model/discount_lines_response_all_of.g.dart +++ /dev/null @@ -1,141 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'discount_lines_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class DiscountLinesResponseAllOfBuilder { - void replace(DiscountLinesResponseAllOf other); - void update(void Function(DiscountLinesResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - String? get parentId; - set parentId(String? parentId); -} - -class _$$DiscountLinesResponseAllOf extends $DiscountLinesResponseAllOf { - @override - final String id; - @override - final String object; - @override - final String parentId; - - factory _$$DiscountLinesResponseAllOf( - [void Function($DiscountLinesResponseAllOfBuilder)? updates]) => - (new $DiscountLinesResponseAllOfBuilder()..update(updates))._build(); - - _$$DiscountLinesResponseAllOf._( - {required this.id, required this.object, required this.parentId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - id, r'$DiscountLinesResponseAllOf', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'$DiscountLinesResponseAllOf', 'object'); - BuiltValueNullFieldError.checkNotNull( - parentId, r'$DiscountLinesResponseAllOf', 'parentId'); - } - - @override - $DiscountLinesResponseAllOf rebuild( - void Function($DiscountLinesResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $DiscountLinesResponseAllOfBuilder toBuilder() => - new $DiscountLinesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $DiscountLinesResponseAllOf && - id == other.id && - object == other.object && - parentId == other.parentId; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, id.hashCode), object.hashCode), parentId.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$DiscountLinesResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('parentId', parentId)) - .toString(); - } -} - -class $DiscountLinesResponseAllOfBuilder - implements - Builder<$DiscountLinesResponseAllOf, - $DiscountLinesResponseAllOfBuilder>, - DiscountLinesResponseAllOfBuilder { - _$$DiscountLinesResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - $DiscountLinesResponseAllOfBuilder() { - $DiscountLinesResponseAllOf._defaults(this); - } - - $DiscountLinesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $DiscountLinesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$DiscountLinesResponseAllOf; - } - - @override - void update(void Function($DiscountLinesResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $DiscountLinesResponseAllOf build() => _build(); - - _$$DiscountLinesResponseAllOf _build() { - final _$result = _$v ?? - new _$$DiscountLinesResponseAllOf._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'$DiscountLinesResponseAllOf', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'$DiscountLinesResponseAllOf', 'object'), - parentId: BuiltValueNullFieldError.checkNotNull( - parentId, r'$DiscountLinesResponseAllOf', 'parentId')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/error.dart b/lib/src/model/error.dart index 6bf4b9f..9487da3 100644 --- a/lib/src/model/error.dart +++ b/lib/src/model/error.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/details_error.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/error_all_of.dart'; import 'package:conekta/src/model/details.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -20,7 +19,17 @@ part 'error.g.dart'; /// * [type] /// * [object] @BuiltValue() -abstract class Error implements Details, ErrorAllOf, Built { +abstract class Error implements Details, Built { + /// log id + @BuiltValueField(wireName: r'log_id') + String? get logId; + + @BuiltValueField(wireName: r'type') + String? get type; + + @BuiltValueField(wireName: r'object') + String? get object; + Error._(); factory Error([void updates(ErrorBuilder b)]) = _$Error; @@ -44,13 +53,6 @@ class _$ErrorSerializer implements PrimitiveSerializer { Error object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.details != null) { - yield r'details'; - yield serializers.serialize( - object.details, - specifiedType: const FullType(BuiltList, [FullType(DetailsError)]), - ); - } if (object.logId != null) { yield r'log_id'; yield serializers.serialize( @@ -58,6 +60,13 @@ class _$ErrorSerializer implements PrimitiveSerializer { specifiedType: const FullType.nullable(String), ); } + if (object.details != null) { + yield r'details'; + yield serializers.serialize( + object.details, + specifiedType: const FullType(BuiltList, [FullType(DetailsError)]), + ); + } if (object.type != null) { yield r'type'; yield serializers.serialize( @@ -95,13 +104,6 @@ class _$ErrorSerializer implements PrimitiveSerializer { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { - case r'details': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(DetailsError)]), - ) as BuiltList; - result.details.replace(valueDes); - break; case r'log_id': final valueDes = serializers.deserialize( value, @@ -110,6 +112,13 @@ class _$ErrorSerializer implements PrimitiveSerializer { if (valueDes == null) continue; result.logId = valueDes; break; + case r'details': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(DetailsError)]), + ) as BuiltList; + result.details.replace(valueDes); + break; case r'type': final valueDes = serializers.deserialize( value, diff --git a/lib/src/model/error.g.dart b/lib/src/model/error.g.dart index 37082d7..11925e6 100644 --- a/lib/src/model/error.g.dart +++ b/lib/src/model/error.g.dart @@ -7,19 +7,19 @@ part of 'error.dart'; // ************************************************************************** class _$Error extends Error { - @override - final BuiltList? details; @override final String? logId; @override final String? type; @override final String? object; + @override + final BuiltList? details; factory _$Error([void Function(ErrorBuilder)? updates]) => (new ErrorBuilder()..update(updates))._build(); - _$Error._({this.details, this.logId, this.type, this.object}) : super._(); + _$Error._({this.logId, this.type, this.object, this.details}) : super._(); @override Error rebuild(void Function(ErrorBuilder) updates) => @@ -32,40 +32,33 @@ class _$Error extends Error { bool operator ==(Object other) { if (identical(other, this)) return true; return other is Error && - details == other.details && logId == other.logId && type == other.type && - object == other.object; + object == other.object && + details == other.details; } @override int get hashCode { return $jf($jc( - $jc($jc($jc(0, details.hashCode), logId.hashCode), type.hashCode), - object.hashCode)); + $jc($jc($jc(0, logId.hashCode), type.hashCode), object.hashCode), + details.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'Error') - ..add('details', details) ..add('logId', logId) ..add('type', type) - ..add('object', object)) + ..add('object', object) + ..add('details', details)) .toString(); } } -class ErrorBuilder - implements Builder, DetailsBuilder, ErrorAllOfBuilder { +class ErrorBuilder implements Builder, DetailsBuilder { _$Error? _$v; - ListBuilder? _details; - ListBuilder get details => - _$this._details ??= new ListBuilder(); - set details(covariant ListBuilder? details) => - _$this._details = details; - String? _logId; String? get logId => _$this._logId; set logId(covariant String? logId) => _$this._logId = logId; @@ -78,6 +71,12 @@ class ErrorBuilder String? get object => _$this._object; set object(covariant String? object) => _$this._object = object; + ListBuilder? _details; + ListBuilder get details => + _$this._details ??= new ListBuilder(); + set details(covariant ListBuilder? details) => + _$this._details = details; + ErrorBuilder() { Error._defaults(this); } @@ -85,17 +84,16 @@ class ErrorBuilder ErrorBuilder get _$this { final $v = _$v; if ($v != null) { - _details = $v.details?.toBuilder(); _logId = $v.logId; _type = $v.type; _object = $v.object; + _details = $v.details?.toBuilder(); _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant Error other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$Error; @@ -114,10 +112,10 @@ class ErrorBuilder try { _$result = _$v ?? new _$Error._( - details: _details?.build(), logId: logId, type: type, - object: object); + object: object, + details: _details?.build()); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/error_all_of.dart b/lib/src/model/error_all_of.dart deleted file mode 100644 index c81f4fc..0000000 --- a/lib/src/model/error_all_of.dart +++ /dev/null @@ -1,179 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'error_all_of.g.dart'; - -/// ErrorAllOf -/// -/// Properties: -/// * [logId] - log id -/// * [type] -/// * [object] -@BuiltValue(instantiable: false) -abstract class ErrorAllOf { - /// log id - @BuiltValueField(wireName: r'log_id') - String? get logId; - - @BuiltValueField(wireName: r'type') - String? get type; - - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ErrorAllOfSerializer(); -} - -class _$ErrorAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ErrorAllOf]; - - @override - final String wireName = r'ErrorAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - ErrorAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.logId != null) { - yield r'log_id'; - yield serializers.serialize( - object.logId, - specifiedType: const FullType.nullable(String), - ); - } - if (object.type != null) { - yield r'type'; - yield serializers.serialize( - object.type, - specifiedType: const FullType(String), - ); - } - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ErrorAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ErrorAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ErrorAllOf)) as $ErrorAllOf; - } -} - -/// a concrete implementation of [ErrorAllOf], since [ErrorAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ErrorAllOf implements ErrorAllOf, Built<$ErrorAllOf, $ErrorAllOfBuilder> { - $ErrorAllOf._(); - - factory $ErrorAllOf([void Function($ErrorAllOfBuilder)? updates]) = _$$ErrorAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ErrorAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ErrorAllOf> get serializer => _$$ErrorAllOfSerializer(); -} - -class _$$ErrorAllOfSerializer implements PrimitiveSerializer<$ErrorAllOf> { - @override - final Iterable types = const [$ErrorAllOf, _$$ErrorAllOf]; - - @override - final String wireName = r'$ErrorAllOf'; - - @override - Object serialize( - Serializers serializers, - $ErrorAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ErrorAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ErrorAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'log_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType.nullable(String), - ) as String?; - if (valueDes == null) continue; - result.logId = valueDes; - break; - case r'type': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.type = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ErrorAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ErrorAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/error_all_of.g.dart b/lib/src/model/error_all_of.g.dart deleted file mode 100644 index 3d12cc5..0000000 --- a/lib/src/model/error_all_of.g.dart +++ /dev/null @@ -1,120 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'error_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ErrorAllOfBuilder { - void replace(ErrorAllOf other); - void update(void Function(ErrorAllOfBuilder) updates); - String? get logId; - set logId(String? logId); - - String? get type; - set type(String? type); - - String? get object; - set object(String? object); -} - -class _$$ErrorAllOf extends $ErrorAllOf { - @override - final String? logId; - @override - final String? type; - @override - final String? object; - - factory _$$ErrorAllOf([void Function($ErrorAllOfBuilder)? updates]) => - (new $ErrorAllOfBuilder()..update(updates))._build(); - - _$$ErrorAllOf._({this.logId, this.type, this.object}) : super._(); - - @override - $ErrorAllOf rebuild(void Function($ErrorAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ErrorAllOfBuilder toBuilder() => new $ErrorAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ErrorAllOf && - logId == other.logId && - type == other.type && - object == other.object; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, logId.hashCode), type.hashCode), object.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ErrorAllOf') - ..add('logId', logId) - ..add('type', type) - ..add('object', object)) - .toString(); - } -} - -class $ErrorAllOfBuilder - implements Builder<$ErrorAllOf, $ErrorAllOfBuilder>, ErrorAllOfBuilder { - _$$ErrorAllOf? _$v; - - String? _logId; - String? get logId => _$this._logId; - set logId(covariant String? logId) => _$this._logId = logId; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - $ErrorAllOfBuilder() { - $ErrorAllOf._defaults(this); - } - - $ErrorAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _logId = $v.logId; - _type = $v.type; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ErrorAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ErrorAllOf; - } - - @override - void update(void Function($ErrorAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ErrorAllOf build() => _build(); - - _$$ErrorAllOf _build() { - final _$result = - _$v ?? new _$$ErrorAllOf._(logId: logId, type: type, object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/event_types.dart b/lib/src/model/event_types.dart new file mode 100644 index 0000000..21c4af4 --- /dev/null +++ b/lib/src/model/event_types.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'event_types.g.dart'; + +class EventTypes extends EnumClass { + + /// It is a parameter that allows to identify in the response, the type of event that is being generated. + @BuiltValueEnumConst(wireName: r'webhook_ping') + static const EventTypes webhookPing = _$webhookPing; + /// It is a parameter that allows to identify in the response, the type of event that is being generated. + @BuiltValueEnumConst(wireName: r'order.paid') + static const EventTypes orderPeriodPaid = _$orderPeriodPaid; + /// It is a parameter that allows to identify in the response, the type of event that is being generated. + @BuiltValueEnumConst(wireName: r'order.expired') + static const EventTypes orderPeriodExpired = _$orderPeriodExpired; + /// It is a parameter that allows to identify in the response, the type of event that is being generated. + @BuiltValueEnumConst(wireName: r'order.canceled') + static const EventTypes orderPeriodCanceled = _$orderPeriodCanceled; + + static Serializer get serializer => _$eventTypesSerializer; + + const EventTypes._(String name): super(name); + + static BuiltSet get values => _$values; + static EventTypes valueOf(String name) => _$valueOf(name); +} + +/// Optionally, enum_class can generate a mixin to go with your enum for use +/// with Angular. It exposes your enum constants as getters. So, if you mix it +/// in to your Dart component class, the values become available to the +/// corresponding Angular template. +/// +/// Trigger mixin generation by writing a line like this one next to your enum. +abstract class EventTypesMixin = Object with _$EventTypesMixin; + diff --git a/lib/src/model/event_types.g.dart b/lib/src/model/event_types.g.dart new file mode 100644 index 0000000..fb8356d --- /dev/null +++ b/lib/src/model/event_types.g.dart @@ -0,0 +1,87 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'event_types.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const EventTypes _$webhookPing = const EventTypes._('webhookPing'); +const EventTypes _$orderPeriodPaid = const EventTypes._('orderPeriodPaid'); +const EventTypes _$orderPeriodExpired = + const EventTypes._('orderPeriodExpired'); +const EventTypes _$orderPeriodCanceled = + const EventTypes._('orderPeriodCanceled'); + +EventTypes _$valueOf(String name) { + switch (name) { + case 'webhookPing': + return _$webhookPing; + case 'orderPeriodPaid': + return _$orderPeriodPaid; + case 'orderPeriodExpired': + return _$orderPeriodExpired; + case 'orderPeriodCanceled': + return _$orderPeriodCanceled; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$values = + new BuiltSet(const [ + _$webhookPing, + _$orderPeriodPaid, + _$orderPeriodExpired, + _$orderPeriodCanceled, +]); + +class _$EventTypesMeta { + const _$EventTypesMeta(); + EventTypes get webhookPing => _$webhookPing; + EventTypes get orderPeriodPaid => _$orderPeriodPaid; + EventTypes get orderPeriodExpired => _$orderPeriodExpired; + EventTypes get orderPeriodCanceled => _$orderPeriodCanceled; + EventTypes valueOf(String name) => _$valueOf(name); + BuiltSet get values => _$values; +} + +abstract class _$EventTypesMixin { + // ignore: non_constant_identifier_names + _$EventTypesMeta get EventTypes => const _$EventTypesMeta(); +} + +Serializer _$eventTypesSerializer = new _$EventTypesSerializer(); + +class _$EventTypesSerializer implements PrimitiveSerializer { + static const Map _toWire = const { + 'webhookPing': 'webhook_ping', + 'orderPeriodPaid': 'order.paid', + 'orderPeriodExpired': 'order.expired', + 'orderPeriodCanceled': 'order.canceled', + }; + static const Map _fromWire = const { + 'webhook_ping': 'webhookPing', + 'order.paid': 'orderPeriodPaid', + 'order.expired': 'orderPeriodExpired', + 'order.canceled': 'orderPeriodCanceled', + }; + + @override + final Iterable types = const [EventTypes]; + @override + final String wireName = 'EventTypes'; + + @override + Object serialize(Serializers serializers, EventTypes object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + EventTypes deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + EventTypes.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_api_keys_response.dart b/lib/src/model/get_api_keys_response.dart index ace15c5..d7b30a4 100644 --- a/lib/src/model/get_api_keys_response.dart +++ b/lib/src/model/get_api_keys_response.dart @@ -6,7 +6,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:conekta/src/model/api_key_response.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/get_api_keys_response_all_of.dart'; import 'package:conekta/src/model/page.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_api_keys_response.g.dart'; /// * [object] - Object type, in this case is list /// * [data] @BuiltValue() -abstract class GetApiKeysResponse implements GetApiKeysResponseAllOf, Page, Pagination, Built { +abstract class GetApiKeysResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetApiKeysResponse._(); factory GetApiKeysResponse([void updates(GetApiKeysResponseBuilder b)]) = _$GetApiKeysResponse; diff --git a/lib/src/model/get_api_keys_response.g.dart b/lib/src/model/get_api_keys_response.g.dart index d0f78c8..5e22eed 100644 --- a/lib/src/model/get_api_keys_response.g.dart +++ b/lib/src/model/get_api_keys_response.g.dart @@ -80,7 +80,6 @@ class _$GetApiKeysResponse extends GetApiKeysResponse { class GetApiKeysResponseBuilder implements Builder, - GetApiKeysResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetApiKeysResponse? _$v; diff --git a/lib/src/model/get_api_keys_response_all_of.dart b/lib/src/model/get_api_keys_response_all_of.dart deleted file mode 100644 index 9802bde..0000000 --- a/lib/src/model/get_api_keys_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:conekta/src/model/api_key_response.dart'; -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_api_keys_response_all_of.g.dart'; - -/// GetApiKeysResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetApiKeysResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetApiKeysResponseAllOfSerializer(); -} - -class _$GetApiKeysResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetApiKeysResponseAllOf]; - - @override - final String wireName = r'GetApiKeysResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetApiKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(ApiKeyResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetApiKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetApiKeysResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetApiKeysResponseAllOf)) as $GetApiKeysResponseAllOf; - } -} - -/// a concrete implementation of [GetApiKeysResponseAllOf], since [GetApiKeysResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetApiKeysResponseAllOf implements GetApiKeysResponseAllOf, Built<$GetApiKeysResponseAllOf, $GetApiKeysResponseAllOfBuilder> { - $GetApiKeysResponseAllOf._(); - - factory $GetApiKeysResponseAllOf([void Function($GetApiKeysResponseAllOfBuilder)? updates]) = _$$GetApiKeysResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetApiKeysResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetApiKeysResponseAllOf> get serializer => _$$GetApiKeysResponseAllOfSerializer(); -} - -class _$$GetApiKeysResponseAllOfSerializer implements PrimitiveSerializer<$GetApiKeysResponseAllOf> { - @override - final Iterable types = const [$GetApiKeysResponseAllOf, _$$GetApiKeysResponseAllOf]; - - @override - final String wireName = r'$GetApiKeysResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetApiKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetApiKeysResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetApiKeysResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(ApiKeyResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetApiKeysResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetApiKeysResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_api_keys_response_all_of.g.dart b/lib/src/model/get_api_keys_response_all_of.g.dart deleted file mode 100644 index 7adb49b..0000000 --- a/lib/src/model/get_api_keys_response_all_of.g.dart +++ /dev/null @@ -1,112 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_api_keys_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetApiKeysResponseAllOfBuilder { - void replace(GetApiKeysResponseAllOf other); - void update(void Function(GetApiKeysResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetApiKeysResponseAllOf extends $GetApiKeysResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetApiKeysResponseAllOf( - [void Function($GetApiKeysResponseAllOfBuilder)? updates]) => - (new $GetApiKeysResponseAllOfBuilder()..update(updates))._build(); - - _$$GetApiKeysResponseAllOf._({this.data}) : super._(); - - @override - $GetApiKeysResponseAllOf rebuild( - void Function($GetApiKeysResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetApiKeysResponseAllOfBuilder toBuilder() => - new $GetApiKeysResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetApiKeysResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetApiKeysResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetApiKeysResponseAllOfBuilder - implements - Builder<$GetApiKeysResponseAllOf, $GetApiKeysResponseAllOfBuilder>, - GetApiKeysResponseAllOfBuilder { - _$$GetApiKeysResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $GetApiKeysResponseAllOfBuilder() { - $GetApiKeysResponseAllOf._defaults(this); - } - - $GetApiKeysResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetApiKeysResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetApiKeysResponseAllOf; - } - - @override - void update(void Function($GetApiKeysResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetApiKeysResponseAllOf build() => _build(); - - _$$GetApiKeysResponseAllOf _build() { - _$$GetApiKeysResponseAllOf _$result; - try { - _$result = _$v ?? new _$$GetApiKeysResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetApiKeysResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_charges_response.dart b/lib/src/model/get_charges_response.dart index 3b96a46..4e764fd 100644 --- a/lib/src/model/get_charges_response.dart +++ b/lib/src/model/get_charges_response.dart @@ -6,7 +6,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/charge_response.dart'; -import 'package:conekta/src/model/get_charges_response_all_of.dart'; import 'package:conekta/src/model/page.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_charges_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetChargesResponse implements GetChargesResponseAllOf, Page, Pagination, Built { +abstract class GetChargesResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetChargesResponse._(); factory GetChargesResponse([void updates(GetChargesResponseBuilder b)]) = _$GetChargesResponse; diff --git a/lib/src/model/get_charges_response.g.dart b/lib/src/model/get_charges_response.g.dart index 5126cec..e1b9036 100644 --- a/lib/src/model/get_charges_response.g.dart +++ b/lib/src/model/get_charges_response.g.dart @@ -80,7 +80,6 @@ class _$GetChargesResponse extends GetChargesResponse { class GetChargesResponseBuilder implements Builder, - GetChargesResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetChargesResponse? _$v; diff --git a/lib/src/model/get_charges_response_all_of.dart b/lib/src/model/get_charges_response_all_of.dart deleted file mode 100644 index 5ad4b1c..0000000 --- a/lib/src/model/get_charges_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/charge_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_charges_response_all_of.g.dart'; - -/// GetChargesResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetChargesResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetChargesResponseAllOfSerializer(); -} - -class _$GetChargesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetChargesResponseAllOf]; - - @override - final String wireName = r'GetChargesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetChargesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(ChargeResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetChargesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetChargesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetChargesResponseAllOf)) as $GetChargesResponseAllOf; - } -} - -/// a concrete implementation of [GetChargesResponseAllOf], since [GetChargesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetChargesResponseAllOf implements GetChargesResponseAllOf, Built<$GetChargesResponseAllOf, $GetChargesResponseAllOfBuilder> { - $GetChargesResponseAllOf._(); - - factory $GetChargesResponseAllOf([void Function($GetChargesResponseAllOfBuilder)? updates]) = _$$GetChargesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetChargesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetChargesResponseAllOf> get serializer => _$$GetChargesResponseAllOfSerializer(); -} - -class _$$GetChargesResponseAllOfSerializer implements PrimitiveSerializer<$GetChargesResponseAllOf> { - @override - final Iterable types = const [$GetChargesResponseAllOf, _$$GetChargesResponseAllOf]; - - @override - final String wireName = r'$GetChargesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetChargesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetChargesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetChargesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(ChargeResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetChargesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetChargesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_charges_response_all_of.g.dart b/lib/src/model/get_charges_response_all_of.g.dart deleted file mode 100644 index 586481b..0000000 --- a/lib/src/model/get_charges_response_all_of.g.dart +++ /dev/null @@ -1,112 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_charges_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetChargesResponseAllOfBuilder { - void replace(GetChargesResponseAllOf other); - void update(void Function(GetChargesResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetChargesResponseAllOf extends $GetChargesResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetChargesResponseAllOf( - [void Function($GetChargesResponseAllOfBuilder)? updates]) => - (new $GetChargesResponseAllOfBuilder()..update(updates))._build(); - - _$$GetChargesResponseAllOf._({this.data}) : super._(); - - @override - $GetChargesResponseAllOf rebuild( - void Function($GetChargesResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetChargesResponseAllOfBuilder toBuilder() => - new $GetChargesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetChargesResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetChargesResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetChargesResponseAllOfBuilder - implements - Builder<$GetChargesResponseAllOf, $GetChargesResponseAllOfBuilder>, - GetChargesResponseAllOfBuilder { - _$$GetChargesResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $GetChargesResponseAllOfBuilder() { - $GetChargesResponseAllOf._defaults(this); - } - - $GetChargesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetChargesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetChargesResponseAllOf; - } - - @override - void update(void Function($GetChargesResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetChargesResponseAllOf build() => _build(); - - _$$GetChargesResponseAllOf _build() { - _$$GetChargesResponseAllOf _$result; - try { - _$result = _$v ?? new _$$GetChargesResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetChargesResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_companies_response.dart b/lib/src/model/get_companies_response.dart index 8e3b1df..4907bb0 100644 --- a/lib/src/model/get_companies_response.dart +++ b/lib/src/model/get_companies_response.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/get_companies_response_all_of.dart'; import 'package:conekta/src/model/company_response.dart'; import 'package:conekta/src/model/page.dart'; import 'package:built_value/built_value.dart'; @@ -22,7 +21,10 @@ part 'get_companies_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetCompaniesResponse implements GetCompaniesResponseAllOf, Page, Pagination, Built { +abstract class GetCompaniesResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetCompaniesResponse._(); factory GetCompaniesResponse([void updates(GetCompaniesResponseBuilder b)]) = _$GetCompaniesResponse; diff --git a/lib/src/model/get_companies_response.g.dart b/lib/src/model/get_companies_response.g.dart index f4296c8..96e956e 100644 --- a/lib/src/model/get_companies_response.g.dart +++ b/lib/src/model/get_companies_response.g.dart @@ -80,7 +80,6 @@ class _$GetCompaniesResponse extends GetCompaniesResponse { class GetCompaniesResponseBuilder implements Builder, - GetCompaniesResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetCompaniesResponse? _$v; diff --git a/lib/src/model/get_companies_response_all_of.dart b/lib/src/model/get_companies_response_all_of.dart deleted file mode 100644 index 3b2fa1d..0000000 --- a/lib/src/model/get_companies_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/company_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_companies_response_all_of.g.dart'; - -/// GetCompaniesResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetCompaniesResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetCompaniesResponseAllOfSerializer(); -} - -class _$GetCompaniesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetCompaniesResponseAllOf]; - - @override - final String wireName = r'GetCompaniesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetCompaniesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(CompanyResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetCompaniesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetCompaniesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetCompaniesResponseAllOf)) as $GetCompaniesResponseAllOf; - } -} - -/// a concrete implementation of [GetCompaniesResponseAllOf], since [GetCompaniesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetCompaniesResponseAllOf implements GetCompaniesResponseAllOf, Built<$GetCompaniesResponseAllOf, $GetCompaniesResponseAllOfBuilder> { - $GetCompaniesResponseAllOf._(); - - factory $GetCompaniesResponseAllOf([void Function($GetCompaniesResponseAllOfBuilder)? updates]) = _$$GetCompaniesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetCompaniesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetCompaniesResponseAllOf> get serializer => _$$GetCompaniesResponseAllOfSerializer(); -} - -class _$$GetCompaniesResponseAllOfSerializer implements PrimitiveSerializer<$GetCompaniesResponseAllOf> { - @override - final Iterable types = const [$GetCompaniesResponseAllOf, _$$GetCompaniesResponseAllOf]; - - @override - final String wireName = r'$GetCompaniesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetCompaniesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetCompaniesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetCompaniesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(CompanyResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetCompaniesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetCompaniesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_companies_response_all_of.g.dart b/lib/src/model/get_companies_response_all_of.g.dart deleted file mode 100644 index aa7d093..0000000 --- a/lib/src/model/get_companies_response_all_of.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_companies_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetCompaniesResponseAllOfBuilder { - void replace(GetCompaniesResponseAllOf other); - void update(void Function(GetCompaniesResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetCompaniesResponseAllOf extends $GetCompaniesResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetCompaniesResponseAllOf( - [void Function($GetCompaniesResponseAllOfBuilder)? updates]) => - (new $GetCompaniesResponseAllOfBuilder()..update(updates))._build(); - - _$$GetCompaniesResponseAllOf._({this.data}) : super._(); - - @override - $GetCompaniesResponseAllOf rebuild( - void Function($GetCompaniesResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetCompaniesResponseAllOfBuilder toBuilder() => - new $GetCompaniesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetCompaniesResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetCompaniesResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetCompaniesResponseAllOfBuilder - implements - Builder<$GetCompaniesResponseAllOf, $GetCompaniesResponseAllOfBuilder>, - GetCompaniesResponseAllOfBuilder { - _$$GetCompaniesResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $GetCompaniesResponseAllOfBuilder() { - $GetCompaniesResponseAllOf._defaults(this); - } - - $GetCompaniesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetCompaniesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetCompaniesResponseAllOf; - } - - @override - void update(void Function($GetCompaniesResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetCompaniesResponseAllOf build() => _build(); - - _$$GetCompaniesResponseAllOf _build() { - _$$GetCompaniesResponseAllOf _$result; - try { - _$result = - _$v ?? new _$$GetCompaniesResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetCompaniesResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_events_response.dart b/lib/src/model/get_events_response.dart index d51b88a..703d3ce 100644 --- a/lib/src/model/get_events_response.dart +++ b/lib/src/model/get_events_response.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; -import 'package:conekta/src/model/get_events_response_all_of.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; import 'package:conekta/src/model/event_response.dart'; @@ -22,7 +21,10 @@ part 'get_events_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetEventsResponse implements GetEventsResponseAllOf, Page, Pagination, Built { +abstract class GetEventsResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetEventsResponse._(); factory GetEventsResponse([void updates(GetEventsResponseBuilder b)]) = _$GetEventsResponse; diff --git a/lib/src/model/get_events_response.g.dart b/lib/src/model/get_events_response.g.dart index 9b28d4d..633f05a 100644 --- a/lib/src/model/get_events_response.g.dart +++ b/lib/src/model/get_events_response.g.dart @@ -79,7 +79,6 @@ class _$GetEventsResponse extends GetEventsResponse { class GetEventsResponseBuilder implements Builder, - GetEventsResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetEventsResponse? _$v; diff --git a/lib/src/model/get_events_response_all_of.dart b/lib/src/model/get_events_response_all_of.dart deleted file mode 100644 index cca2b43..0000000 --- a/lib/src/model/get_events_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/event_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_events_response_all_of.g.dart'; - -/// GetEventsResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetEventsResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetEventsResponseAllOfSerializer(); -} - -class _$GetEventsResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetEventsResponseAllOf]; - - @override - final String wireName = r'GetEventsResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetEventsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(EventResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetEventsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetEventsResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetEventsResponseAllOf)) as $GetEventsResponseAllOf; - } -} - -/// a concrete implementation of [GetEventsResponseAllOf], since [GetEventsResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetEventsResponseAllOf implements GetEventsResponseAllOf, Built<$GetEventsResponseAllOf, $GetEventsResponseAllOfBuilder> { - $GetEventsResponseAllOf._(); - - factory $GetEventsResponseAllOf([void Function($GetEventsResponseAllOfBuilder)? updates]) = _$$GetEventsResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetEventsResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetEventsResponseAllOf> get serializer => _$$GetEventsResponseAllOfSerializer(); -} - -class _$$GetEventsResponseAllOfSerializer implements PrimitiveSerializer<$GetEventsResponseAllOf> { - @override - final Iterable types = const [$GetEventsResponseAllOf, _$$GetEventsResponseAllOf]; - - @override - final String wireName = r'$GetEventsResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetEventsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetEventsResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetEventsResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(EventResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetEventsResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetEventsResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_events_response_all_of.g.dart b/lib/src/model/get_events_response_all_of.g.dart deleted file mode 100644 index 6244749..0000000 --- a/lib/src/model/get_events_response_all_of.g.dart +++ /dev/null @@ -1,112 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_events_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetEventsResponseAllOfBuilder { - void replace(GetEventsResponseAllOf other); - void update(void Function(GetEventsResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetEventsResponseAllOf extends $GetEventsResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetEventsResponseAllOf( - [void Function($GetEventsResponseAllOfBuilder)? updates]) => - (new $GetEventsResponseAllOfBuilder()..update(updates))._build(); - - _$$GetEventsResponseAllOf._({this.data}) : super._(); - - @override - $GetEventsResponseAllOf rebuild( - void Function($GetEventsResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetEventsResponseAllOfBuilder toBuilder() => - new $GetEventsResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetEventsResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetEventsResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetEventsResponseAllOfBuilder - implements - Builder<$GetEventsResponseAllOf, $GetEventsResponseAllOfBuilder>, - GetEventsResponseAllOfBuilder { - _$$GetEventsResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $GetEventsResponseAllOfBuilder() { - $GetEventsResponseAllOf._defaults(this); - } - - $GetEventsResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetEventsResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetEventsResponseAllOf; - } - - @override - void update(void Function($GetEventsResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetEventsResponseAllOf build() => _build(); - - _$$GetEventsResponseAllOf _build() { - _$$GetEventsResponseAllOf _$result; - try { - _$result = _$v ?? new _$$GetEventsResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetEventsResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_order_discount_lines_response.dart b/lib/src/model/get_order_discount_lines_response.dart index e0be970..2611091 100644 --- a/lib/src/model/get_order_discount_lines_response.dart +++ b/lib/src/model/get_order_discount_lines_response.dart @@ -6,7 +6,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; -import 'package:conekta/src/model/get_order_discount_lines_response_all_of.dart'; import 'package:conekta/src/model/discount_lines_response.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_order_discount_lines_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetOrderDiscountLinesResponse implements GetOrderDiscountLinesResponseAllOf, Page, Pagination, Built { +abstract class GetOrderDiscountLinesResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetOrderDiscountLinesResponse._(); factory GetOrderDiscountLinesResponse([void updates(GetOrderDiscountLinesResponseBuilder b)]) = _$GetOrderDiscountLinesResponse; diff --git a/lib/src/model/get_order_discount_lines_response.g.dart b/lib/src/model/get_order_discount_lines_response.g.dart index 102c1cb..2dbb4f7 100644 --- a/lib/src/model/get_order_discount_lines_response.g.dart +++ b/lib/src/model/get_order_discount_lines_response.g.dart @@ -81,7 +81,6 @@ class GetOrderDiscountLinesResponseBuilder implements Builder, - GetOrderDiscountLinesResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetOrderDiscountLinesResponse? _$v; diff --git a/lib/src/model/get_order_discount_lines_response_all_of.dart b/lib/src/model/get_order_discount_lines_response_all_of.dart deleted file mode 100644 index ee2fea5..0000000 --- a/lib/src/model/get_order_discount_lines_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/discount_lines_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_order_discount_lines_response_all_of.g.dart'; - -/// GetOrderDiscountLinesResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetOrderDiscountLinesResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetOrderDiscountLinesResponseAllOfSerializer(); -} - -class _$GetOrderDiscountLinesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetOrderDiscountLinesResponseAllOf]; - - @override - final String wireName = r'GetOrderDiscountLinesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetOrderDiscountLinesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(DiscountLinesResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetOrderDiscountLinesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetOrderDiscountLinesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetOrderDiscountLinesResponseAllOf)) as $GetOrderDiscountLinesResponseAllOf; - } -} - -/// a concrete implementation of [GetOrderDiscountLinesResponseAllOf], since [GetOrderDiscountLinesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetOrderDiscountLinesResponseAllOf implements GetOrderDiscountLinesResponseAllOf, Built<$GetOrderDiscountLinesResponseAllOf, $GetOrderDiscountLinesResponseAllOfBuilder> { - $GetOrderDiscountLinesResponseAllOf._(); - - factory $GetOrderDiscountLinesResponseAllOf([void Function($GetOrderDiscountLinesResponseAllOfBuilder)? updates]) = _$$GetOrderDiscountLinesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetOrderDiscountLinesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetOrderDiscountLinesResponseAllOf> get serializer => _$$GetOrderDiscountLinesResponseAllOfSerializer(); -} - -class _$$GetOrderDiscountLinesResponseAllOfSerializer implements PrimitiveSerializer<$GetOrderDiscountLinesResponseAllOf> { - @override - final Iterable types = const [$GetOrderDiscountLinesResponseAllOf, _$$GetOrderDiscountLinesResponseAllOf]; - - @override - final String wireName = r'$GetOrderDiscountLinesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetOrderDiscountLinesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetOrderDiscountLinesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetOrderDiscountLinesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(DiscountLinesResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetOrderDiscountLinesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetOrderDiscountLinesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_order_discount_lines_response_all_of.g.dart b/lib/src/model/get_order_discount_lines_response_all_of.g.dart deleted file mode 100644 index 117c001..0000000 --- a/lib/src/model/get_order_discount_lines_response_all_of.g.dart +++ /dev/null @@ -1,121 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_order_discount_lines_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetOrderDiscountLinesResponseAllOfBuilder { - void replace(GetOrderDiscountLinesResponseAllOf other); - void update(void Function(GetOrderDiscountLinesResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetOrderDiscountLinesResponseAllOf - extends $GetOrderDiscountLinesResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetOrderDiscountLinesResponseAllOf( - [void Function($GetOrderDiscountLinesResponseAllOfBuilder)? - updates]) => - (new $GetOrderDiscountLinesResponseAllOfBuilder()..update(updates)) - ._build(); - - _$$GetOrderDiscountLinesResponseAllOf._({this.data}) : super._(); - - @override - $GetOrderDiscountLinesResponseAllOf rebuild( - void Function($GetOrderDiscountLinesResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetOrderDiscountLinesResponseAllOfBuilder toBuilder() => - new $GetOrderDiscountLinesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetOrderDiscountLinesResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetOrderDiscountLinesResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetOrderDiscountLinesResponseAllOfBuilder - implements - Builder<$GetOrderDiscountLinesResponseAllOf, - $GetOrderDiscountLinesResponseAllOfBuilder>, - GetOrderDiscountLinesResponseAllOfBuilder { - _$$GetOrderDiscountLinesResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $GetOrderDiscountLinesResponseAllOfBuilder() { - $GetOrderDiscountLinesResponseAllOf._defaults(this); - } - - $GetOrderDiscountLinesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetOrderDiscountLinesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetOrderDiscountLinesResponseAllOf; - } - - @override - void update( - void Function($GetOrderDiscountLinesResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetOrderDiscountLinesResponseAllOf build() => _build(); - - _$$GetOrderDiscountLinesResponseAllOf _build() { - _$$GetOrderDiscountLinesResponseAllOf _$result; - try { - _$result = _$v ?? - new _$$GetOrderDiscountLinesResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetOrderDiscountLinesResponseAllOf', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_payment_method_response.dart b/lib/src/model/get_payment_method_response.dart index f152194..bc4625e 100644 --- a/lib/src/model/get_payment_method_response.dart +++ b/lib/src/model/get_payment_method_response.dart @@ -6,7 +6,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:conekta/src/model/get_customer_payment_method_data_response.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/get_payment_method_response_all_of.dart'; import 'package:conekta/src/model/page.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_payment_method_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetPaymentMethodResponse implements GetPaymentMethodResponseAllOf, Page, Pagination, Built { +abstract class GetPaymentMethodResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetPaymentMethodResponse._(); factory GetPaymentMethodResponse([void updates(GetPaymentMethodResponseBuilder b)]) = _$GetPaymentMethodResponse; diff --git a/lib/src/model/get_payment_method_response.g.dart b/lib/src/model/get_payment_method_response.g.dart index 0647a12..a59fff0 100644 --- a/lib/src/model/get_payment_method_response.g.dart +++ b/lib/src/model/get_payment_method_response.g.dart @@ -80,7 +80,6 @@ class _$GetPaymentMethodResponse extends GetPaymentMethodResponse { class GetPaymentMethodResponseBuilder implements Builder, - GetPaymentMethodResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetPaymentMethodResponse? _$v; diff --git a/lib/src/model/get_payment_method_response_all_of.dart b/lib/src/model/get_payment_method_response_all_of.dart deleted file mode 100644 index 165775d..0000000 --- a/lib/src/model/get_payment_method_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:conekta/src/model/get_customer_payment_method_data_response.dart'; -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_payment_method_response_all_of.g.dart'; - -/// GetPaymentMethodResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetPaymentMethodResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetPaymentMethodResponseAllOfSerializer(); -} - -class _$GetPaymentMethodResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetPaymentMethodResponseAllOf]; - - @override - final String wireName = r'GetPaymentMethodResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetPaymentMethodResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(GetCustomerPaymentMethodDataResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetPaymentMethodResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetPaymentMethodResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetPaymentMethodResponseAllOf)) as $GetPaymentMethodResponseAllOf; - } -} - -/// a concrete implementation of [GetPaymentMethodResponseAllOf], since [GetPaymentMethodResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetPaymentMethodResponseAllOf implements GetPaymentMethodResponseAllOf, Built<$GetPaymentMethodResponseAllOf, $GetPaymentMethodResponseAllOfBuilder> { - $GetPaymentMethodResponseAllOf._(); - - factory $GetPaymentMethodResponseAllOf([void Function($GetPaymentMethodResponseAllOfBuilder)? updates]) = _$$GetPaymentMethodResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetPaymentMethodResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetPaymentMethodResponseAllOf> get serializer => _$$GetPaymentMethodResponseAllOfSerializer(); -} - -class _$$GetPaymentMethodResponseAllOfSerializer implements PrimitiveSerializer<$GetPaymentMethodResponseAllOf> { - @override - final Iterable types = const [$GetPaymentMethodResponseAllOf, _$$GetPaymentMethodResponseAllOf]; - - @override - final String wireName = r'$GetPaymentMethodResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetPaymentMethodResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetPaymentMethodResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetPaymentMethodResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(GetCustomerPaymentMethodDataResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetPaymentMethodResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetPaymentMethodResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_payment_method_response_all_of.g.dart b/lib/src/model/get_payment_method_response_all_of.g.dart deleted file mode 100644 index 0769766..0000000 --- a/lib/src/model/get_payment_method_response_all_of.g.dart +++ /dev/null @@ -1,115 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_payment_method_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetPaymentMethodResponseAllOfBuilder { - void replace(GetPaymentMethodResponseAllOf other); - void update(void Function(GetPaymentMethodResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetPaymentMethodResponseAllOf extends $GetPaymentMethodResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetPaymentMethodResponseAllOf( - [void Function($GetPaymentMethodResponseAllOfBuilder)? updates]) => - (new $GetPaymentMethodResponseAllOfBuilder()..update(updates))._build(); - - _$$GetPaymentMethodResponseAllOf._({this.data}) : super._(); - - @override - $GetPaymentMethodResponseAllOf rebuild( - void Function($GetPaymentMethodResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetPaymentMethodResponseAllOfBuilder toBuilder() => - new $GetPaymentMethodResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetPaymentMethodResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetPaymentMethodResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetPaymentMethodResponseAllOfBuilder - implements - Builder<$GetPaymentMethodResponseAllOf, - $GetPaymentMethodResponseAllOfBuilder>, - GetPaymentMethodResponseAllOfBuilder { - _$$GetPaymentMethodResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $GetPaymentMethodResponseAllOfBuilder() { - $GetPaymentMethodResponseAllOf._defaults(this); - } - - $GetPaymentMethodResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetPaymentMethodResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetPaymentMethodResponseAllOf; - } - - @override - void update(void Function($GetPaymentMethodResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetPaymentMethodResponseAllOf build() => _build(); - - _$$GetPaymentMethodResponseAllOf _build() { - _$$GetPaymentMethodResponseAllOf _$result; - try { - _$result = - _$v ?? new _$$GetPaymentMethodResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetPaymentMethodResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_plans_response.dart b/lib/src/model/get_plans_response.dart index 624b484..20b4477 100644 --- a/lib/src/model/get_plans_response.dart +++ b/lib/src/model/get_plans_response.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; import 'package:conekta/src/model/plan_response.dart'; -import 'package:conekta/src/model/get_plans_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_plans_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetPlansResponse implements GetPlansResponseAllOf, Page, Pagination, Built { +abstract class GetPlansResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetPlansResponse._(); factory GetPlansResponse([void updates(GetPlansResponseBuilder b)]) = _$GetPlansResponse; diff --git a/lib/src/model/get_plans_response.g.dart b/lib/src/model/get_plans_response.g.dart index e02de2f..eeb1552 100644 --- a/lib/src/model/get_plans_response.g.dart +++ b/lib/src/model/get_plans_response.g.dart @@ -79,7 +79,6 @@ class _$GetPlansResponse extends GetPlansResponse { class GetPlansResponseBuilder implements Builder, - GetPlansResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetPlansResponse? _$v; diff --git a/lib/src/model/get_plans_response_all_of.dart b/lib/src/model/get_plans_response_all_of.dart deleted file mode 100644 index b22aee8..0000000 --- a/lib/src/model/get_plans_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/plan_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_plans_response_all_of.g.dart'; - -/// GetPlansResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetPlansResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetPlansResponseAllOfSerializer(); -} - -class _$GetPlansResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetPlansResponseAllOf]; - - @override - final String wireName = r'GetPlansResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetPlansResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(PlanResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetPlansResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetPlansResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetPlansResponseAllOf)) as $GetPlansResponseAllOf; - } -} - -/// a concrete implementation of [GetPlansResponseAllOf], since [GetPlansResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetPlansResponseAllOf implements GetPlansResponseAllOf, Built<$GetPlansResponseAllOf, $GetPlansResponseAllOfBuilder> { - $GetPlansResponseAllOf._(); - - factory $GetPlansResponseAllOf([void Function($GetPlansResponseAllOfBuilder)? updates]) = _$$GetPlansResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetPlansResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetPlansResponseAllOf> get serializer => _$$GetPlansResponseAllOfSerializer(); -} - -class _$$GetPlansResponseAllOfSerializer implements PrimitiveSerializer<$GetPlansResponseAllOf> { - @override - final Iterable types = const [$GetPlansResponseAllOf, _$$GetPlansResponseAllOf]; - - @override - final String wireName = r'$GetPlansResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetPlansResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetPlansResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetPlansResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(PlanResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetPlansResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetPlansResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_plans_response_all_of.g.dart b/lib/src/model/get_plans_response_all_of.g.dart deleted file mode 100644 index 20a8231..0000000 --- a/lib/src/model/get_plans_response_all_of.g.dart +++ /dev/null @@ -1,112 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_plans_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetPlansResponseAllOfBuilder { - void replace(GetPlansResponseAllOf other); - void update(void Function(GetPlansResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetPlansResponseAllOf extends $GetPlansResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetPlansResponseAllOf( - [void Function($GetPlansResponseAllOfBuilder)? updates]) => - (new $GetPlansResponseAllOfBuilder()..update(updates))._build(); - - _$$GetPlansResponseAllOf._({this.data}) : super._(); - - @override - $GetPlansResponseAllOf rebuild( - void Function($GetPlansResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetPlansResponseAllOfBuilder toBuilder() => - new $GetPlansResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetPlansResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetPlansResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetPlansResponseAllOfBuilder - implements - Builder<$GetPlansResponseAllOf, $GetPlansResponseAllOfBuilder>, - GetPlansResponseAllOfBuilder { - _$$GetPlansResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $GetPlansResponseAllOfBuilder() { - $GetPlansResponseAllOf._defaults(this); - } - - $GetPlansResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetPlansResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetPlansResponseAllOf; - } - - @override - void update(void Function($GetPlansResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetPlansResponseAllOf build() => _build(); - - _$$GetPlansResponseAllOf _build() { - _$$GetPlansResponseAllOf _$result; - try { - _$result = _$v ?? new _$$GetPlansResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetPlansResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_transactions_response.dart b/lib/src/model/get_transactions_response.dart index bfb8efa..a0495a8 100644 --- a/lib/src/model/get_transactions_response.dart +++ b/lib/src/model/get_transactions_response.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/transaction_response.dart'; import 'package:conekta/src/model/page.dart'; -import 'package:conekta/src/model/get_transactions_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,11 @@ part 'get_transactions_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] - Transactions @BuiltValue() -abstract class GetTransactionsResponse implements GetTransactionsResponseAllOf, Page, Pagination, Built { +abstract class GetTransactionsResponse implements Page, Pagination, Built { + /// Transactions + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetTransactionsResponse._(); factory GetTransactionsResponse([void updates(GetTransactionsResponseBuilder b)]) = _$GetTransactionsResponse; diff --git a/lib/src/model/get_transactions_response.g.dart b/lib/src/model/get_transactions_response.g.dart index 85cfb8b..d32bd44 100644 --- a/lib/src/model/get_transactions_response.g.dart +++ b/lib/src/model/get_transactions_response.g.dart @@ -80,7 +80,6 @@ class _$GetTransactionsResponse extends GetTransactionsResponse { class GetTransactionsResponseBuilder implements Builder, - GetTransactionsResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetTransactionsResponse? _$v; diff --git a/lib/src/model/get_transactions_response_all_of.dart b/lib/src/model/get_transactions_response_all_of.dart deleted file mode 100644 index 297e8e8..0000000 --- a/lib/src/model/get_transactions_response_all_of.dart +++ /dev/null @@ -1,144 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/transaction_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_transactions_response_all_of.g.dart'; - -/// GetTransactionsResponseAllOf -/// -/// Properties: -/// * [data] - Transactions -@BuiltValue(instantiable: false) -abstract class GetTransactionsResponseAllOf { - /// Transactions - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetTransactionsResponseAllOfSerializer(); -} - -class _$GetTransactionsResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetTransactionsResponseAllOf]; - - @override - final String wireName = r'GetTransactionsResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetTransactionsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(TransactionResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetTransactionsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetTransactionsResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetTransactionsResponseAllOf)) as $GetTransactionsResponseAllOf; - } -} - -/// a concrete implementation of [GetTransactionsResponseAllOf], since [GetTransactionsResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetTransactionsResponseAllOf implements GetTransactionsResponseAllOf, Built<$GetTransactionsResponseAllOf, $GetTransactionsResponseAllOfBuilder> { - $GetTransactionsResponseAllOf._(); - - factory $GetTransactionsResponseAllOf([void Function($GetTransactionsResponseAllOfBuilder)? updates]) = _$$GetTransactionsResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetTransactionsResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetTransactionsResponseAllOf> get serializer => _$$GetTransactionsResponseAllOfSerializer(); -} - -class _$$GetTransactionsResponseAllOfSerializer implements PrimitiveSerializer<$GetTransactionsResponseAllOf> { - @override - final Iterable types = const [$GetTransactionsResponseAllOf, _$$GetTransactionsResponseAllOf]; - - @override - final String wireName = r'$GetTransactionsResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetTransactionsResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetTransactionsResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetTransactionsResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(TransactionResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetTransactionsResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetTransactionsResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_transactions_response_all_of.g.dart b/lib/src/model/get_transactions_response_all_of.g.dart deleted file mode 100644 index 9ec8907..0000000 --- a/lib/src/model/get_transactions_response_all_of.g.dart +++ /dev/null @@ -1,115 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_transactions_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetTransactionsResponseAllOfBuilder { - void replace(GetTransactionsResponseAllOf other); - void update(void Function(GetTransactionsResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetTransactionsResponseAllOf extends $GetTransactionsResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetTransactionsResponseAllOf( - [void Function($GetTransactionsResponseAllOfBuilder)? updates]) => - (new $GetTransactionsResponseAllOfBuilder()..update(updates))._build(); - - _$$GetTransactionsResponseAllOf._({this.data}) : super._(); - - @override - $GetTransactionsResponseAllOf rebuild( - void Function($GetTransactionsResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetTransactionsResponseAllOfBuilder toBuilder() => - new $GetTransactionsResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetTransactionsResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetTransactionsResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetTransactionsResponseAllOfBuilder - implements - Builder<$GetTransactionsResponseAllOf, - $GetTransactionsResponseAllOfBuilder>, - GetTransactionsResponseAllOfBuilder { - _$$GetTransactionsResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $GetTransactionsResponseAllOfBuilder() { - $GetTransactionsResponseAllOf._defaults(this); - } - - $GetTransactionsResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetTransactionsResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetTransactionsResponseAllOf; - } - - @override - void update(void Function($GetTransactionsResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetTransactionsResponseAllOf build() => _build(); - - _$$GetTransactionsResponseAllOf _build() { - _$$GetTransactionsResponseAllOf _$result; - try { - _$result = - _$v ?? new _$$GetTransactionsResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetTransactionsResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_transfers_response.dart b/lib/src/model/get_transfers_response.dart index f28e79e..8ec7108 100644 --- a/lib/src/model/get_transfers_response.dart +++ b/lib/src/model/get_transfers_response.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/get_transfers_response_all_of.dart'; import 'package:conekta/src/model/page.dart'; import 'package:conekta/src/model/transfers_response.dart'; import 'package:built_value/built_value.dart'; @@ -22,7 +21,11 @@ part 'get_transfers_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] - Transfers @BuiltValue() -abstract class GetTransfersResponse implements GetTransfersResponseAllOf, Page, Pagination, Built { +abstract class GetTransfersResponse implements Page, Pagination, Built { + /// Transfers + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetTransfersResponse._(); factory GetTransfersResponse([void updates(GetTransfersResponseBuilder b)]) = _$GetTransfersResponse; diff --git a/lib/src/model/get_transfers_response.g.dart b/lib/src/model/get_transfers_response.g.dart index d8582c9..fa8e56d 100644 --- a/lib/src/model/get_transfers_response.g.dart +++ b/lib/src/model/get_transfers_response.g.dart @@ -80,7 +80,6 @@ class _$GetTransfersResponse extends GetTransfersResponse { class GetTransfersResponseBuilder implements Builder, - GetTransfersResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetTransfersResponse? _$v; diff --git a/lib/src/model/get_transfers_response_all_of.dart b/lib/src/model/get_transfers_response_all_of.dart deleted file mode 100644 index b12434f..0000000 --- a/lib/src/model/get_transfers_response_all_of.dart +++ /dev/null @@ -1,144 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/transfers_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_transfers_response_all_of.g.dart'; - -/// GetTransfersResponseAllOf -/// -/// Properties: -/// * [data] - Transfers -@BuiltValue(instantiable: false) -abstract class GetTransfersResponseAllOf { - /// Transfers - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetTransfersResponseAllOfSerializer(); -} - -class _$GetTransfersResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetTransfersResponseAllOf]; - - @override - final String wireName = r'GetTransfersResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetTransfersResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(TransfersResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetTransfersResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetTransfersResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetTransfersResponseAllOf)) as $GetTransfersResponseAllOf; - } -} - -/// a concrete implementation of [GetTransfersResponseAllOf], since [GetTransfersResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetTransfersResponseAllOf implements GetTransfersResponseAllOf, Built<$GetTransfersResponseAllOf, $GetTransfersResponseAllOfBuilder> { - $GetTransfersResponseAllOf._(); - - factory $GetTransfersResponseAllOf([void Function($GetTransfersResponseAllOfBuilder)? updates]) = _$$GetTransfersResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetTransfersResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetTransfersResponseAllOf> get serializer => _$$GetTransfersResponseAllOfSerializer(); -} - -class _$$GetTransfersResponseAllOfSerializer implements PrimitiveSerializer<$GetTransfersResponseAllOf> { - @override - final Iterable types = const [$GetTransfersResponseAllOf, _$$GetTransfersResponseAllOf]; - - @override - final String wireName = r'$GetTransfersResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetTransfersResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetTransfersResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetTransfersResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(TransfersResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetTransfersResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetTransfersResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_transfers_response_all_of.g.dart b/lib/src/model/get_transfers_response_all_of.g.dart deleted file mode 100644 index a9dcadc..0000000 --- a/lib/src/model/get_transfers_response_all_of.g.dart +++ /dev/null @@ -1,114 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_transfers_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetTransfersResponseAllOfBuilder { - void replace(GetTransfersResponseAllOf other); - void update(void Function(GetTransfersResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetTransfersResponseAllOf extends $GetTransfersResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetTransfersResponseAllOf( - [void Function($GetTransfersResponseAllOfBuilder)? updates]) => - (new $GetTransfersResponseAllOfBuilder()..update(updates))._build(); - - _$$GetTransfersResponseAllOf._({this.data}) : super._(); - - @override - $GetTransfersResponseAllOf rebuild( - void Function($GetTransfersResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetTransfersResponseAllOfBuilder toBuilder() => - new $GetTransfersResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetTransfersResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetTransfersResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetTransfersResponseAllOfBuilder - implements - Builder<$GetTransfersResponseAllOf, $GetTransfersResponseAllOfBuilder>, - GetTransfersResponseAllOfBuilder { - _$$GetTransfersResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $GetTransfersResponseAllOfBuilder() { - $GetTransfersResponseAllOf._defaults(this); - } - - $GetTransfersResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetTransfersResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetTransfersResponseAllOf; - } - - @override - void update(void Function($GetTransfersResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetTransfersResponseAllOf build() => _build(); - - _$$GetTransfersResponseAllOf _build() { - _$$GetTransfersResponseAllOf _$result; - try { - _$result = - _$v ?? new _$$GetTransfersResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetTransfersResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_webhook_keys_response.dart b/lib/src/model/get_webhook_keys_response.dart index 9945d65..f5fb8ce 100644 --- a/lib/src/model/get_webhook_keys_response.dart +++ b/lib/src/model/get_webhook_keys_response.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:conekta/src/model/webhook_key_response.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; -import 'package:conekta/src/model/get_webhook_keys_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_webhook_keys_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetWebhookKeysResponse implements GetWebhookKeysResponseAllOf, Page, Pagination, Built { +abstract class GetWebhookKeysResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetWebhookKeysResponse._(); factory GetWebhookKeysResponse([void updates(GetWebhookKeysResponseBuilder b)]) = _$GetWebhookKeysResponse; diff --git a/lib/src/model/get_webhook_keys_response.g.dart b/lib/src/model/get_webhook_keys_response.g.dart index 88670fe..6d4d4f4 100644 --- a/lib/src/model/get_webhook_keys_response.g.dart +++ b/lib/src/model/get_webhook_keys_response.g.dart @@ -80,7 +80,6 @@ class _$GetWebhookKeysResponse extends GetWebhookKeysResponse { class GetWebhookKeysResponseBuilder implements Builder, - GetWebhookKeysResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetWebhookKeysResponse? _$v; diff --git a/lib/src/model/get_webhook_keys_response_all_of.dart b/lib/src/model/get_webhook_keys_response_all_of.dart deleted file mode 100644 index 1ed8af7..0000000 --- a/lib/src/model/get_webhook_keys_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:conekta/src/model/webhook_key_response.dart'; -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_webhook_keys_response_all_of.g.dart'; - -/// GetWebhookKeysResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetWebhookKeysResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetWebhookKeysResponseAllOfSerializer(); -} - -class _$GetWebhookKeysResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetWebhookKeysResponseAllOf]; - - @override - final String wireName = r'GetWebhookKeysResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetWebhookKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(WebhookKeyResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetWebhookKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetWebhookKeysResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetWebhookKeysResponseAllOf)) as $GetWebhookKeysResponseAllOf; - } -} - -/// a concrete implementation of [GetWebhookKeysResponseAllOf], since [GetWebhookKeysResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetWebhookKeysResponseAllOf implements GetWebhookKeysResponseAllOf, Built<$GetWebhookKeysResponseAllOf, $GetWebhookKeysResponseAllOfBuilder> { - $GetWebhookKeysResponseAllOf._(); - - factory $GetWebhookKeysResponseAllOf([void Function($GetWebhookKeysResponseAllOfBuilder)? updates]) = _$$GetWebhookKeysResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetWebhookKeysResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetWebhookKeysResponseAllOf> get serializer => _$$GetWebhookKeysResponseAllOfSerializer(); -} - -class _$$GetWebhookKeysResponseAllOfSerializer implements PrimitiveSerializer<$GetWebhookKeysResponseAllOf> { - @override - final Iterable types = const [$GetWebhookKeysResponseAllOf, _$$GetWebhookKeysResponseAllOf]; - - @override - final String wireName = r'$GetWebhookKeysResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetWebhookKeysResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetWebhookKeysResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetWebhookKeysResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(WebhookKeyResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetWebhookKeysResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetWebhookKeysResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_webhook_keys_response_all_of.g.dart b/lib/src/model/get_webhook_keys_response_all_of.g.dart deleted file mode 100644 index 7829405..0000000 --- a/lib/src/model/get_webhook_keys_response_all_of.g.dart +++ /dev/null @@ -1,115 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_webhook_keys_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetWebhookKeysResponseAllOfBuilder { - void replace(GetWebhookKeysResponseAllOf other); - void update(void Function(GetWebhookKeysResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetWebhookKeysResponseAllOf extends $GetWebhookKeysResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetWebhookKeysResponseAllOf( - [void Function($GetWebhookKeysResponseAllOfBuilder)? updates]) => - (new $GetWebhookKeysResponseAllOfBuilder()..update(updates))._build(); - - _$$GetWebhookKeysResponseAllOf._({this.data}) : super._(); - - @override - $GetWebhookKeysResponseAllOf rebuild( - void Function($GetWebhookKeysResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetWebhookKeysResponseAllOfBuilder toBuilder() => - new $GetWebhookKeysResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetWebhookKeysResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetWebhookKeysResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetWebhookKeysResponseAllOfBuilder - implements - Builder<$GetWebhookKeysResponseAllOf, - $GetWebhookKeysResponseAllOfBuilder>, - GetWebhookKeysResponseAllOfBuilder { - _$$GetWebhookKeysResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $GetWebhookKeysResponseAllOfBuilder() { - $GetWebhookKeysResponseAllOf._defaults(this); - } - - $GetWebhookKeysResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetWebhookKeysResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetWebhookKeysResponseAllOf; - } - - @override - void update(void Function($GetWebhookKeysResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetWebhookKeysResponseAllOf build() => _build(); - - _$$GetWebhookKeysResponseAllOf _build() { - _$$GetWebhookKeysResponseAllOf _$result; - try { - _$result = - _$v ?? new _$$GetWebhookKeysResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetWebhookKeysResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/get_webhooks_response.dart b/lib/src/model/get_webhooks_response.dart index ca08211..65e102c 100644 --- a/lib/src/model/get_webhooks_response.dart +++ b/lib/src/model/get_webhooks_response.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; import 'package:conekta/src/model/webhook_response.dart'; -import 'package:conekta/src/model/get_webhooks_response_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'get_webhooks_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class GetWebhooksResponse implements GetWebhooksResponseAllOf, Page, Pagination, Built { +abstract class GetWebhooksResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + GetWebhooksResponse._(); factory GetWebhooksResponse([void updates(GetWebhooksResponseBuilder b)]) = _$GetWebhooksResponse; diff --git a/lib/src/model/get_webhooks_response.g.dart b/lib/src/model/get_webhooks_response.g.dart index 53aa7ac..2c50170 100644 --- a/lib/src/model/get_webhooks_response.g.dart +++ b/lib/src/model/get_webhooks_response.g.dart @@ -80,7 +80,6 @@ class _$GetWebhooksResponse extends GetWebhooksResponse { class GetWebhooksResponseBuilder implements Builder, - GetWebhooksResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$GetWebhooksResponse? _$v; diff --git a/lib/src/model/get_webhooks_response_all_of.dart b/lib/src/model/get_webhooks_response_all_of.dart deleted file mode 100644 index b5e57bc..0000000 --- a/lib/src/model/get_webhooks_response_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/webhook_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'get_webhooks_response_all_of.g.dart'; - -/// GetWebhooksResponseAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class GetWebhooksResponseAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$GetWebhooksResponseAllOfSerializer(); -} - -class _$GetWebhooksResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GetWebhooksResponseAllOf]; - - @override - final String wireName = r'GetWebhooksResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - GetWebhooksResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(WebhookResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - GetWebhooksResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - GetWebhooksResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($GetWebhooksResponseAllOf)) as $GetWebhooksResponseAllOf; - } -} - -/// a concrete implementation of [GetWebhooksResponseAllOf], since [GetWebhooksResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $GetWebhooksResponseAllOf implements GetWebhooksResponseAllOf, Built<$GetWebhooksResponseAllOf, $GetWebhooksResponseAllOfBuilder> { - $GetWebhooksResponseAllOf._(); - - factory $GetWebhooksResponseAllOf([void Function($GetWebhooksResponseAllOfBuilder)? updates]) = _$$GetWebhooksResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GetWebhooksResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$GetWebhooksResponseAllOf> get serializer => _$$GetWebhooksResponseAllOfSerializer(); -} - -class _$$GetWebhooksResponseAllOfSerializer implements PrimitiveSerializer<$GetWebhooksResponseAllOf> { - @override - final Iterable types = const [$GetWebhooksResponseAllOf, _$$GetWebhooksResponseAllOf]; - - @override - final String wireName = r'$GetWebhooksResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $GetWebhooksResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(GetWebhooksResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required GetWebhooksResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(WebhookResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $GetWebhooksResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $GetWebhooksResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/get_webhooks_response_all_of.g.dart b/lib/src/model/get_webhooks_response_all_of.g.dart deleted file mode 100644 index b62da67..0000000 --- a/lib/src/model/get_webhooks_response_all_of.g.dart +++ /dev/null @@ -1,112 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_webhooks_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class GetWebhooksResponseAllOfBuilder { - void replace(GetWebhooksResponseAllOf other); - void update(void Function(GetWebhooksResponseAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$GetWebhooksResponseAllOf extends $GetWebhooksResponseAllOf { - @override - final BuiltList? data; - - factory _$$GetWebhooksResponseAllOf( - [void Function($GetWebhooksResponseAllOfBuilder)? updates]) => - (new $GetWebhooksResponseAllOfBuilder()..update(updates))._build(); - - _$$GetWebhooksResponseAllOf._({this.data}) : super._(); - - @override - $GetWebhooksResponseAllOf rebuild( - void Function($GetWebhooksResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $GetWebhooksResponseAllOfBuilder toBuilder() => - new $GetWebhooksResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $GetWebhooksResponseAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$GetWebhooksResponseAllOf') - ..add('data', data)) - .toString(); - } -} - -class $GetWebhooksResponseAllOfBuilder - implements - Builder<$GetWebhooksResponseAllOf, $GetWebhooksResponseAllOfBuilder>, - GetWebhooksResponseAllOfBuilder { - _$$GetWebhooksResponseAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $GetWebhooksResponseAllOfBuilder() { - $GetWebhooksResponseAllOf._defaults(this); - } - - $GetWebhooksResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $GetWebhooksResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$GetWebhooksResponseAllOf; - } - - @override - void update(void Function($GetWebhooksResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $GetWebhooksResponseAllOf build() => _build(); - - _$$GetWebhooksResponseAllOf _build() { - _$$GetWebhooksResponseAllOf _$result; - try { - _$result = _$v ?? new _$$GetWebhooksResponseAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$GetWebhooksResponseAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/order_fiscal_entity_address_response.dart b/lib/src/model/order_fiscal_entity_address_response.dart index 643e8f1..094b35a 100644 --- a/lib/src/model/order_fiscal_entity_address_response.dart +++ b/lib/src/model/order_fiscal_entity_address_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/order_fiscal_entity_address_response_all_of.dart'; import 'package:conekta/src/model/fiscal_entity_address.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'order_fiscal_entity_address_response.g.dart'; /// * [externalNumber] - External number /// * [object] @BuiltValue() -abstract class OrderFiscalEntityAddressResponse implements FiscalEntityAddress, OrderFiscalEntityAddressResponseAllOf, Built { +abstract class OrderFiscalEntityAddressResponse implements FiscalEntityAddress, Built { + @BuiltValueField(wireName: r'object') + String? get object; + OrderFiscalEntityAddressResponse._(); factory OrderFiscalEntityAddressResponse([void updates(OrderFiscalEntityAddressResponseBuilder b)]) = _$OrderFiscalEntityAddressResponse; diff --git a/lib/src/model/order_fiscal_entity_address_response.g.dart b/lib/src/model/order_fiscal_entity_address_response.g.dart index a75b4ae..2e4ebb8 100644 --- a/lib/src/model/order_fiscal_entity_address_response.g.dart +++ b/lib/src/model/order_fiscal_entity_address_response.g.dart @@ -9,6 +9,8 @@ part of 'order_fiscal_entity_address_response.dart'; class _$OrderFiscalEntityAddressResponse extends OrderFiscalEntityAddressResponse { @override + final String? object; + @override final String street1; @override final String? street2; @@ -22,22 +24,20 @@ class _$OrderFiscalEntityAddressResponse final String country; @override final String externalNumber; - @override - final String? object; factory _$OrderFiscalEntityAddressResponse( [void Function(OrderFiscalEntityAddressResponseBuilder)? updates]) => (new OrderFiscalEntityAddressResponseBuilder()..update(updates))._build(); _$OrderFiscalEntityAddressResponse._( - {required this.street1, + {this.object, + required this.street1, this.street2, required this.postalCode, required this.city, this.state, required this.country, - required this.externalNumber, - this.object}) + required this.externalNumber}) : super._() { BuiltValueNullFieldError.checkNotNull( street1, r'OrderFiscalEntityAddressResponse', 'street1'); @@ -64,14 +64,14 @@ class _$OrderFiscalEntityAddressResponse bool operator ==(Object other) { if (identical(other, this)) return true; return other is OrderFiscalEntityAddressResponse && + object == other.object && street1 == other.street1 && street2 == other.street2 && postalCode == other.postalCode && city == other.city && state == other.state && country == other.country && - externalNumber == other.externalNumber && - object == other.object; + externalNumber == other.externalNumber; } @override @@ -81,26 +81,26 @@ class _$OrderFiscalEntityAddressResponse $jc( $jc( $jc( - $jc($jc($jc(0, street1.hashCode), street2.hashCode), - postalCode.hashCode), - city.hashCode), - state.hashCode), - country.hashCode), - externalNumber.hashCode), - object.hashCode)); + $jc($jc($jc(0, object.hashCode), street1.hashCode), + street2.hashCode), + postalCode.hashCode), + city.hashCode), + state.hashCode), + country.hashCode), + externalNumber.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'OrderFiscalEntityAddressResponse') + ..add('object', object) ..add('street1', street1) ..add('street2', street2) ..add('postalCode', postalCode) ..add('city', city) ..add('state', state) ..add('country', country) - ..add('externalNumber', externalNumber) - ..add('object', object)) + ..add('externalNumber', externalNumber)) .toString(); } } @@ -109,10 +109,13 @@ class OrderFiscalEntityAddressResponseBuilder implements Builder, - FiscalEntityAddressBuilder, - OrderFiscalEntityAddressResponseAllOfBuilder { + FiscalEntityAddressBuilder { _$OrderFiscalEntityAddressResponse? _$v; + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + String? _street1; String? get street1 => _$this._street1; set street1(covariant String? street1) => _$this._street1 = street1; @@ -143,10 +146,6 @@ class OrderFiscalEntityAddressResponseBuilder set externalNumber(covariant String? externalNumber) => _$this._externalNumber = externalNumber; - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - OrderFiscalEntityAddressResponseBuilder() { OrderFiscalEntityAddressResponse._defaults(this); } @@ -154,6 +153,7 @@ class OrderFiscalEntityAddressResponseBuilder OrderFiscalEntityAddressResponseBuilder get _$this { final $v = _$v; if ($v != null) { + _object = $v.object; _street1 = $v.street1; _street2 = $v.street2; _postalCode = $v.postalCode; @@ -161,14 +161,12 @@ class OrderFiscalEntityAddressResponseBuilder _state = $v.state; _country = $v.country; _externalNumber = $v.externalNumber; - _object = $v.object; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant OrderFiscalEntityAddressResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$OrderFiscalEntityAddressResponse; @@ -185,6 +183,7 @@ class OrderFiscalEntityAddressResponseBuilder _$OrderFiscalEntityAddressResponse _build() { final _$result = _$v ?? new _$OrderFiscalEntityAddressResponse._( + object: object, street1: BuiltValueNullFieldError.checkNotNull( street1, r'OrderFiscalEntityAddressResponse', 'street1'), street2: street2, @@ -198,8 +197,7 @@ class OrderFiscalEntityAddressResponseBuilder externalNumber: BuiltValueNullFieldError.checkNotNull( externalNumber, r'OrderFiscalEntityAddressResponse', - 'externalNumber'), - object: object); + 'externalNumber')); replace(_$result); return _$result; } diff --git a/lib/src/model/order_fiscal_entity_address_response_all_of.dart b/lib/src/model/order_fiscal_entity_address_response_all_of.dart deleted file mode 100644 index 58f7762..0000000 --- a/lib/src/model/order_fiscal_entity_address_response_all_of.dart +++ /dev/null @@ -1,141 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'order_fiscal_entity_address_response_all_of.g.dart'; - -/// OrderFiscalEntityAddressResponseAllOf -/// -/// Properties: -/// * [object] -@BuiltValue(instantiable: false) -abstract class OrderFiscalEntityAddressResponseAllOf { - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$OrderFiscalEntityAddressResponseAllOfSerializer(); -} - -class _$OrderFiscalEntityAddressResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [OrderFiscalEntityAddressResponseAllOf]; - - @override - final String wireName = r'OrderFiscalEntityAddressResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - OrderFiscalEntityAddressResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - OrderFiscalEntityAddressResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - OrderFiscalEntityAddressResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($OrderFiscalEntityAddressResponseAllOf)) as $OrderFiscalEntityAddressResponseAllOf; - } -} - -/// a concrete implementation of [OrderFiscalEntityAddressResponseAllOf], since [OrderFiscalEntityAddressResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $OrderFiscalEntityAddressResponseAllOf implements OrderFiscalEntityAddressResponseAllOf, Built<$OrderFiscalEntityAddressResponseAllOf, $OrderFiscalEntityAddressResponseAllOfBuilder> { - $OrderFiscalEntityAddressResponseAllOf._(); - - factory $OrderFiscalEntityAddressResponseAllOf([void Function($OrderFiscalEntityAddressResponseAllOfBuilder)? updates]) = _$$OrderFiscalEntityAddressResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($OrderFiscalEntityAddressResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$OrderFiscalEntityAddressResponseAllOf> get serializer => _$$OrderFiscalEntityAddressResponseAllOfSerializer(); -} - -class _$$OrderFiscalEntityAddressResponseAllOfSerializer implements PrimitiveSerializer<$OrderFiscalEntityAddressResponseAllOf> { - @override - final Iterable types = const [$OrderFiscalEntityAddressResponseAllOf, _$$OrderFiscalEntityAddressResponseAllOf]; - - @override - final String wireName = r'$OrderFiscalEntityAddressResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $OrderFiscalEntityAddressResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(OrderFiscalEntityAddressResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required OrderFiscalEntityAddressResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $OrderFiscalEntityAddressResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $OrderFiscalEntityAddressResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/order_fiscal_entity_address_response_all_of.g.dart b/lib/src/model/order_fiscal_entity_address_response_all_of.g.dart deleted file mode 100644 index 75c3f12..0000000 --- a/lib/src/model/order_fiscal_entity_address_response_all_of.g.dart +++ /dev/null @@ -1,108 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_fiscal_entity_address_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderFiscalEntityAddressResponseAllOfBuilder { - void replace(OrderFiscalEntityAddressResponseAllOf other); - void update( - void Function(OrderFiscalEntityAddressResponseAllOfBuilder) updates); - String? get object; - set object(String? object); -} - -class _$$OrderFiscalEntityAddressResponseAllOf - extends $OrderFiscalEntityAddressResponseAllOf { - @override - final String? object; - - factory _$$OrderFiscalEntityAddressResponseAllOf( - [void Function($OrderFiscalEntityAddressResponseAllOfBuilder)? - updates]) => - (new $OrderFiscalEntityAddressResponseAllOfBuilder()..update(updates)) - ._build(); - - _$$OrderFiscalEntityAddressResponseAllOf._({this.object}) : super._(); - - @override - $OrderFiscalEntityAddressResponseAllOf rebuild( - void Function($OrderFiscalEntityAddressResponseAllOfBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderFiscalEntityAddressResponseAllOfBuilder toBuilder() => - new $OrderFiscalEntityAddressResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderFiscalEntityAddressResponseAllOf && - object == other.object; - } - - @override - int get hashCode { - return $jf($jc(0, object.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'$OrderFiscalEntityAddressResponseAllOf') - ..add('object', object)) - .toString(); - } -} - -class $OrderFiscalEntityAddressResponseAllOfBuilder - implements - Builder<$OrderFiscalEntityAddressResponseAllOf, - $OrderFiscalEntityAddressResponseAllOfBuilder>, - OrderFiscalEntityAddressResponseAllOfBuilder { - _$$OrderFiscalEntityAddressResponseAllOf? _$v; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - $OrderFiscalEntityAddressResponseAllOfBuilder() { - $OrderFiscalEntityAddressResponseAllOf._defaults(this); - } - - $OrderFiscalEntityAddressResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderFiscalEntityAddressResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderFiscalEntityAddressResponseAllOf; - } - - @override - void update( - void Function($OrderFiscalEntityAddressResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderFiscalEntityAddressResponseAllOf build() => _build(); - - _$$OrderFiscalEntityAddressResponseAllOf _build() { - final _$result = - _$v ?? new _$$OrderFiscalEntityAddressResponseAllOf._(object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/order_response_charges.dart b/lib/src/model/order_response_charges.dart index 41e3526..cbea5c4 100644 --- a/lib/src/model/order_response_charges.dart +++ b/lib/src/model/order_response_charges.dart @@ -6,7 +6,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/charges_data_response.dart'; -import 'package:conekta/src/model/order_response_charges_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -19,7 +18,10 @@ part 'order_response_charges.g.dart'; /// * [object] - Object type, in this case is list /// * [data] @BuiltValue() -abstract class OrderResponseCharges implements OrderResponseChargesAllOf, Pagination, Built { +abstract class OrderResponseCharges implements Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + OrderResponseCharges._(); factory OrderResponseCharges([void updates(OrderResponseChargesBuilder b)]) = _$OrderResponseCharges; @@ -43,11 +45,6 @@ class _$OrderResponseChargesSerializer implements PrimitiveSerializer; result.data.replace(valueDes); break; + case r'has_more': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.hasMore = valueDes; + break; case r'object': final valueDes = serializers.deserialize( value, diff --git a/lib/src/model/order_response_charges.g.dart b/lib/src/model/order_response_charges.g.dart index f96dc5a..3e9bdea 100644 --- a/lib/src/model/order_response_charges.g.dart +++ b/lib/src/model/order_response_charges.g.dart @@ -64,7 +64,6 @@ class _$OrderResponseCharges extends OrderResponseCharges { class OrderResponseChargesBuilder implements Builder, - OrderResponseChargesAllOfBuilder, PaginationBuilder { _$OrderResponseCharges? _$v; @@ -98,7 +97,6 @@ class OrderResponseChargesBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant OrderResponseCharges other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$OrderResponseCharges; diff --git a/lib/src/model/order_response_charges_all_of.dart b/lib/src/model/order_response_charges_all_of.dart deleted file mode 100644 index 79fcf31..0000000 --- a/lib/src/model/order_response_charges_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/charges_data_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'order_response_charges_all_of.g.dart'; - -/// OrderResponseChargesAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class OrderResponseChargesAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$OrderResponseChargesAllOfSerializer(); -} - -class _$OrderResponseChargesAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [OrderResponseChargesAllOf]; - - @override - final String wireName = r'OrderResponseChargesAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - OrderResponseChargesAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(ChargesDataResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - OrderResponseChargesAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - OrderResponseChargesAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($OrderResponseChargesAllOf)) as $OrderResponseChargesAllOf; - } -} - -/// a concrete implementation of [OrderResponseChargesAllOf], since [OrderResponseChargesAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $OrderResponseChargesAllOf implements OrderResponseChargesAllOf, Built<$OrderResponseChargesAllOf, $OrderResponseChargesAllOfBuilder> { - $OrderResponseChargesAllOf._(); - - factory $OrderResponseChargesAllOf([void Function($OrderResponseChargesAllOfBuilder)? updates]) = _$$OrderResponseChargesAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($OrderResponseChargesAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$OrderResponseChargesAllOf> get serializer => _$$OrderResponseChargesAllOfSerializer(); -} - -class _$$OrderResponseChargesAllOfSerializer implements PrimitiveSerializer<$OrderResponseChargesAllOf> { - @override - final Iterable types = const [$OrderResponseChargesAllOf, _$$OrderResponseChargesAllOf]; - - @override - final String wireName = r'$OrderResponseChargesAllOf'; - - @override - Object serialize( - Serializers serializers, - $OrderResponseChargesAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(OrderResponseChargesAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required OrderResponseChargesAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(ChargesDataResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $OrderResponseChargesAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $OrderResponseChargesAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/order_response_charges_all_of.g.dart b/lib/src/model/order_response_charges_all_of.g.dart deleted file mode 100644 index fa2dad3..0000000 --- a/lib/src/model/order_response_charges_all_of.g.dart +++ /dev/null @@ -1,114 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_charges_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderResponseChargesAllOfBuilder { - void replace(OrderResponseChargesAllOf other); - void update(void Function(OrderResponseChargesAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$OrderResponseChargesAllOf extends $OrderResponseChargesAllOf { - @override - final BuiltList? data; - - factory _$$OrderResponseChargesAllOf( - [void Function($OrderResponseChargesAllOfBuilder)? updates]) => - (new $OrderResponseChargesAllOfBuilder()..update(updates))._build(); - - _$$OrderResponseChargesAllOf._({this.data}) : super._(); - - @override - $OrderResponseChargesAllOf rebuild( - void Function($OrderResponseChargesAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderResponseChargesAllOfBuilder toBuilder() => - new $OrderResponseChargesAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderResponseChargesAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderResponseChargesAllOf') - ..add('data', data)) - .toString(); - } -} - -class $OrderResponseChargesAllOfBuilder - implements - Builder<$OrderResponseChargesAllOf, $OrderResponseChargesAllOfBuilder>, - OrderResponseChargesAllOfBuilder { - _$$OrderResponseChargesAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $OrderResponseChargesAllOfBuilder() { - $OrderResponseChargesAllOf._defaults(this); - } - - $OrderResponseChargesAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderResponseChargesAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderResponseChargesAllOf; - } - - @override - void update(void Function($OrderResponseChargesAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderResponseChargesAllOf build() => _build(); - - _$$OrderResponseChargesAllOf _build() { - _$$OrderResponseChargesAllOf _$result; - try { - _$result = - _$v ?? new _$$OrderResponseChargesAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$OrderResponseChargesAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/order_response_customer_info.dart b/lib/src/model/order_response_customer_info.dart index b2d9c37..169f2c8 100644 --- a/lib/src/model/order_response_customer_info.dart +++ b/lib/src/model/order_response_customer_info.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/order_response_customer_info_all_of.dart'; import 'package:conekta/src/model/customer_info_just_customer_id_response.dart'; import 'package:conekta/src/model/order_customer_info_response.dart'; import 'package:built_value/built_value.dart'; @@ -14,15 +13,15 @@ part 'order_response_customer_info.g.dart'; /// OrderResponseCustomerInfo /// /// Properties: -/// * [object] /// * [customerCustomReference] - Custom reference /// * [name] /// * [email] /// * [phone] /// * [corporate] +/// * [object] /// * [customerId] @BuiltValue() -abstract class OrderResponseCustomerInfo implements CustomerInfoJustCustomerIdResponse, OrderCustomerInfoResponse, OrderResponseCustomerInfoAllOf, Built { +abstract class OrderResponseCustomerInfo implements CustomerInfoJustCustomerIdResponse, OrderCustomerInfoResponse, Built { OrderResponseCustomerInfo._(); factory OrderResponseCustomerInfo([void updates(OrderResponseCustomerInfoBuilder b)]) = _$OrderResponseCustomerInfo; diff --git a/lib/src/model/order_response_customer_info.g.dart b/lib/src/model/order_response_customer_info.g.dart index 7a4cb1b..8b98a1f 100644 --- a/lib/src/model/order_response_customer_info.g.dart +++ b/lib/src/model/order_response_customer_info.g.dart @@ -92,8 +92,7 @@ class OrderResponseCustomerInfoBuilder implements Builder, CustomerInfoJustCustomerIdResponseBuilder, - OrderCustomerInfoResponseBuilder, - OrderResponseCustomerInfoAllOfBuilder { + OrderCustomerInfoResponseBuilder { _$OrderResponseCustomerInfo? _$v; String? _customerId; diff --git a/lib/src/model/order_response_customer_info_all_of.dart b/lib/src/model/order_response_customer_info_all_of.dart deleted file mode 100644 index 4e9cff4..0000000 --- a/lib/src/model/order_response_customer_info_all_of.dart +++ /dev/null @@ -1,141 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'order_response_customer_info_all_of.g.dart'; - -/// OrderResponseCustomerInfoAllOf -/// -/// Properties: -/// * [object] -@BuiltValue(instantiable: false) -abstract class OrderResponseCustomerInfoAllOf { - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$OrderResponseCustomerInfoAllOfSerializer(); -} - -class _$OrderResponseCustomerInfoAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [OrderResponseCustomerInfoAllOf]; - - @override - final String wireName = r'OrderResponseCustomerInfoAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - OrderResponseCustomerInfoAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - OrderResponseCustomerInfoAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - OrderResponseCustomerInfoAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($OrderResponseCustomerInfoAllOf)) as $OrderResponseCustomerInfoAllOf; - } -} - -/// a concrete implementation of [OrderResponseCustomerInfoAllOf], since [OrderResponseCustomerInfoAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $OrderResponseCustomerInfoAllOf implements OrderResponseCustomerInfoAllOf, Built<$OrderResponseCustomerInfoAllOf, $OrderResponseCustomerInfoAllOfBuilder> { - $OrderResponseCustomerInfoAllOf._(); - - factory $OrderResponseCustomerInfoAllOf([void Function($OrderResponseCustomerInfoAllOfBuilder)? updates]) = _$$OrderResponseCustomerInfoAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($OrderResponseCustomerInfoAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$OrderResponseCustomerInfoAllOf> get serializer => _$$OrderResponseCustomerInfoAllOfSerializer(); -} - -class _$$OrderResponseCustomerInfoAllOfSerializer implements PrimitiveSerializer<$OrderResponseCustomerInfoAllOf> { - @override - final Iterable types = const [$OrderResponseCustomerInfoAllOf, _$$OrderResponseCustomerInfoAllOf]; - - @override - final String wireName = r'$OrderResponseCustomerInfoAllOf'; - - @override - Object serialize( - Serializers serializers, - $OrderResponseCustomerInfoAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(OrderResponseCustomerInfoAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required OrderResponseCustomerInfoAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $OrderResponseCustomerInfoAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $OrderResponseCustomerInfoAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/order_response_customer_info_all_of.g.dart b/lib/src/model/order_response_customer_info_all_of.g.dart deleted file mode 100644 index fa2b539..0000000 --- a/lib/src/model/order_response_customer_info_all_of.g.dart +++ /dev/null @@ -1,101 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_customer_info_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderResponseCustomerInfoAllOfBuilder { - void replace(OrderResponseCustomerInfoAllOf other); - void update(void Function(OrderResponseCustomerInfoAllOfBuilder) updates); - String? get object; - set object(String? object); -} - -class _$$OrderResponseCustomerInfoAllOf - extends $OrderResponseCustomerInfoAllOf { - @override - final String? object; - - factory _$$OrderResponseCustomerInfoAllOf( - [void Function($OrderResponseCustomerInfoAllOfBuilder)? updates]) => - (new $OrderResponseCustomerInfoAllOfBuilder()..update(updates))._build(); - - _$$OrderResponseCustomerInfoAllOf._({this.object}) : super._(); - - @override - $OrderResponseCustomerInfoAllOf rebuild( - void Function($OrderResponseCustomerInfoAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderResponseCustomerInfoAllOfBuilder toBuilder() => - new $OrderResponseCustomerInfoAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderResponseCustomerInfoAllOf && object == other.object; - } - - @override - int get hashCode { - return $jf($jc(0, object.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderResponseCustomerInfoAllOf') - ..add('object', object)) - .toString(); - } -} - -class $OrderResponseCustomerInfoAllOfBuilder - implements - Builder<$OrderResponseCustomerInfoAllOf, - $OrderResponseCustomerInfoAllOfBuilder>, - OrderResponseCustomerInfoAllOfBuilder { - _$$OrderResponseCustomerInfoAllOf? _$v; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - $OrderResponseCustomerInfoAllOfBuilder() { - $OrderResponseCustomerInfoAllOf._defaults(this); - } - - $OrderResponseCustomerInfoAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderResponseCustomerInfoAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderResponseCustomerInfoAllOf; - } - - @override - void update(void Function($OrderResponseCustomerInfoAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderResponseCustomerInfoAllOf build() => _build(); - - _$$OrderResponseCustomerInfoAllOf _build() { - final _$result = - _$v ?? new _$$OrderResponseCustomerInfoAllOf._(object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/order_response_discount_lines.dart b/lib/src/model/order_response_discount_lines.dart index 32091dc..338be5b 100644 --- a/lib/src/model/order_response_discount_lines.dart +++ b/lib/src/model/order_response_discount_lines.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; -import 'package:conekta/src/model/order_response_discount_lines_all_of.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/discount_lines_data_response.dart'; import 'package:built_value/built_value.dart'; @@ -19,7 +18,10 @@ part 'order_response_discount_lines.g.dart'; /// * [object] - Object type, in this case is list /// * [data] @BuiltValue() -abstract class OrderResponseDiscountLines implements OrderResponseDiscountLinesAllOf, Pagination, Built { +abstract class OrderResponseDiscountLines implements Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + OrderResponseDiscountLines._(); factory OrderResponseDiscountLines([void updates(OrderResponseDiscountLinesBuilder b)]) = _$OrderResponseDiscountLines; @@ -43,11 +45,6 @@ class _$OrderResponseDiscountLinesSerializer implements PrimitiveSerializer; result.data.replace(valueDes); break; + case r'has_more': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.hasMore = valueDes; + break; case r'object': final valueDes = serializers.deserialize( value, diff --git a/lib/src/model/order_response_discount_lines.g.dart b/lib/src/model/order_response_discount_lines.g.dart index 6994a21..1b2fc8f 100644 --- a/lib/src/model/order_response_discount_lines.g.dart +++ b/lib/src/model/order_response_discount_lines.g.dart @@ -64,7 +64,6 @@ class _$OrderResponseDiscountLines extends OrderResponseDiscountLines { class OrderResponseDiscountLinesBuilder implements Builder, - OrderResponseDiscountLinesAllOfBuilder, PaginationBuilder { _$OrderResponseDiscountLines? _$v; @@ -98,7 +97,6 @@ class OrderResponseDiscountLinesBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant OrderResponseDiscountLines other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$OrderResponseDiscountLines; diff --git a/lib/src/model/order_response_discount_lines_all_of.dart b/lib/src/model/order_response_discount_lines_all_of.dart deleted file mode 100644 index 8e83768..0000000 --- a/lib/src/model/order_response_discount_lines_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/discount_lines_data_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'order_response_discount_lines_all_of.g.dart'; - -/// OrderResponseDiscountLinesAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class OrderResponseDiscountLinesAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$OrderResponseDiscountLinesAllOfSerializer(); -} - -class _$OrderResponseDiscountLinesAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [OrderResponseDiscountLinesAllOf]; - - @override - final String wireName = r'OrderResponseDiscountLinesAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - OrderResponseDiscountLinesAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(DiscountLinesDataResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - OrderResponseDiscountLinesAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - OrderResponseDiscountLinesAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($OrderResponseDiscountLinesAllOf)) as $OrderResponseDiscountLinesAllOf; - } -} - -/// a concrete implementation of [OrderResponseDiscountLinesAllOf], since [OrderResponseDiscountLinesAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $OrderResponseDiscountLinesAllOf implements OrderResponseDiscountLinesAllOf, Built<$OrderResponseDiscountLinesAllOf, $OrderResponseDiscountLinesAllOfBuilder> { - $OrderResponseDiscountLinesAllOf._(); - - factory $OrderResponseDiscountLinesAllOf([void Function($OrderResponseDiscountLinesAllOfBuilder)? updates]) = _$$OrderResponseDiscountLinesAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($OrderResponseDiscountLinesAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$OrderResponseDiscountLinesAllOf> get serializer => _$$OrderResponseDiscountLinesAllOfSerializer(); -} - -class _$$OrderResponseDiscountLinesAllOfSerializer implements PrimitiveSerializer<$OrderResponseDiscountLinesAllOf> { - @override - final Iterable types = const [$OrderResponseDiscountLinesAllOf, _$$OrderResponseDiscountLinesAllOf]; - - @override - final String wireName = r'$OrderResponseDiscountLinesAllOf'; - - @override - Object serialize( - Serializers serializers, - $OrderResponseDiscountLinesAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(OrderResponseDiscountLinesAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required OrderResponseDiscountLinesAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(DiscountLinesDataResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $OrderResponseDiscountLinesAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $OrderResponseDiscountLinesAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/order_response_discount_lines_all_of.g.dart b/lib/src/model/order_response_discount_lines_all_of.g.dart deleted file mode 100644 index e988a05..0000000 --- a/lib/src/model/order_response_discount_lines_all_of.g.dart +++ /dev/null @@ -1,116 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_discount_lines_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderResponseDiscountLinesAllOfBuilder { - void replace(OrderResponseDiscountLinesAllOf other); - void update(void Function(OrderResponseDiscountLinesAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$OrderResponseDiscountLinesAllOf - extends $OrderResponseDiscountLinesAllOf { - @override - final BuiltList? data; - - factory _$$OrderResponseDiscountLinesAllOf( - [void Function($OrderResponseDiscountLinesAllOfBuilder)? updates]) => - (new $OrderResponseDiscountLinesAllOfBuilder()..update(updates))._build(); - - _$$OrderResponseDiscountLinesAllOf._({this.data}) : super._(); - - @override - $OrderResponseDiscountLinesAllOf rebuild( - void Function($OrderResponseDiscountLinesAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderResponseDiscountLinesAllOfBuilder toBuilder() => - new $OrderResponseDiscountLinesAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderResponseDiscountLinesAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderResponseDiscountLinesAllOf') - ..add('data', data)) - .toString(); - } -} - -class $OrderResponseDiscountLinesAllOfBuilder - implements - Builder<$OrderResponseDiscountLinesAllOf, - $OrderResponseDiscountLinesAllOfBuilder>, - OrderResponseDiscountLinesAllOfBuilder { - _$$OrderResponseDiscountLinesAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $OrderResponseDiscountLinesAllOfBuilder() { - $OrderResponseDiscountLinesAllOf._defaults(this); - } - - $OrderResponseDiscountLinesAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderResponseDiscountLinesAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderResponseDiscountLinesAllOf; - } - - @override - void update(void Function($OrderResponseDiscountLinesAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderResponseDiscountLinesAllOf build() => _build(); - - _$$OrderResponseDiscountLinesAllOf _build() { - _$$OrderResponseDiscountLinesAllOf _$result; - try { - _$result = - _$v ?? new _$$OrderResponseDiscountLinesAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$OrderResponseDiscountLinesAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/order_response_products.dart b/lib/src/model/order_response_products.dart index 10e396f..055e0ca 100644 --- a/lib/src/model/order_response_products.dart +++ b/lib/src/model/order_response_products.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; import 'package:conekta/src/model/product_data_response.dart'; -import 'package:conekta/src/model/order_response_products_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'order_response_products.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class OrderResponseProducts implements OrderResponseProductsAllOf, Page, Pagination, Built { +abstract class OrderResponseProducts implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + OrderResponseProducts._(); factory OrderResponseProducts([void updates(OrderResponseProductsBuilder b)]) = _$OrderResponseProducts; diff --git a/lib/src/model/order_response_products.g.dart b/lib/src/model/order_response_products.g.dart index 5bb8425..40d73e0 100644 --- a/lib/src/model/order_response_products.g.dart +++ b/lib/src/model/order_response_products.g.dart @@ -80,7 +80,6 @@ class _$OrderResponseProducts extends OrderResponseProducts { class OrderResponseProductsBuilder implements Builder, - OrderResponseProductsAllOfBuilder, PageBuilder, PaginationBuilder { _$OrderResponseProducts? _$v; diff --git a/lib/src/model/order_response_products_all_of.dart b/lib/src/model/order_response_products_all_of.dart deleted file mode 100644 index ca8c00c..0000000 --- a/lib/src/model/order_response_products_all_of.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/product_data_response.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'order_response_products_all_of.g.dart'; - -/// OrderResponseProductsAllOf -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class OrderResponseProductsAllOf { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$OrderResponseProductsAllOfSerializer(); -} - -class _$OrderResponseProductsAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [OrderResponseProductsAllOf]; - - @override - final String wireName = r'OrderResponseProductsAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - OrderResponseProductsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(ProductDataResponse)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - OrderResponseProductsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - OrderResponseProductsAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($OrderResponseProductsAllOf)) as $OrderResponseProductsAllOf; - } -} - -/// a concrete implementation of [OrderResponseProductsAllOf], since [OrderResponseProductsAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $OrderResponseProductsAllOf implements OrderResponseProductsAllOf, Built<$OrderResponseProductsAllOf, $OrderResponseProductsAllOfBuilder> { - $OrderResponseProductsAllOf._(); - - factory $OrderResponseProductsAllOf([void Function($OrderResponseProductsAllOfBuilder)? updates]) = _$$OrderResponseProductsAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($OrderResponseProductsAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$OrderResponseProductsAllOf> get serializer => _$$OrderResponseProductsAllOfSerializer(); -} - -class _$$OrderResponseProductsAllOfSerializer implements PrimitiveSerializer<$OrderResponseProductsAllOf> { - @override - final Iterable types = const [$OrderResponseProductsAllOf, _$$OrderResponseProductsAllOf]; - - @override - final String wireName = r'$OrderResponseProductsAllOf'; - - @override - Object serialize( - Serializers serializers, - $OrderResponseProductsAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(OrderResponseProductsAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required OrderResponseProductsAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(ProductDataResponse)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $OrderResponseProductsAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $OrderResponseProductsAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/order_response_products_all_of.g.dart b/lib/src/model/order_response_products_all_of.g.dart deleted file mode 100644 index af39bc4..0000000 --- a/lib/src/model/order_response_products_all_of.g.dart +++ /dev/null @@ -1,115 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_products_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderResponseProductsAllOfBuilder { - void replace(OrderResponseProductsAllOf other); - void update(void Function(OrderResponseProductsAllOfBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$OrderResponseProductsAllOf extends $OrderResponseProductsAllOf { - @override - final BuiltList? data; - - factory _$$OrderResponseProductsAllOf( - [void Function($OrderResponseProductsAllOfBuilder)? updates]) => - (new $OrderResponseProductsAllOfBuilder()..update(updates))._build(); - - _$$OrderResponseProductsAllOf._({this.data}) : super._(); - - @override - $OrderResponseProductsAllOf rebuild( - void Function($OrderResponseProductsAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderResponseProductsAllOfBuilder toBuilder() => - new $OrderResponseProductsAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderResponseProductsAllOf && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderResponseProductsAllOf') - ..add('data', data)) - .toString(); - } -} - -class $OrderResponseProductsAllOfBuilder - implements - Builder<$OrderResponseProductsAllOf, - $OrderResponseProductsAllOfBuilder>, - OrderResponseProductsAllOfBuilder { - _$$OrderResponseProductsAllOf? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - $OrderResponseProductsAllOfBuilder() { - $OrderResponseProductsAllOf._defaults(this); - } - - $OrderResponseProductsAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderResponseProductsAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderResponseProductsAllOf; - } - - @override - void update(void Function($OrderResponseProductsAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderResponseProductsAllOf build() => _build(); - - _$$OrderResponseProductsAllOf _build() { - _$$OrderResponseProductsAllOf _$result; - try { - _$result = - _$v ?? new _$$OrderResponseProductsAllOf._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$OrderResponseProductsAllOf', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/order_response_shipping_contact.dart b/lib/src/model/order_response_shipping_contact.dart index e31e654..70c8e52 100644 --- a/lib/src/model/order_response_shipping_contact.dart +++ b/lib/src/model/order_response_shipping_contact.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/customer_shipping_contacts_response.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/order_response_shipping_contact_all_of.dart'; import 'package:conekta/src/model/customer_shipping_contacts_response_address.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; @@ -16,19 +15,19 @@ part 'order_response_shipping_contact.g.dart'; /// OrderResponseShippingContact /// /// Properties: -/// * [createdAt] -/// * [id] -/// * [object] /// * [phone] /// * [receiver] /// * [betweenStreets] /// * [address] /// * [parentId] /// * [default_] +/// * [id] +/// * [createdAt] /// * [metadata] - Metadata associated with the shipping contact +/// * [object] /// * [deleted] @BuiltValue() -abstract class OrderResponseShippingContact implements CustomerShippingContactsResponse, OrderResponseShippingContactAllOf, Built { +abstract class OrderResponseShippingContact implements CustomerShippingContactsResponse, Built { OrderResponseShippingContact._(); factory OrderResponseShippingContact([void updates(OrderResponseShippingContactBuilder b)]) = _$OrderResponseShippingContact; diff --git a/lib/src/model/order_response_shipping_contact.g.dart b/lib/src/model/order_response_shipping_contact.g.dart index 6c94fdb..1b7eb42 100644 --- a/lib/src/model/order_response_shipping_contact.g.dart +++ b/lib/src/model/order_response_shipping_contact.g.dart @@ -120,8 +120,7 @@ class OrderResponseShippingContactBuilder implements Builder, - CustomerShippingContactsResponseBuilder, - OrderResponseShippingContactAllOfBuilder { + CustomerShippingContactsResponseBuilder { _$OrderResponseShippingContact? _$v; String? _phone; @@ -198,7 +197,6 @@ class OrderResponseShippingContactBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant OrderResponseShippingContact other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$OrderResponseShippingContact; diff --git a/lib/src/model/order_response_shipping_contact_all_of.dart b/lib/src/model/order_response_shipping_contact_all_of.dart deleted file mode 100644 index b365d62..0000000 --- a/lib/src/model/order_response_shipping_contact_all_of.dart +++ /dev/null @@ -1,177 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'order_response_shipping_contact_all_of.g.dart'; - -/// OrderResponseShippingContactAllOf -/// -/// Properties: -/// * [createdAt] -/// * [id] -/// * [object] -@BuiltValue(instantiable: false) -abstract class OrderResponseShippingContactAllOf { - @BuiltValueField(wireName: r'created_at') - int? get createdAt; - - @BuiltValueField(wireName: r'id') - String? get id; - - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$OrderResponseShippingContactAllOfSerializer(); -} - -class _$OrderResponseShippingContactAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [OrderResponseShippingContactAllOf]; - - @override - final String wireName = r'OrderResponseShippingContactAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - OrderResponseShippingContactAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.createdAt != null) { - yield r'created_at'; - yield serializers.serialize( - object.createdAt, - specifiedType: const FullType(int), - ); - } - if (object.id != null) { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - } - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - OrderResponseShippingContactAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - OrderResponseShippingContactAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($OrderResponseShippingContactAllOf)) as $OrderResponseShippingContactAllOf; - } -} - -/// a concrete implementation of [OrderResponseShippingContactAllOf], since [OrderResponseShippingContactAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $OrderResponseShippingContactAllOf implements OrderResponseShippingContactAllOf, Built<$OrderResponseShippingContactAllOf, $OrderResponseShippingContactAllOfBuilder> { - $OrderResponseShippingContactAllOf._(); - - factory $OrderResponseShippingContactAllOf([void Function($OrderResponseShippingContactAllOfBuilder)? updates]) = _$$OrderResponseShippingContactAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($OrderResponseShippingContactAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$OrderResponseShippingContactAllOf> get serializer => _$$OrderResponseShippingContactAllOfSerializer(); -} - -class _$$OrderResponseShippingContactAllOfSerializer implements PrimitiveSerializer<$OrderResponseShippingContactAllOf> { - @override - final Iterable types = const [$OrderResponseShippingContactAllOf, _$$OrderResponseShippingContactAllOf]; - - @override - final String wireName = r'$OrderResponseShippingContactAllOf'; - - @override - Object serialize( - Serializers serializers, - $OrderResponseShippingContactAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(OrderResponseShippingContactAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required OrderResponseShippingContactAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'created_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.createdAt = valueDes; - break; - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $OrderResponseShippingContactAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $OrderResponseShippingContactAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/order_response_shipping_contact_all_of.g.dart b/lib/src/model/order_response_shipping_contact_all_of.g.dart deleted file mode 100644 index e937438..0000000 --- a/lib/src/model/order_response_shipping_contact_all_of.g.dart +++ /dev/null @@ -1,132 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_shipping_contact_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderResponseShippingContactAllOfBuilder { - void replace(OrderResponseShippingContactAllOf other); - void update(void Function(OrderResponseShippingContactAllOfBuilder) updates); - int? get createdAt; - set createdAt(int? createdAt); - - String? get id; - set id(String? id); - - String? get object; - set object(String? object); -} - -class _$$OrderResponseShippingContactAllOf - extends $OrderResponseShippingContactAllOf { - @override - final int? createdAt; - @override - final String? id; - @override - final String? object; - - factory _$$OrderResponseShippingContactAllOf( - [void Function($OrderResponseShippingContactAllOfBuilder)? - updates]) => - (new $OrderResponseShippingContactAllOfBuilder()..update(updates)) - ._build(); - - _$$OrderResponseShippingContactAllOf._({this.createdAt, this.id, this.object}) - : super._(); - - @override - $OrderResponseShippingContactAllOf rebuild( - void Function($OrderResponseShippingContactAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderResponseShippingContactAllOfBuilder toBuilder() => - new $OrderResponseShippingContactAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderResponseShippingContactAllOf && - createdAt == other.createdAt && - id == other.id && - object == other.object; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, createdAt.hashCode), id.hashCode), object.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderResponseShippingContactAllOf') - ..add('createdAt', createdAt) - ..add('id', id) - ..add('object', object)) - .toString(); - } -} - -class $OrderResponseShippingContactAllOfBuilder - implements - Builder<$OrderResponseShippingContactAllOf, - $OrderResponseShippingContactAllOfBuilder>, - OrderResponseShippingContactAllOfBuilder { - _$$OrderResponseShippingContactAllOf? _$v; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - $OrderResponseShippingContactAllOfBuilder() { - $OrderResponseShippingContactAllOf._defaults(this); - } - - $OrderResponseShippingContactAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _createdAt = $v.createdAt; - _id = $v.id; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderResponseShippingContactAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderResponseShippingContactAllOf; - } - - @override - void update( - void Function($OrderResponseShippingContactAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderResponseShippingContactAllOf build() => _build(); - - _$$OrderResponseShippingContactAllOf _build() { - final _$result = _$v ?? - new _$$OrderResponseShippingContactAllOf._( - createdAt: createdAt, id: id, object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/payment_method_bank_transfer.dart b/lib/src/model/payment_method_bank_transfer.dart index 3b15e6e..38a06e9 100644 --- a/lib/src/model/payment_method_bank_transfer.dart +++ b/lib/src/model/payment_method_bank_transfer.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/payment_method.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/charge_data_payment_method_bank_transfer_response.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -34,7 +33,55 @@ part 'payment_method_bank_transfer.g.dart'; /// * [referenceNumber] /// * [trackingCode] @BuiltValue() -abstract class PaymentMethodBankTransfer implements ChargeDataPaymentMethodBankTransferResponse, PaymentMethod, Built { +abstract class PaymentMethodBankTransfer implements PaymentMethod, Built { + @BuiltValueField(wireName: r'issuing_account_bank') + String? get issuingAccountBank; + + @BuiltValueField(wireName: r'executed_at') + int? get executedAt; + + @BuiltValueField(wireName: r'receiving_account_bank') + String? get receivingAccountBank; + + @BuiltValueField(wireName: r'issuing_account_number') + String? get issuingAccountNumber; + + @BuiltValueField(wireName: r'description') + String? get description; + + @BuiltValueField(wireName: r'tracking_code') + String? get trackingCode; + + @BuiltValueField(wireName: r'expires_at') + int? get expiresAt; + + @BuiltValueField(wireName: r'receiving_account_tax_id') + String? get receivingAccountTaxId; + + @BuiltValueField(wireName: r'receiving_account_number') + String? get receivingAccountNumber; + + @BuiltValueField(wireName: r'bank') + String? get bank; + + @BuiltValueField(wireName: r'issuing_account_holder_name') + String? get issuingAccountHolderName; + + @BuiltValueField(wireName: r'issuing_account_tax_id') + String? get issuingAccountTaxId; + + @BuiltValueField(wireName: r'payment_attempts') + BuiltList? get paymentAttempts; + + @BuiltValueField(wireName: r'reference_number') + String? get referenceNumber; + + @BuiltValueField(wireName: r'receiving_account_holder_name') + String? get receivingAccountHolderName; + + @BuiltValueField(wireName: r'clabe') + String? get clabe; + PaymentMethodBankTransfer._(); factory PaymentMethodBankTransfer([void updates(PaymentMethodBankTransferBuilder b)]) = _$PaymentMethodBankTransfer; diff --git a/lib/src/model/payment_method_bank_transfer.g.dart b/lib/src/model/payment_method_bank_transfer.g.dart index 3ea4503..e79b26f 100644 --- a/lib/src/model/payment_method_bank_transfer.g.dart +++ b/lib/src/model/payment_method_bank_transfer.g.dart @@ -8,19 +8,25 @@ part of 'payment_method_bank_transfer.dart'; class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { @override - final String? bank; + final String? issuingAccountBank; @override - final String? clabe; + final int? executedAt; + @override + final String? receivingAccountBank; + @override + final String? issuingAccountNumber; @override final String? description; @override - final int? executedAt; + final String? trackingCode; @override final int? expiresAt; @override - final String? issuingAccountBank; + final String? receivingAccountTaxId; @override - final String? issuingAccountNumber; + final String? receivingAccountNumber; + @override + final String? bank; @override final String? issuingAccountHolderName; @override @@ -28,17 +34,11 @@ class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { @override final BuiltList? paymentAttempts; @override - final String? receivingAccountHolderName; - @override - final String? receivingAccountNumber; - @override - final String? receivingAccountBank; - @override - final String? receivingAccountTaxId; - @override final String? referenceNumber; @override - final String? trackingCode; + final String? receivingAccountHolderName; + @override + final String? clabe; @override final String? type; @override @@ -49,22 +49,22 @@ class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { (new PaymentMethodBankTransferBuilder()..update(updates))._build(); _$PaymentMethodBankTransfer._( - {this.bank, - this.clabe, - this.description, + {this.issuingAccountBank, this.executedAt, - this.expiresAt, - this.issuingAccountBank, + this.receivingAccountBank, this.issuingAccountNumber, + this.description, + this.trackingCode, + this.expiresAt, + this.receivingAccountTaxId, + this.receivingAccountNumber, + this.bank, this.issuingAccountHolderName, this.issuingAccountTaxId, this.paymentAttempts, - this.receivingAccountHolderName, - this.receivingAccountNumber, - this.receivingAccountBank, - this.receivingAccountTaxId, this.referenceNumber, - this.trackingCode, + this.receivingAccountHolderName, + this.clabe, this.type, required this.object}) : super._() { @@ -85,22 +85,22 @@ class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodBankTransfer && - bank == other.bank && - clabe == other.clabe && - description == other.description && - executedAt == other.executedAt && - expiresAt == other.expiresAt && issuingAccountBank == other.issuingAccountBank && + executedAt == other.executedAt && + receivingAccountBank == other.receivingAccountBank && issuingAccountNumber == other.issuingAccountNumber && + description == other.description && + trackingCode == other.trackingCode && + expiresAt == other.expiresAt && + receivingAccountTaxId == other.receivingAccountTaxId && + receivingAccountNumber == other.receivingAccountNumber && + bank == other.bank && issuingAccountHolderName == other.issuingAccountHolderName && issuingAccountTaxId == other.issuingAccountTaxId && paymentAttempts == other.paymentAttempts && - receivingAccountHolderName == other.receivingAccountHolderName && - receivingAccountNumber == other.receivingAccountNumber && - receivingAccountBank == other.receivingAccountBank && - receivingAccountTaxId == other.receivingAccountTaxId && referenceNumber == other.referenceNumber && - trackingCode == other.trackingCode && + receivingAccountHolderName == other.receivingAccountHolderName && + clabe == other.clabe && type == other.type && object == other.object; } @@ -126,29 +126,27 @@ class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { $jc( $jc( 0, - bank + issuingAccountBank .hashCode), - clabe + executedAt .hashCode), - description + receivingAccountBank .hashCode), - executedAt + issuingAccountNumber .hashCode), - expiresAt.hashCode), - issuingAccountBank - .hashCode), - issuingAccountNumber - .hashCode), - issuingAccountHolderName - .hashCode), - issuingAccountTaxId.hashCode), - paymentAttempts.hashCode), - receivingAccountHolderName.hashCode), - receivingAccountNumber.hashCode), - receivingAccountBank.hashCode), - receivingAccountTaxId.hashCode), - referenceNumber.hashCode), - trackingCode.hashCode), + description + .hashCode), + trackingCode.hashCode), + expiresAt.hashCode), + receivingAccountTaxId.hashCode), + receivingAccountNumber.hashCode), + bank.hashCode), + issuingAccountHolderName.hashCode), + issuingAccountTaxId.hashCode), + paymentAttempts.hashCode), + referenceNumber.hashCode), + receivingAccountHolderName.hashCode), + clabe.hashCode), type.hashCode), object.hashCode)); } @@ -156,22 +154,22 @@ class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodBankTransfer') - ..add('bank', bank) - ..add('clabe', clabe) - ..add('description', description) - ..add('executedAt', executedAt) - ..add('expiresAt', expiresAt) ..add('issuingAccountBank', issuingAccountBank) + ..add('executedAt', executedAt) + ..add('receivingAccountBank', receivingAccountBank) ..add('issuingAccountNumber', issuingAccountNumber) + ..add('description', description) + ..add('trackingCode', trackingCode) + ..add('expiresAt', expiresAt) + ..add('receivingAccountTaxId', receivingAccountTaxId) + ..add('receivingAccountNumber', receivingAccountNumber) + ..add('bank', bank) ..add('issuingAccountHolderName', issuingAccountHolderName) ..add('issuingAccountTaxId', issuingAccountTaxId) ..add('paymentAttempts', paymentAttempts) - ..add('receivingAccountHolderName', receivingAccountHolderName) - ..add('receivingAccountNumber', receivingAccountNumber) - ..add('receivingAccountBank', receivingAccountBank) - ..add('receivingAccountTaxId', receivingAccountTaxId) ..add('referenceNumber', referenceNumber) - ..add('trackingCode', trackingCode) + ..add('receivingAccountHolderName', receivingAccountHolderName) + ..add('clabe', clabe) ..add('type', type) ..add('object', object)) .toString(); @@ -181,40 +179,55 @@ class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { class PaymentMethodBankTransferBuilder implements Builder, - ChargeDataPaymentMethodBankTransferResponseBuilder, PaymentMethodBuilder { _$PaymentMethodBankTransfer? _$v; - String? _bank; - String? get bank => _$this._bank; - set bank(covariant String? bank) => _$this._bank = bank; + String? _issuingAccountBank; + String? get issuingAccountBank => _$this._issuingAccountBank; + set issuingAccountBank(covariant String? issuingAccountBank) => + _$this._issuingAccountBank = issuingAccountBank; - String? _clabe; - String? get clabe => _$this._clabe; - set clabe(covariant String? clabe) => _$this._clabe = clabe; + int? _executedAt; + int? get executedAt => _$this._executedAt; + set executedAt(covariant int? executedAt) => _$this._executedAt = executedAt; + + String? _receivingAccountBank; + String? get receivingAccountBank => _$this._receivingAccountBank; + set receivingAccountBank(covariant String? receivingAccountBank) => + _$this._receivingAccountBank = receivingAccountBank; + + String? _issuingAccountNumber; + String? get issuingAccountNumber => _$this._issuingAccountNumber; + set issuingAccountNumber(covariant String? issuingAccountNumber) => + _$this._issuingAccountNumber = issuingAccountNumber; String? _description; String? get description => _$this._description; set description(covariant String? description) => _$this._description = description; - int? _executedAt; - int? get executedAt => _$this._executedAt; - set executedAt(covariant int? executedAt) => _$this._executedAt = executedAt; + String? _trackingCode; + String? get trackingCode => _$this._trackingCode; + set trackingCode(covariant String? trackingCode) => + _$this._trackingCode = trackingCode; int? _expiresAt; int? get expiresAt => _$this._expiresAt; set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - String? _issuingAccountBank; - String? get issuingAccountBank => _$this._issuingAccountBank; - set issuingAccountBank(covariant String? issuingAccountBank) => - _$this._issuingAccountBank = issuingAccountBank; + String? _receivingAccountTaxId; + String? get receivingAccountTaxId => _$this._receivingAccountTaxId; + set receivingAccountTaxId(covariant String? receivingAccountTaxId) => + _$this._receivingAccountTaxId = receivingAccountTaxId; - String? _issuingAccountNumber; - String? get issuingAccountNumber => _$this._issuingAccountNumber; - set issuingAccountNumber(covariant String? issuingAccountNumber) => - _$this._issuingAccountNumber = issuingAccountNumber; + String? _receivingAccountNumber; + String? get receivingAccountNumber => _$this._receivingAccountNumber; + set receivingAccountNumber(covariant String? receivingAccountNumber) => + _$this._receivingAccountNumber = receivingAccountNumber; + + String? _bank; + String? get bank => _$this._bank; + set bank(covariant String? bank) => _$this._bank = bank; String? _issuingAccountHolderName; String? get issuingAccountHolderName => _$this._issuingAccountHolderName; @@ -232,36 +245,20 @@ class PaymentMethodBankTransferBuilder set paymentAttempts(covariant ListBuilder? paymentAttempts) => _$this._paymentAttempts = paymentAttempts; + String? _referenceNumber; + String? get referenceNumber => _$this._referenceNumber; + set referenceNumber(covariant String? referenceNumber) => + _$this._referenceNumber = referenceNumber; + String? _receivingAccountHolderName; String? get receivingAccountHolderName => _$this._receivingAccountHolderName; set receivingAccountHolderName( covariant String? receivingAccountHolderName) => _$this._receivingAccountHolderName = receivingAccountHolderName; - String? _receivingAccountNumber; - String? get receivingAccountNumber => _$this._receivingAccountNumber; - set receivingAccountNumber(covariant String? receivingAccountNumber) => - _$this._receivingAccountNumber = receivingAccountNumber; - - String? _receivingAccountBank; - String? get receivingAccountBank => _$this._receivingAccountBank; - set receivingAccountBank(covariant String? receivingAccountBank) => - _$this._receivingAccountBank = receivingAccountBank; - - String? _receivingAccountTaxId; - String? get receivingAccountTaxId => _$this._receivingAccountTaxId; - set receivingAccountTaxId(covariant String? receivingAccountTaxId) => - _$this._receivingAccountTaxId = receivingAccountTaxId; - - String? _referenceNumber; - String? get referenceNumber => _$this._referenceNumber; - set referenceNumber(covariant String? referenceNumber) => - _$this._referenceNumber = referenceNumber; - - String? _trackingCode; - String? get trackingCode => _$this._trackingCode; - set trackingCode(covariant String? trackingCode) => - _$this._trackingCode = trackingCode; + String? _clabe; + String? get clabe => _$this._clabe; + set clabe(covariant String? clabe) => _$this._clabe = clabe; String? _type; String? get type => _$this._type; @@ -278,22 +275,22 @@ class PaymentMethodBankTransferBuilder PaymentMethodBankTransferBuilder get _$this { final $v = _$v; if ($v != null) { - _bank = $v.bank; - _clabe = $v.clabe; - _description = $v.description; - _executedAt = $v.executedAt; - _expiresAt = $v.expiresAt; _issuingAccountBank = $v.issuingAccountBank; + _executedAt = $v.executedAt; + _receivingAccountBank = $v.receivingAccountBank; _issuingAccountNumber = $v.issuingAccountNumber; + _description = $v.description; + _trackingCode = $v.trackingCode; + _expiresAt = $v.expiresAt; + _receivingAccountTaxId = $v.receivingAccountTaxId; + _receivingAccountNumber = $v.receivingAccountNumber; + _bank = $v.bank; _issuingAccountHolderName = $v.issuingAccountHolderName; _issuingAccountTaxId = $v.issuingAccountTaxId; _paymentAttempts = $v.paymentAttempts?.toBuilder(); - _receivingAccountHolderName = $v.receivingAccountHolderName; - _receivingAccountNumber = $v.receivingAccountNumber; - _receivingAccountBank = $v.receivingAccountBank; - _receivingAccountTaxId = $v.receivingAccountTaxId; _referenceNumber = $v.referenceNumber; - _trackingCode = $v.trackingCode; + _receivingAccountHolderName = $v.receivingAccountHolderName; + _clabe = $v.clabe; _type = $v.type; _object = $v.object; _$v = null; @@ -302,7 +299,6 @@ class PaymentMethodBankTransferBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodBankTransfer other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodBankTransfer; @@ -321,22 +317,22 @@ class PaymentMethodBankTransferBuilder try { _$result = _$v ?? new _$PaymentMethodBankTransfer._( - bank: bank, - clabe: clabe, - description: description, - executedAt: executedAt, - expiresAt: expiresAt, issuingAccountBank: issuingAccountBank, + executedAt: executedAt, + receivingAccountBank: receivingAccountBank, issuingAccountNumber: issuingAccountNumber, + description: description, + trackingCode: trackingCode, + expiresAt: expiresAt, + receivingAccountTaxId: receivingAccountTaxId, + receivingAccountNumber: receivingAccountNumber, + bank: bank, issuingAccountHolderName: issuingAccountHolderName, issuingAccountTaxId: issuingAccountTaxId, paymentAttempts: _paymentAttempts?.build(), - receivingAccountHolderName: receivingAccountHolderName, - receivingAccountNumber: receivingAccountNumber, - receivingAccountBank: receivingAccountBank, - receivingAccountTaxId: receivingAccountTaxId, referenceNumber: referenceNumber, - trackingCode: trackingCode, + receivingAccountHolderName: receivingAccountHolderName, + clabe: clabe, type: type, object: BuiltValueNullFieldError.checkNotNull( object, r'PaymentMethodBankTransfer', 'object')); diff --git a/lib/src/model/payment_method_card.dart b/lib/src/model/payment_method_card.dart index 4b13f79..db53085 100644 --- a/lib/src/model/payment_method_card.dart +++ b/lib/src/model/payment_method_card.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/payment_method.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/charge_data_payment_method_card_response.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -29,7 +28,41 @@ part 'payment_method_card.g.dart'; /// * [last4] /// * [name] @BuiltValue() -abstract class PaymentMethodCard implements ChargeDataPaymentMethodCardResponse, PaymentMethod, Built { +abstract class PaymentMethodCard implements PaymentMethod, Built { + @BuiltValueField(wireName: r'country') + String? get country; + + @BuiltValueField(wireName: r'exp_month') + String? get expMonth; + + @BuiltValueField(wireName: r'last4') + String? get last4; + + @BuiltValueField(wireName: r'auth_code') + String? get authCode; + + @BuiltValueField(wireName: r'exp_year') + String? get expYear; + + @BuiltValueField(wireName: r'account_type') + String? get accountType; + + /// Id sent for recurrent charges. + @BuiltValueField(wireName: r'contract_id') + String? get contractId; + + @BuiltValueField(wireName: r'name') + String? get name; + + @BuiltValueField(wireName: r'brand') + String? get brand; + + @BuiltValueField(wireName: r'fraud_indicators') + BuiltList? get fraudIndicators; + + @BuiltValueField(wireName: r'issuer') + String? get issuer; + PaymentMethodCard._(); factory PaymentMethodCard([void updates(PaymentMethodCardBuilder b)]) = _$PaymentMethodCard; diff --git a/lib/src/model/payment_method_card.g.dart b/lib/src/model/payment_method_card.g.dart index b39aad0..89464b5 100644 --- a/lib/src/model/payment_method_card.g.dart +++ b/lib/src/model/payment_method_card.g.dart @@ -8,28 +8,28 @@ part of 'payment_method_card.dart'; class _$PaymentMethodCard extends PaymentMethodCard { @override - final String? accountType; + final String? country; + @override + final String? expMonth; + @override + final String? last4; @override final String? authCode; @override - final String? brand; + final String? expYear; @override - final String? contractId; + final String? accountType; @override - final String? country; + final String? contractId; @override - final String? expMonth; + final String? name; @override - final String? expYear; + final String? brand; @override final BuiltList? fraudIndicators; @override final String? issuer; @override - final String? last4; - @override - final String? name; - @override final String? type; @override final String object; @@ -39,17 +39,17 @@ class _$PaymentMethodCard extends PaymentMethodCard { (new PaymentMethodCardBuilder()..update(updates))._build(); _$PaymentMethodCard._( - {this.accountType, - this.authCode, - this.brand, - this.contractId, - this.country, + {this.country, this.expMonth, + this.last4, + this.authCode, this.expYear, + this.accountType, + this.contractId, + this.name, + this.brand, this.fraudIndicators, this.issuer, - this.last4, - this.name, this.type, required this.object}) : super._() { @@ -69,17 +69,17 @@ class _$PaymentMethodCard extends PaymentMethodCard { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodCard && - accountType == other.accountType && - authCode == other.authCode && - brand == other.brand && - contractId == other.contractId && country == other.country && expMonth == other.expMonth && + last4 == other.last4 && + authCode == other.authCode && expYear == other.expYear && + accountType == other.accountType && + contractId == other.contractId && + name == other.name && + brand == other.brand && fraudIndicators == other.fraudIndicators && issuer == other.issuer && - last4 == other.last4 && - name == other.name && type == other.type && object == other.object; } @@ -97,19 +97,17 @@ class _$PaymentMethodCard extends PaymentMethodCard { $jc( $jc( $jc( - $jc( - $jc(0, - accountType.hashCode), - authCode.hashCode), - brand.hashCode), - contractId.hashCode), - country.hashCode), - expMonth.hashCode), - expYear.hashCode), - fraudIndicators.hashCode), - issuer.hashCode), - last4.hashCode), - name.hashCode), + $jc($jc(0, country.hashCode), + expMonth.hashCode), + last4.hashCode), + authCode.hashCode), + expYear.hashCode), + accountType.hashCode), + contractId.hashCode), + name.hashCode), + brand.hashCode), + fraudIndicators.hashCode), + issuer.hashCode), type.hashCode), object.hashCode)); } @@ -117,17 +115,17 @@ class _$PaymentMethodCard extends PaymentMethodCard { @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodCard') - ..add('accountType', accountType) - ..add('authCode', authCode) - ..add('brand', brand) - ..add('contractId', contractId) ..add('country', country) ..add('expMonth', expMonth) + ..add('last4', last4) + ..add('authCode', authCode) ..add('expYear', expYear) + ..add('accountType', accountType) + ..add('contractId', contractId) + ..add('name', name) + ..add('brand', brand) ..add('fraudIndicators', fraudIndicators) ..add('issuer', issuer) - ..add('last4', last4) - ..add('name', name) ..add('type', type) ..add('object', object)) .toString(); @@ -137,39 +135,46 @@ class _$PaymentMethodCard extends PaymentMethodCard { class PaymentMethodCardBuilder implements Builder, - ChargeDataPaymentMethodCardResponseBuilder, PaymentMethodBuilder { _$PaymentMethodCard? _$v; - String? _accountType; - String? get accountType => _$this._accountType; - set accountType(covariant String? accountType) => - _$this._accountType = accountType; + String? _country; + String? get country => _$this._country; + set country(covariant String? country) => _$this._country = country; + + String? _expMonth; + String? get expMonth => _$this._expMonth; + set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; + + String? _last4; + String? get last4 => _$this._last4; + set last4(covariant String? last4) => _$this._last4 = last4; String? _authCode; String? get authCode => _$this._authCode; set authCode(covariant String? authCode) => _$this._authCode = authCode; - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; + String? _expYear; + String? get expYear => _$this._expYear; + set expYear(covariant String? expYear) => _$this._expYear = expYear; + + String? _accountType; + String? get accountType => _$this._accountType; + set accountType(covariant String? accountType) => + _$this._accountType = accountType; String? _contractId; String? get contractId => _$this._contractId; set contractId(covariant String? contractId) => _$this._contractId = contractId; - String? _country; - String? get country => _$this._country; - set country(covariant String? country) => _$this._country = country; - - String? _expMonth; - String? get expMonth => _$this._expMonth; - set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; - String? _expYear; - String? get expYear => _$this._expYear; - set expYear(covariant String? expYear) => _$this._expYear = expYear; + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; ListBuilder? _fraudIndicators; ListBuilder get fraudIndicators => @@ -181,14 +186,6 @@ class PaymentMethodCardBuilder String? get issuer => _$this._issuer; set issuer(covariant String? issuer) => _$this._issuer = issuer; - String? _last4; - String? get last4 => _$this._last4; - set last4(covariant String? last4) => _$this._last4 = last4; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - String? _type; String? get type => _$this._type; set type(covariant String? type) => _$this._type = type; @@ -204,17 +201,17 @@ class PaymentMethodCardBuilder PaymentMethodCardBuilder get _$this { final $v = _$v; if ($v != null) { - _accountType = $v.accountType; - _authCode = $v.authCode; - _brand = $v.brand; - _contractId = $v.contractId; _country = $v.country; _expMonth = $v.expMonth; + _last4 = $v.last4; + _authCode = $v.authCode; _expYear = $v.expYear; + _accountType = $v.accountType; + _contractId = $v.contractId; + _name = $v.name; + _brand = $v.brand; _fraudIndicators = $v.fraudIndicators?.toBuilder(); _issuer = $v.issuer; - _last4 = $v.last4; - _name = $v.name; _type = $v.type; _object = $v.object; _$v = null; @@ -223,7 +220,6 @@ class PaymentMethodCardBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodCard other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodCard; @@ -242,17 +238,17 @@ class PaymentMethodCardBuilder try { _$result = _$v ?? new _$PaymentMethodCard._( - accountType: accountType, - authCode: authCode, - brand: brand, - contractId: contractId, country: country, expMonth: expMonth, + last4: last4, + authCode: authCode, expYear: expYear, + accountType: accountType, + contractId: contractId, + name: name, + brand: brand, fraudIndicators: _fraudIndicators?.build(), issuer: issuer, - last4: last4, - name: name, type: type, object: BuiltValueNullFieldError.checkNotNull( object, r'PaymentMethodCard', 'object')); diff --git a/lib/src/model/payment_method_card_request.dart b/lib/src/model/payment_method_card_request.dart index efd8164..8400fce 100644 --- a/lib/src/model/payment_method_card_request.dart +++ b/lib/src/model/payment_method_card_request.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/payment_method_card_request_all_of.dart'; import 'package:conekta/src/model/customer_payment_method_request.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,7 +15,11 @@ part 'payment_method_card_request.g.dart'; /// * [type] - Type of payment method /// * [tokenId] - 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. @BuiltValue() -abstract class PaymentMethodCardRequest implements CustomerPaymentMethodRequest, PaymentMethodCardRequestAllOf, Built { +abstract class PaymentMethodCardRequest implements CustomerPaymentMethodRequest, Built { + /// 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. + @BuiltValueField(wireName: r'token_id') + String get tokenId; + PaymentMethodCardRequest._(); factory PaymentMethodCardRequest([void updates(PaymentMethodCardRequestBuilder b)]) = _$PaymentMethodCardRequest; @@ -40,13 +43,11 @@ class _$PaymentMethodCardRequestSerializer implements PrimitiveSerializer (new PaymentMethodCardRequestBuilder()..update(updates))._build(); - _$PaymentMethodCardRequest._({required this.type, this.tokenId}) : super._() { + _$PaymentMethodCardRequest._({required this.tokenId, required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + tokenId, r'PaymentMethodCardRequest', 'tokenId'); BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodCardRequest', 'type'); } @@ -34,20 +37,20 @@ class _$PaymentMethodCardRequest extends PaymentMethodCardRequest { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodCardRequest && - type == other.type && - tokenId == other.tokenId; + tokenId == other.tokenId && + type == other.type; } @override int get hashCode { - return $jf($jc($jc(0, type.hashCode), tokenId.hashCode)); + return $jf($jc($jc(0, tokenId.hashCode), type.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodCardRequest') - ..add('type', type) - ..add('tokenId', tokenId)) + ..add('tokenId', tokenId) + ..add('type', type)) .toString(); } } @@ -55,18 +58,17 @@ class _$PaymentMethodCardRequest extends PaymentMethodCardRequest { class PaymentMethodCardRequestBuilder implements Builder, - CustomerPaymentMethodRequestBuilder, - PaymentMethodCardRequestAllOfBuilder { + CustomerPaymentMethodRequestBuilder { _$PaymentMethodCardRequest? _$v; - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - String? _tokenId; String? get tokenId => _$this._tokenId; set tokenId(covariant String? tokenId) => _$this._tokenId = tokenId; + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + PaymentMethodCardRequestBuilder() { PaymentMethodCardRequest._defaults(this); } @@ -74,15 +76,14 @@ class PaymentMethodCardRequestBuilder PaymentMethodCardRequestBuilder get _$this { final $v = _$v; if ($v != null) { - _type = $v.type; _tokenId = $v.tokenId; + _type = $v.type; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodCardRequest other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodCardRequest; @@ -99,9 +100,10 @@ class PaymentMethodCardRequestBuilder _$PaymentMethodCardRequest _build() { final _$result = _$v ?? new _$PaymentMethodCardRequest._( + tokenId: BuiltValueNullFieldError.checkNotNull( + tokenId, r'PaymentMethodCardRequest', 'tokenId'), type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCardRequest', 'type'), - tokenId: tokenId); + type, r'PaymentMethodCardRequest', 'type')); replace(_$result); return _$result; } diff --git a/lib/src/model/payment_method_card_request_all_of.dart b/lib/src/model/payment_method_card_request_all_of.dart deleted file mode 100644 index f92164c..0000000 --- a/lib/src/model/payment_method_card_request_all_of.dart +++ /dev/null @@ -1,142 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'payment_method_card_request_all_of.g.dart'; - -/// PaymentMethodCardRequestAllOf -/// -/// Properties: -/// * [tokenId] - 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. -@BuiltValue(instantiable: false) -abstract class PaymentMethodCardRequestAllOf { - /// 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. - @BuiltValueField(wireName: r'token_id') - String? get tokenId; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$PaymentMethodCardRequestAllOfSerializer(); -} - -class _$PaymentMethodCardRequestAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PaymentMethodCardRequestAllOf]; - - @override - final String wireName = r'PaymentMethodCardRequestAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - PaymentMethodCardRequestAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.tokenId != null) { - yield r'token_id'; - yield serializers.serialize( - object.tokenId, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - PaymentMethodCardRequestAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - PaymentMethodCardRequestAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($PaymentMethodCardRequestAllOf)) as $PaymentMethodCardRequestAllOf; - } -} - -/// a concrete implementation of [PaymentMethodCardRequestAllOf], since [PaymentMethodCardRequestAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $PaymentMethodCardRequestAllOf implements PaymentMethodCardRequestAllOf, Built<$PaymentMethodCardRequestAllOf, $PaymentMethodCardRequestAllOfBuilder> { - $PaymentMethodCardRequestAllOf._(); - - factory $PaymentMethodCardRequestAllOf([void Function($PaymentMethodCardRequestAllOfBuilder)? updates]) = _$$PaymentMethodCardRequestAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PaymentMethodCardRequestAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$PaymentMethodCardRequestAllOf> get serializer => _$$PaymentMethodCardRequestAllOfSerializer(); -} - -class _$$PaymentMethodCardRequestAllOfSerializer implements PrimitiveSerializer<$PaymentMethodCardRequestAllOf> { - @override - final Iterable types = const [$PaymentMethodCardRequestAllOf, _$$PaymentMethodCardRequestAllOf]; - - @override - final String wireName = r'$PaymentMethodCardRequestAllOf'; - - @override - Object serialize( - Serializers serializers, - $PaymentMethodCardRequestAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(PaymentMethodCardRequestAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required PaymentMethodCardRequestAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'token_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.tokenId = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $PaymentMethodCardRequestAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $PaymentMethodCardRequestAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/payment_method_card_request_all_of.g.dart b/lib/src/model/payment_method_card_request_all_of.g.dart deleted file mode 100644 index 9b9cbef..0000000 --- a/lib/src/model/payment_method_card_request_all_of.g.dart +++ /dev/null @@ -1,100 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_card_request_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodCardRequestAllOfBuilder { - void replace(PaymentMethodCardRequestAllOf other); - void update(void Function(PaymentMethodCardRequestAllOfBuilder) updates); - String? get tokenId; - set tokenId(String? tokenId); -} - -class _$$PaymentMethodCardRequestAllOf extends $PaymentMethodCardRequestAllOf { - @override - final String? tokenId; - - factory _$$PaymentMethodCardRequestAllOf( - [void Function($PaymentMethodCardRequestAllOfBuilder)? updates]) => - (new $PaymentMethodCardRequestAllOfBuilder()..update(updates))._build(); - - _$$PaymentMethodCardRequestAllOf._({this.tokenId}) : super._(); - - @override - $PaymentMethodCardRequestAllOf rebuild( - void Function($PaymentMethodCardRequestAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodCardRequestAllOfBuilder toBuilder() => - new $PaymentMethodCardRequestAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethodCardRequestAllOf && tokenId == other.tokenId; - } - - @override - int get hashCode { - return $jf($jc(0, tokenId.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethodCardRequestAllOf') - ..add('tokenId', tokenId)) - .toString(); - } -} - -class $PaymentMethodCardRequestAllOfBuilder - implements - Builder<$PaymentMethodCardRequestAllOf, - $PaymentMethodCardRequestAllOfBuilder>, - PaymentMethodCardRequestAllOfBuilder { - _$$PaymentMethodCardRequestAllOf? _$v; - - String? _tokenId; - String? get tokenId => _$this._tokenId; - set tokenId(covariant String? tokenId) => _$this._tokenId = tokenId; - - $PaymentMethodCardRequestAllOfBuilder() { - $PaymentMethodCardRequestAllOf._defaults(this); - } - - $PaymentMethodCardRequestAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _tokenId = $v.tokenId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethodCardRequestAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethodCardRequestAllOf; - } - - @override - void update(void Function($PaymentMethodCardRequestAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethodCardRequestAllOf build() => _build(); - - _$$PaymentMethodCardRequestAllOf _build() { - final _$result = - _$v ?? new _$$PaymentMethodCardRequestAllOf._(tokenId: tokenId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/payment_method_card_response.dart b/lib/src/model/payment_method_card_response.dart index d28f5f0..90bb73c 100644 --- a/lib/src/model/payment_method_card_response.dart +++ b/lib/src/model/payment_method_card_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/payment_method_card_response_all_of.dart'; import 'package:conekta/src/model/payment_method_response.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -29,7 +28,37 @@ part 'payment_method_card_response.g.dart'; /// * [visibleOnCheckout] /// * [paymentSourceStatus] @BuiltValue() -abstract class PaymentMethodCardResponse implements PaymentMethodCardResponseAllOf, PaymentMethodResponse, Built { +abstract class PaymentMethodCardResponse implements PaymentMethodResponse, Built { + @BuiltValueField(wireName: r'last4') + String? get last4; + + @BuiltValueField(wireName: r'exp_month') + String? get expMonth; + + @BuiltValueField(wireName: r'visible_on_checkout') + bool? get visibleOnCheckout; + + @BuiltValueField(wireName: r'exp_year') + String? get expYear; + + @BuiltValueField(wireName: r'bin') + String? get bin; + + @BuiltValueField(wireName: r'card_type') + String? get cardType; + + @BuiltValueField(wireName: r'name') + String? get name; + + @BuiltValueField(wireName: r'default') + bool? get default_; + + @BuiltValueField(wireName: r'brand') + String? get brand; + + @BuiltValueField(wireName: r'payment_source_status') + String? get paymentSourceStatus; + PaymentMethodCardResponse._(); factory PaymentMethodCardResponse([void updates(PaymentMethodCardResponseBuilder b)]) = _$PaymentMethodCardResponse; diff --git a/lib/src/model/payment_method_card_response.g.dart b/lib/src/model/payment_method_card_response.g.dart index 8ac08ee..f3e3cb6 100644 --- a/lib/src/model/payment_method_card_response.g.dart +++ b/lib/src/model/payment_method_card_response.g.dart @@ -10,21 +10,21 @@ class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { @override final String? last4; @override - final String? bin; - @override - final String? cardType; - @override final String? expMonth; @override + final bool? visibleOnCheckout; + @override final String? expYear; @override - final String? brand; + final String? bin; + @override + final String? cardType; @override final String? name; @override final bool? default_; @override - final bool? visibleOnCheckout; + final String? brand; @override final String? paymentSourceStatus; @override @@ -44,14 +44,14 @@ class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { _$PaymentMethodCardResponse._( {this.last4, - this.bin, - this.cardType, this.expMonth, + this.visibleOnCheckout, this.expYear, - this.brand, + this.bin, + this.cardType, this.name, this.default_, - this.visibleOnCheckout, + this.brand, this.paymentSourceStatus, required this.type, required this.id, @@ -83,14 +83,14 @@ class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { if (identical(other, this)) return true; return other is PaymentMethodCardResponse && last4 == other.last4 && - bin == other.bin && - cardType == other.cardType && expMonth == other.expMonth && + visibleOnCheckout == other.visibleOnCheckout && expYear == other.expYear && - brand == other.brand && + bin == other.bin && + cardType == other.cardType && name == other.name && default_ == other.default_ && - visibleOnCheckout == other.visibleOnCheckout && + brand == other.brand && paymentSourceStatus == other.paymentSourceStatus && type == other.type && id == other.id && @@ -117,14 +117,15 @@ class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { $jc( $jc(0, last4.hashCode), - bin.hashCode), - cardType.hashCode), - expMonth.hashCode), - expYear.hashCode), - brand.hashCode), + expMonth.hashCode), + visibleOnCheckout + .hashCode), + expYear.hashCode), + bin.hashCode), + cardType.hashCode), name.hashCode), default_.hashCode), - visibleOnCheckout.hashCode), + brand.hashCode), paymentSourceStatus.hashCode), type.hashCode), id.hashCode), @@ -137,14 +138,14 @@ class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodCardResponse') ..add('last4', last4) - ..add('bin', bin) - ..add('cardType', cardType) ..add('expMonth', expMonth) + ..add('visibleOnCheckout', visibleOnCheckout) ..add('expYear', expYear) - ..add('brand', brand) + ..add('bin', bin) + ..add('cardType', cardType) ..add('name', name) ..add('default_', default_) - ..add('visibleOnCheckout', visibleOnCheckout) + ..add('brand', brand) ..add('paymentSourceStatus', paymentSourceStatus) ..add('type', type) ..add('id', id) @@ -158,7 +159,6 @@ class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { class PaymentMethodCardResponseBuilder implements Builder, - PaymentMethodCardResponseAllOfBuilder, PaymentMethodResponseBuilder { _$PaymentMethodCardResponse? _$v; @@ -166,25 +166,26 @@ class PaymentMethodCardResponseBuilder String? get last4 => _$this._last4; set last4(covariant String? last4) => _$this._last4 = last4; - String? _bin; - String? get bin => _$this._bin; - set bin(covariant String? bin) => _$this._bin = bin; - - String? _cardType; - String? get cardType => _$this._cardType; - set cardType(covariant String? cardType) => _$this._cardType = cardType; - String? _expMonth; String? get expMonth => _$this._expMonth; set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; + bool? _visibleOnCheckout; + bool? get visibleOnCheckout => _$this._visibleOnCheckout; + set visibleOnCheckout(covariant bool? visibleOnCheckout) => + _$this._visibleOnCheckout = visibleOnCheckout; + String? _expYear; String? get expYear => _$this._expYear; set expYear(covariant String? expYear) => _$this._expYear = expYear; - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; + String? _bin; + String? get bin => _$this._bin; + set bin(covariant String? bin) => _$this._bin = bin; + + String? _cardType; + String? get cardType => _$this._cardType; + set cardType(covariant String? cardType) => _$this._cardType = cardType; String? _name; String? get name => _$this._name; @@ -194,10 +195,9 @@ class PaymentMethodCardResponseBuilder bool? get default_ => _$this._default_; set default_(covariant bool? default_) => _$this._default_ = default_; - bool? _visibleOnCheckout; - bool? get visibleOnCheckout => _$this._visibleOnCheckout; - set visibleOnCheckout(covariant bool? visibleOnCheckout) => - _$this._visibleOnCheckout = visibleOnCheckout; + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; String? _paymentSourceStatus; String? get paymentSourceStatus => _$this._paymentSourceStatus; @@ -232,14 +232,14 @@ class PaymentMethodCardResponseBuilder final $v = _$v; if ($v != null) { _last4 = $v.last4; - _bin = $v.bin; - _cardType = $v.cardType; _expMonth = $v.expMonth; + _visibleOnCheckout = $v.visibleOnCheckout; _expYear = $v.expYear; - _brand = $v.brand; + _bin = $v.bin; + _cardType = $v.cardType; _name = $v.name; _default_ = $v.default_; - _visibleOnCheckout = $v.visibleOnCheckout; + _brand = $v.brand; _paymentSourceStatus = $v.paymentSourceStatus; _type = $v.type; _id = $v.id; @@ -252,7 +252,6 @@ class PaymentMethodCardResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodCardResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodCardResponse; @@ -270,14 +269,14 @@ class PaymentMethodCardResponseBuilder final _$result = _$v ?? new _$PaymentMethodCardResponse._( last4: last4, - bin: bin, - cardType: cardType, expMonth: expMonth, + visibleOnCheckout: visibleOnCheckout, expYear: expYear, - brand: brand, + bin: bin, + cardType: cardType, name: name, default_: default_, - visibleOnCheckout: visibleOnCheckout, + brand: brand, paymentSourceStatus: paymentSourceStatus, type: BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodCardResponse', 'type'), diff --git a/lib/src/model/payment_method_card_response_all_of.dart b/lib/src/model/payment_method_card_response_all_of.dart deleted file mode 100644 index 2ee8354..0000000 --- a/lib/src/model/payment_method_card_response_all_of.dart +++ /dev/null @@ -1,303 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'payment_method_card_response_all_of.g.dart'; - -/// use for card responses -/// -/// Properties: -/// * [last4] -/// * [bin] -/// * [cardType] -/// * [expMonth] -/// * [expYear] -/// * [brand] -/// * [name] -/// * [default_] -/// * [visibleOnCheckout] -/// * [paymentSourceStatus] -@BuiltValue(instantiable: false) -abstract class PaymentMethodCardResponseAllOf { - @BuiltValueField(wireName: r'last4') - String? get last4; - - @BuiltValueField(wireName: r'bin') - String? get bin; - - @BuiltValueField(wireName: r'card_type') - String? get cardType; - - @BuiltValueField(wireName: r'exp_month') - String? get expMonth; - - @BuiltValueField(wireName: r'exp_year') - String? get expYear; - - @BuiltValueField(wireName: r'brand') - String? get brand; - - @BuiltValueField(wireName: r'name') - String? get name; - - @BuiltValueField(wireName: r'default') - bool? get default_; - - @BuiltValueField(wireName: r'visible_on_checkout') - bool? get visibleOnCheckout; - - @BuiltValueField(wireName: r'payment_source_status') - String? get paymentSourceStatus; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$PaymentMethodCardResponseAllOfSerializer(); -} - -class _$PaymentMethodCardResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PaymentMethodCardResponseAllOf]; - - @override - final String wireName = r'PaymentMethodCardResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - PaymentMethodCardResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.last4 != null) { - yield r'last4'; - yield serializers.serialize( - object.last4, - specifiedType: const FullType(String), - ); - } - if (object.bin != null) { - yield r'bin'; - yield serializers.serialize( - object.bin, - specifiedType: const FullType(String), - ); - } - if (object.cardType != null) { - yield r'card_type'; - yield serializers.serialize( - object.cardType, - specifiedType: const FullType(String), - ); - } - if (object.expMonth != null) { - yield r'exp_month'; - yield serializers.serialize( - object.expMonth, - specifiedType: const FullType(String), - ); - } - if (object.expYear != null) { - yield r'exp_year'; - yield serializers.serialize( - object.expYear, - specifiedType: const FullType(String), - ); - } - if (object.brand != null) { - yield r'brand'; - yield serializers.serialize( - object.brand, - specifiedType: const FullType(String), - ); - } - if (object.name != null) { - yield r'name'; - yield serializers.serialize( - object.name, - specifiedType: const FullType(String), - ); - } - if (object.default_ != null) { - yield r'default'; - yield serializers.serialize( - object.default_, - specifiedType: const FullType(bool), - ); - } - if (object.visibleOnCheckout != null) { - yield r'visible_on_checkout'; - yield serializers.serialize( - object.visibleOnCheckout, - specifiedType: const FullType(bool), - ); - } - if (object.paymentSourceStatus != null) { - yield r'payment_source_status'; - yield serializers.serialize( - object.paymentSourceStatus, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - PaymentMethodCardResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - PaymentMethodCardResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($PaymentMethodCardResponseAllOf)) as $PaymentMethodCardResponseAllOf; - } -} - -/// a concrete implementation of [PaymentMethodCardResponseAllOf], since [PaymentMethodCardResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $PaymentMethodCardResponseAllOf implements PaymentMethodCardResponseAllOf, Built<$PaymentMethodCardResponseAllOf, $PaymentMethodCardResponseAllOfBuilder> { - $PaymentMethodCardResponseAllOf._(); - - factory $PaymentMethodCardResponseAllOf([void Function($PaymentMethodCardResponseAllOfBuilder)? updates]) = _$$PaymentMethodCardResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PaymentMethodCardResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$PaymentMethodCardResponseAllOf> get serializer => _$$PaymentMethodCardResponseAllOfSerializer(); -} - -class _$$PaymentMethodCardResponseAllOfSerializer implements PrimitiveSerializer<$PaymentMethodCardResponseAllOf> { - @override - final Iterable types = const [$PaymentMethodCardResponseAllOf, _$$PaymentMethodCardResponseAllOf]; - - @override - final String wireName = r'$PaymentMethodCardResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $PaymentMethodCardResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(PaymentMethodCardResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required PaymentMethodCardResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'last4': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.last4 = valueDes; - break; - case r'bin': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.bin = valueDes; - break; - case r'card_type': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.cardType = valueDes; - break; - case r'exp_month': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.expMonth = valueDes; - break; - case r'exp_year': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.expYear = valueDes; - break; - case r'brand': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.brand = valueDes; - break; - case r'name': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.name = valueDes; - break; - case r'default': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.default_ = valueDes; - break; - case r'visible_on_checkout': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.visibleOnCheckout = valueDes; - break; - case r'payment_source_status': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.paymentSourceStatus = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $PaymentMethodCardResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $PaymentMethodCardResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/payment_method_card_response_all_of.g.dart b/lib/src/model/payment_method_card_response_all_of.g.dart deleted file mode 100644 index 8ba050d..0000000 --- a/lib/src/model/payment_method_card_response_all_of.g.dart +++ /dev/null @@ -1,248 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_card_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodCardResponseAllOfBuilder { - void replace(PaymentMethodCardResponseAllOf other); - void update(void Function(PaymentMethodCardResponseAllOfBuilder) updates); - String? get last4; - set last4(String? last4); - - String? get bin; - set bin(String? bin); - - String? get cardType; - set cardType(String? cardType); - - String? get expMonth; - set expMonth(String? expMonth); - - String? get expYear; - set expYear(String? expYear); - - String? get brand; - set brand(String? brand); - - String? get name; - set name(String? name); - - bool? get default_; - set default_(bool? default_); - - bool? get visibleOnCheckout; - set visibleOnCheckout(bool? visibleOnCheckout); - - String? get paymentSourceStatus; - set paymentSourceStatus(String? paymentSourceStatus); -} - -class _$$PaymentMethodCardResponseAllOf - extends $PaymentMethodCardResponseAllOf { - @override - final String? last4; - @override - final String? bin; - @override - final String? cardType; - @override - final String? expMonth; - @override - final String? expYear; - @override - final String? brand; - @override - final String? name; - @override - final bool? default_; - @override - final bool? visibleOnCheckout; - @override - final String? paymentSourceStatus; - - factory _$$PaymentMethodCardResponseAllOf( - [void Function($PaymentMethodCardResponseAllOfBuilder)? updates]) => - (new $PaymentMethodCardResponseAllOfBuilder()..update(updates))._build(); - - _$$PaymentMethodCardResponseAllOf._( - {this.last4, - this.bin, - this.cardType, - this.expMonth, - this.expYear, - this.brand, - this.name, - this.default_, - this.visibleOnCheckout, - this.paymentSourceStatus}) - : super._(); - - @override - $PaymentMethodCardResponseAllOf rebuild( - void Function($PaymentMethodCardResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodCardResponseAllOfBuilder toBuilder() => - new $PaymentMethodCardResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethodCardResponseAllOf && - last4 == other.last4 && - bin == other.bin && - cardType == other.cardType && - expMonth == other.expMonth && - expYear == other.expYear && - brand == other.brand && - name == other.name && - default_ == other.default_ && - visibleOnCheckout == other.visibleOnCheckout && - paymentSourceStatus == other.paymentSourceStatus; - } - - @override - int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, last4.hashCode), bin.hashCode), - cardType.hashCode), - expMonth.hashCode), - expYear.hashCode), - brand.hashCode), - name.hashCode), - default_.hashCode), - visibleOnCheckout.hashCode), - paymentSourceStatus.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethodCardResponseAllOf') - ..add('last4', last4) - ..add('bin', bin) - ..add('cardType', cardType) - ..add('expMonth', expMonth) - ..add('expYear', expYear) - ..add('brand', brand) - ..add('name', name) - ..add('default_', default_) - ..add('visibleOnCheckout', visibleOnCheckout) - ..add('paymentSourceStatus', paymentSourceStatus)) - .toString(); - } -} - -class $PaymentMethodCardResponseAllOfBuilder - implements - Builder<$PaymentMethodCardResponseAllOf, - $PaymentMethodCardResponseAllOfBuilder>, - PaymentMethodCardResponseAllOfBuilder { - _$$PaymentMethodCardResponseAllOf? _$v; - - String? _last4; - String? get last4 => _$this._last4; - set last4(covariant String? last4) => _$this._last4 = last4; - - String? _bin; - String? get bin => _$this._bin; - set bin(covariant String? bin) => _$this._bin = bin; - - String? _cardType; - String? get cardType => _$this._cardType; - set cardType(covariant String? cardType) => _$this._cardType = cardType; - - String? _expMonth; - String? get expMonth => _$this._expMonth; - set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; - - String? _expYear; - String? get expYear => _$this._expYear; - set expYear(covariant String? expYear) => _$this._expYear = expYear; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; - - bool? _visibleOnCheckout; - bool? get visibleOnCheckout => _$this._visibleOnCheckout; - set visibleOnCheckout(covariant bool? visibleOnCheckout) => - _$this._visibleOnCheckout = visibleOnCheckout; - - String? _paymentSourceStatus; - String? get paymentSourceStatus => _$this._paymentSourceStatus; - set paymentSourceStatus(covariant String? paymentSourceStatus) => - _$this._paymentSourceStatus = paymentSourceStatus; - - $PaymentMethodCardResponseAllOfBuilder() { - $PaymentMethodCardResponseAllOf._defaults(this); - } - - $PaymentMethodCardResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _last4 = $v.last4; - _bin = $v.bin; - _cardType = $v.cardType; - _expMonth = $v.expMonth; - _expYear = $v.expYear; - _brand = $v.brand; - _name = $v.name; - _default_ = $v.default_; - _visibleOnCheckout = $v.visibleOnCheckout; - _paymentSourceStatus = $v.paymentSourceStatus; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethodCardResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethodCardResponseAllOf; - } - - @override - void update(void Function($PaymentMethodCardResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethodCardResponseAllOf build() => _build(); - - _$$PaymentMethodCardResponseAllOf _build() { - final _$result = _$v ?? - new _$$PaymentMethodCardResponseAllOf._( - last4: last4, - bin: bin, - cardType: cardType, - expMonth: expMonth, - expYear: expYear, - brand: brand, - name: name, - default_: default_, - visibleOnCheckout: visibleOnCheckout, - paymentSourceStatus: paymentSourceStatus); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/payment_method_cash.dart b/lib/src/model/payment_method_cash.dart index 476c38d..562cdee 100644 --- a/lib/src/model/payment_method_cash.dart +++ b/lib/src/model/payment_method_cash.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/payment_method.dart'; -import 'package:conekta/src/model/charge_data_payment_method_cash_response.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -24,7 +23,31 @@ part 'payment_method_cash.g.dart'; /// * [store] /// * [storeName] @BuiltValue() -abstract class PaymentMethodCash implements ChargeDataPaymentMethodCashResponse, PaymentMethod, Built { +abstract class PaymentMethodCash implements PaymentMethod, Built { + @BuiltValueField(wireName: r'reference') + String? get reference; + + @BuiltValueField(wireName: r'auth_code') + int? get authCode; + + @BuiltValueField(wireName: r'cashier_id') + String? get cashierId; + + @BuiltValueField(wireName: r'store_name') + String? get storeName; + + @BuiltValueField(wireName: r'barcode_url') + String? get barcodeUrl; + + @BuiltValueField(wireName: r'store') + String? get store; + + @BuiltValueField(wireName: r'service_name') + String? get serviceName; + + @BuiltValueField(wireName: r'expires_at') + int? get expiresAt; + PaymentMethodCash._(); factory PaymentMethodCash([void updates(PaymentMethodCashBuilder b)]) = _$PaymentMethodCash; diff --git a/lib/src/model/payment_method_cash.g.dart b/lib/src/model/payment_method_cash.g.dart index f0e6a29..8da6ac7 100644 --- a/lib/src/model/payment_method_cash.g.dart +++ b/lib/src/model/payment_method_cash.g.dart @@ -7,22 +7,22 @@ part of 'payment_method_cash.dart'; // ************************************************************************** class _$PaymentMethodCash extends PaymentMethodCash { + @override + final String? reference; @override final int? authCode; @override final String? cashierId; @override - final String? reference; + final String? storeName; @override final String? barcodeUrl; @override - final int? expiresAt; + final String? store; @override final String? serviceName; @override - final String? store; - @override - final String? storeName; + final int? expiresAt; @override final String? type; @override @@ -33,14 +33,14 @@ class _$PaymentMethodCash extends PaymentMethodCash { (new PaymentMethodCashBuilder()..update(updates))._build(); _$PaymentMethodCash._( - {this.authCode, + {this.reference, + this.authCode, this.cashierId, - this.reference, + this.storeName, this.barcodeUrl, - this.expiresAt, - this.serviceName, this.store, - this.storeName, + this.serviceName, + this.expiresAt, this.type, required this.object}) : super._() { @@ -60,14 +60,14 @@ class _$PaymentMethodCash extends PaymentMethodCash { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodCash && + reference == other.reference && authCode == other.authCode && cashierId == other.cashierId && - reference == other.reference && + storeName == other.storeName && barcodeUrl == other.barcodeUrl && - expiresAt == other.expiresAt && - serviceName == other.serviceName && store == other.store && - storeName == other.storeName && + serviceName == other.serviceName && + expiresAt == other.expiresAt && type == other.type && object == other.object; } @@ -82,14 +82,14 @@ class _$PaymentMethodCash extends PaymentMethodCash { $jc( $jc( $jc( - $jc($jc(0, authCode.hashCode), - cashierId.hashCode), - reference.hashCode), - barcodeUrl.hashCode), - expiresAt.hashCode), - serviceName.hashCode), - store.hashCode), - storeName.hashCode), + $jc($jc(0, reference.hashCode), + authCode.hashCode), + cashierId.hashCode), + storeName.hashCode), + barcodeUrl.hashCode), + store.hashCode), + serviceName.hashCode), + expiresAt.hashCode), type.hashCode), object.hashCode)); } @@ -97,14 +97,14 @@ class _$PaymentMethodCash extends PaymentMethodCash { @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodCash') + ..add('reference', reference) ..add('authCode', authCode) ..add('cashierId', cashierId) - ..add('reference', reference) + ..add('storeName', storeName) ..add('barcodeUrl', barcodeUrl) - ..add('expiresAt', expiresAt) - ..add('serviceName', serviceName) ..add('store', store) - ..add('storeName', storeName) + ..add('serviceName', serviceName) + ..add('expiresAt', expiresAt) ..add('type', type) ..add('object', object)) .toString(); @@ -114,10 +114,13 @@ class _$PaymentMethodCash extends PaymentMethodCash { class PaymentMethodCashBuilder implements Builder, - ChargeDataPaymentMethodCashResponseBuilder, PaymentMethodBuilder { _$PaymentMethodCash? _$v; + String? _reference; + String? get reference => _$this._reference; + set reference(covariant String? reference) => _$this._reference = reference; + int? _authCode; int? get authCode => _$this._authCode; set authCode(covariant int? authCode) => _$this._authCode = authCode; @@ -126,31 +129,27 @@ class PaymentMethodCashBuilder String? get cashierId => _$this._cashierId; set cashierId(covariant String? cashierId) => _$this._cashierId = cashierId; - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; + String? _storeName; + String? get storeName => _$this._storeName; + set storeName(covariant String? storeName) => _$this._storeName = storeName; String? _barcodeUrl; String? get barcodeUrl => _$this._barcodeUrl; set barcodeUrl(covariant String? barcodeUrl) => _$this._barcodeUrl = barcodeUrl; - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; + String? _store; + String? get store => _$this._store; + set store(covariant String? store) => _$this._store = store; String? _serviceName; String? get serviceName => _$this._serviceName; set serviceName(covariant String? serviceName) => _$this._serviceName = serviceName; - String? _store; - String? get store => _$this._store; - set store(covariant String? store) => _$this._store = store; - - String? _storeName; - String? get storeName => _$this._storeName; - set storeName(covariant String? storeName) => _$this._storeName = storeName; + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; String? _type; String? get type => _$this._type; @@ -167,14 +166,14 @@ class PaymentMethodCashBuilder PaymentMethodCashBuilder get _$this { final $v = _$v; if ($v != null) { + _reference = $v.reference; _authCode = $v.authCode; _cashierId = $v.cashierId; - _reference = $v.reference; + _storeName = $v.storeName; _barcodeUrl = $v.barcodeUrl; - _expiresAt = $v.expiresAt; - _serviceName = $v.serviceName; _store = $v.store; - _storeName = $v.storeName; + _serviceName = $v.serviceName; + _expiresAt = $v.expiresAt; _type = $v.type; _object = $v.object; _$v = null; @@ -183,7 +182,6 @@ class PaymentMethodCashBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodCash other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodCash; @@ -200,14 +198,14 @@ class PaymentMethodCashBuilder _$PaymentMethodCash _build() { final _$result = _$v ?? new _$PaymentMethodCash._( + reference: reference, authCode: authCode, cashierId: cashierId, - reference: reference, + storeName: storeName, barcodeUrl: barcodeUrl, - expiresAt: expiresAt, - serviceName: serviceName, store: store, - storeName: storeName, + serviceName: serviceName, + expiresAt: expiresAt, type: type, object: BuiltValueNullFieldError.checkNotNull( object, r'PaymentMethodCash', 'object')); diff --git a/lib/src/model/payment_method_cash_request.dart b/lib/src/model/payment_method_cash_request.dart index 112a174..fb1ed69 100644 --- a/lib/src/model/payment_method_cash_request.dart +++ b/lib/src/model/payment_method_cash_request.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/customer_payment_method_request.dart'; -import 'package:conekta/src/model/payment_method_cash_request_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,7 +15,10 @@ part 'payment_method_cash_request.g.dart'; /// * [type] - Type of payment method /// * [expiresAt] @BuiltValue() -abstract class PaymentMethodCashRequest implements CustomerPaymentMethodRequest, PaymentMethodCashRequestAllOf, Built { +abstract class PaymentMethodCashRequest implements CustomerPaymentMethodRequest, Built { + @BuiltValueField(wireName: r'expires_at') + int? get expiresAt; + PaymentMethodCashRequest._(); factory PaymentMethodCashRequest([void updates(PaymentMethodCashRequestBuilder b)]) = _$PaymentMethodCashRequest; diff --git a/lib/src/model/payment_method_cash_request.g.dart b/lib/src/model/payment_method_cash_request.g.dart index 7be69f2..a210c43 100644 --- a/lib/src/model/payment_method_cash_request.g.dart +++ b/lib/src/model/payment_method_cash_request.g.dart @@ -7,16 +7,16 @@ part of 'payment_method_cash_request.dart'; // ************************************************************************** class _$PaymentMethodCashRequest extends PaymentMethodCashRequest { - @override - final String type; @override final int? expiresAt; + @override + final String type; factory _$PaymentMethodCashRequest( [void Function(PaymentMethodCashRequestBuilder)? updates]) => (new PaymentMethodCashRequestBuilder()..update(updates))._build(); - _$PaymentMethodCashRequest._({required this.type, this.expiresAt}) + _$PaymentMethodCashRequest._({this.expiresAt, required this.type}) : super._() { BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodCashRequest', 'type'); @@ -35,20 +35,20 @@ class _$PaymentMethodCashRequest extends PaymentMethodCashRequest { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodCashRequest && - type == other.type && - expiresAt == other.expiresAt; + expiresAt == other.expiresAt && + type == other.type; } @override int get hashCode { - return $jf($jc($jc(0, type.hashCode), expiresAt.hashCode)); + return $jf($jc($jc(0, expiresAt.hashCode), type.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodCashRequest') - ..add('type', type) - ..add('expiresAt', expiresAt)) + ..add('expiresAt', expiresAt) + ..add('type', type)) .toString(); } } @@ -56,18 +56,17 @@ class _$PaymentMethodCashRequest extends PaymentMethodCashRequest { class PaymentMethodCashRequestBuilder implements Builder, - CustomerPaymentMethodRequestBuilder, - PaymentMethodCashRequestAllOfBuilder { + CustomerPaymentMethodRequestBuilder { _$PaymentMethodCashRequest? _$v; - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - int? _expiresAt; int? get expiresAt => _$this._expiresAt; set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + PaymentMethodCashRequestBuilder() { PaymentMethodCashRequest._defaults(this); } @@ -75,15 +74,14 @@ class PaymentMethodCashRequestBuilder PaymentMethodCashRequestBuilder get _$this { final $v = _$v; if ($v != null) { - _type = $v.type; _expiresAt = $v.expiresAt; + _type = $v.type; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodCashRequest other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodCashRequest; @@ -100,9 +98,9 @@ class PaymentMethodCashRequestBuilder _$PaymentMethodCashRequest _build() { final _$result = _$v ?? new _$PaymentMethodCashRequest._( + expiresAt: expiresAt, type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCashRequest', 'type'), - expiresAt: expiresAt); + type, r'PaymentMethodCashRequest', 'type')); replace(_$result); return _$result; } diff --git a/lib/src/model/payment_method_cash_request_all_of.dart b/lib/src/model/payment_method_cash_request_all_of.dart deleted file mode 100644 index bfbcbcb..0000000 --- a/lib/src/model/payment_method_cash_request_all_of.dart +++ /dev/null @@ -1,141 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'payment_method_cash_request_all_of.g.dart'; - -/// PaymentMethodCashRequestAllOf -/// -/// Properties: -/// * [expiresAt] -@BuiltValue(instantiable: false) -abstract class PaymentMethodCashRequestAllOf { - @BuiltValueField(wireName: r'expires_at') - int? get expiresAt; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$PaymentMethodCashRequestAllOfSerializer(); -} - -class _$PaymentMethodCashRequestAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PaymentMethodCashRequestAllOf]; - - @override - final String wireName = r'PaymentMethodCashRequestAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - PaymentMethodCashRequestAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.expiresAt != null) { - yield r'expires_at'; - yield serializers.serialize( - object.expiresAt, - specifiedType: const FullType(int), - ); - } - } - - @override - Object serialize( - Serializers serializers, - PaymentMethodCashRequestAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - PaymentMethodCashRequestAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($PaymentMethodCashRequestAllOf)) as $PaymentMethodCashRequestAllOf; - } -} - -/// a concrete implementation of [PaymentMethodCashRequestAllOf], since [PaymentMethodCashRequestAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $PaymentMethodCashRequestAllOf implements PaymentMethodCashRequestAllOf, Built<$PaymentMethodCashRequestAllOf, $PaymentMethodCashRequestAllOfBuilder> { - $PaymentMethodCashRequestAllOf._(); - - factory $PaymentMethodCashRequestAllOf([void Function($PaymentMethodCashRequestAllOfBuilder)? updates]) = _$$PaymentMethodCashRequestAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PaymentMethodCashRequestAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$PaymentMethodCashRequestAllOf> get serializer => _$$PaymentMethodCashRequestAllOfSerializer(); -} - -class _$$PaymentMethodCashRequestAllOfSerializer implements PrimitiveSerializer<$PaymentMethodCashRequestAllOf> { - @override - final Iterable types = const [$PaymentMethodCashRequestAllOf, _$$PaymentMethodCashRequestAllOf]; - - @override - final String wireName = r'$PaymentMethodCashRequestAllOf'; - - @override - Object serialize( - Serializers serializers, - $PaymentMethodCashRequestAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(PaymentMethodCashRequestAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required PaymentMethodCashRequestAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'expires_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.expiresAt = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $PaymentMethodCashRequestAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $PaymentMethodCashRequestAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/payment_method_cash_request_all_of.g.dart b/lib/src/model/payment_method_cash_request_all_of.g.dart deleted file mode 100644 index 73bdff4..0000000 --- a/lib/src/model/payment_method_cash_request_all_of.g.dart +++ /dev/null @@ -1,101 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_cash_request_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodCashRequestAllOfBuilder { - void replace(PaymentMethodCashRequestAllOf other); - void update(void Function(PaymentMethodCashRequestAllOfBuilder) updates); - int? get expiresAt; - set expiresAt(int? expiresAt); -} - -class _$$PaymentMethodCashRequestAllOf extends $PaymentMethodCashRequestAllOf { - @override - final int? expiresAt; - - factory _$$PaymentMethodCashRequestAllOf( - [void Function($PaymentMethodCashRequestAllOfBuilder)? updates]) => - (new $PaymentMethodCashRequestAllOfBuilder()..update(updates))._build(); - - _$$PaymentMethodCashRequestAllOf._({this.expiresAt}) : super._(); - - @override - $PaymentMethodCashRequestAllOf rebuild( - void Function($PaymentMethodCashRequestAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodCashRequestAllOfBuilder toBuilder() => - new $PaymentMethodCashRequestAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethodCashRequestAllOf && - expiresAt == other.expiresAt; - } - - @override - int get hashCode { - return $jf($jc(0, expiresAt.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethodCashRequestAllOf') - ..add('expiresAt', expiresAt)) - .toString(); - } -} - -class $PaymentMethodCashRequestAllOfBuilder - implements - Builder<$PaymentMethodCashRequestAllOf, - $PaymentMethodCashRequestAllOfBuilder>, - PaymentMethodCashRequestAllOfBuilder { - _$$PaymentMethodCashRequestAllOf? _$v; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - - $PaymentMethodCashRequestAllOfBuilder() { - $PaymentMethodCashRequestAllOf._defaults(this); - } - - $PaymentMethodCashRequestAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _expiresAt = $v.expiresAt; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethodCashRequestAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethodCashRequestAllOf; - } - - @override - void update(void Function($PaymentMethodCashRequestAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethodCashRequestAllOf build() => _build(); - - _$$PaymentMethodCashRequestAllOf _build() { - final _$result = - _$v ?? new _$$PaymentMethodCashRequestAllOf._(expiresAt: expiresAt); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/payment_method_cash_response.dart b/lib/src/model/payment_method_cash_response.dart index 6dd97bd..2f45d98 100644 --- a/lib/src/model/payment_method_cash_response.dart +++ b/lib/src/model/payment_method_cash_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/payment_method_cash_response_all_of.dart'; import 'package:conekta/src/model/payment_method_response.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -24,7 +23,22 @@ part 'payment_method_cash_response.g.dart'; /// * [expiresAt] /// * [provider] @BuiltValue() -abstract class PaymentMethodCashResponse implements PaymentMethodCashResponseAllOf, PaymentMethodResponse, Built { +abstract class PaymentMethodCashResponse implements PaymentMethodResponse, Built { + @BuiltValueField(wireName: r'reference') + String? get reference; + + @BuiltValueField(wireName: r'provider') + String? get provider; + + @BuiltValueField(wireName: r'barcode_url') + String? get barcodeUrl; + + @BuiltValueField(wireName: r'barcode') + String? get barcode; + + @BuiltValueField(wireName: r'expires_at') + int? get expiresAt; + PaymentMethodCashResponse._(); factory PaymentMethodCashResponse([void updates(PaymentMethodCashResponseBuilder b)]) = _$PaymentMethodCashResponse; diff --git a/lib/src/model/payment_method_cash_response.g.dart b/lib/src/model/payment_method_cash_response.g.dart index 8f49450..ff4f67e 100644 --- a/lib/src/model/payment_method_cash_response.g.dart +++ b/lib/src/model/payment_method_cash_response.g.dart @@ -10,13 +10,13 @@ class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { @override final String? reference; @override - final String? barcode; + final String? provider; @override final String? barcodeUrl; @override - final int? expiresAt; + final String? barcode; @override - final String? provider; + final int? expiresAt; @override final String type; @override @@ -34,10 +34,10 @@ class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { _$PaymentMethodCashResponse._( {this.reference, - this.barcode, + this.provider, this.barcodeUrl, + this.barcode, this.expiresAt, - this.provider, required this.type, required this.id, required this.object, @@ -68,10 +68,10 @@ class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { if (identical(other, this)) return true; return other is PaymentMethodCashResponse && reference == other.reference && - barcode == other.barcode && + provider == other.provider && barcodeUrl == other.barcodeUrl && + barcode == other.barcode && expiresAt == other.expiresAt && - provider == other.provider && type == other.type && id == other.id && object == other.object && @@ -90,10 +90,10 @@ class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { $jc( $jc( $jc($jc(0, reference.hashCode), - barcode.hashCode), + provider.hashCode), barcodeUrl.hashCode), - expiresAt.hashCode), - provider.hashCode), + barcode.hashCode), + expiresAt.hashCode), type.hashCode), id.hashCode), object.hashCode), @@ -105,10 +105,10 @@ class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodCashResponse') ..add('reference', reference) - ..add('barcode', barcode) + ..add('provider', provider) ..add('barcodeUrl', barcodeUrl) + ..add('barcode', barcode) ..add('expiresAt', expiresAt) - ..add('provider', provider) ..add('type', type) ..add('id', id) ..add('object', object) @@ -121,7 +121,6 @@ class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { class PaymentMethodCashResponseBuilder implements Builder, - PaymentMethodCashResponseAllOfBuilder, PaymentMethodResponseBuilder { _$PaymentMethodCashResponse? _$v; @@ -129,23 +128,23 @@ class PaymentMethodCashResponseBuilder String? get reference => _$this._reference; set reference(covariant String? reference) => _$this._reference = reference; - String? _barcode; - String? get barcode => _$this._barcode; - set barcode(covariant String? barcode) => _$this._barcode = barcode; + String? _provider; + String? get provider => _$this._provider; + set provider(covariant String? provider) => _$this._provider = provider; String? _barcodeUrl; String? get barcodeUrl => _$this._barcodeUrl; set barcodeUrl(covariant String? barcodeUrl) => _$this._barcodeUrl = barcodeUrl; + String? _barcode; + String? get barcode => _$this._barcode; + set barcode(covariant String? barcode) => _$this._barcode = barcode; + int? _expiresAt; int? get expiresAt => _$this._expiresAt; set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - String? _provider; - String? get provider => _$this._provider; - set provider(covariant String? provider) => _$this._provider = provider; - String? _type; String? get type => _$this._type; set type(covariant String? type) => _$this._type = type; @@ -174,10 +173,10 @@ class PaymentMethodCashResponseBuilder final $v = _$v; if ($v != null) { _reference = $v.reference; - _barcode = $v.barcode; + _provider = $v.provider; _barcodeUrl = $v.barcodeUrl; + _barcode = $v.barcode; _expiresAt = $v.expiresAt; - _provider = $v.provider; _type = $v.type; _id = $v.id; _object = $v.object; @@ -189,7 +188,6 @@ class PaymentMethodCashResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodCashResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodCashResponse; @@ -207,10 +205,10 @@ class PaymentMethodCashResponseBuilder final _$result = _$v ?? new _$PaymentMethodCashResponse._( reference: reference, - barcode: barcode, + provider: provider, barcodeUrl: barcodeUrl, + barcode: barcode, expiresAt: expiresAt, - provider: provider, type: BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodCashResponse', 'type'), id: BuiltValueNullFieldError.checkNotNull( diff --git a/lib/src/model/payment_method_cash_response_all_of.dart b/lib/src/model/payment_method_cash_response_all_of.dart deleted file mode 100644 index b0c9562..0000000 --- a/lib/src/model/payment_method_cash_response_all_of.dart +++ /dev/null @@ -1,213 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'payment_method_cash_response_all_of.g.dart'; - -/// use for cash responses -/// -/// Properties: -/// * [reference] -/// * [barcode] -/// * [barcodeUrl] -/// * [expiresAt] -/// * [provider] -@BuiltValue(instantiable: false) -abstract class PaymentMethodCashResponseAllOf { - @BuiltValueField(wireName: r'reference') - String? get reference; - - @BuiltValueField(wireName: r'barcode') - String? get barcode; - - @BuiltValueField(wireName: r'barcode_url') - String? get barcodeUrl; - - @BuiltValueField(wireName: r'expires_at') - int? get expiresAt; - - @BuiltValueField(wireName: r'provider') - String? get provider; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$PaymentMethodCashResponseAllOfSerializer(); -} - -class _$PaymentMethodCashResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PaymentMethodCashResponseAllOf]; - - @override - final String wireName = r'PaymentMethodCashResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - PaymentMethodCashResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.reference != null) { - yield r'reference'; - yield serializers.serialize( - object.reference, - specifiedType: const FullType(String), - ); - } - if (object.barcode != null) { - yield r'barcode'; - yield serializers.serialize( - object.barcode, - specifiedType: const FullType(String), - ); - } - if (object.barcodeUrl != null) { - yield r'barcode_url'; - yield serializers.serialize( - object.barcodeUrl, - specifiedType: const FullType(String), - ); - } - if (object.expiresAt != null) { - yield r'expires_at'; - yield serializers.serialize( - object.expiresAt, - specifiedType: const FullType(int), - ); - } - if (object.provider != null) { - yield r'provider'; - yield serializers.serialize( - object.provider, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - PaymentMethodCashResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - PaymentMethodCashResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($PaymentMethodCashResponseAllOf)) as $PaymentMethodCashResponseAllOf; - } -} - -/// a concrete implementation of [PaymentMethodCashResponseAllOf], since [PaymentMethodCashResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $PaymentMethodCashResponseAllOf implements PaymentMethodCashResponseAllOf, Built<$PaymentMethodCashResponseAllOf, $PaymentMethodCashResponseAllOfBuilder> { - $PaymentMethodCashResponseAllOf._(); - - factory $PaymentMethodCashResponseAllOf([void Function($PaymentMethodCashResponseAllOfBuilder)? updates]) = _$$PaymentMethodCashResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PaymentMethodCashResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$PaymentMethodCashResponseAllOf> get serializer => _$$PaymentMethodCashResponseAllOfSerializer(); -} - -class _$$PaymentMethodCashResponseAllOfSerializer implements PrimitiveSerializer<$PaymentMethodCashResponseAllOf> { - @override - final Iterable types = const [$PaymentMethodCashResponseAllOf, _$$PaymentMethodCashResponseAllOf]; - - @override - final String wireName = r'$PaymentMethodCashResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $PaymentMethodCashResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(PaymentMethodCashResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required PaymentMethodCashResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'reference': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.reference = valueDes; - break; - case r'barcode': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.barcode = valueDes; - break; - case r'barcode_url': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.barcodeUrl = valueDes; - break; - case r'expires_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.expiresAt = valueDes; - break; - case r'provider': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.provider = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $PaymentMethodCashResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $PaymentMethodCashResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/payment_method_cash_response_all_of.g.dart b/lib/src/model/payment_method_cash_response_all_of.g.dart deleted file mode 100644 index 5656aa2..0000000 --- a/lib/src/model/payment_method_cash_response_all_of.g.dart +++ /dev/null @@ -1,167 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_cash_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodCashResponseAllOfBuilder { - void replace(PaymentMethodCashResponseAllOf other); - void update(void Function(PaymentMethodCashResponseAllOfBuilder) updates); - String? get reference; - set reference(String? reference); - - String? get barcode; - set barcode(String? barcode); - - String? get barcodeUrl; - set barcodeUrl(String? barcodeUrl); - - int? get expiresAt; - set expiresAt(int? expiresAt); - - String? get provider; - set provider(String? provider); -} - -class _$$PaymentMethodCashResponseAllOf - extends $PaymentMethodCashResponseAllOf { - @override - final String? reference; - @override - final String? barcode; - @override - final String? barcodeUrl; - @override - final int? expiresAt; - @override - final String? provider; - - factory _$$PaymentMethodCashResponseAllOf( - [void Function($PaymentMethodCashResponseAllOfBuilder)? updates]) => - (new $PaymentMethodCashResponseAllOfBuilder()..update(updates))._build(); - - _$$PaymentMethodCashResponseAllOf._( - {this.reference, - this.barcode, - this.barcodeUrl, - this.expiresAt, - this.provider}) - : super._(); - - @override - $PaymentMethodCashResponseAllOf rebuild( - void Function($PaymentMethodCashResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodCashResponseAllOfBuilder toBuilder() => - new $PaymentMethodCashResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethodCashResponseAllOf && - reference == other.reference && - barcode == other.barcode && - barcodeUrl == other.barcodeUrl && - expiresAt == other.expiresAt && - provider == other.provider; - } - - @override - int get hashCode { - return $jf($jc( - $jc( - $jc($jc($jc(0, reference.hashCode), barcode.hashCode), - barcodeUrl.hashCode), - expiresAt.hashCode), - provider.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethodCashResponseAllOf') - ..add('reference', reference) - ..add('barcode', barcode) - ..add('barcodeUrl', barcodeUrl) - ..add('expiresAt', expiresAt) - ..add('provider', provider)) - .toString(); - } -} - -class $PaymentMethodCashResponseAllOfBuilder - implements - Builder<$PaymentMethodCashResponseAllOf, - $PaymentMethodCashResponseAllOfBuilder>, - PaymentMethodCashResponseAllOfBuilder { - _$$PaymentMethodCashResponseAllOf? _$v; - - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - String? _barcode; - String? get barcode => _$this._barcode; - set barcode(covariant String? barcode) => _$this._barcode = barcode; - - String? _barcodeUrl; - String? get barcodeUrl => _$this._barcodeUrl; - set barcodeUrl(covariant String? barcodeUrl) => - _$this._barcodeUrl = barcodeUrl; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _provider; - String? get provider => _$this._provider; - set provider(covariant String? provider) => _$this._provider = provider; - - $PaymentMethodCashResponseAllOfBuilder() { - $PaymentMethodCashResponseAllOf._defaults(this); - } - - $PaymentMethodCashResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reference = $v.reference; - _barcode = $v.barcode; - _barcodeUrl = $v.barcodeUrl; - _expiresAt = $v.expiresAt; - _provider = $v.provider; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethodCashResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethodCashResponseAllOf; - } - - @override - void update(void Function($PaymentMethodCashResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethodCashResponseAllOf build() => _build(); - - _$$PaymentMethodCashResponseAllOf _build() { - final _$result = _$v ?? - new _$$PaymentMethodCashResponseAllOf._( - reference: reference, - barcode: barcode, - barcodeUrl: barcodeUrl, - expiresAt: expiresAt, - provider: provider); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/payment_method_spei_recurrent.dart b/lib/src/model/payment_method_spei_recurrent.dart index 83c77b4..ed7b4e8 100644 --- a/lib/src/model/payment_method_spei_recurrent.dart +++ b/lib/src/model/payment_method_spei_recurrent.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/payment_method_spei_recurrent_all_of.dart'; import 'package:conekta/src/model/payment_method_response.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -21,7 +20,13 @@ part 'payment_method_spei_recurrent.g.dart'; /// * [reference] /// * [expiresAt] @BuiltValue() -abstract class PaymentMethodSpeiRecurrent implements PaymentMethodResponse, PaymentMethodSpeiRecurrentAllOf, Built { +abstract class PaymentMethodSpeiRecurrent implements PaymentMethodResponse, Built { + @BuiltValueField(wireName: r'reference') + String? get reference; + + @BuiltValueField(wireName: r'expires_at') + String? get expiresAt; + PaymentMethodSpeiRecurrent._(); factory PaymentMethodSpeiRecurrent([void updates(PaymentMethodSpeiRecurrentBuilder b)]) = _$PaymentMethodSpeiRecurrent; diff --git a/lib/src/model/payment_method_spei_recurrent.g.dart b/lib/src/model/payment_method_spei_recurrent.g.dart index 36788a4..05eb592 100644 --- a/lib/src/model/payment_method_spei_recurrent.g.dart +++ b/lib/src/model/payment_method_spei_recurrent.g.dart @@ -7,6 +7,10 @@ part of 'payment_method_spei_recurrent.dart'; // ************************************************************************** class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { + @override + final String? reference; + @override + final String? expiresAt; @override final String type; @override @@ -17,23 +21,19 @@ class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { final int createdAt; @override final String? parentId; - @override - final String? reference; - @override - final String? expiresAt; factory _$PaymentMethodSpeiRecurrent( [void Function(PaymentMethodSpeiRecurrentBuilder)? updates]) => (new PaymentMethodSpeiRecurrentBuilder()..update(updates))._build(); _$PaymentMethodSpeiRecurrent._( - {required this.type, + {this.reference, + this.expiresAt, + required this.type, required this.id, required this.object, required this.createdAt, - this.parentId, - this.reference, - this.expiresAt}) + this.parentId}) : super._() { BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodSpeiRecurrent', 'type'); @@ -58,13 +58,13 @@ class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodSpeiRecurrent && + reference == other.reference && + expiresAt == other.expiresAt && type == other.type && id == other.id && object == other.object && createdAt == other.createdAt && - parentId == other.parentId && - reference == other.reference && - expiresAt == other.expiresAt; + parentId == other.parentId; } @override @@ -73,24 +73,24 @@ class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { $jc( $jc( $jc( - $jc($jc($jc(0, type.hashCode), id.hashCode), - object.hashCode), - createdAt.hashCode), - parentId.hashCode), - reference.hashCode), - expiresAt.hashCode)); + $jc($jc($jc(0, reference.hashCode), expiresAt.hashCode), + type.hashCode), + id.hashCode), + object.hashCode), + createdAt.hashCode), + parentId.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodSpeiRecurrent') + ..add('reference', reference) + ..add('expiresAt', expiresAt) ..add('type', type) ..add('id', id) ..add('object', object) ..add('createdAt', createdAt) - ..add('parentId', parentId) - ..add('reference', reference) - ..add('expiresAt', expiresAt)) + ..add('parentId', parentId)) .toString(); } } @@ -98,10 +98,17 @@ class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { class PaymentMethodSpeiRecurrentBuilder implements Builder, - PaymentMethodResponseBuilder, - PaymentMethodSpeiRecurrentAllOfBuilder { + PaymentMethodResponseBuilder { _$PaymentMethodSpeiRecurrent? _$v; + String? _reference; + String? get reference => _$this._reference; + set reference(covariant String? reference) => _$this._reference = reference; + + String? _expiresAt; + String? get expiresAt => _$this._expiresAt; + set expiresAt(covariant String? expiresAt) => _$this._expiresAt = expiresAt; + String? _type; String? get type => _$this._type; set type(covariant String? type) => _$this._type = type; @@ -122,14 +129,6 @@ class PaymentMethodSpeiRecurrentBuilder String? get parentId => _$this._parentId; set parentId(covariant String? parentId) => _$this._parentId = parentId; - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - String? _expiresAt; - String? get expiresAt => _$this._expiresAt; - set expiresAt(covariant String? expiresAt) => _$this._expiresAt = expiresAt; - PaymentMethodSpeiRecurrentBuilder() { PaymentMethodSpeiRecurrent._defaults(this); } @@ -137,20 +136,19 @@ class PaymentMethodSpeiRecurrentBuilder PaymentMethodSpeiRecurrentBuilder get _$this { final $v = _$v; if ($v != null) { + _reference = $v.reference; + _expiresAt = $v.expiresAt; _type = $v.type; _id = $v.id; _object = $v.object; _createdAt = $v.createdAt; _parentId = $v.parentId; - _reference = $v.reference; - _expiresAt = $v.expiresAt; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodSpeiRecurrent other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodSpeiRecurrent; @@ -167,6 +165,8 @@ class PaymentMethodSpeiRecurrentBuilder _$PaymentMethodSpeiRecurrent _build() { final _$result = _$v ?? new _$PaymentMethodSpeiRecurrent._( + reference: reference, + expiresAt: expiresAt, type: BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodSpeiRecurrent', 'type'), id: BuiltValueNullFieldError.checkNotNull( @@ -175,9 +175,7 @@ class PaymentMethodSpeiRecurrentBuilder object, r'PaymentMethodSpeiRecurrent', 'object'), createdAt: BuiltValueNullFieldError.checkNotNull( createdAt, r'PaymentMethodSpeiRecurrent', 'createdAt'), - parentId: parentId, - reference: reference, - expiresAt: expiresAt); + parentId: parentId); replace(_$result); return _$result; } diff --git a/lib/src/model/payment_method_spei_recurrent_all_of.dart b/lib/src/model/payment_method_spei_recurrent_all_of.dart deleted file mode 100644 index f65635b..0000000 --- a/lib/src/model/payment_method_spei_recurrent_all_of.dart +++ /dev/null @@ -1,159 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'payment_method_spei_recurrent_all_of.g.dart'; - -/// use for spei responses -/// -/// Properties: -/// * [reference] -/// * [expiresAt] -@BuiltValue(instantiable: false) -abstract class PaymentMethodSpeiRecurrentAllOf { - @BuiltValueField(wireName: r'reference') - String? get reference; - - @BuiltValueField(wireName: r'expires_at') - String? get expiresAt; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$PaymentMethodSpeiRecurrentAllOfSerializer(); -} - -class _$PaymentMethodSpeiRecurrentAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PaymentMethodSpeiRecurrentAllOf]; - - @override - final String wireName = r'PaymentMethodSpeiRecurrentAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - PaymentMethodSpeiRecurrentAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.reference != null) { - yield r'reference'; - yield serializers.serialize( - object.reference, - specifiedType: const FullType(String), - ); - } - if (object.expiresAt != null) { - yield r'expires_at'; - yield serializers.serialize( - object.expiresAt, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - PaymentMethodSpeiRecurrentAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - PaymentMethodSpeiRecurrentAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($PaymentMethodSpeiRecurrentAllOf)) as $PaymentMethodSpeiRecurrentAllOf; - } -} - -/// a concrete implementation of [PaymentMethodSpeiRecurrentAllOf], since [PaymentMethodSpeiRecurrentAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $PaymentMethodSpeiRecurrentAllOf implements PaymentMethodSpeiRecurrentAllOf, Built<$PaymentMethodSpeiRecurrentAllOf, $PaymentMethodSpeiRecurrentAllOfBuilder> { - $PaymentMethodSpeiRecurrentAllOf._(); - - factory $PaymentMethodSpeiRecurrentAllOf([void Function($PaymentMethodSpeiRecurrentAllOfBuilder)? updates]) = _$$PaymentMethodSpeiRecurrentAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PaymentMethodSpeiRecurrentAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$PaymentMethodSpeiRecurrentAllOf> get serializer => _$$PaymentMethodSpeiRecurrentAllOfSerializer(); -} - -class _$$PaymentMethodSpeiRecurrentAllOfSerializer implements PrimitiveSerializer<$PaymentMethodSpeiRecurrentAllOf> { - @override - final Iterable types = const [$PaymentMethodSpeiRecurrentAllOf, _$$PaymentMethodSpeiRecurrentAllOf]; - - @override - final String wireName = r'$PaymentMethodSpeiRecurrentAllOf'; - - @override - Object serialize( - Serializers serializers, - $PaymentMethodSpeiRecurrentAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(PaymentMethodSpeiRecurrentAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required PaymentMethodSpeiRecurrentAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'reference': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.reference = valueDes; - break; - case r'expires_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.expiresAt = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $PaymentMethodSpeiRecurrentAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $PaymentMethodSpeiRecurrentAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/payment_method_spei_recurrent_all_of.g.dart b/lib/src/model/payment_method_spei_recurrent_all_of.g.dart deleted file mode 100644 index 6e6f6d0..0000000 --- a/lib/src/model/payment_method_spei_recurrent_all_of.g.dart +++ /dev/null @@ -1,116 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_spei_recurrent_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodSpeiRecurrentAllOfBuilder { - void replace(PaymentMethodSpeiRecurrentAllOf other); - void update(void Function(PaymentMethodSpeiRecurrentAllOfBuilder) updates); - String? get reference; - set reference(String? reference); - - String? get expiresAt; - set expiresAt(String? expiresAt); -} - -class _$$PaymentMethodSpeiRecurrentAllOf - extends $PaymentMethodSpeiRecurrentAllOf { - @override - final String? reference; - @override - final String? expiresAt; - - factory _$$PaymentMethodSpeiRecurrentAllOf( - [void Function($PaymentMethodSpeiRecurrentAllOfBuilder)? updates]) => - (new $PaymentMethodSpeiRecurrentAllOfBuilder()..update(updates))._build(); - - _$$PaymentMethodSpeiRecurrentAllOf._({this.reference, this.expiresAt}) - : super._(); - - @override - $PaymentMethodSpeiRecurrentAllOf rebuild( - void Function($PaymentMethodSpeiRecurrentAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodSpeiRecurrentAllOfBuilder toBuilder() => - new $PaymentMethodSpeiRecurrentAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethodSpeiRecurrentAllOf && - reference == other.reference && - expiresAt == other.expiresAt; - } - - @override - int get hashCode { - return $jf($jc($jc(0, reference.hashCode), expiresAt.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethodSpeiRecurrentAllOf') - ..add('reference', reference) - ..add('expiresAt', expiresAt)) - .toString(); - } -} - -class $PaymentMethodSpeiRecurrentAllOfBuilder - implements - Builder<$PaymentMethodSpeiRecurrentAllOf, - $PaymentMethodSpeiRecurrentAllOfBuilder>, - PaymentMethodSpeiRecurrentAllOfBuilder { - _$$PaymentMethodSpeiRecurrentAllOf? _$v; - - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - String? _expiresAt; - String? get expiresAt => _$this._expiresAt; - set expiresAt(covariant String? expiresAt) => _$this._expiresAt = expiresAt; - - $PaymentMethodSpeiRecurrentAllOfBuilder() { - $PaymentMethodSpeiRecurrentAllOf._defaults(this); - } - - $PaymentMethodSpeiRecurrentAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reference = $v.reference; - _expiresAt = $v.expiresAt; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethodSpeiRecurrentAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethodSpeiRecurrentAllOf; - } - - @override - void update(void Function($PaymentMethodSpeiRecurrentAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethodSpeiRecurrentAllOf build() => _build(); - - _$$PaymentMethodSpeiRecurrentAllOf _build() { - final _$result = _$v ?? - new _$$PaymentMethodSpeiRecurrentAllOf._( - reference: reference, expiresAt: expiresAt); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/payment_method_spei_request.dart b/lib/src/model/payment_method_spei_request.dart index 4147007..b5d2068 100644 --- a/lib/src/model/payment_method_spei_request.dart +++ b/lib/src/model/payment_method_spei_request.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/customer_payment_method_request.dart'; -import 'package:conekta/src/model/payment_method_cash_request_all_of.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,7 +15,10 @@ part 'payment_method_spei_request.g.dart'; /// * [type] - Type of payment method /// * [expiresAt] @BuiltValue() -abstract class PaymentMethodSpeiRequest implements CustomerPaymentMethodRequest, PaymentMethodCashRequestAllOf, Built { +abstract class PaymentMethodSpeiRequest implements CustomerPaymentMethodRequest, Built { + @BuiltValueField(wireName: r'expires_at') + int? get expiresAt; + PaymentMethodSpeiRequest._(); factory PaymentMethodSpeiRequest([void updates(PaymentMethodSpeiRequestBuilder b)]) = _$PaymentMethodSpeiRequest; diff --git a/lib/src/model/payment_method_spei_request.g.dart b/lib/src/model/payment_method_spei_request.g.dart index 779a5db..7669f9c 100644 --- a/lib/src/model/payment_method_spei_request.g.dart +++ b/lib/src/model/payment_method_spei_request.g.dart @@ -7,16 +7,16 @@ part of 'payment_method_spei_request.dart'; // ************************************************************************** class _$PaymentMethodSpeiRequest extends PaymentMethodSpeiRequest { - @override - final String type; @override final int? expiresAt; + @override + final String type; factory _$PaymentMethodSpeiRequest( [void Function(PaymentMethodSpeiRequestBuilder)? updates]) => (new PaymentMethodSpeiRequestBuilder()..update(updates))._build(); - _$PaymentMethodSpeiRequest._({required this.type, this.expiresAt}) + _$PaymentMethodSpeiRequest._({this.expiresAt, required this.type}) : super._() { BuiltValueNullFieldError.checkNotNull( type, r'PaymentMethodSpeiRequest', 'type'); @@ -35,20 +35,20 @@ class _$PaymentMethodSpeiRequest extends PaymentMethodSpeiRequest { bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentMethodSpeiRequest && - type == other.type && - expiresAt == other.expiresAt; + expiresAt == other.expiresAt && + type == other.type; } @override int get hashCode { - return $jf($jc($jc(0, type.hashCode), expiresAt.hashCode)); + return $jf($jc($jc(0, expiresAt.hashCode), type.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentMethodSpeiRequest') - ..add('type', type) - ..add('expiresAt', expiresAt)) + ..add('expiresAt', expiresAt) + ..add('type', type)) .toString(); } } @@ -56,18 +56,17 @@ class _$PaymentMethodSpeiRequest extends PaymentMethodSpeiRequest { class PaymentMethodSpeiRequestBuilder implements Builder, - CustomerPaymentMethodRequestBuilder, - PaymentMethodCashRequestAllOfBuilder { + CustomerPaymentMethodRequestBuilder { _$PaymentMethodSpeiRequest? _$v; - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - int? _expiresAt; int? get expiresAt => _$this._expiresAt; set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + PaymentMethodSpeiRequestBuilder() { PaymentMethodSpeiRequest._defaults(this); } @@ -75,15 +74,14 @@ class PaymentMethodSpeiRequestBuilder PaymentMethodSpeiRequestBuilder get _$this { final $v = _$v; if ($v != null) { - _type = $v.type; _expiresAt = $v.expiresAt; + _type = $v.type; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant PaymentMethodSpeiRequest other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentMethodSpeiRequest; @@ -100,9 +98,9 @@ class PaymentMethodSpeiRequestBuilder _$PaymentMethodSpeiRequest _build() { final _$result = _$v ?? new _$PaymentMethodSpeiRequest._( + expiresAt: expiresAt, type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodSpeiRequest', 'type'), - expiresAt: expiresAt); + type, r'PaymentMethodSpeiRequest', 'type')); replace(_$result); return _$result; } diff --git a/lib/src/model/product_data_response.dart b/lib/src/model/product_data_response.dart index 835f55c..824ac04 100644 --- a/lib/src/model/product_data_response.dart +++ b/lib/src/model/product_data_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/product_data_response_all_of.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/product.dart'; import 'package:built_value/json_object.dart'; @@ -28,7 +27,16 @@ part 'product_data_response.g.dart'; /// * [object] /// * [parentId] @BuiltValue() -abstract class ProductDataResponse implements Product, ProductDataResponseAllOf, Built { +abstract class ProductDataResponse implements Product, Built { + @BuiltValueField(wireName: r'id') + String? get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String? get object; + ProductDataResponse._(); factory ProductDataResponse([void updates(ProductDataResponseBuilder b)]) = _$ProductDataResponse; @@ -69,6 +77,11 @@ class _$ProductDataResponseSerializer implements PrimitiveSerializer; - result.tags.replace(valueDes); + result.name = valueDes; break; - case r'name': + case r'description': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.name = valueDes; + result.description = valueDes; break; case r'id': final valueDes = serializers.deserialize( @@ -230,6 +224,13 @@ class _$ProductDataResponseSerializer implements PrimitiveSerializer; + result.tags.replace(valueDes); + break; default: unhandled.add(key); unhandled.add(value); diff --git a/lib/src/model/product_data_response.g.dart b/lib/src/model/product_data_response.g.dart index 47fb5a1..fdad0da 100644 --- a/lib/src/model/product_data_response.g.dart +++ b/lib/src/model/product_data_response.g.dart @@ -7,6 +7,12 @@ part of 'product_data_response.dart'; // ************************************************************************** class _$ProductDataResponse extends ProductDataResponse { + @override + final String? id; + @override + final String? parentId; + @override + final String? object; @override final BuiltMap? antifraudInfo; @override @@ -25,19 +31,16 @@ class _$ProductDataResponse extends ProductDataResponse { final BuiltList? tags; @override final int unitPrice; - @override - final String? id; - @override - final String? object; - @override - final String? parentId; factory _$ProductDataResponse( [void Function(ProductDataResponseBuilder)? updates]) => (new ProductDataResponseBuilder()..update(updates))._build(); _$ProductDataResponse._( - {this.antifraudInfo, + {this.id, + this.parentId, + this.object, + this.antifraudInfo, this.brand, this.description, this.metadata, @@ -45,10 +48,7 @@ class _$ProductDataResponse extends ProductDataResponse { required this.quantity, this.sku, this.tags, - required this.unitPrice, - this.id, - this.object, - this.parentId}) + required this.unitPrice}) : super._() { BuiltValueNullFieldError.checkNotNull(name, r'ProductDataResponse', 'name'); BuiltValueNullFieldError.checkNotNull( @@ -70,6 +70,9 @@ class _$ProductDataResponse extends ProductDataResponse { bool operator ==(Object other) { if (identical(other, this)) return true; return other is ProductDataResponse && + id == other.id && + parentId == other.parentId && + object == other.object && antifraudInfo == other.antifraudInfo && brand == other.brand && description == other.description && @@ -78,10 +81,7 @@ class _$ProductDataResponse extends ProductDataResponse { quantity == other.quantity && sku == other.sku && tags == other.tags && - unitPrice == other.unitPrice && - id == other.id && - object == other.object && - parentId == other.parentId; + unitPrice == other.unitPrice; } @override @@ -96,23 +96,26 @@ class _$ProductDataResponse extends ProductDataResponse { $jc( $jc( $jc( - $jc($jc(0, antifraudInfo.hashCode), - brand.hashCode), - description.hashCode), - metadata.hashCode), - name.hashCode), - quantity.hashCode), - sku.hashCode), - tags.hashCode), - unitPrice.hashCode), - id.hashCode), - object.hashCode), - parentId.hashCode)); + $jc($jc(0, id.hashCode), + parentId.hashCode), + object.hashCode), + antifraudInfo.hashCode), + brand.hashCode), + description.hashCode), + metadata.hashCode), + name.hashCode), + quantity.hashCode), + sku.hashCode), + tags.hashCode), + unitPrice.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'ProductDataResponse') + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) ..add('antifraudInfo', antifraudInfo) ..add('brand', brand) ..add('description', description) @@ -121,10 +124,7 @@ class _$ProductDataResponse extends ProductDataResponse { ..add('quantity', quantity) ..add('sku', sku) ..add('tags', tags) - ..add('unitPrice', unitPrice) - ..add('id', id) - ..add('object', object) - ..add('parentId', parentId)) + ..add('unitPrice', unitPrice)) .toString(); } } @@ -132,10 +132,21 @@ class _$ProductDataResponse extends ProductDataResponse { class ProductDataResponseBuilder implements Builder, - ProductBuilder, - ProductDataResponseAllOfBuilder { + ProductBuilder { _$ProductDataResponse? _$v; + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + String? _parentId; + String? get parentId => _$this._parentId; + set parentId(covariant String? parentId) => _$this._parentId = parentId; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + MapBuilder? _antifraudInfo; MapBuilder get antifraudInfo => _$this._antifraudInfo ??= new MapBuilder(); @@ -177,18 +188,6 @@ class ProductDataResponseBuilder int? get unitPrice => _$this._unitPrice; set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - ProductDataResponseBuilder() { ProductDataResponse._defaults(this); } @@ -196,6 +195,9 @@ class ProductDataResponseBuilder ProductDataResponseBuilder get _$this { final $v = _$v; if ($v != null) { + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; _antifraudInfo = $v.antifraudInfo?.toBuilder(); _brand = $v.brand; _description = $v.description; @@ -205,16 +207,12 @@ class ProductDataResponseBuilder _sku = $v.sku; _tags = $v.tags?.toBuilder(); _unitPrice = $v.unitPrice; - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant ProductDataResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$ProductDataResponse; @@ -233,6 +231,9 @@ class ProductDataResponseBuilder try { _$result = _$v ?? new _$ProductDataResponse._( + id: id, + parentId: parentId, + object: object, antifraudInfo: _antifraudInfo?.build(), brand: brand, description: description, @@ -244,10 +245,7 @@ class ProductDataResponseBuilder sku: sku, tags: _tags?.build(), unitPrice: BuiltValueNullFieldError.checkNotNull( - unitPrice, r'ProductDataResponse', 'unitPrice'), - id: id, - object: object, - parentId: parentId); + unitPrice, r'ProductDataResponse', 'unitPrice')); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/product_data_response_all_of.dart b/lib/src/model/product_data_response_all_of.dart deleted file mode 100644 index b64953a..0000000 --- a/lib/src/model/product_data_response_all_of.dart +++ /dev/null @@ -1,177 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'product_data_response_all_of.g.dart'; - -/// ProductDataResponseAllOf -/// -/// Properties: -/// * [id] -/// * [object] -/// * [parentId] -@BuiltValue(instantiable: false) -abstract class ProductDataResponseAllOf { - @BuiltValueField(wireName: r'id') - String? get id; - - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueField(wireName: r'parent_id') - String? get parentId; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ProductDataResponseAllOfSerializer(); -} - -class _$ProductDataResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ProductDataResponseAllOf]; - - @override - final String wireName = r'ProductDataResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - ProductDataResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.id != null) { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - } - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - if (object.parentId != null) { - yield r'parent_id'; - yield serializers.serialize( - object.parentId, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ProductDataResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ProductDataResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ProductDataResponseAllOf)) as $ProductDataResponseAllOf; - } -} - -/// a concrete implementation of [ProductDataResponseAllOf], since [ProductDataResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ProductDataResponseAllOf implements ProductDataResponseAllOf, Built<$ProductDataResponseAllOf, $ProductDataResponseAllOfBuilder> { - $ProductDataResponseAllOf._(); - - factory $ProductDataResponseAllOf([void Function($ProductDataResponseAllOfBuilder)? updates]) = _$$ProductDataResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ProductDataResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ProductDataResponseAllOf> get serializer => _$$ProductDataResponseAllOfSerializer(); -} - -class _$$ProductDataResponseAllOfSerializer implements PrimitiveSerializer<$ProductDataResponseAllOf> { - @override - final Iterable types = const [$ProductDataResponseAllOf, _$$ProductDataResponseAllOf]; - - @override - final String wireName = r'$ProductDataResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $ProductDataResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ProductDataResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ProductDataResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'parent_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.parentId = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ProductDataResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ProductDataResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/product_data_response_all_of.g.dart b/lib/src/model/product_data_response_all_of.g.dart deleted file mode 100644 index 372c233..0000000 --- a/lib/src/model/product_data_response_all_of.g.dart +++ /dev/null @@ -1,127 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'product_data_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ProductDataResponseAllOfBuilder { - void replace(ProductDataResponseAllOf other); - void update(void Function(ProductDataResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - String? get parentId; - set parentId(String? parentId); -} - -class _$$ProductDataResponseAllOf extends $ProductDataResponseAllOf { - @override - final String? id; - @override - final String? object; - @override - final String? parentId; - - factory _$$ProductDataResponseAllOf( - [void Function($ProductDataResponseAllOfBuilder)? updates]) => - (new $ProductDataResponseAllOfBuilder()..update(updates))._build(); - - _$$ProductDataResponseAllOf._({this.id, this.object, this.parentId}) - : super._(); - - @override - $ProductDataResponseAllOf rebuild( - void Function($ProductDataResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ProductDataResponseAllOfBuilder toBuilder() => - new $ProductDataResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ProductDataResponseAllOf && - id == other.id && - object == other.object && - parentId == other.parentId; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, id.hashCode), object.hashCode), parentId.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ProductDataResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('parentId', parentId)) - .toString(); - } -} - -class $ProductDataResponseAllOfBuilder - implements - Builder<$ProductDataResponseAllOf, $ProductDataResponseAllOfBuilder>, - ProductDataResponseAllOfBuilder { - _$$ProductDataResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - $ProductDataResponseAllOfBuilder() { - $ProductDataResponseAllOf._defaults(this); - } - - $ProductDataResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ProductDataResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ProductDataResponseAllOf; - } - - @override - void update(void Function($ProductDataResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ProductDataResponseAllOf build() => _build(); - - _$$ProductDataResponseAllOf _build() { - final _$result = _$v ?? - new _$$ProductDataResponseAllOf._( - id: id, object: object, parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/product_order_response.dart b/lib/src/model/product_order_response.dart index 0daf337..6bdd8f6 100644 --- a/lib/src/model/product_order_response.dart +++ b/lib/src/model/product_order_response.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/product_order_response_all_of.dart'; import 'package:conekta/src/model/product.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; @@ -28,7 +27,16 @@ part 'product_order_response.g.dart'; /// * [object] /// * [parentId] @BuiltValue() -abstract class ProductOrderResponse implements Product, ProductOrderResponseAllOf, Built { +abstract class ProductOrderResponse implements Product, Built { + @BuiltValueField(wireName: r'id') + String? get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String? get object; + ProductOrderResponse._(); factory ProductOrderResponse([void updates(ProductOrderResponseBuilder b)]) = _$ProductOrderResponse; @@ -69,6 +77,11 @@ class _$ProductOrderResponseSerializer implements PrimitiveSerializer; - result.tags.replace(valueDes); + result.name = valueDes; break; - case r'name': + case r'description': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.name = valueDes; + result.description = valueDes; break; case r'id': final valueDes = serializers.deserialize( @@ -230,6 +224,13 @@ class _$ProductOrderResponseSerializer implements PrimitiveSerializer; + result.tags.replace(valueDes); + break; default: unhandled.add(key); unhandled.add(value); diff --git a/lib/src/model/product_order_response.g.dart b/lib/src/model/product_order_response.g.dart index 29e38a4..6be0c99 100644 --- a/lib/src/model/product_order_response.g.dart +++ b/lib/src/model/product_order_response.g.dart @@ -7,6 +7,12 @@ part of 'product_order_response.dart'; // ************************************************************************** class _$ProductOrderResponse extends ProductOrderResponse { + @override + final String? id; + @override + final String? parentId; + @override + final String? object; @override final BuiltMap? antifraudInfo; @override @@ -25,19 +31,16 @@ class _$ProductOrderResponse extends ProductOrderResponse { final BuiltList? tags; @override final int unitPrice; - @override - final String? id; - @override - final String? object; - @override - final String? parentId; factory _$ProductOrderResponse( [void Function(ProductOrderResponseBuilder)? updates]) => (new ProductOrderResponseBuilder()..update(updates))._build(); _$ProductOrderResponse._( - {this.antifraudInfo, + {this.id, + this.parentId, + this.object, + this.antifraudInfo, this.brand, this.description, this.metadata, @@ -45,10 +48,7 @@ class _$ProductOrderResponse extends ProductOrderResponse { required this.quantity, this.sku, this.tags, - required this.unitPrice, - this.id, - this.object, - this.parentId}) + required this.unitPrice}) : super._() { BuiltValueNullFieldError.checkNotNull( name, r'ProductOrderResponse', 'name'); @@ -71,6 +71,9 @@ class _$ProductOrderResponse extends ProductOrderResponse { bool operator ==(Object other) { if (identical(other, this)) return true; return other is ProductOrderResponse && + id == other.id && + parentId == other.parentId && + object == other.object && antifraudInfo == other.antifraudInfo && brand == other.brand && description == other.description && @@ -79,10 +82,7 @@ class _$ProductOrderResponse extends ProductOrderResponse { quantity == other.quantity && sku == other.sku && tags == other.tags && - unitPrice == other.unitPrice && - id == other.id && - object == other.object && - parentId == other.parentId; + unitPrice == other.unitPrice; } @override @@ -97,23 +97,26 @@ class _$ProductOrderResponse extends ProductOrderResponse { $jc( $jc( $jc( - $jc($jc(0, antifraudInfo.hashCode), - brand.hashCode), - description.hashCode), - metadata.hashCode), - name.hashCode), - quantity.hashCode), - sku.hashCode), - tags.hashCode), - unitPrice.hashCode), - id.hashCode), - object.hashCode), - parentId.hashCode)); + $jc($jc(0, id.hashCode), + parentId.hashCode), + object.hashCode), + antifraudInfo.hashCode), + brand.hashCode), + description.hashCode), + metadata.hashCode), + name.hashCode), + quantity.hashCode), + sku.hashCode), + tags.hashCode), + unitPrice.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'ProductOrderResponse') + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) ..add('antifraudInfo', antifraudInfo) ..add('brand', brand) ..add('description', description) @@ -122,10 +125,7 @@ class _$ProductOrderResponse extends ProductOrderResponse { ..add('quantity', quantity) ..add('sku', sku) ..add('tags', tags) - ..add('unitPrice', unitPrice) - ..add('id', id) - ..add('object', object) - ..add('parentId', parentId)) + ..add('unitPrice', unitPrice)) .toString(); } } @@ -133,10 +133,21 @@ class _$ProductOrderResponse extends ProductOrderResponse { class ProductOrderResponseBuilder implements Builder, - ProductBuilder, - ProductOrderResponseAllOfBuilder { + ProductBuilder { _$ProductOrderResponse? _$v; + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + String? _parentId; + String? get parentId => _$this._parentId; + set parentId(covariant String? parentId) => _$this._parentId = parentId; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + MapBuilder? _antifraudInfo; MapBuilder get antifraudInfo => _$this._antifraudInfo ??= new MapBuilder(); @@ -178,18 +189,6 @@ class ProductOrderResponseBuilder int? get unitPrice => _$this._unitPrice; set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - ProductOrderResponseBuilder() { ProductOrderResponse._defaults(this); } @@ -197,6 +196,9 @@ class ProductOrderResponseBuilder ProductOrderResponseBuilder get _$this { final $v = _$v; if ($v != null) { + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; _antifraudInfo = $v.antifraudInfo?.toBuilder(); _brand = $v.brand; _description = $v.description; @@ -206,16 +208,12 @@ class ProductOrderResponseBuilder _sku = $v.sku; _tags = $v.tags?.toBuilder(); _unitPrice = $v.unitPrice; - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant ProductOrderResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$ProductOrderResponse; @@ -234,6 +232,9 @@ class ProductOrderResponseBuilder try { _$result = _$v ?? new _$ProductOrderResponse._( + id: id, + parentId: parentId, + object: object, antifraudInfo: _antifraudInfo?.build(), brand: brand, description: description, @@ -245,10 +246,7 @@ class ProductOrderResponseBuilder sku: sku, tags: _tags?.build(), unitPrice: BuiltValueNullFieldError.checkNotNull( - unitPrice, r'ProductOrderResponse', 'unitPrice'), - id: id, - object: object, - parentId: parentId); + unitPrice, r'ProductOrderResponse', 'unitPrice')); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/product_order_response_all_of.dart b/lib/src/model/product_order_response_all_of.dart deleted file mode 100644 index 6a45bec..0000000 --- a/lib/src/model/product_order_response_all_of.dart +++ /dev/null @@ -1,177 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'product_order_response_all_of.g.dart'; - -/// ProductOrderResponseAllOf -/// -/// Properties: -/// * [id] -/// * [object] -/// * [parentId] -@BuiltValue(instantiable: false) -abstract class ProductOrderResponseAllOf { - @BuiltValueField(wireName: r'id') - String? get id; - - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueField(wireName: r'parent_id') - String? get parentId; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$ProductOrderResponseAllOfSerializer(); -} - -class _$ProductOrderResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ProductOrderResponseAllOf]; - - @override - final String wireName = r'ProductOrderResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - ProductOrderResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.id != null) { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - } - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - if (object.parentId != null) { - yield r'parent_id'; - yield serializers.serialize( - object.parentId, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - ProductOrderResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - ProductOrderResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($ProductOrderResponseAllOf)) as $ProductOrderResponseAllOf; - } -} - -/// a concrete implementation of [ProductOrderResponseAllOf], since [ProductOrderResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $ProductOrderResponseAllOf implements ProductOrderResponseAllOf, Built<$ProductOrderResponseAllOf, $ProductOrderResponseAllOfBuilder> { - $ProductOrderResponseAllOf._(); - - factory $ProductOrderResponseAllOf([void Function($ProductOrderResponseAllOfBuilder)? updates]) = _$$ProductOrderResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ProductOrderResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$ProductOrderResponseAllOf> get serializer => _$$ProductOrderResponseAllOfSerializer(); -} - -class _$$ProductOrderResponseAllOfSerializer implements PrimitiveSerializer<$ProductOrderResponseAllOf> { - @override - final Iterable types = const [$ProductOrderResponseAllOf, _$$ProductOrderResponseAllOf]; - - @override - final String wireName = r'$ProductOrderResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $ProductOrderResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(ProductOrderResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required ProductOrderResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'parent_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.parentId = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $ProductOrderResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $ProductOrderResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/product_order_response_all_of.g.dart b/lib/src/model/product_order_response_all_of.g.dart deleted file mode 100644 index b2dfe69..0000000 --- a/lib/src/model/product_order_response_all_of.g.dart +++ /dev/null @@ -1,127 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'product_order_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ProductOrderResponseAllOfBuilder { - void replace(ProductOrderResponseAllOf other); - void update(void Function(ProductOrderResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - String? get parentId; - set parentId(String? parentId); -} - -class _$$ProductOrderResponseAllOf extends $ProductOrderResponseAllOf { - @override - final String? id; - @override - final String? object; - @override - final String? parentId; - - factory _$$ProductOrderResponseAllOf( - [void Function($ProductOrderResponseAllOfBuilder)? updates]) => - (new $ProductOrderResponseAllOfBuilder()..update(updates))._build(); - - _$$ProductOrderResponseAllOf._({this.id, this.object, this.parentId}) - : super._(); - - @override - $ProductOrderResponseAllOf rebuild( - void Function($ProductOrderResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ProductOrderResponseAllOfBuilder toBuilder() => - new $ProductOrderResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ProductOrderResponseAllOf && - id == other.id && - object == other.object && - parentId == other.parentId; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, id.hashCode), object.hashCode), parentId.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ProductOrderResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('parentId', parentId)) - .toString(); - } -} - -class $ProductOrderResponseAllOfBuilder - implements - Builder<$ProductOrderResponseAllOf, $ProductOrderResponseAllOfBuilder>, - ProductOrderResponseAllOfBuilder { - _$$ProductOrderResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - $ProductOrderResponseAllOfBuilder() { - $ProductOrderResponseAllOf._defaults(this); - } - - $ProductOrderResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ProductOrderResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ProductOrderResponseAllOf; - } - - @override - void update(void Function($ProductOrderResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ProductOrderResponseAllOf build() => _build(); - - _$$ProductOrderResponseAllOf _build() { - final _$result = _$v ?? - new _$$ProductOrderResponseAllOf._( - id: id, object: object, parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/risk_rules.dart b/lib/src/model/risk_rules.dart deleted file mode 100644 index 21057cd..0000000 --- a/lib/src/model/risk_rules.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/risk_rules_data.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'risk_rules.g.dart'; - -/// RiskRules -/// -/// Properties: -/// * [data] -@BuiltValue(instantiable: false) -abstract class RiskRules { - @BuiltValueField(wireName: r'data') - BuiltList? get data; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$RiskRulesSerializer(); -} - -class _$RiskRulesSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RiskRules]; - - @override - final String wireName = r'RiskRules'; - - Iterable _serializeProperties( - Serializers serializers, - RiskRules object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.data != null) { - yield r'data'; - yield serializers.serialize( - object.data, - specifiedType: const FullType(BuiltList, [FullType(RiskRulesData)]), - ); - } - } - - @override - Object serialize( - Serializers serializers, - RiskRules object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - RiskRules deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($RiskRules)) as $RiskRules; - } -} - -/// a concrete implementation of [RiskRules], since [RiskRules] is not instantiable -@BuiltValue(instantiable: true) -abstract class $RiskRules implements RiskRules, Built<$RiskRules, $RiskRulesBuilder> { - $RiskRules._(); - - factory $RiskRules([void Function($RiskRulesBuilder)? updates]) = _$$RiskRules; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RiskRulesBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$RiskRules> get serializer => _$$RiskRulesSerializer(); -} - -class _$$RiskRulesSerializer implements PrimitiveSerializer<$RiskRules> { - @override - final Iterable types = const [$RiskRules, _$$RiskRules]; - - @override - final String wireName = r'$RiskRules'; - - @override - Object serialize( - Serializers serializers, - $RiskRules object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(RiskRules))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required RiskRulesBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'data': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(BuiltList, [FullType(RiskRulesData)]), - ) as BuiltList; - result.data.replace(valueDes); - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $RiskRules deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $RiskRulesBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/risk_rules.g.dart b/lib/src/model/risk_rules.g.dart deleted file mode 100644 index 2655285..0000000 --- a/lib/src/model/risk_rules.g.dart +++ /dev/null @@ -1,106 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'risk_rules.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class RiskRulesBuilder { - void replace(RiskRules other); - void update(void Function(RiskRulesBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$RiskRules extends $RiskRules { - @override - final BuiltList? data; - - factory _$$RiskRules([void Function($RiskRulesBuilder)? updates]) => - (new $RiskRulesBuilder()..update(updates))._build(); - - _$$RiskRules._({this.data}) : super._(); - - @override - $RiskRules rebuild(void Function($RiskRulesBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $RiskRulesBuilder toBuilder() => new $RiskRulesBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $RiskRules && data == other.data; - } - - @override - int get hashCode { - return $jf($jc(0, data.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$RiskRules')..add('data', data)) - .toString(); - } -} - -class $RiskRulesBuilder - implements Builder<$RiskRules, $RiskRulesBuilder>, RiskRulesBuilder { - _$$RiskRules? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $RiskRulesBuilder() { - $RiskRules._defaults(this); - } - - $RiskRulesBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $RiskRules other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$RiskRules; - } - - @override - void update(void Function($RiskRulesBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $RiskRules build() => _build(); - - _$$RiskRules _build() { - _$$RiskRules _$result; - try { - _$result = _$v ?? new _$$RiskRules._(data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$RiskRules', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/risk_rules_list.dart b/lib/src/model/risk_rules_list.dart index 7428066..1cd9e36 100644 --- a/lib/src/model/risk_rules_list.dart +++ b/lib/src/model/risk_rules_list.dart @@ -7,7 +7,6 @@ import 'package:conekta/src/model/pagination.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/risk_rules_data.dart'; import 'package:conekta/src/model/page.dart'; -import 'package:conekta/src/model/risk_rules.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,10 @@ part 'risk_rules_list.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class RiskRulesList implements Page, Pagination, RiskRules, Built { +abstract class RiskRulesList implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + RiskRulesList._(); factory RiskRulesList([void updates(RiskRulesListBuilder b)]) = _$RiskRulesList; diff --git a/lib/src/model/risk_rules_list.g.dart b/lib/src/model/risk_rules_list.g.dart index 8ddb4c8..618b181 100644 --- a/lib/src/model/risk_rules_list.g.dart +++ b/lib/src/model/risk_rules_list.g.dart @@ -7,6 +7,8 @@ part of 'risk_rules_list.dart'; // ************************************************************************** class _$RiskRulesList extends RiskRulesList { + @override + final BuiltList? data; @override final String? nextPageUrl; @override @@ -15,18 +17,16 @@ class _$RiskRulesList extends RiskRulesList { final bool hasMore; @override final String object; - @override - final BuiltList? data; factory _$RiskRulesList([void Function(RiskRulesListBuilder)? updates]) => (new RiskRulesListBuilder()..update(updates))._build(); _$RiskRulesList._( - {this.nextPageUrl, + {this.data, + this.nextPageUrl, this.previousPageUrl, required this.hasMore, - required this.object, - this.data}) + required this.object}) : super._() { BuiltValueNullFieldError.checkNotNull(hasMore, r'RiskRulesList', 'hasMore'); BuiltValueNullFieldError.checkNotNull(object, r'RiskRulesList', 'object'); @@ -43,31 +43,31 @@ class _$RiskRulesList extends RiskRulesList { bool operator ==(Object other) { if (identical(other, this)) return true; return other is RiskRulesList && + data == other.data && nextPageUrl == other.nextPageUrl && previousPageUrl == other.previousPageUrl && hasMore == other.hasMore && - object == other.object && - data == other.data; + object == other.object; } @override int get hashCode { return $jf($jc( $jc( - $jc($jc($jc(0, nextPageUrl.hashCode), previousPageUrl.hashCode), - hasMore.hashCode), - object.hashCode), - data.hashCode)); + $jc($jc($jc(0, data.hashCode), nextPageUrl.hashCode), + previousPageUrl.hashCode), + hasMore.hashCode), + object.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'RiskRulesList') + ..add('data', data) ..add('nextPageUrl', nextPageUrl) ..add('previousPageUrl', previousPageUrl) ..add('hasMore', hasMore) - ..add('object', object) - ..add('data', data)) + ..add('object', object)) .toString(); } } @@ -76,10 +76,14 @@ class RiskRulesListBuilder implements Builder, PageBuilder, - PaginationBuilder, - RiskRulesBuilder { + PaginationBuilder { _$RiskRulesList? _$v; + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => _$this._data = data; + String? _nextPageUrl; String? get nextPageUrl => _$this._nextPageUrl; set nextPageUrl(covariant String? nextPageUrl) => @@ -98,11 +102,6 @@ class RiskRulesListBuilder String? get object => _$this._object; set object(covariant String? object) => _$this._object = object; - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - RiskRulesListBuilder() { RiskRulesList._defaults(this); } @@ -110,11 +109,11 @@ class RiskRulesListBuilder RiskRulesListBuilder get _$this { final $v = _$v; if ($v != null) { + _data = $v.data?.toBuilder(); _nextPageUrl = $v.nextPageUrl; _previousPageUrl = $v.previousPageUrl; _hasMore = $v.hasMore; _object = $v.object; - _data = $v.data?.toBuilder(); _$v = null; } return this; @@ -140,13 +139,13 @@ class RiskRulesListBuilder try { _$result = _$v ?? new _$RiskRulesList._( + data: _data?.build(), nextPageUrl: nextPageUrl, previousPageUrl: previousPageUrl, hasMore: BuiltValueNullFieldError.checkNotNull( hasMore, r'RiskRulesList', 'hasMore'), object: BuiltValueNullFieldError.checkNotNull( - object, r'RiskRulesList', 'object'), - data: _data?.build()); + object, r'RiskRulesList', 'object')); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/shipping_order_response.dart b/lib/src/model/shipping_order_response.dart index 9e529ba..db59f87 100644 --- a/lib/src/model/shipping_order_response.dart +++ b/lib/src/model/shipping_order_response.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/shipping_request.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:conekta/src/model/product_order_response_all_of.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -24,7 +23,16 @@ part 'shipping_order_response.g.dart'; /// * [object] /// * [parentId] @BuiltValue() -abstract class ShippingOrderResponse implements ProductOrderResponseAllOf, ShippingRequest, Built { +abstract class ShippingOrderResponse implements ShippingRequest, Built { + @BuiltValueField(wireName: r'id') + String? get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String? get object; + ShippingOrderResponse._(); factory ShippingOrderResponse([void updates(ShippingOrderResponseBuilder b)]) = _$ShippingOrderResponse; diff --git a/lib/src/model/shipping_order_response.g.dart b/lib/src/model/shipping_order_response.g.dart index 39e31a9..ac73bbf 100644 --- a/lib/src/model/shipping_order_response.g.dart +++ b/lib/src/model/shipping_order_response.g.dart @@ -10,10 +10,10 @@ class _$ShippingOrderResponse extends ShippingOrderResponse { @override final String? id; @override - final String? object; - @override final String? parentId; @override + final String? object; + @override final int amount; @override final String? carrier; @@ -30,8 +30,8 @@ class _$ShippingOrderResponse extends ShippingOrderResponse { _$ShippingOrderResponse._( {this.id, - this.object, this.parentId, + this.object, required this.amount, this.carrier, this.trackingNumber, @@ -56,8 +56,8 @@ class _$ShippingOrderResponse extends ShippingOrderResponse { if (identical(other, this)) return true; return other is ShippingOrderResponse && id == other.id && - object == other.object && parentId == other.parentId && + object == other.object && amount == other.amount && carrier == other.carrier && trackingNumber == other.trackingNumber && @@ -72,8 +72,8 @@ class _$ShippingOrderResponse extends ShippingOrderResponse { $jc( $jc( $jc( - $jc($jc($jc(0, id.hashCode), object.hashCode), - parentId.hashCode), + $jc($jc($jc(0, id.hashCode), parentId.hashCode), + object.hashCode), amount.hashCode), carrier.hashCode), trackingNumber.hashCode), @@ -85,8 +85,8 @@ class _$ShippingOrderResponse extends ShippingOrderResponse { String toString() { return (newBuiltValueToStringHelper(r'ShippingOrderResponse') ..add('id', id) - ..add('object', object) ..add('parentId', parentId) + ..add('object', object) ..add('amount', amount) ..add('carrier', carrier) ..add('trackingNumber', trackingNumber) @@ -99,7 +99,6 @@ class _$ShippingOrderResponse extends ShippingOrderResponse { class ShippingOrderResponseBuilder implements Builder, - ProductOrderResponseAllOfBuilder, ShippingRequestBuilder { _$ShippingOrderResponse? _$v; @@ -107,14 +106,14 @@ class ShippingOrderResponseBuilder String? get id => _$this._id; set id(covariant String? id) => _$this._id = id; - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - String? _parentId; String? get parentId => _$this._parentId; set parentId(covariant String? parentId) => _$this._parentId = parentId; + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + int? _amount; int? get amount => _$this._amount; set amount(covariant int? amount) => _$this._amount = amount; @@ -146,8 +145,8 @@ class ShippingOrderResponseBuilder final $v = _$v; if ($v != null) { _id = $v.id; - _object = $v.object; _parentId = $v.parentId; + _object = $v.object; _amount = $v.amount; _carrier = $v.carrier; _trackingNumber = $v.trackingNumber; @@ -159,7 +158,6 @@ class ShippingOrderResponseBuilder } @override -// ignore: override_on_non_overriding_method void replace(covariant ShippingOrderResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$ShippingOrderResponse; @@ -179,8 +177,8 @@ class ShippingOrderResponseBuilder _$result = _$v ?? new _$ShippingOrderResponse._( id: id, - object: object, parentId: parentId, + object: object, amount: BuiltValueNullFieldError.checkNotNull( amount, r'ShippingOrderResponse', 'amount'), carrier: carrier, diff --git a/lib/src/model/subscription_events_response.dart b/lib/src/model/subscription_events_response.dart index 3910695..999ab56 100644 --- a/lib/src/model/subscription_events_response.dart +++ b/lib/src/model/subscription_events_response.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:conekta/src/model/pagination.dart'; -import 'package:conekta/src/model/get_events_response_all_of.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/page.dart'; import 'package:conekta/src/model/event_response.dart'; @@ -22,7 +21,10 @@ part 'subscription_events_response.g.dart'; /// * [previousPageUrl] - Url of the previous page. /// * [data] @BuiltValue() -abstract class SubscriptionEventsResponse implements GetEventsResponseAllOf, Page, Pagination, Built { +abstract class SubscriptionEventsResponse implements Page, Pagination, Built { + @BuiltValueField(wireName: r'data') + BuiltList? get data; + SubscriptionEventsResponse._(); factory SubscriptionEventsResponse([void updates(SubscriptionEventsResponseBuilder b)]) = _$SubscriptionEventsResponse; diff --git a/lib/src/model/subscription_events_response.g.dart b/lib/src/model/subscription_events_response.g.dart index ac3382e..2264db7 100644 --- a/lib/src/model/subscription_events_response.g.dart +++ b/lib/src/model/subscription_events_response.g.dart @@ -80,7 +80,6 @@ class _$SubscriptionEventsResponse extends SubscriptionEventsResponse { class SubscriptionEventsResponseBuilder implements Builder, - GetEventsResponseAllOfBuilder, PageBuilder, PaginationBuilder { _$SubscriptionEventsResponse? _$v; diff --git a/lib/src/model/update_customer_fiscal_entities_response.dart b/lib/src/model/update_customer_fiscal_entities_response.dart index 898f562..02a05d1 100644 --- a/lib/src/model/update_customer_fiscal_entities_response.dart +++ b/lib/src/model/update_customer_fiscal_entities_response.dart @@ -4,9 +4,8 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; +import 'package:conekta/src/model/customer_address.dart'; import 'package:conekta/src/model/customer_fiscal_entities_request.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; -import 'package:conekta/src/model/update_customer_fiscal_entities_response_all_of.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -28,7 +27,22 @@ part 'update_customer_fiscal_entities_response.g.dart'; /// * [parentId] /// * [default_] @BuiltValue() -abstract class UpdateCustomerFiscalEntitiesResponse implements CustomerFiscalEntitiesRequest, UpdateCustomerFiscalEntitiesResponseAllOf, Built { +abstract class UpdateCustomerFiscalEntitiesResponse implements CustomerFiscalEntitiesRequest, Built { + @BuiltValueField(wireName: r'created_at') + int get createdAt; + + @BuiltValueField(wireName: r'default') + bool? get default_; + + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String get object; + UpdateCustomerFiscalEntitiesResponse._(); factory UpdateCustomerFiscalEntitiesResponse([void updates(UpdateCustomerFiscalEntitiesResponseBuilder b)]) = _$UpdateCustomerFiscalEntitiesResponse; @@ -67,7 +81,7 @@ class _$UpdateCustomerFiscalEntitiesResponseSerializer implements PrimitiveSeria yield r'address'; yield serializers.serialize( object.address, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), + specifiedType: const FullType(CustomerAddress), ); if (object.phone != null) { yield r'phone'; @@ -102,17 +116,17 @@ class _$UpdateCustomerFiscalEntitiesResponseSerializer implements PrimitiveSeria object.id, specifiedType: const FullType(String), ); - if (object.email != null) { - yield r'email'; + if (object.parentId != null) { + yield r'parent_id'; yield serializers.serialize( - object.email, + object.parentId, specifiedType: const FullType(String), ); } - if (object.parentId != null) { - yield r'parent_id'; + if (object.email != null) { + yield r'email'; yield serializers.serialize( - object.parentId, + object.email, specifiedType: const FullType(String), ); } @@ -161,8 +175,8 @@ class _$UpdateCustomerFiscalEntitiesResponseSerializer implements PrimitiveSeria case r'address': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(CustomerFiscalEntitiesRequestAddress), - ) as CustomerFiscalEntitiesRequestAddress; + specifiedType: const FullType(CustomerAddress), + ) as CustomerAddress; result.address.replace(valueDes); break; case r'phone': @@ -200,19 +214,19 @@ class _$UpdateCustomerFiscalEntitiesResponseSerializer implements PrimitiveSeria ) as String; result.id = valueDes; break; - case r'email': + case r'parent_id': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.email = valueDes; + result.parentId = valueDes; break; - case r'parent_id': + case r'email': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.parentId = valueDes; + result.email = valueDes; break; case r'object': final valueDes = serializers.deserialize( diff --git a/lib/src/model/update_customer_fiscal_entities_response.g.dart b/lib/src/model/update_customer_fiscal_entities_response.g.dart index 28feb67..27a5eb7 100644 --- a/lib/src/model/update_customer_fiscal_entities_response.g.dart +++ b/lib/src/model/update_customer_fiscal_entities_response.g.dart @@ -9,27 +9,27 @@ part of 'update_customer_fiscal_entities_response.dart'; class _$UpdateCustomerFiscalEntitiesResponse extends UpdateCustomerFiscalEntitiesResponse { @override - final CustomerFiscalEntitiesRequestAddress address; + final int createdAt; @override - final String? taxId; + final bool? default_; @override - final String? email; + final String id; @override - final String? phone; + final String? parentId; @override - final BuiltMap? metadata; + final String object; @override - final String? companyName; + final CustomerAddress address; @override - final String id; + final String? taxId; @override - final String object; + final String? email; @override - final int createdAt; + final String? phone; @override - final String? parentId; + final BuiltMap? metadata; @override - final bool? default_; + final String? companyName; factory _$UpdateCustomerFiscalEntitiesResponse( [void Function(UpdateCustomerFiscalEntitiesResponseBuilder)? @@ -38,26 +38,26 @@ class _$UpdateCustomerFiscalEntitiesResponse ._build(); _$UpdateCustomerFiscalEntitiesResponse._( - {required this.address, + {required this.createdAt, + this.default_, + required this.id, + this.parentId, + required this.object, + required this.address, this.taxId, this.email, this.phone, this.metadata, - this.companyName, - required this.id, - required this.object, - required this.createdAt, - this.parentId, - this.default_}) + this.companyName}) : super._() { BuiltValueNullFieldError.checkNotNull( - address, r'UpdateCustomerFiscalEntitiesResponse', 'address'); + createdAt, r'UpdateCustomerFiscalEntitiesResponse', 'createdAt'); BuiltValueNullFieldError.checkNotNull( id, r'UpdateCustomerFiscalEntitiesResponse', 'id'); BuiltValueNullFieldError.checkNotNull( object, r'UpdateCustomerFiscalEntitiesResponse', 'object'); BuiltValueNullFieldError.checkNotNull( - createdAt, r'UpdateCustomerFiscalEntitiesResponse', 'createdAt'); + address, r'UpdateCustomerFiscalEntitiesResponse', 'address'); } @override @@ -73,17 +73,17 @@ class _$UpdateCustomerFiscalEntitiesResponse bool operator ==(Object other) { if (identical(other, this)) return true; return other is UpdateCustomerFiscalEntitiesResponse && + createdAt == other.createdAt && + default_ == other.default_ && + id == other.id && + parentId == other.parentId && + object == other.object && address == other.address && taxId == other.taxId && email == other.email && phone == other.phone && metadata == other.metadata && - companyName == other.companyName && - id == other.id && - object == other.object && - createdAt == other.createdAt && - parentId == other.parentId && - default_ == other.default_; + companyName == other.companyName; } @override @@ -97,33 +97,33 @@ class _$UpdateCustomerFiscalEntitiesResponse $jc( $jc( $jc( - $jc($jc(0, address.hashCode), - taxId.hashCode), - email.hashCode), - phone.hashCode), - metadata.hashCode), - companyName.hashCode), - id.hashCode), - object.hashCode), - createdAt.hashCode), - parentId.hashCode), - default_.hashCode)); + $jc($jc(0, createdAt.hashCode), + default_.hashCode), + id.hashCode), + parentId.hashCode), + object.hashCode), + address.hashCode), + taxId.hashCode), + email.hashCode), + phone.hashCode), + metadata.hashCode), + companyName.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'UpdateCustomerFiscalEntitiesResponse') + ..add('createdAt', createdAt) + ..add('default_', default_) + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) ..add('address', address) ..add('taxId', taxId) ..add('email', email) ..add('phone', phone) ..add('metadata', metadata) - ..add('companyName', companyName) - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt) - ..add('parentId', parentId) - ..add('default_', default_)) + ..add('companyName', companyName)) .toString(); } } @@ -132,14 +132,33 @@ class UpdateCustomerFiscalEntitiesResponseBuilder implements Builder, - CustomerFiscalEntitiesRequestBuilder, - UpdateCustomerFiscalEntitiesResponseAllOfBuilder { + CustomerFiscalEntitiesRequestBuilder { _$UpdateCustomerFiscalEntitiesResponse? _$v; - CustomerFiscalEntitiesRequestAddressBuilder? _address; - CustomerFiscalEntitiesRequestAddressBuilder get address => - _$this._address ??= new CustomerFiscalEntitiesRequestAddressBuilder(); - set address(covariant CustomerFiscalEntitiesRequestAddressBuilder? address) => + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + bool? _default_; + bool? get default_ => _$this._default_; + set default_(covariant bool? default_) => _$this._default_ = default_; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + String? _parentId; + String? get parentId => _$this._parentId; + set parentId(covariant String? parentId) => _$this._parentId = parentId; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(covariant CustomerAddressBuilder? address) => _$this._address = address; String? _taxId; @@ -165,26 +184,6 @@ class UpdateCustomerFiscalEntitiesResponseBuilder set companyName(covariant String? companyName) => _$this._companyName = companyName; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; - UpdateCustomerFiscalEntitiesResponseBuilder() { UpdateCustomerFiscalEntitiesResponse._defaults(this); } @@ -192,24 +191,23 @@ class UpdateCustomerFiscalEntitiesResponseBuilder UpdateCustomerFiscalEntitiesResponseBuilder get _$this { final $v = _$v; if ($v != null) { + _createdAt = $v.createdAt; + _default_ = $v.default_; + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; _address = $v.address.toBuilder(); _taxId = $v.taxId; _email = $v.email; _phone = $v.phone; _metadata = $v.metadata?.toBuilder(); _companyName = $v.companyName; - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _parentId = $v.parentId; - _default_ = $v.default_; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant UpdateCustomerFiscalEntitiesResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$UpdateCustomerFiscalEntitiesResponse; @@ -229,20 +227,20 @@ class UpdateCustomerFiscalEntitiesResponseBuilder try { _$result = _$v ?? new _$UpdateCustomerFiscalEntitiesResponse._( + createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, + r'UpdateCustomerFiscalEntitiesResponse', 'createdAt'), + default_: default_, + id: BuiltValueNullFieldError.checkNotNull( + id, r'UpdateCustomerFiscalEntitiesResponse', 'id'), + parentId: parentId, + object: BuiltValueNullFieldError.checkNotNull( + object, r'UpdateCustomerFiscalEntitiesResponse', 'object'), address: address.build(), taxId: taxId, email: email, phone: phone, metadata: _metadata?.build(), - companyName: companyName, - id: BuiltValueNullFieldError.checkNotNull( - id, r'UpdateCustomerFiscalEntitiesResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'UpdateCustomerFiscalEntitiesResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'UpdateCustomerFiscalEntitiesResponse', 'createdAt'), - parentId: parentId, - default_: default_); + companyName: companyName); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/update_customer_fiscal_entities_response_all_of.dart b/lib/src/model/update_customer_fiscal_entities_response_all_of.dart deleted file mode 100644 index 7d32ffc..0000000 --- a/lib/src/model/update_customer_fiscal_entities_response_all_of.dart +++ /dev/null @@ -1,207 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'update_customer_fiscal_entities_response_all_of.g.dart'; - -/// UpdateCustomerFiscalEntitiesResponseAllOf -/// -/// Properties: -/// * [id] -/// * [object] -/// * [createdAt] -/// * [parentId] -/// * [default_] -@BuiltValue(instantiable: false) -abstract class UpdateCustomerFiscalEntitiesResponseAllOf { - @BuiltValueField(wireName: r'id') - String get id; - - @BuiltValueField(wireName: r'object') - String get object; - - @BuiltValueField(wireName: r'created_at') - int get createdAt; - - @BuiltValueField(wireName: r'parent_id') - String? get parentId; - - @BuiltValueField(wireName: r'default') - bool? get default_; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$UpdateCustomerFiscalEntitiesResponseAllOfSerializer(); -} - -class _$UpdateCustomerFiscalEntitiesResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [UpdateCustomerFiscalEntitiesResponseAllOf]; - - @override - final String wireName = r'UpdateCustomerFiscalEntitiesResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - UpdateCustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - yield r'created_at'; - yield serializers.serialize( - object.createdAt, - specifiedType: const FullType(int), - ); - if (object.parentId != null) { - yield r'parent_id'; - yield serializers.serialize( - object.parentId, - specifiedType: const FullType(String), - ); - } - if (object.default_ != null) { - yield r'default'; - yield serializers.serialize( - object.default_, - specifiedType: const FullType(bool), - ); - } - } - - @override - Object serialize( - Serializers serializers, - UpdateCustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - UpdateCustomerFiscalEntitiesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($UpdateCustomerFiscalEntitiesResponseAllOf)) as $UpdateCustomerFiscalEntitiesResponseAllOf; - } -} - -/// a concrete implementation of [UpdateCustomerFiscalEntitiesResponseAllOf], since [UpdateCustomerFiscalEntitiesResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $UpdateCustomerFiscalEntitiesResponseAllOf implements UpdateCustomerFiscalEntitiesResponseAllOf, Built<$UpdateCustomerFiscalEntitiesResponseAllOf, $UpdateCustomerFiscalEntitiesResponseAllOfBuilder> { - $UpdateCustomerFiscalEntitiesResponseAllOf._(); - - factory $UpdateCustomerFiscalEntitiesResponseAllOf([void Function($UpdateCustomerFiscalEntitiesResponseAllOfBuilder)? updates]) = _$$UpdateCustomerFiscalEntitiesResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UpdateCustomerFiscalEntitiesResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$UpdateCustomerFiscalEntitiesResponseAllOf> get serializer => _$$UpdateCustomerFiscalEntitiesResponseAllOfSerializer(); -} - -class _$$UpdateCustomerFiscalEntitiesResponseAllOfSerializer implements PrimitiveSerializer<$UpdateCustomerFiscalEntitiesResponseAllOf> { - @override - final Iterable types = const [$UpdateCustomerFiscalEntitiesResponseAllOf, _$$UpdateCustomerFiscalEntitiesResponseAllOf]; - - @override - final String wireName = r'$UpdateCustomerFiscalEntitiesResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $UpdateCustomerFiscalEntitiesResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(UpdateCustomerFiscalEntitiesResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required UpdateCustomerFiscalEntitiesResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'created_at': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.createdAt = valueDes; - break; - case r'parent_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.parentId = valueDes; - break; - case r'default': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool; - result.default_ = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $UpdateCustomerFiscalEntitiesResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $UpdateCustomerFiscalEntitiesResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/update_customer_fiscal_entities_response_all_of.g.dart b/lib/src/model/update_customer_fiscal_entities_response_all_of.g.dart deleted file mode 100644 index 7e2fcc5..0000000 --- a/lib/src/model/update_customer_fiscal_entities_response_all_of.g.dart +++ /dev/null @@ -1,181 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_customer_fiscal_entities_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class UpdateCustomerFiscalEntitiesResponseAllOfBuilder { - void replace(UpdateCustomerFiscalEntitiesResponseAllOf other); - void update( - void Function(UpdateCustomerFiscalEntitiesResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - int? get createdAt; - set createdAt(int? createdAt); - - String? get parentId; - set parentId(String? parentId); - - bool? get default_; - set default_(bool? default_); -} - -class _$$UpdateCustomerFiscalEntitiesResponseAllOf - extends $UpdateCustomerFiscalEntitiesResponseAllOf { - @override - final String id; - @override - final String object; - @override - final int createdAt; - @override - final String? parentId; - @override - final bool? default_; - - factory _$$UpdateCustomerFiscalEntitiesResponseAllOf( - [void Function($UpdateCustomerFiscalEntitiesResponseAllOfBuilder)? - updates]) => - (new $UpdateCustomerFiscalEntitiesResponseAllOfBuilder()..update(updates)) - ._build(); - - _$$UpdateCustomerFiscalEntitiesResponseAllOf._( - {required this.id, - required this.object, - required this.createdAt, - this.parentId, - this.default_}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - id, r'$UpdateCustomerFiscalEntitiesResponseAllOf', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'$UpdateCustomerFiscalEntitiesResponseAllOf', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'$UpdateCustomerFiscalEntitiesResponseAllOf', 'createdAt'); - } - - @override - $UpdateCustomerFiscalEntitiesResponseAllOf rebuild( - void Function($UpdateCustomerFiscalEntitiesResponseAllOfBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - $UpdateCustomerFiscalEntitiesResponseAllOfBuilder toBuilder() => - new $UpdateCustomerFiscalEntitiesResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $UpdateCustomerFiscalEntitiesResponseAllOf && - id == other.id && - object == other.object && - createdAt == other.createdAt && - parentId == other.parentId && - default_ == other.default_; - } - - @override - int get hashCode { - return $jf($jc( - $jc($jc($jc($jc(0, id.hashCode), object.hashCode), createdAt.hashCode), - parentId.hashCode), - default_.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'$UpdateCustomerFiscalEntitiesResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt) - ..add('parentId', parentId) - ..add('default_', default_)) - .toString(); - } -} - -class $UpdateCustomerFiscalEntitiesResponseAllOfBuilder - implements - Builder<$UpdateCustomerFiscalEntitiesResponseAllOf, - $UpdateCustomerFiscalEntitiesResponseAllOfBuilder>, - UpdateCustomerFiscalEntitiesResponseAllOfBuilder { - _$$UpdateCustomerFiscalEntitiesResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; - - $UpdateCustomerFiscalEntitiesResponseAllOfBuilder() { - $UpdateCustomerFiscalEntitiesResponseAllOf._defaults(this); - } - - $UpdateCustomerFiscalEntitiesResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _parentId = $v.parentId; - _default_ = $v.default_; - _$v = null; - } - return this; - } - - @override - void replace(covariant $UpdateCustomerFiscalEntitiesResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$UpdateCustomerFiscalEntitiesResponseAllOf; - } - - @override - void update( - void Function($UpdateCustomerFiscalEntitiesResponseAllOfBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - $UpdateCustomerFiscalEntitiesResponseAllOf build() => _build(); - - _$$UpdateCustomerFiscalEntitiesResponseAllOf _build() { - final _$result = _$v ?? - new _$$UpdateCustomerFiscalEntitiesResponseAllOf._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'$UpdateCustomerFiscalEntitiesResponseAllOf', 'id'), - object: BuiltValueNullFieldError.checkNotNull(object, - r'$UpdateCustomerFiscalEntitiesResponseAllOf', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, - r'$UpdateCustomerFiscalEntitiesResponseAllOf', 'createdAt'), - parentId: parentId, - default_: default_); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/model/update_order_tax_response.dart b/lib/src/model/update_order_tax_response.dart index 1cb418f..842a212 100644 --- a/lib/src/model/update_order_tax_response.dart +++ b/lib/src/model/update_order_tax_response.dart @@ -3,7 +3,6 @@ // // ignore_for_file: unused_element -import 'package:conekta/src/model/update_order_tax_response_all_of.dart'; import 'package:built_collection/built_collection.dart'; import 'package:conekta/src/model/order_tax_request.dart'; import 'package:built_value/json_object.dart'; @@ -22,7 +21,16 @@ part 'update_order_tax_response.g.dart'; /// * [object] /// * [parentId] @BuiltValue() -abstract class UpdateOrderTaxResponse implements OrderTaxRequest, UpdateOrderTaxResponseAllOf, Built { +abstract class UpdateOrderTaxResponse implements OrderTaxRequest, Built { + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'parent_id') + String? get parentId; + + @BuiltValueField(wireName: r'object') + String? get object; + UpdateOrderTaxResponse._(); factory UpdateOrderTaxResponse([void updates(UpdateOrderTaxResponseBuilder b)]) = _$UpdateOrderTaxResponse; @@ -46,6 +54,11 @@ class _$UpdateOrderTaxResponseSerializer implements PrimitiveSerializer; result.metadata.replace(valueDes); break; - case r'description': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.description = valueDes; - break; case r'id': final valueDes = serializers.deserialize( value, diff --git a/lib/src/model/update_order_tax_response.g.dart b/lib/src/model/update_order_tax_response.g.dart index f09e23a..bd5e1f4 100644 --- a/lib/src/model/update_order_tax_response.g.dart +++ b/lib/src/model/update_order_tax_response.g.dart @@ -8,30 +8,31 @@ part of 'update_order_tax_response.dart'; class _$UpdateOrderTaxResponse extends UpdateOrderTaxResponse { @override - final int amount; + final String id; @override - final String description; + final String? parentId; @override - final BuiltMap? metadata; + final String? object; @override - final String? id; + final int amount; @override - final String? object; + final String description; @override - final String? parentId; + final BuiltMap? metadata; factory _$UpdateOrderTaxResponse( [void Function(UpdateOrderTaxResponseBuilder)? updates]) => (new UpdateOrderTaxResponseBuilder()..update(updates))._build(); _$UpdateOrderTaxResponse._( - {required this.amount, - required this.description, - this.metadata, - this.id, + {required this.id, + this.parentId, this.object, - this.parentId}) + required this.amount, + required this.description, + this.metadata}) : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'UpdateOrderTaxResponse', 'id'); BuiltValueNullFieldError.checkNotNull( amount, r'UpdateOrderTaxResponse', 'amount'); BuiltValueNullFieldError.checkNotNull( @@ -51,12 +52,12 @@ class _$UpdateOrderTaxResponse extends UpdateOrderTaxResponse { bool operator ==(Object other) { if (identical(other, this)) return true; return other is UpdateOrderTaxResponse && - amount == other.amount && - description == other.description && - metadata == other.metadata && id == other.id && + parentId == other.parentId && object == other.object && - parentId == other.parentId; + amount == other.amount && + description == other.description && + metadata == other.metadata; } @override @@ -64,22 +65,22 @@ class _$UpdateOrderTaxResponse extends UpdateOrderTaxResponse { return $jf($jc( $jc( $jc( - $jc($jc($jc(0, amount.hashCode), description.hashCode), - metadata.hashCode), - id.hashCode), - object.hashCode), - parentId.hashCode)); + $jc($jc($jc(0, id.hashCode), parentId.hashCode), + object.hashCode), + amount.hashCode), + description.hashCode), + metadata.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'UpdateOrderTaxResponse') - ..add('amount', amount) - ..add('description', description) - ..add('metadata', metadata) ..add('id', id) + ..add('parentId', parentId) ..add('object', object) - ..add('parentId', parentId)) + ..add('amount', amount) + ..add('description', description) + ..add('metadata', metadata)) .toString(); } } @@ -87,10 +88,21 @@ class _$UpdateOrderTaxResponse extends UpdateOrderTaxResponse { class UpdateOrderTaxResponseBuilder implements Builder, - OrderTaxRequestBuilder, - UpdateOrderTaxResponseAllOfBuilder { + OrderTaxRequestBuilder { _$UpdateOrderTaxResponse? _$v; + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + String? _parentId; + String? get parentId => _$this._parentId; + set parentId(covariant String? parentId) => _$this._parentId = parentId; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + int? _amount; int? get amount => _$this._amount; set amount(covariant int? amount) => _$this._amount = amount; @@ -106,18 +118,6 @@ class UpdateOrderTaxResponseBuilder set metadata(covariant MapBuilder? metadata) => _$this._metadata = metadata; - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - UpdateOrderTaxResponseBuilder() { UpdateOrderTaxResponse._defaults(this); } @@ -125,19 +125,18 @@ class UpdateOrderTaxResponseBuilder UpdateOrderTaxResponseBuilder get _$this { final $v = _$v; if ($v != null) { + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; _amount = $v.amount; _description = $v.description; _metadata = $v.metadata?.toBuilder(); - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; _$v = null; } return this; } @override -// ignore: override_on_non_overriding_method void replace(covariant UpdateOrderTaxResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$UpdateOrderTaxResponse; @@ -156,14 +155,15 @@ class UpdateOrderTaxResponseBuilder try { _$result = _$v ?? new _$UpdateOrderTaxResponse._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'UpdateOrderTaxResponse', 'id'), + parentId: parentId, + object: object, amount: BuiltValueNullFieldError.checkNotNull( amount, r'UpdateOrderTaxResponse', 'amount'), description: BuiltValueNullFieldError.checkNotNull( description, r'UpdateOrderTaxResponse', 'description'), - metadata: _metadata?.build(), - id: id, - object: object, - parentId: parentId); + metadata: _metadata?.build()); } catch (_) { late String _$failedField; try { diff --git a/lib/src/model/update_order_tax_response_all_of.dart b/lib/src/model/update_order_tax_response_all_of.dart deleted file mode 100644 index 38f6eeb..0000000 --- a/lib/src/model/update_order_tax_response_all_of.dart +++ /dev/null @@ -1,177 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'update_order_tax_response_all_of.g.dart'; - -/// UpdateOrderTaxResponseAllOf -/// -/// Properties: -/// * [id] -/// * [object] -/// * [parentId] -@BuiltValue(instantiable: false) -abstract class UpdateOrderTaxResponseAllOf { - @BuiltValueField(wireName: r'id') - String? get id; - - @BuiltValueField(wireName: r'object') - String? get object; - - @BuiltValueField(wireName: r'parent_id') - String? get parentId; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$UpdateOrderTaxResponseAllOfSerializer(); -} - -class _$UpdateOrderTaxResponseAllOfSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [UpdateOrderTaxResponseAllOf]; - - @override - final String wireName = r'UpdateOrderTaxResponseAllOf'; - - Iterable _serializeProperties( - Serializers serializers, - UpdateOrderTaxResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.id != null) { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - } - if (object.object != null) { - yield r'object'; - yield serializers.serialize( - object.object, - specifiedType: const FullType(String), - ); - } - if (object.parentId != null) { - yield r'parent_id'; - yield serializers.serialize( - object.parentId, - specifiedType: const FullType(String), - ); - } - } - - @override - Object serialize( - Serializers serializers, - UpdateOrderTaxResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - @override - UpdateOrderTaxResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.deserialize(serialized, specifiedType: FullType($UpdateOrderTaxResponseAllOf)) as $UpdateOrderTaxResponseAllOf; - } -} - -/// a concrete implementation of [UpdateOrderTaxResponseAllOf], since [UpdateOrderTaxResponseAllOf] is not instantiable -@BuiltValue(instantiable: true) -abstract class $UpdateOrderTaxResponseAllOf implements UpdateOrderTaxResponseAllOf, Built<$UpdateOrderTaxResponseAllOf, $UpdateOrderTaxResponseAllOfBuilder> { - $UpdateOrderTaxResponseAllOf._(); - - factory $UpdateOrderTaxResponseAllOf([void Function($UpdateOrderTaxResponseAllOfBuilder)? updates]) = _$$UpdateOrderTaxResponseAllOf; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UpdateOrderTaxResponseAllOfBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer<$UpdateOrderTaxResponseAllOf> get serializer => _$$UpdateOrderTaxResponseAllOfSerializer(); -} - -class _$$UpdateOrderTaxResponseAllOfSerializer implements PrimitiveSerializer<$UpdateOrderTaxResponseAllOf> { - @override - final Iterable types = const [$UpdateOrderTaxResponseAllOf, _$$UpdateOrderTaxResponseAllOf]; - - @override - final String wireName = r'$UpdateOrderTaxResponseAllOf'; - - @override - Object serialize( - Serializers serializers, - $UpdateOrderTaxResponseAllOf object, { - FullType specifiedType = FullType.unspecified, - }) { - return serializers.serialize(object, specifiedType: FullType(UpdateOrderTaxResponseAllOf))!; - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required UpdateOrderTaxResponseAllOfBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.id = valueDes; - break; - case r'object': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.object = valueDes; - break; - case r'parent_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.parentId = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - $UpdateOrderTaxResponseAllOf deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = $UpdateOrderTaxResponseAllOfBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/lib/src/model/update_order_tax_response_all_of.g.dart b/lib/src/model/update_order_tax_response_all_of.g.dart deleted file mode 100644 index 574781b..0000000 --- a/lib/src/model/update_order_tax_response_all_of.g.dart +++ /dev/null @@ -1,128 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_order_tax_response_all_of.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class UpdateOrderTaxResponseAllOfBuilder { - void replace(UpdateOrderTaxResponseAllOf other); - void update(void Function(UpdateOrderTaxResponseAllOfBuilder) updates); - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - String? get parentId; - set parentId(String? parentId); -} - -class _$$UpdateOrderTaxResponseAllOf extends $UpdateOrderTaxResponseAllOf { - @override - final String? id; - @override - final String? object; - @override - final String? parentId; - - factory _$$UpdateOrderTaxResponseAllOf( - [void Function($UpdateOrderTaxResponseAllOfBuilder)? updates]) => - (new $UpdateOrderTaxResponseAllOfBuilder()..update(updates))._build(); - - _$$UpdateOrderTaxResponseAllOf._({this.id, this.object, this.parentId}) - : super._(); - - @override - $UpdateOrderTaxResponseAllOf rebuild( - void Function($UpdateOrderTaxResponseAllOfBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $UpdateOrderTaxResponseAllOfBuilder toBuilder() => - new $UpdateOrderTaxResponseAllOfBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $UpdateOrderTaxResponseAllOf && - id == other.id && - object == other.object && - parentId == other.parentId; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, id.hashCode), object.hashCode), parentId.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$UpdateOrderTaxResponseAllOf') - ..add('id', id) - ..add('object', object) - ..add('parentId', parentId)) - .toString(); - } -} - -class $UpdateOrderTaxResponseAllOfBuilder - implements - Builder<$UpdateOrderTaxResponseAllOf, - $UpdateOrderTaxResponseAllOfBuilder>, - UpdateOrderTaxResponseAllOfBuilder { - _$$UpdateOrderTaxResponseAllOf? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(covariant String? parentId) => _$this._parentId = parentId; - - $UpdateOrderTaxResponseAllOfBuilder() { - $UpdateOrderTaxResponseAllOf._defaults(this); - } - - $UpdateOrderTaxResponseAllOfBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _object = $v.object; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $UpdateOrderTaxResponseAllOf other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$UpdateOrderTaxResponseAllOf; - } - - @override - void update(void Function($UpdateOrderTaxResponseAllOfBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $UpdateOrderTaxResponseAllOf build() => _build(); - - _$$UpdateOrderTaxResponseAllOf _build() { - final _$result = _$v ?? - new _$$UpdateOrderTaxResponseAllOf._( - id: id, object: object, parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/lib/src/serializers.dart b/lib/src/serializers.dart index fbbe7b4..97f0b09 100644 --- a/lib/src/serializers.dart +++ b/lib/src/serializers.dart @@ -15,7 +15,6 @@ import 'package:conekta/src/date_serializer.dart'; import 'package:conekta/src/model/date.dart'; import 'package:conekta/src/model/api_key_create_response.dart'; -import 'package:conekta/src/model/api_key_create_response_all_of.dart'; import 'package:conekta/src/model/api_key_request.dart'; import 'package:conekta/src/model/api_key_response.dart'; import 'package:conekta/src/model/api_key_response_on_delete.dart'; @@ -23,9 +22,6 @@ import 'package:conekta/src/model/api_key_update_request.dart'; import 'package:conekta/src/model/balance_common_field.dart'; import 'package:conekta/src/model/balance_response.dart'; import 'package:conekta/src/model/blacklist_rule_response.dart'; -import 'package:conekta/src/model/charge_data_payment_method_bank_transfer_response.dart'; -import 'package:conekta/src/model/charge_data_payment_method_card_response.dart'; -import 'package:conekta/src/model/charge_data_payment_method_cash_response.dart'; import 'package:conekta/src/model/charge_order_response.dart'; import 'package:conekta/src/model/charge_order_response_payment_method.dart'; import 'package:conekta/src/model/charge_request.dart'; @@ -34,7 +30,6 @@ import 'package:conekta/src/model/charge_response.dart'; import 'package:conekta/src/model/charge_response_channel.dart'; import 'package:conekta/src/model/charge_response_payment_method.dart'; import 'package:conekta/src/model/charge_response_refunds.dart'; -import 'package:conekta/src/model/charge_response_refunds_all_of.dart'; import 'package:conekta/src/model/charge_response_refunds_data.dart'; import 'package:conekta/src/model/charge_update_request.dart'; import 'package:conekta/src/model/charges_data_response.dart'; @@ -44,13 +39,11 @@ import 'package:conekta/src/model/checkout_order_template_customer_info.dart'; import 'package:conekta/src/model/checkout_request.dart'; import 'package:conekta/src/model/checkout_response.dart'; import 'package:conekta/src/model/checkouts_response.dart'; -import 'package:conekta/src/model/checkouts_response_all_of.dart'; import 'package:conekta/src/model/company_fiscal_info_address_response.dart'; import 'package:conekta/src/model/company_fiscal_info_response.dart'; import 'package:conekta/src/model/company_payout_destination_response.dart'; import 'package:conekta/src/model/company_response.dart'; import 'package:conekta/src/model/create_customer_fiscal_entities_response.dart'; -import 'package:conekta/src/model/create_customer_fiscal_entities_response_all_of.dart'; import 'package:conekta/src/model/create_customer_payment_methods_request.dart'; import 'package:conekta/src/model/create_customer_payment_methods_response.dart'; import 'package:conekta/src/model/create_risk_rules_data.dart'; @@ -60,69 +53,50 @@ import 'package:conekta/src/model/customer_antifraud_info.dart'; import 'package:conekta/src/model/customer_antifraud_info_response.dart'; import 'package:conekta/src/model/customer_fiscal_entities_data_response.dart'; import 'package:conekta/src/model/customer_fiscal_entities_request.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_request_address.dart'; import 'package:conekta/src/model/customer_fiscal_entities_response.dart'; -import 'package:conekta/src/model/customer_fiscal_entities_response_all_of.dart'; import 'package:conekta/src/model/customer_info.dart'; import 'package:conekta/src/model/customer_info_just_customer_id.dart'; import 'package:conekta/src/model/customer_info_just_customer_id_response.dart'; import 'package:conekta/src/model/customer_payment_method_request.dart'; -import 'package:conekta/src/model/customer_payment_methods.dart'; import 'package:conekta/src/model/customer_payment_methods_data.dart'; import 'package:conekta/src/model/customer_payment_methods_request.dart'; import 'package:conekta/src/model/customer_payment_methods_response.dart'; import 'package:conekta/src/model/customer_response.dart'; import 'package:conekta/src/model/customer_response_shipping_contacts.dart'; -import 'package:conekta/src/model/customer_response_shipping_contacts_all_of.dart'; import 'package:conekta/src/model/customer_shipping_contacts.dart'; import 'package:conekta/src/model/customer_shipping_contacts_address.dart'; import 'package:conekta/src/model/customer_shipping_contacts_data_response.dart'; -import 'package:conekta/src/model/customer_shipping_contacts_data_response_all_of.dart'; import 'package:conekta/src/model/customer_shipping_contacts_response.dart'; import 'package:conekta/src/model/customer_shipping_contacts_response_address.dart'; import 'package:conekta/src/model/customer_update_fiscal_entities_request.dart'; import 'package:conekta/src/model/customer_update_shipping_contacts.dart'; import 'package:conekta/src/model/customers_response.dart'; -import 'package:conekta/src/model/customers_response_all_of.dart'; import 'package:conekta/src/model/delete_api_keys_response.dart'; -import 'package:conekta/src/model/delete_api_keys_response_all_of.dart'; import 'package:conekta/src/model/deleted_blacklist_rule_response.dart'; import 'package:conekta/src/model/deleted_whitelist_rule_response.dart'; import 'package:conekta/src/model/details.dart'; import 'package:conekta/src/model/details_error.dart'; import 'package:conekta/src/model/discount_lines_data_response.dart'; import 'package:conekta/src/model/discount_lines_response.dart'; -import 'package:conekta/src/model/discount_lines_response_all_of.dart'; import 'package:conekta/src/model/email_checkout_request.dart'; import 'package:conekta/src/model/error.dart'; -import 'package:conekta/src/model/error_all_of.dart'; import 'package:conekta/src/model/event_response.dart'; +import 'package:conekta/src/model/event_types.dart'; import 'package:conekta/src/model/events_resend_response.dart'; import 'package:conekta/src/model/fiscal_entity_address.dart'; import 'package:conekta/src/model/get_api_keys_response.dart'; -import 'package:conekta/src/model/get_api_keys_response_all_of.dart'; import 'package:conekta/src/model/get_charges_response.dart'; -import 'package:conekta/src/model/get_charges_response_all_of.dart'; import 'package:conekta/src/model/get_companies_response.dart'; -import 'package:conekta/src/model/get_companies_response_all_of.dart'; import 'package:conekta/src/model/get_customer_payment_method_data_response.dart'; import 'package:conekta/src/model/get_events_response.dart'; -import 'package:conekta/src/model/get_events_response_all_of.dart'; import 'package:conekta/src/model/get_order_discount_lines_response.dart'; -import 'package:conekta/src/model/get_order_discount_lines_response_all_of.dart'; import 'package:conekta/src/model/get_orders_response.dart'; import 'package:conekta/src/model/get_payment_method_response.dart'; -import 'package:conekta/src/model/get_payment_method_response_all_of.dart'; import 'package:conekta/src/model/get_plans_response.dart'; -import 'package:conekta/src/model/get_plans_response_all_of.dart'; import 'package:conekta/src/model/get_transactions_response.dart'; -import 'package:conekta/src/model/get_transactions_response_all_of.dart'; import 'package:conekta/src/model/get_transfers_response.dart'; -import 'package:conekta/src/model/get_transfers_response_all_of.dart'; import 'package:conekta/src/model/get_webhook_keys_response.dart'; -import 'package:conekta/src/model/get_webhook_keys_response_all_of.dart'; import 'package:conekta/src/model/get_webhooks_response.dart'; -import 'package:conekta/src/model/get_webhooks_response_all_of.dart'; import 'package:conekta/src/model/log_response.dart'; import 'package:conekta/src/model/logs_response.dart'; import 'package:conekta/src/model/logs_response_data.dart'; @@ -130,7 +104,6 @@ import 'package:conekta/src/model/order_capture_request.dart'; import 'package:conekta/src/model/order_customer_info_response.dart'; import 'package:conekta/src/model/order_discount_lines_request.dart'; import 'package:conekta/src/model/order_fiscal_entity_address_response.dart'; -import 'package:conekta/src/model/order_fiscal_entity_address_response_all_of.dart'; import 'package:conekta/src/model/order_fiscal_entity_request.dart'; import 'package:conekta/src/model/order_fiscal_entity_response.dart'; import 'package:conekta/src/model/order_next_action_response.dart'; @@ -140,16 +113,11 @@ import 'package:conekta/src/model/order_request.dart'; import 'package:conekta/src/model/order_request_customer_info.dart'; import 'package:conekta/src/model/order_response.dart'; import 'package:conekta/src/model/order_response_charges.dart'; -import 'package:conekta/src/model/order_response_charges_all_of.dart'; import 'package:conekta/src/model/order_response_checkout.dart'; import 'package:conekta/src/model/order_response_customer_info.dart'; -import 'package:conekta/src/model/order_response_customer_info_all_of.dart'; import 'package:conekta/src/model/order_response_discount_lines.dart'; -import 'package:conekta/src/model/order_response_discount_lines_all_of.dart'; import 'package:conekta/src/model/order_response_products.dart'; -import 'package:conekta/src/model/order_response_products_all_of.dart'; import 'package:conekta/src/model/order_response_shipping_contact.dart'; -import 'package:conekta/src/model/order_response_shipping_contact_all_of.dart'; import 'package:conekta/src/model/order_tax_request.dart'; import 'package:conekta/src/model/order_update_fiscal_entity_request.dart'; import 'package:conekta/src/model/order_update_request.dart'; @@ -161,27 +129,19 @@ import 'package:conekta/src/model/payment_method.dart'; import 'package:conekta/src/model/payment_method_bank_transfer.dart'; import 'package:conekta/src/model/payment_method_card.dart'; import 'package:conekta/src/model/payment_method_card_request.dart'; -import 'package:conekta/src/model/payment_method_card_request_all_of.dart'; import 'package:conekta/src/model/payment_method_card_response.dart'; -import 'package:conekta/src/model/payment_method_card_response_all_of.dart'; import 'package:conekta/src/model/payment_method_cash.dart'; import 'package:conekta/src/model/payment_method_cash_request.dart'; -import 'package:conekta/src/model/payment_method_cash_request_all_of.dart'; import 'package:conekta/src/model/payment_method_cash_response.dart'; -import 'package:conekta/src/model/payment_method_cash_response_all_of.dart'; import 'package:conekta/src/model/payment_method_response.dart'; import 'package:conekta/src/model/payment_method_spei_recurrent.dart'; -import 'package:conekta/src/model/payment_method_spei_recurrent_all_of.dart'; import 'package:conekta/src/model/payment_method_spei_request.dart'; import 'package:conekta/src/model/plan_request.dart'; import 'package:conekta/src/model/plan_response.dart'; import 'package:conekta/src/model/plan_update_request.dart'; import 'package:conekta/src/model/product.dart'; import 'package:conekta/src/model/product_data_response.dart'; -import 'package:conekta/src/model/product_data_response_all_of.dart'; import 'package:conekta/src/model/product_order_response.dart'; -import 'package:conekta/src/model/product_order_response_all_of.dart'; -import 'package:conekta/src/model/risk_rules.dart'; import 'package:conekta/src/model/risk_rules_data.dart'; import 'package:conekta/src/model/risk_rules_list.dart'; import 'package:conekta/src/model/shipping_order_response.dart'; @@ -204,12 +164,10 @@ import 'package:conekta/src/model/transfers_response.dart'; import 'package:conekta/src/model/update_customer.dart'; import 'package:conekta/src/model/update_customer_antifraud_info.dart'; import 'package:conekta/src/model/update_customer_fiscal_entities_response.dart'; -import 'package:conekta/src/model/update_customer_fiscal_entities_response_all_of.dart'; import 'package:conekta/src/model/update_customer_payment_methods_response.dart'; import 'package:conekta/src/model/update_order_discount_lines_request.dart'; import 'package:conekta/src/model/update_order_tax_request.dart'; import 'package:conekta/src/model/update_order_tax_response.dart'; -import 'package:conekta/src/model/update_order_tax_response_all_of.dart'; import 'package:conekta/src/model/update_payment_methods.dart'; import 'package:conekta/src/model/update_product.dart'; import 'package:conekta/src/model/webhook_key_create_response.dart'; @@ -227,7 +185,6 @@ part 'serializers.g.dart'; @SerializersFor([ ApiKeyCreateResponse, - ApiKeyCreateResponseAllOf,$ApiKeyCreateResponseAllOf, ApiKeyRequest, ApiKeyResponse,$ApiKeyResponse, ApiKeyResponseOnDelete,$ApiKeyResponseOnDelete, @@ -235,9 +192,6 @@ part 'serializers.g.dart'; BalanceCommonField, BalanceResponse, BlacklistRuleResponse, - ChargeDataPaymentMethodBankTransferResponse,$ChargeDataPaymentMethodBankTransferResponse, - ChargeDataPaymentMethodCardResponse,$ChargeDataPaymentMethodCardResponse, - ChargeDataPaymentMethodCashResponse,$ChargeDataPaymentMethodCashResponse, ChargeOrderResponse, ChargeOrderResponsePaymentMethod, ChargeRequest, @@ -246,7 +200,6 @@ part 'serializers.g.dart'; ChargeResponseChannel, ChargeResponsePaymentMethod, ChargeResponseRefunds, - ChargeResponseRefundsAllOf,$ChargeResponseRefundsAllOf, ChargeResponseRefundsData, ChargeUpdateRequest, ChargesDataResponse, @@ -256,85 +209,64 @@ part 'serializers.g.dart'; CheckoutRequest, CheckoutResponse, CheckoutsResponse, - CheckoutsResponseAllOf,$CheckoutsResponseAllOf, CompanyFiscalInfoAddressResponse, CompanyFiscalInfoResponse, CompanyPayoutDestinationResponse, CompanyResponse, CreateCustomerFiscalEntitiesResponse, - CreateCustomerFiscalEntitiesResponseAllOf,$CreateCustomerFiscalEntitiesResponseAllOf, CreateCustomerPaymentMethodsRequest, CreateCustomerPaymentMethodsResponse, CreateRiskRulesData, Customer, - CustomerAddress,$CustomerAddress, + CustomerAddress, CustomerAntifraudInfo, CustomerAntifraudInfoResponse, CustomerFiscalEntitiesDataResponse, CustomerFiscalEntitiesRequest,$CustomerFiscalEntitiesRequest, - CustomerFiscalEntitiesRequestAddress, CustomerFiscalEntitiesResponse, - CustomerFiscalEntitiesResponseAllOf,$CustomerFiscalEntitiesResponseAllOf, CustomerInfo, CustomerInfoJustCustomerId, CustomerInfoJustCustomerIdResponse,$CustomerInfoJustCustomerIdResponse, CustomerPaymentMethodRequest,$CustomerPaymentMethodRequest, - CustomerPaymentMethods,$CustomerPaymentMethods, CustomerPaymentMethodsData, CustomerPaymentMethodsRequest, CustomerPaymentMethodsResponse, CustomerResponse, CustomerResponseShippingContacts, - CustomerResponseShippingContactsAllOf,$CustomerResponseShippingContactsAllOf, CustomerShippingContacts,$CustomerShippingContacts, CustomerShippingContactsAddress, CustomerShippingContactsDataResponse, - CustomerShippingContactsDataResponseAllOf,$CustomerShippingContactsDataResponseAllOf, CustomerShippingContactsResponse,$CustomerShippingContactsResponse, CustomerShippingContactsResponseAddress, CustomerUpdateFiscalEntitiesRequest, CustomerUpdateShippingContacts, CustomersResponse, - CustomersResponseAllOf,$CustomersResponseAllOf, DeleteApiKeysResponse, - DeleteApiKeysResponseAllOf,$DeleteApiKeysResponseAllOf, DeletedBlacklistRuleResponse, DeletedWhitelistRuleResponse, Details,$Details, DetailsError, DiscountLinesDataResponse, DiscountLinesResponse,$DiscountLinesResponse, - DiscountLinesResponseAllOf,$DiscountLinesResponseAllOf, EmailCheckoutRequest, Error, - ErrorAllOf,$ErrorAllOf, EventResponse, + EventTypes, EventsResendResponse, FiscalEntityAddress,$FiscalEntityAddress, GetApiKeysResponse, - GetApiKeysResponseAllOf,$GetApiKeysResponseAllOf, GetChargesResponse, - GetChargesResponseAllOf,$GetChargesResponseAllOf, GetCompaniesResponse, - GetCompaniesResponseAllOf,$GetCompaniesResponseAllOf, GetCustomerPaymentMethodDataResponse, GetEventsResponse, - GetEventsResponseAllOf,$GetEventsResponseAllOf, GetOrderDiscountLinesResponse, - GetOrderDiscountLinesResponseAllOf,$GetOrderDiscountLinesResponseAllOf, GetOrdersResponse, GetPaymentMethodResponse, - GetPaymentMethodResponseAllOf,$GetPaymentMethodResponseAllOf, GetPlansResponse, - GetPlansResponseAllOf,$GetPlansResponseAllOf, GetTransactionsResponse, - GetTransactionsResponseAllOf,$GetTransactionsResponseAllOf, GetTransfersResponse, - GetTransfersResponseAllOf,$GetTransfersResponseAllOf, GetWebhookKeysResponse, - GetWebhookKeysResponseAllOf,$GetWebhookKeysResponseAllOf, GetWebhooksResponse, - GetWebhooksResponseAllOf,$GetWebhooksResponseAllOf, LogResponse, LogsResponse, LogsResponseData, @@ -342,7 +274,6 @@ part 'serializers.g.dart'; OrderCustomerInfoResponse,$OrderCustomerInfoResponse, OrderDiscountLinesRequest,$OrderDiscountLinesRequest, OrderFiscalEntityAddressResponse, - OrderFiscalEntityAddressResponseAllOf,$OrderFiscalEntityAddressResponseAllOf, OrderFiscalEntityRequest, OrderFiscalEntityResponse, OrderNextActionResponse, @@ -352,16 +283,11 @@ part 'serializers.g.dart'; OrderRequestCustomerInfo, OrderResponse, OrderResponseCharges, - OrderResponseChargesAllOf,$OrderResponseChargesAllOf, OrderResponseCheckout, OrderResponseCustomerInfo, - OrderResponseCustomerInfoAllOf,$OrderResponseCustomerInfoAllOf, OrderResponseDiscountLines, - OrderResponseDiscountLinesAllOf,$OrderResponseDiscountLinesAllOf, OrderResponseProducts, - OrderResponseProductsAllOf,$OrderResponseProductsAllOf, OrderResponseShippingContact, - OrderResponseShippingContactAllOf,$OrderResponseShippingContactAllOf, OrderTaxRequest,$OrderTaxRequest, OrderUpdateFiscalEntityRequest, OrderUpdateRequest, @@ -373,27 +299,19 @@ part 'serializers.g.dart'; PaymentMethodBankTransfer, PaymentMethodCard, PaymentMethodCardRequest, - PaymentMethodCardRequestAllOf,$PaymentMethodCardRequestAllOf, PaymentMethodCardResponse, - PaymentMethodCardResponseAllOf,$PaymentMethodCardResponseAllOf, PaymentMethodCash, PaymentMethodCashRequest, - PaymentMethodCashRequestAllOf,$PaymentMethodCashRequestAllOf, PaymentMethodCashResponse, - PaymentMethodCashResponseAllOf,$PaymentMethodCashResponseAllOf, PaymentMethodResponse,$PaymentMethodResponse, PaymentMethodSpeiRecurrent, - PaymentMethodSpeiRecurrentAllOf,$PaymentMethodSpeiRecurrentAllOf, PaymentMethodSpeiRequest, PlanRequest, PlanResponse, PlanUpdateRequest, Product,$Product, ProductDataResponse, - ProductDataResponseAllOf,$ProductDataResponseAllOf, ProductOrderResponse, - ProductOrderResponseAllOf,$ProductOrderResponseAllOf, - RiskRules,$RiskRules, RiskRulesData, RiskRulesList, ShippingOrderResponse, @@ -416,12 +334,10 @@ part 'serializers.g.dart'; UpdateCustomer, UpdateCustomerAntifraudInfo, UpdateCustomerFiscalEntitiesResponse, - UpdateCustomerFiscalEntitiesResponseAllOf,$UpdateCustomerFiscalEntitiesResponseAllOf, UpdateCustomerPaymentMethodsResponse, UpdateOrderDiscountLinesRequest, UpdateOrderTaxRequest, UpdateOrderTaxResponse, - UpdateOrderTaxResponseAllOf,$UpdateOrderTaxResponseAllOf, UpdatePaymentMethods, UpdateProduct, WebhookKeyCreateResponse, @@ -436,70 +352,27 @@ part 'serializers.g.dart'; WhitelistlistRuleResponse, ]) Serializers serializers = (_$serializers.toBuilder() - ..add(ApiKeyCreateResponseAllOf.serializer) ..add(ApiKeyResponse.serializer) ..add(ApiKeyResponseOnDelete.serializer) - ..add(ChargeDataPaymentMethodBankTransferResponse.serializer) - ..add(ChargeDataPaymentMethodCardResponse.serializer) - ..add(ChargeDataPaymentMethodCashResponse.serializer) ..add(ChargeResponse.serializer) - ..add(ChargeResponseRefundsAllOf.serializer) - ..add(CheckoutsResponseAllOf.serializer) - ..add(CreateCustomerFiscalEntitiesResponseAllOf.serializer) - ..add(CustomerAddress.serializer) ..add(CustomerFiscalEntitiesRequest.serializer) - ..add(CustomerFiscalEntitiesResponseAllOf.serializer) ..add(CustomerInfoJustCustomerIdResponse.serializer) ..add(CustomerPaymentMethodRequest.serializer) - ..add(CustomerPaymentMethods.serializer) - ..add(CustomerResponseShippingContactsAllOf.serializer) ..add(CustomerShippingContacts.serializer) - ..add(CustomerShippingContactsDataResponseAllOf.serializer) ..add(CustomerShippingContactsResponse.serializer) - ..add(CustomersResponseAllOf.serializer) - ..add(DeleteApiKeysResponseAllOf.serializer) ..add(Details.serializer) ..add(DiscountLinesResponse.serializer) - ..add(DiscountLinesResponseAllOf.serializer) - ..add(ErrorAllOf.serializer) ..add(FiscalEntityAddress.serializer) - ..add(GetApiKeysResponseAllOf.serializer) - ..add(GetChargesResponseAllOf.serializer) - ..add(GetCompaniesResponseAllOf.serializer) - ..add(GetEventsResponseAllOf.serializer) - ..add(GetOrderDiscountLinesResponseAllOf.serializer) - ..add(GetPaymentMethodResponseAllOf.serializer) - ..add(GetPlansResponseAllOf.serializer) - ..add(GetTransactionsResponseAllOf.serializer) - ..add(GetTransfersResponseAllOf.serializer) - ..add(GetWebhookKeysResponseAllOf.serializer) - ..add(GetWebhooksResponseAllOf.serializer) ..add(OrderCustomerInfoResponse.serializer) ..add(OrderDiscountLinesRequest.serializer) - ..add(OrderFiscalEntityAddressResponseAllOf.serializer) - ..add(OrderResponseChargesAllOf.serializer) - ..add(OrderResponseCustomerInfoAllOf.serializer) - ..add(OrderResponseDiscountLinesAllOf.serializer) - ..add(OrderResponseProductsAllOf.serializer) - ..add(OrderResponseShippingContactAllOf.serializer) ..add(OrderTaxRequest.serializer) ..add(OrdersResponse.serializer) ..add(Page.serializer) ..add(Pagination.serializer) ..add(PaymentMethod.serializer) - ..add(PaymentMethodCardRequestAllOf.serializer) - ..add(PaymentMethodCardResponseAllOf.serializer) - ..add(PaymentMethodCashRequestAllOf.serializer) - ..add(PaymentMethodCashResponseAllOf.serializer) ..add(PaymentMethodResponse.serializer) - ..add(PaymentMethodSpeiRecurrentAllOf.serializer) ..add(Product.serializer) - ..add(ProductDataResponseAllOf.serializer) - ..add(ProductOrderResponseAllOf.serializer) - ..add(RiskRules.serializer) ..add(ShippingRequest.serializer) - ..add(UpdateCustomerFiscalEntitiesResponseAllOf.serializer) - ..add(UpdateOrderTaxResponseAllOf.serializer) ..add(const OneOfSerializer()) ..add(const AnyOfSerializer()) ..add(const DateSerializer()) diff --git a/lib/src/serializers.g.dart b/lib/src/serializers.g.dart index e31b46c..4a6c40d 100644 --- a/lib/src/serializers.g.dart +++ b/lib/src/serializers.g.dart @@ -7,70 +7,27 @@ part of 'serializers.dart'; // ************************************************************************** Serializers _$serializers = (new Serializers().toBuilder() - ..add($ApiKeyCreateResponseAllOf.serializer) ..add($ApiKeyResponse.serializer) ..add($ApiKeyResponseOnDelete.serializer) - ..add($ChargeDataPaymentMethodBankTransferResponse.serializer) - ..add($ChargeDataPaymentMethodCardResponse.serializer) - ..add($ChargeDataPaymentMethodCashResponse.serializer) ..add($ChargeResponse.serializer) - ..add($ChargeResponseRefundsAllOf.serializer) - ..add($CheckoutsResponseAllOf.serializer) - ..add($CreateCustomerFiscalEntitiesResponseAllOf.serializer) - ..add($CustomerAddress.serializer) ..add($CustomerFiscalEntitiesRequest.serializer) - ..add($CustomerFiscalEntitiesResponseAllOf.serializer) ..add($CustomerInfoJustCustomerIdResponse.serializer) ..add($CustomerPaymentMethodRequest.serializer) - ..add($CustomerPaymentMethods.serializer) - ..add($CustomerResponseShippingContactsAllOf.serializer) ..add($CustomerShippingContacts.serializer) - ..add($CustomerShippingContactsDataResponseAllOf.serializer) ..add($CustomerShippingContactsResponse.serializer) - ..add($CustomersResponseAllOf.serializer) - ..add($DeleteApiKeysResponseAllOf.serializer) ..add($Details.serializer) ..add($DiscountLinesResponse.serializer) - ..add($DiscountLinesResponseAllOf.serializer) - ..add($ErrorAllOf.serializer) ..add($FiscalEntityAddress.serializer) - ..add($GetApiKeysResponseAllOf.serializer) - ..add($GetChargesResponseAllOf.serializer) - ..add($GetCompaniesResponseAllOf.serializer) - ..add($GetEventsResponseAllOf.serializer) - ..add($GetOrderDiscountLinesResponseAllOf.serializer) - ..add($GetPaymentMethodResponseAllOf.serializer) - ..add($GetPlansResponseAllOf.serializer) - ..add($GetTransactionsResponseAllOf.serializer) - ..add($GetTransfersResponseAllOf.serializer) - ..add($GetWebhookKeysResponseAllOf.serializer) - ..add($GetWebhooksResponseAllOf.serializer) ..add($OrderCustomerInfoResponse.serializer) ..add($OrderDiscountLinesRequest.serializer) - ..add($OrderFiscalEntityAddressResponseAllOf.serializer) - ..add($OrderResponseChargesAllOf.serializer) - ..add($OrderResponseCustomerInfoAllOf.serializer) - ..add($OrderResponseDiscountLinesAllOf.serializer) - ..add($OrderResponseProductsAllOf.serializer) - ..add($OrderResponseShippingContactAllOf.serializer) ..add($OrderTaxRequest.serializer) ..add($OrdersResponse.serializer) ..add($Page.serializer) ..add($Pagination.serializer) ..add($PaymentMethod.serializer) - ..add($PaymentMethodCardRequestAllOf.serializer) - ..add($PaymentMethodCardResponseAllOf.serializer) - ..add($PaymentMethodCashRequestAllOf.serializer) - ..add($PaymentMethodCashResponseAllOf.serializer) ..add($PaymentMethodResponse.serializer) - ..add($PaymentMethodSpeiRecurrentAllOf.serializer) ..add($Product.serializer) - ..add($ProductDataResponseAllOf.serializer) - ..add($ProductOrderResponseAllOf.serializer) - ..add($RiskRules.serializer) ..add($ShippingRequest.serializer) - ..add($UpdateCustomerFiscalEntitiesResponseAllOf.serializer) - ..add($UpdateOrderTaxResponseAllOf.serializer) ..add(ApiKeyCreateResponse.serializer) ..add(ApiKeyRequest.serializer) ..add(ApiKeyUpdateRequest.serializer) @@ -107,10 +64,10 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(CreateCustomerPaymentMethodsResponse.serializer) ..add(CreateRiskRulesData.serializer) ..add(Customer.serializer) + ..add(CustomerAddress.serializer) ..add(CustomerAntifraudInfo.serializer) ..add(CustomerAntifraudInfoResponse.serializer) ..add(CustomerFiscalEntitiesDataResponse.serializer) - ..add(CustomerFiscalEntitiesRequestAddress.serializer) ..add(CustomerFiscalEntitiesResponse.serializer) ..add(CustomerInfo.serializer) ..add(CustomerInfoJustCustomerId.serializer) @@ -133,6 +90,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(EmailCheckoutRequest.serializer) ..add(Error.serializer) ..add(EventResponse.serializer) + ..add(EventTypes.serializer) ..add(EventsResendResponse.serializer) ..add(GetApiKeysResponse.serializer) ..add(GetChargesResponse.serializer) @@ -221,9 +179,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(WebhookResponse.serializer) ..add(WebhookUpdateRequest.serializer) ..add(WhitelistlistRuleResponse.serializer) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ApiKeyResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(ApiKeyResponse)]), () => new ListBuilder()) @@ -299,13 +254,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(ChargeResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ChargeResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(ChargeResponseRefundsData)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(ChargeResponseRefundsData)]), @@ -314,26 +262,12 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(ChargesDataResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(ChargesDataResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(CheckoutResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(CheckoutResponse)]), () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(CompanyResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(CompanyResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, - const [const FullType(CustomerFiscalEntitiesDataResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(CustomerFiscalEntitiesDataResponse)]), @@ -378,13 +312,6 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(CustomerPaymentMethodsData)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerPaymentMethodsData)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(CustomerResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(CustomerResponse)]), () => new ListBuilder()) @@ -392,10 +319,6 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType(BuiltList, const [const FullType(CustomerShippingContactsDataResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, - const [const FullType(CustomerShippingContactsDataResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(DetailsError)]), () => new ListBuilder()) @@ -406,21 +329,10 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(DiscountLinesDataResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(DiscountLinesDataResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(DiscountLinesResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(DiscountLinesResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(EventResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(EventResponse)]), () => new ListBuilder()) @@ -431,10 +343,6 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType(BuiltList, const [const FullType(GetCustomerPaymentMethodDataResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, - const [const FullType(GetCustomerPaymentMethodDataResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(JsonObject)]), () => new ListBuilder()) @@ -450,9 +358,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(PlanResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(PlanResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(Product)]), () => new ListBuilder()) @@ -466,13 +371,6 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(ProductDataResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(ProductDataResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(RiskRulesData)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(RiskRulesData)]), () => new ListBuilder()) @@ -543,25 +441,12 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(TransactionResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(TransactionResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(TransfersResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(TransfersResponse)]), () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(WebhookKeyResponse)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(WebhookKeyResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(WebhookResponse)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(WebhookResponse)]), () => new ListBuilder()) @@ -573,14 +458,6 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType.nullable(JsonObject)]), () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType.nullable(JsonObject)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType.nullable(JsonObject)]), - () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltMap, const [const FullType(String), const FullType(JsonObject)]), diff --git a/lib/src/utils/utils.dart b/lib/src/utils/utils.dart index ac4f55c..9eca4df 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/utils.dart @@ -5,7 +5,7 @@ final String UnknownPlatform = "unknown platform"; /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. final RegExp jsonRegex = RegExp( - r'^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)([ \t](;.*)?)?$', + r'^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)([ \t](;.*))?$', caseSensitive: false, ); @@ -71,7 +71,7 @@ String getConektaClientUserAgent() { return cachedUserClient; } Map cachedData = { - "bindings_version": "6.0.1", + "bindings_version": "6.0.2", "lang": "Dart", "publisher": "conekta", "lang_version": Platform.version.split(' ')[0], diff --git a/pubspec.yaml b/pubspec.yaml index 117c234..44982fa 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: conekta -version: 6.0.1 -description: Dart Library for the Conekta API. +version: 6.0.2 +description: A simple Conekta API wrapper, that is meant to be used on the server. homepage: https://www.github.com/conekta/conekta-dart repository: https://www.github.com/conekta/conekta-dart diff --git a/templates/dart/utils.mustache b/templates/dart/utils.mustache index e0aeead..1a0cfd6 100644 --- a/templates/dart/utils.mustache +++ b/templates/dart/utils.mustache @@ -5,7 +5,7 @@ final String UnknownPlatform = "unknown platform"; /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. final RegExp jsonRegex = RegExp( - r'^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)([ \t](;.*)?)?$', + r'^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)([ \t](;.*))?$', caseSensitive: false, );