From da715afafbab0c4e1def335bd00e69d11c910799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Cedr=C3=B3n?= Date: Tue, 17 Dec 2024 19:32:56 -0300 Subject: [PATCH 1/2] AI-128: Regenerate SDK --- lib/src/model/api_key_create_response.g.dart | 234 ------ lib/src/model/api_key_request.g.dart | 106 --- lib/src/model/api_key_response.g.dart | 256 ------- .../model/api_key_response_on_delete.g.dart | 227 ------ lib/src/model/api_key_update_request.g.dart | 104 --- lib/src/model/balance_common_field.g.dart | 104 --- lib/src/model/balance_response.g.dart | 255 ------- lib/src/model/blacklist_rule_response.g.dart | 126 --- lib/src/model/charge_order_response.g.dart | 340 --------- ...harge_order_response_payment_method.g.dart | 101 --- lib/src/model/charge_request.g.dart | 134 ---- .../charge_request_payment_method.g.dart | 99 --- lib/src/model/charge_response.g.dart | 391 ---------- lib/src/model/charge_response_channel.g.dart | 132 ---- .../charge_response_payment_method.g.dart | 100 --- lib/src/model/charge_response_refunds.g.dart | 173 ----- .../model/charge_response_refunds_data.g.dart | 183 ----- lib/src/model/charge_update_request.g.dart | 93 --- lib/src/model/charges_data_response.g.dart | 335 -------- lib/src/model/charges_order_response.g.dart | 143 ---- .../charges_order_response_all_of_data.g.dart | 336 -------- lib/src/model/checkout.g.dart | 268 ------- lib/src/model/checkout_order_template.g.dart | 162 ---- ...eckout_order_template_customer_info.g.dart | 103 --- lib/src/model/checkout_request.g.dart | 243 ------ lib/src/model/checkout_response.g.dart | 430 ----------- lib/src/model/checkouts_response.g.dart | 172 ----- ...ompany_fiscal_info_address_response.g.dart | 254 ------- .../model/company_fiscal_info_response.g.dart | 243 ------ ...company_payout_destination_response.g.dart | 273 ------- lib/src/model/company_response.g.dart | 249 ------ ...e_customer_fiscal_entities_response.g.dart | 259 ------- ...te_customer_payment_methods_request.g.dart | 104 --- ...e_customer_payment_methods_response.g.dart | 105 --- lib/src/model/create_risk_rules_data.g.dart | 129 ---- lib/src/model/customer.g.dart | 326 -------- lib/src/model/customer_address.g.dart | 189 ----- lib/src/model/customer_antifraud_info.g.dart | 107 --- .../customer_antifraud_info_response.g.dart | 109 --- ...tomer_fiscal_entities_data_response.g.dart | 257 ------- .../customer_fiscal_entities_request.g.dart | 206 ----- .../customer_fiscal_entities_response.g.dart | 144 ---- lib/src/model/customer_info.g.dart | 149 ---- .../customer_info_just_customer_id.g.dart | 100 --- ...omer_info_just_customer_id_response.g.dart | 109 --- .../customer_payment_method_request.g.dart | 108 --- .../customer_payment_methods_data.g.dart | 99 --- .../customer_payment_methods_request.g.dart | 100 --- .../customer_payment_methods_response.g.dart | 174 ----- lib/src/model/customer_response.g.dart | 383 ---------- ...customer_response_shipping_contacts.g.dart | 145 ---- .../model/customer_shipping_contacts.g.dart | 235 ------ .../customer_shipping_contacts_address.g.dart | 172 ----- ...mer_shipping_contacts_data_response.g.dart | 259 ------- ...customer_shipping_contacts_response.g.dart | 282 ------- ..._shipping_contacts_response_address.g.dart | 189 ----- ...omer_update_fiscal_entities_request.g.dart | 184 ----- .../customer_update_shipping_contacts.g.dart | 187 ----- lib/src/model/customers_response.g.dart | 172 ----- lib/src/model/delete_api_keys_response.g.dart | 196 ----- .../deleted_blacklist_rule_response.g.dart | 129 ---- .../deleted_whitelist_rule_response.g.dart | 129 ---- lib/src/model/details.g.dart | 110 --- lib/src/model/details_error.g.dart | 126 --- .../model/discount_lines_data_response.g.dart | 178 ----- lib/src/model/discount_lines_response.g.dart | 200 ----- lib/src/model/email_checkout_request.g.dart | 98 --- lib/src/model/error.g.dart | 139 ---- lib/src/model/event_response.g.dart | 198 ----- lib/src/model/event_types.g.dart | 95 --- lib/src/model/events_resend_response.g.dart | 175 ----- lib/src/model/fiscal_entity_address.g.dart | 214 ------ lib/src/model/get_api_keys_response.g.dart | 172 ----- lib/src/model/get_charges_response.g.dart | 172 ----- lib/src/model/get_companies_response.g.dart | 172 ----- ...stomer_payment_method_data_response.g.dart | 105 --- lib/src/model/get_events_response.g.dart | 171 ----- .../get_order_discount_lines_response.g.dart | 174 ----- lib/src/model/get_orders_response.g.dart | 173 ----- .../model/get_payment_method_response.g.dart | 173 ----- lib/src/model/get_plans_response.g.dart | 171 ----- .../model/get_transactions_response.g.dart | 173 ----- lib/src/model/get_transfers_response.g.dart | 173 ----- .../model/get_webhook_keys_response.g.dart | 173 ----- lib/src/model/get_webhooks_response.g.dart | 172 ----- lib/src/model/log_response.g.dart | 360 --------- lib/src/model/logs_response.g.dart | 157 ---- lib/src/model/logs_response_data.g.dart | 355 --------- lib/src/model/order_capture_request.g.dart | 98 --- .../model/order_customer_info_response.g.dart | 182 ----- .../model/order_discount_lines_request.g.dart | 144 ---- ...rder_fiscal_entity_address_response.g.dart | 205 ----- .../model/order_fiscal_entity_request.g.dart | 177 ----- .../model/order_fiscal_entity_response.g.dart | 226 ------ .../model/order_next_action_response.g.dart | 123 --- ...ext_action_response_redirect_to_url.g.dart | 112 --- lib/src/model/order_refund_request.dart | 7 +- lib/src/model/order_refund_request.g.dart | 126 --- lib/src/model/order_request.g.dart | 332 -------- .../model/order_request_customer_info.g.dart | 99 --- lib/src/model/order_response.g.dart | 392 ---------- lib/src/model/order_response_charges.g.dart | 142 ---- lib/src/model/order_response_checkout.g.dart | 459 ----------- .../model/order_response_customer_info.g.dart | 175 ----- .../order_response_discount_lines.g.dart | 143 ---- lib/src/model/order_response_products.g.dart | 173 ----- .../order_response_shipping_contact.g.dart | 242 ------ lib/src/model/order_tax_request.g.dart | 156 ---- .../order_update_fiscal_entity_request.g.dart | 178 ----- lib/src/model/order_update_request.g.dart | 277 ------- .../order_update_request_customer_info.g.dart | 100 --- lib/src/model/orders_response.g.dart | 114 --- lib/src/model/page.g.dart | 113 --- lib/src/model/pagination.g.dart | 118 --- lib/src/model/payment_method.g.dart | 119 --- .../model/payment_method_bank_transfer.g.dart | 347 --------- lib/src/model/payment_method_card.g.dart | 276 ------- .../model/payment_method_card_request.g.dart | 191 ----- .../model/payment_method_card_response.g.dart | 282 ------- lib/src/model/payment_method_cash.g.dart | 250 ------ .../model/payment_method_cash_request.g.dart | 113 --- .../model/payment_method_cash_response.g.dart | 221 ------ .../payment_method_general_request.g.dart | 190 ----- lib/src/model/payment_method_response.g.dart | 178 ----- .../payment_method_spei_recurrent.g.dart | 184 ----- .../model/payment_method_spei_request.g.dart | 113 --- .../model/payment_method_token_request.g.dart | 116 --- lib/src/model/payout.g.dart | 106 --- lib/src/model/payout_method.g.dart | 93 --- lib/src/model/payout_order.g.dart | 203 ----- .../model/payout_order_payouts_item.g.dart | 197 ----- lib/src/model/payout_order_response.g.dart | 312 -------- ...payout_order_response_customer_info.g.dart | 178 ----- lib/src/model/payout_orders_response.g.dart | 173 ----- lib/src/model/plan_request.g.dart | 257 ------- lib/src/model/plan_response.g.dart | 215 ------ lib/src/model/plan_update_request.g.dart | 129 ---- lib/src/model/product.g.dart | 252 ------ lib/src/model/product_data_response.g.dart | 264 ------- lib/src/model/product_order_response.g.dart | 265 ------- lib/src/model/risk_rules_data.g.dart | 166 ---- lib/src/model/risk_rules_list.g.dart | 167 ---- lib/src/model/shipping_order_response.g.dart | 203 ----- lib/src/model/shipping_request.g.dart | 185 ----- lib/src/model/sms_checkout_request.g.dart | 98 --- .../model/subscription_events_response.g.dart | 172 ----- lib/src/model/subscription_request.g.dart | 122 --- lib/src/model/subscription_response.g.dart | 307 -------- .../model/subscription_update_request.g.dart | 117 --- lib/src/model/token.g.dart | 114 --- lib/src/model/token_card.g.dart | 165 ---- lib/src/model/token_checkout.g.dart | 91 --- lib/src/model/token_response.g.dart | 167 ---- lib/src/model/token_response_checkout.g.dart | 396 ---------- lib/src/model/transaction_response.g.dart | 245 ------ .../transfer_destination_response.g.dart | 185 ----- lib/src/model/transfer_method_response.g.dart | 183 ----- lib/src/model/transfer_response.g.dart | 221 ------ lib/src/model/transfers_response.g.dart | 220 ------ lib/src/model/update_customer.g.dart | 320 -------- .../update_customer_antifraud_info.g.dart | 109 --- ...e_customer_fiscal_entities_response.g.dart | 259 ------- ...e_customer_payment_methods_response.g.dart | 105 --- ...update_order_discount_lines_request.g.dart | 119 --- lib/src/model/update_order_tax_request.g.dart | 133 ---- .../model/update_order_tax_response.g.dart | 184 ----- lib/src/model/update_payment_methods.g.dart | 92 --- lib/src/model/update_product.g.dart | 213 ------ .../model/webhook_key_create_response.g.dart | 158 ---- .../model/webhook_key_delete_response.g.dart | 158 ---- lib/src/model/webhook_key_request.g.dart | 91 --- lib/src/model/webhook_key_response.g.dart | 170 ----- .../model/webhook_key_update_request.g.dart | 93 --- lib/src/model/webhook_log.g.dart | 183 ----- lib/src/model/webhook_request.g.dart | 111 --- lib/src/model/webhook_response.g.dart | 220 ------ lib/src/model/webhook_update_request.g.dart | 135 ---- .../model/whitelistlist_rule_response.g.dart | 128 ---- lib/src/serializers.g.dart | 716 ------------------ 179 files changed, 3 insertions(+), 33439 deletions(-) delete mode 100644 lib/src/model/api_key_create_response.g.dart delete mode 100644 lib/src/model/api_key_request.g.dart delete mode 100644 lib/src/model/api_key_response.g.dart delete mode 100644 lib/src/model/api_key_response_on_delete.g.dart delete mode 100644 lib/src/model/api_key_update_request.g.dart delete mode 100644 lib/src/model/balance_common_field.g.dart delete mode 100644 lib/src/model/balance_response.g.dart delete mode 100644 lib/src/model/blacklist_rule_response.g.dart delete mode 100644 lib/src/model/charge_order_response.g.dart delete mode 100644 lib/src/model/charge_order_response_payment_method.g.dart delete mode 100644 lib/src/model/charge_request.g.dart delete mode 100644 lib/src/model/charge_request_payment_method.g.dart delete mode 100644 lib/src/model/charge_response.g.dart delete mode 100644 lib/src/model/charge_response_channel.g.dart delete mode 100644 lib/src/model/charge_response_payment_method.g.dart delete mode 100644 lib/src/model/charge_response_refunds.g.dart delete mode 100644 lib/src/model/charge_response_refunds_data.g.dart delete mode 100644 lib/src/model/charge_update_request.g.dart delete mode 100644 lib/src/model/charges_data_response.g.dart delete mode 100644 lib/src/model/charges_order_response.g.dart delete mode 100644 lib/src/model/charges_order_response_all_of_data.g.dart delete mode 100644 lib/src/model/checkout.g.dart delete mode 100644 lib/src/model/checkout_order_template.g.dart delete mode 100644 lib/src/model/checkout_order_template_customer_info.g.dart delete mode 100644 lib/src/model/checkout_request.g.dart delete mode 100644 lib/src/model/checkout_response.g.dart delete mode 100644 lib/src/model/checkouts_response.g.dart delete mode 100644 lib/src/model/company_fiscal_info_address_response.g.dart delete mode 100644 lib/src/model/company_fiscal_info_response.g.dart delete mode 100644 lib/src/model/company_payout_destination_response.g.dart delete mode 100644 lib/src/model/company_response.g.dart delete mode 100644 lib/src/model/create_customer_fiscal_entities_response.g.dart delete mode 100644 lib/src/model/create_customer_payment_methods_request.g.dart delete mode 100644 lib/src/model/create_customer_payment_methods_response.g.dart delete mode 100644 lib/src/model/create_risk_rules_data.g.dart delete mode 100644 lib/src/model/customer.g.dart delete mode 100644 lib/src/model/customer_address.g.dart delete mode 100644 lib/src/model/customer_antifraud_info.g.dart delete mode 100644 lib/src/model/customer_antifraud_info_response.g.dart delete mode 100644 lib/src/model/customer_fiscal_entities_data_response.g.dart delete mode 100644 lib/src/model/customer_fiscal_entities_request.g.dart delete mode 100644 lib/src/model/customer_fiscal_entities_response.g.dart delete mode 100644 lib/src/model/customer_info.g.dart delete mode 100644 lib/src/model/customer_info_just_customer_id.g.dart delete mode 100644 lib/src/model/customer_info_just_customer_id_response.g.dart delete mode 100644 lib/src/model/customer_payment_method_request.g.dart delete mode 100644 lib/src/model/customer_payment_methods_data.g.dart delete mode 100644 lib/src/model/customer_payment_methods_request.g.dart delete mode 100644 lib/src/model/customer_payment_methods_response.g.dart delete mode 100644 lib/src/model/customer_response.g.dart delete mode 100644 lib/src/model/customer_response_shipping_contacts.g.dart delete mode 100644 lib/src/model/customer_shipping_contacts.g.dart delete mode 100644 lib/src/model/customer_shipping_contacts_address.g.dart delete mode 100644 lib/src/model/customer_shipping_contacts_data_response.g.dart delete mode 100644 lib/src/model/customer_shipping_contacts_response.g.dart delete mode 100644 lib/src/model/customer_shipping_contacts_response_address.g.dart delete mode 100644 lib/src/model/customer_update_fiscal_entities_request.g.dart delete mode 100644 lib/src/model/customer_update_shipping_contacts.g.dart delete mode 100644 lib/src/model/customers_response.g.dart delete mode 100644 lib/src/model/delete_api_keys_response.g.dart delete mode 100644 lib/src/model/deleted_blacklist_rule_response.g.dart delete mode 100644 lib/src/model/deleted_whitelist_rule_response.g.dart delete mode 100644 lib/src/model/details.g.dart delete mode 100644 lib/src/model/details_error.g.dart delete mode 100644 lib/src/model/discount_lines_data_response.g.dart delete mode 100644 lib/src/model/discount_lines_response.g.dart delete mode 100644 lib/src/model/email_checkout_request.g.dart delete mode 100644 lib/src/model/error.g.dart delete mode 100644 lib/src/model/event_response.g.dart delete mode 100644 lib/src/model/event_types.g.dart delete mode 100644 lib/src/model/events_resend_response.g.dart delete mode 100644 lib/src/model/fiscal_entity_address.g.dart delete mode 100644 lib/src/model/get_api_keys_response.g.dart delete mode 100644 lib/src/model/get_charges_response.g.dart delete mode 100644 lib/src/model/get_companies_response.g.dart delete mode 100644 lib/src/model/get_customer_payment_method_data_response.g.dart delete mode 100644 lib/src/model/get_events_response.g.dart delete mode 100644 lib/src/model/get_order_discount_lines_response.g.dart delete mode 100644 lib/src/model/get_orders_response.g.dart delete mode 100644 lib/src/model/get_payment_method_response.g.dart delete mode 100644 lib/src/model/get_plans_response.g.dart delete mode 100644 lib/src/model/get_transactions_response.g.dart delete mode 100644 lib/src/model/get_transfers_response.g.dart delete mode 100644 lib/src/model/get_webhook_keys_response.g.dart delete mode 100644 lib/src/model/get_webhooks_response.g.dart delete mode 100644 lib/src/model/log_response.g.dart delete mode 100644 lib/src/model/logs_response.g.dart delete mode 100644 lib/src/model/logs_response_data.g.dart delete mode 100644 lib/src/model/order_capture_request.g.dart delete mode 100644 lib/src/model/order_customer_info_response.g.dart delete mode 100644 lib/src/model/order_discount_lines_request.g.dart delete mode 100644 lib/src/model/order_fiscal_entity_address_response.g.dart delete mode 100644 lib/src/model/order_fiscal_entity_request.g.dart delete mode 100644 lib/src/model/order_fiscal_entity_response.g.dart delete mode 100644 lib/src/model/order_next_action_response.g.dart delete mode 100644 lib/src/model/order_next_action_response_redirect_to_url.g.dart delete mode 100644 lib/src/model/order_refund_request.g.dart delete mode 100644 lib/src/model/order_request.g.dart delete mode 100644 lib/src/model/order_request_customer_info.g.dart delete mode 100644 lib/src/model/order_response.g.dart delete mode 100644 lib/src/model/order_response_charges.g.dart delete mode 100644 lib/src/model/order_response_checkout.g.dart delete mode 100644 lib/src/model/order_response_customer_info.g.dart delete mode 100644 lib/src/model/order_response_discount_lines.g.dart delete mode 100644 lib/src/model/order_response_products.g.dart delete mode 100644 lib/src/model/order_response_shipping_contact.g.dart delete mode 100644 lib/src/model/order_tax_request.g.dart delete mode 100644 lib/src/model/order_update_fiscal_entity_request.g.dart delete mode 100644 lib/src/model/order_update_request.g.dart delete mode 100644 lib/src/model/order_update_request_customer_info.g.dart delete mode 100644 lib/src/model/orders_response.g.dart delete mode 100644 lib/src/model/page.g.dart delete mode 100644 lib/src/model/pagination.g.dart delete mode 100644 lib/src/model/payment_method.g.dart delete mode 100644 lib/src/model/payment_method_bank_transfer.g.dart delete mode 100644 lib/src/model/payment_method_card.g.dart delete mode 100644 lib/src/model/payment_method_card_request.g.dart delete mode 100644 lib/src/model/payment_method_card_response.g.dart delete mode 100644 lib/src/model/payment_method_cash.g.dart delete mode 100644 lib/src/model/payment_method_cash_request.g.dart delete mode 100644 lib/src/model/payment_method_cash_response.g.dart delete mode 100644 lib/src/model/payment_method_general_request.g.dart delete mode 100644 lib/src/model/payment_method_response.g.dart delete mode 100644 lib/src/model/payment_method_spei_recurrent.g.dart delete mode 100644 lib/src/model/payment_method_spei_request.g.dart delete mode 100644 lib/src/model/payment_method_token_request.g.dart delete mode 100644 lib/src/model/payout.g.dart delete mode 100644 lib/src/model/payout_method.g.dart delete mode 100644 lib/src/model/payout_order.g.dart delete mode 100644 lib/src/model/payout_order_payouts_item.g.dart delete mode 100644 lib/src/model/payout_order_response.g.dart delete mode 100644 lib/src/model/payout_order_response_customer_info.g.dart delete mode 100644 lib/src/model/payout_orders_response.g.dart delete mode 100644 lib/src/model/plan_request.g.dart delete mode 100644 lib/src/model/plan_response.g.dart delete mode 100644 lib/src/model/plan_update_request.g.dart delete mode 100644 lib/src/model/product.g.dart delete mode 100644 lib/src/model/product_data_response.g.dart delete mode 100644 lib/src/model/product_order_response.g.dart delete mode 100644 lib/src/model/risk_rules_data.g.dart delete mode 100644 lib/src/model/risk_rules_list.g.dart delete mode 100644 lib/src/model/shipping_order_response.g.dart delete mode 100644 lib/src/model/shipping_request.g.dart delete mode 100644 lib/src/model/sms_checkout_request.g.dart delete mode 100644 lib/src/model/subscription_events_response.g.dart delete mode 100644 lib/src/model/subscription_request.g.dart delete mode 100644 lib/src/model/subscription_response.g.dart delete mode 100644 lib/src/model/subscription_update_request.g.dart delete mode 100644 lib/src/model/token.g.dart delete mode 100644 lib/src/model/token_card.g.dart delete mode 100644 lib/src/model/token_checkout.g.dart delete mode 100644 lib/src/model/token_response.g.dart delete mode 100644 lib/src/model/token_response_checkout.g.dart delete mode 100644 lib/src/model/transaction_response.g.dart delete mode 100644 lib/src/model/transfer_destination_response.g.dart delete mode 100644 lib/src/model/transfer_method_response.g.dart delete mode 100644 lib/src/model/transfer_response.g.dart delete mode 100644 lib/src/model/transfers_response.g.dart delete mode 100644 lib/src/model/update_customer.g.dart delete mode 100644 lib/src/model/update_customer_antifraud_info.g.dart delete mode 100644 lib/src/model/update_customer_fiscal_entities_response.g.dart delete mode 100644 lib/src/model/update_customer_payment_methods_response.g.dart delete mode 100644 lib/src/model/update_order_discount_lines_request.g.dart delete mode 100644 lib/src/model/update_order_tax_request.g.dart delete mode 100644 lib/src/model/update_order_tax_response.g.dart delete mode 100644 lib/src/model/update_payment_methods.g.dart delete mode 100644 lib/src/model/update_product.g.dart delete mode 100644 lib/src/model/webhook_key_create_response.g.dart delete mode 100644 lib/src/model/webhook_key_delete_response.g.dart delete mode 100644 lib/src/model/webhook_key_request.g.dart delete mode 100644 lib/src/model/webhook_key_response.g.dart delete mode 100644 lib/src/model/webhook_key_update_request.g.dart delete mode 100644 lib/src/model/webhook_log.g.dart delete mode 100644 lib/src/model/webhook_request.g.dart delete mode 100644 lib/src/model/webhook_response.g.dart delete mode 100644 lib/src/model/webhook_update_request.g.dart delete mode 100644 lib/src/model/whitelistlist_rule_response.g.dart delete mode 100644 lib/src/serializers.g.dart diff --git a/lib/src/model/api_key_create_response.g.dart b/lib/src/model/api_key_create_response.g.dart deleted file mode 100644 index 250d64f..0000000 --- a/lib/src/model/api_key_create_response.g.dart +++ /dev/null @@ -1,234 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api_key_create_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ApiKeyCreateResponse extends ApiKeyCreateResponse { - @override - final String? authenticationToken; - @override - final bool? active; - @override - final int? createdAt; - @override - final int? updatedAt; - @override - final int? deactivatedAt; - @override - final String? description; - @override - final String? id; - @override - final bool? livemode; - @override - final bool? deleted; - @override - final String? object; - @override - final String? prefix; - @override - final String? role; - - factory _$ApiKeyCreateResponse( - [void Function(ApiKeyCreateResponseBuilder)? updates]) => - (new ApiKeyCreateResponseBuilder()..update(updates))._build(); - - _$ApiKeyCreateResponse._( - {this.authenticationToken, - this.active, - this.createdAt, - this.updatedAt, - this.deactivatedAt, - this.description, - this.id, - this.livemode, - this.deleted, - this.object, - this.prefix, - this.role}) - : super._(); - - @override - ApiKeyCreateResponse rebuild( - void Function(ApiKeyCreateResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ApiKeyCreateResponseBuilder toBuilder() => - new ApiKeyCreateResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ApiKeyCreateResponse && - authenticationToken == other.authenticationToken && - active == other.active && - createdAt == other.createdAt && - updatedAt == other.updatedAt && - deactivatedAt == other.deactivatedAt && - description == other.description && - id == other.id && - livemode == other.livemode && - deleted == other.deleted && - object == other.object && - prefix == other.prefix && - role == other.role; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, authenticationToken.hashCode); - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, updatedAt.hashCode); - _$hash = $jc(_$hash, deactivatedAt.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, prefix.hashCode); - _$hash = $jc(_$hash, role.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ApiKeyCreateResponse') - ..add('authenticationToken', authenticationToken) - ..add('active', active) - ..add('createdAt', createdAt) - ..add('updatedAt', updatedAt) - ..add('deactivatedAt', deactivatedAt) - ..add('description', description) - ..add('id', id) - ..add('livemode', livemode) - ..add('deleted', deleted) - ..add('object', object) - ..add('prefix', prefix) - ..add('role', role)) - .toString(); - } -} - -class ApiKeyCreateResponseBuilder - implements - Builder, - ApiKeyResponseBuilder { - _$ApiKeyCreateResponse? _$v; - - String? _authenticationToken; - String? get authenticationToken => _$this._authenticationToken; - set authenticationToken(covariant String? authenticationToken) => - _$this._authenticationToken = authenticationToken; - - bool? _active; - bool? get active => _$this._active; - set active(covariant bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - int? _updatedAt; - int? get updatedAt => _$this._updatedAt; - set updatedAt(covariant int? updatedAt) => _$this._updatedAt = updatedAt; - - int? _deactivatedAt; - int? get deactivatedAt => _$this._deactivatedAt; - set deactivatedAt(covariant int? deactivatedAt) => - _$this._deactivatedAt = deactivatedAt; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _prefix; - String? get prefix => _$this._prefix; - set prefix(covariant String? prefix) => _$this._prefix = prefix; - - String? _role; - String? get role => _$this._role; - set role(covariant String? role) => _$this._role = role; - - ApiKeyCreateResponseBuilder() { - ApiKeyCreateResponse._defaults(this); - } - - ApiKeyCreateResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _authenticationToken = $v.authenticationToken; - _active = $v.active; - _createdAt = $v.createdAt; - _updatedAt = $v.updatedAt; - _deactivatedAt = $v.deactivatedAt; - _description = $v.description; - _id = $v.id; - _livemode = $v.livemode; - _deleted = $v.deleted; - _object = $v.object; - _prefix = $v.prefix; - _role = $v.role; - _$v = null; - } - return this; - } - - @override - void replace(covariant ApiKeyCreateResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ApiKeyCreateResponse; - } - - @override - void update(void Function(ApiKeyCreateResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ApiKeyCreateResponse build() => _build(); - - _$ApiKeyCreateResponse _build() { - final _$result = _$v ?? - new _$ApiKeyCreateResponse._( - authenticationToken: authenticationToken, - active: active, - createdAt: createdAt, - updatedAt: updatedAt, - deactivatedAt: deactivatedAt, - description: description, - id: id, - livemode: livemode, - deleted: deleted, - object: object, - prefix: prefix, - role: role); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_request.g.dart b/lib/src/model/api_key_request.g.dart deleted file mode 100644 index a8ff645..0000000 --- a/lib/src/model/api_key_request.g.dart +++ /dev/null @@ -1,106 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api_key_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ApiKeyRequest extends ApiKeyRequest { - @override - final String? description; - @override - final String role; - - factory _$ApiKeyRequest([void Function(ApiKeyRequestBuilder)? updates]) => - (new ApiKeyRequestBuilder()..update(updates))._build(); - - _$ApiKeyRequest._({this.description, required this.role}) : super._() { - BuiltValueNullFieldError.checkNotNull(role, r'ApiKeyRequest', 'role'); - } - - @override - ApiKeyRequest rebuild(void Function(ApiKeyRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ApiKeyRequestBuilder toBuilder() => new ApiKeyRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ApiKeyRequest && - description == other.description && - role == other.role; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, role.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ApiKeyRequest') - ..add('description', description) - ..add('role', role)) - .toString(); - } -} - -class ApiKeyRequestBuilder - implements Builder { - _$ApiKeyRequest? _$v; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - String? _role; - String? get role => _$this._role; - set role(String? role) => _$this._role = role; - - ApiKeyRequestBuilder() { - ApiKeyRequest._defaults(this); - } - - ApiKeyRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _description = $v.description; - _role = $v.role; - _$v = null; - } - return this; - } - - @override - void replace(ApiKeyRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ApiKeyRequest; - } - - @override - void update(void Function(ApiKeyRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ApiKeyRequest build() => _build(); - - _$ApiKeyRequest _build() { - final _$result = _$v ?? - new _$ApiKeyRequest._( - description: description, - role: BuiltValueNullFieldError.checkNotNull( - role, r'ApiKeyRequest', 'role')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_response.g.dart b/lib/src/model/api_key_response.g.dart deleted file mode 100644 index 907a507..0000000 --- a/lib/src/model/api_key_response.g.dart +++ /dev/null @@ -1,256 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api_key_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ApiKeyResponseBuilder { - void replace(ApiKeyResponse other); - void update(void Function(ApiKeyResponseBuilder) updates); - bool? get active; - set active(bool? active); - - int? get createdAt; - set createdAt(int? createdAt); - - int? get updatedAt; - set updatedAt(int? updatedAt); - - int? get deactivatedAt; - set deactivatedAt(int? deactivatedAt); - - String? get description; - set description(String? description); - - String? get id; - set id(String? id); - - bool? get livemode; - set livemode(bool? livemode); - - bool? get deleted; - set deleted(bool? deleted); - - String? get object; - set object(String? object); - - String? get prefix; - set prefix(String? prefix); - - String? get role; - set role(String? role); -} - -class _$$ApiKeyResponse extends $ApiKeyResponse { - @override - final bool? active; - @override - final int? createdAt; - @override - final int? updatedAt; - @override - final int? deactivatedAt; - @override - final String? description; - @override - final String? id; - @override - final bool? livemode; - @override - final bool? deleted; - @override - final String? object; - @override - final String? prefix; - @override - final String? role; - - factory _$$ApiKeyResponse([void Function($ApiKeyResponseBuilder)? updates]) => - (new $ApiKeyResponseBuilder()..update(updates))._build(); - - _$$ApiKeyResponse._( - {this.active, - this.createdAt, - this.updatedAt, - this.deactivatedAt, - this.description, - this.id, - this.livemode, - this.deleted, - this.object, - this.prefix, - this.role}) - : super._(); - - @override - $ApiKeyResponse rebuild(void Function($ApiKeyResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ApiKeyResponseBuilder toBuilder() => - new $ApiKeyResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ApiKeyResponse && - active == other.active && - createdAt == other.createdAt && - updatedAt == other.updatedAt && - deactivatedAt == other.deactivatedAt && - description == other.description && - id == other.id && - livemode == other.livemode && - deleted == other.deleted && - object == other.object && - prefix == other.prefix && - role == other.role; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, updatedAt.hashCode); - _$hash = $jc(_$hash, deactivatedAt.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, prefix.hashCode); - _$hash = $jc(_$hash, role.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ApiKeyResponse') - ..add('active', active) - ..add('createdAt', createdAt) - ..add('updatedAt', updatedAt) - ..add('deactivatedAt', deactivatedAt) - ..add('description', description) - ..add('id', id) - ..add('livemode', livemode) - ..add('deleted', deleted) - ..add('object', object) - ..add('prefix', prefix) - ..add('role', role)) - .toString(); - } -} - -class $ApiKeyResponseBuilder - implements - Builder<$ApiKeyResponse, $ApiKeyResponseBuilder>, - ApiKeyResponseBuilder { - _$$ApiKeyResponse? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(covariant bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - int? _updatedAt; - int? get updatedAt => _$this._updatedAt; - set updatedAt(covariant int? updatedAt) => _$this._updatedAt = updatedAt; - - int? _deactivatedAt; - int? get deactivatedAt => _$this._deactivatedAt; - set deactivatedAt(covariant int? deactivatedAt) => - _$this._deactivatedAt = deactivatedAt; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _prefix; - String? get prefix => _$this._prefix; - set prefix(covariant String? prefix) => _$this._prefix = prefix; - - String? _role; - String? get role => _$this._role; - set role(covariant String? role) => _$this._role = role; - - $ApiKeyResponseBuilder() { - $ApiKeyResponse._defaults(this); - } - - $ApiKeyResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _createdAt = $v.createdAt; - _updatedAt = $v.updatedAt; - _deactivatedAt = $v.deactivatedAt; - _description = $v.description; - _id = $v.id; - _livemode = $v.livemode; - _deleted = $v.deleted; - _object = $v.object; - _prefix = $v.prefix; - _role = $v.role; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ApiKeyResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ApiKeyResponse; - } - - @override - void update(void Function($ApiKeyResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ApiKeyResponse build() => _build(); - - _$$ApiKeyResponse _build() { - final _$result = _$v ?? - new _$$ApiKeyResponse._( - active: active, - createdAt: createdAt, - updatedAt: updatedAt, - deactivatedAt: deactivatedAt, - description: description, - id: id, - livemode: livemode, - deleted: deleted, - object: object, - prefix: prefix, - role: role); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_response_on_delete.g.dart b/lib/src/model/api_key_response_on_delete.g.dart deleted file mode 100644 index 95de50d..0000000 --- a/lib/src/model/api_key_response_on_delete.g.dart +++ /dev/null @@ -1,227 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api_key_response_on_delete.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ApiKeyResponseOnDeleteBuilder { - void replace(ApiKeyResponseOnDelete other); - void update(void Function(ApiKeyResponseOnDeleteBuilder) updates); - bool? get active; - set active(bool? active); - - int? get createdAt; - set createdAt(int? createdAt); - - String? get description; - set description(String? description); - - bool? get livemode; - set livemode(bool? livemode); - - String? get prefix; - set prefix(String? prefix); - - String? get id; - set id(String? id); - - String? get object; - set object(String? object); - - bool? get deleted; - set deleted(bool? deleted); - - String? get role; - set role(String? role); -} - -class _$$ApiKeyResponseOnDelete extends $ApiKeyResponseOnDelete { - @override - final bool? active; - @override - final int? createdAt; - @override - final String? description; - @override - final bool? livemode; - @override - final String? prefix; - @override - final String? id; - @override - final String? object; - @override - final bool? deleted; - @override - final String? role; - - factory _$$ApiKeyResponseOnDelete( - [void Function($ApiKeyResponseOnDeleteBuilder)? updates]) => - (new $ApiKeyResponseOnDeleteBuilder()..update(updates))._build(); - - _$$ApiKeyResponseOnDelete._( - {this.active, - this.createdAt, - this.description, - this.livemode, - this.prefix, - this.id, - this.object, - this.deleted, - this.role}) - : super._(); - - @override - $ApiKeyResponseOnDelete rebuild( - void Function($ApiKeyResponseOnDeleteBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ApiKeyResponseOnDeleteBuilder toBuilder() => - new $ApiKeyResponseOnDeleteBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ApiKeyResponseOnDelete && - active == other.active && - createdAt == other.createdAt && - description == other.description && - livemode == other.livemode && - prefix == other.prefix && - id == other.id && - object == other.object && - deleted == other.deleted && - role == other.role; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, prefix.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, role.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ApiKeyResponseOnDelete') - ..add('active', active) - ..add('createdAt', createdAt) - ..add('description', description) - ..add('livemode', livemode) - ..add('prefix', prefix) - ..add('id', id) - ..add('object', object) - ..add('deleted', deleted) - ..add('role', role)) - .toString(); - } -} - -class $ApiKeyResponseOnDeleteBuilder - implements - Builder<$ApiKeyResponseOnDelete, $ApiKeyResponseOnDeleteBuilder>, - ApiKeyResponseOnDeleteBuilder { - _$$ApiKeyResponseOnDelete? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(covariant bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - String? _prefix; - String? get prefix => _$this._prefix; - set prefix(covariant String? prefix) => _$this._prefix = prefix; - - 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; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - String? _role; - String? get role => _$this._role; - set role(covariant String? role) => _$this._role = role; - - $ApiKeyResponseOnDeleteBuilder() { - $ApiKeyResponseOnDelete._defaults(this); - } - - $ApiKeyResponseOnDeleteBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _createdAt = $v.createdAt; - _description = $v.description; - _livemode = $v.livemode; - _prefix = $v.prefix; - _id = $v.id; - _object = $v.object; - _deleted = $v.deleted; - _role = $v.role; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ApiKeyResponseOnDelete other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ApiKeyResponseOnDelete; - } - - @override - void update(void Function($ApiKeyResponseOnDeleteBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ApiKeyResponseOnDelete build() => _build(); - - _$$ApiKeyResponseOnDelete _build() { - final _$result = _$v ?? - new _$$ApiKeyResponseOnDelete._( - active: active, - createdAt: createdAt, - description: description, - livemode: livemode, - prefix: prefix, - id: id, - object: object, - deleted: deleted, - role: role); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_update_request.g.dart b/lib/src/model/api_key_update_request.g.dart deleted file mode 100644 index e976aa6..0000000 --- a/lib/src/model/api_key_update_request.g.dart +++ /dev/null @@ -1,104 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api_key_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ApiKeyUpdateRequest extends ApiKeyUpdateRequest { - @override - final bool? active; - @override - final String? description; - - factory _$ApiKeyUpdateRequest( - [void Function(ApiKeyUpdateRequestBuilder)? updates]) => - (new ApiKeyUpdateRequestBuilder()..update(updates))._build(); - - _$ApiKeyUpdateRequest._({this.active, this.description}) : super._(); - - @override - ApiKeyUpdateRequest rebuild( - void Function(ApiKeyUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ApiKeyUpdateRequestBuilder toBuilder() => - new ApiKeyUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ApiKeyUpdateRequest && - active == other.active && - description == other.description; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ApiKeyUpdateRequest') - ..add('active', active) - ..add('description', description)) - .toString(); - } -} - -class ApiKeyUpdateRequestBuilder - implements Builder { - _$ApiKeyUpdateRequest? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(bool? active) => _$this._active = active; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - ApiKeyUpdateRequestBuilder() { - ApiKeyUpdateRequest._defaults(this); - } - - ApiKeyUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _description = $v.description; - _$v = null; - } - return this; - } - - @override - void replace(ApiKeyUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ApiKeyUpdateRequest; - } - - @override - void update(void Function(ApiKeyUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ApiKeyUpdateRequest build() => _build(); - - _$ApiKeyUpdateRequest _build() { - final _$result = _$v ?? - new _$ApiKeyUpdateRequest._(active: active, description: description); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/balance_common_field.g.dart b/lib/src/model/balance_common_field.g.dart deleted file mode 100644 index 1376a37..0000000 --- a/lib/src/model/balance_common_field.g.dart +++ /dev/null @@ -1,104 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'balance_common_field.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$BalanceCommonField extends BalanceCommonField { - @override - final int? amount; - @override - final String? currency; - - factory _$BalanceCommonField( - [void Function(BalanceCommonFieldBuilder)? updates]) => - (new BalanceCommonFieldBuilder()..update(updates))._build(); - - _$BalanceCommonField._({this.amount, this.currency}) : super._(); - - @override - BalanceCommonField rebuild( - void Function(BalanceCommonFieldBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - BalanceCommonFieldBuilder toBuilder() => - new BalanceCommonFieldBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is BalanceCommonField && - amount == other.amount && - currency == other.currency; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'BalanceCommonField') - ..add('amount', amount) - ..add('currency', currency)) - .toString(); - } -} - -class BalanceCommonFieldBuilder - implements Builder { - _$BalanceCommonField? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - BalanceCommonFieldBuilder() { - BalanceCommonField._defaults(this); - } - - BalanceCommonFieldBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _currency = $v.currency; - _$v = null; - } - return this; - } - - @override - void replace(BalanceCommonField other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$BalanceCommonField; - } - - @override - void update(void Function(BalanceCommonFieldBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - BalanceCommonField build() => _build(); - - _$BalanceCommonField _build() { - final _$result = - _$v ?? new _$BalanceCommonField._(amount: amount, currency: currency); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/balance_response.g.dart b/lib/src/model/balance_response.g.dart deleted file mode 100644 index 02b98a1..0000000 --- a/lib/src/model/balance_response.g.dart +++ /dev/null @@ -1,255 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'balance_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$BalanceResponse extends BalanceResponse { - @override - final BuiltList? available; - @override - final BuiltList? cashoutRetentionAmount; - @override - final BuiltList? conektaRetention; - @override - final BuiltList? gateway; - @override - final BuiltList? pending; - @override - final BuiltList? retained; - @override - final BuiltList? retentionAmount; - @override - final JsonObject? targetCollateralAmount; - @override - final BuiltList? targetRetentionAmount; - @override - final BuiltList? temporarilyRetained; - - factory _$BalanceResponse([void Function(BalanceResponseBuilder)? updates]) => - (new BalanceResponseBuilder()..update(updates))._build(); - - _$BalanceResponse._( - {this.available, - this.cashoutRetentionAmount, - this.conektaRetention, - this.gateway, - this.pending, - this.retained, - this.retentionAmount, - this.targetCollateralAmount, - this.targetRetentionAmount, - this.temporarilyRetained}) - : super._(); - - @override - BalanceResponse rebuild(void Function(BalanceResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - BalanceResponseBuilder toBuilder() => - new BalanceResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is BalanceResponse && - available == other.available && - cashoutRetentionAmount == other.cashoutRetentionAmount && - conektaRetention == other.conektaRetention && - gateway == other.gateway && - pending == other.pending && - retained == other.retained && - retentionAmount == other.retentionAmount && - targetCollateralAmount == other.targetCollateralAmount && - targetRetentionAmount == other.targetRetentionAmount && - temporarilyRetained == other.temporarilyRetained; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, available.hashCode); - _$hash = $jc(_$hash, cashoutRetentionAmount.hashCode); - _$hash = $jc(_$hash, conektaRetention.hashCode); - _$hash = $jc(_$hash, gateway.hashCode); - _$hash = $jc(_$hash, pending.hashCode); - _$hash = $jc(_$hash, retained.hashCode); - _$hash = $jc(_$hash, retentionAmount.hashCode); - _$hash = $jc(_$hash, targetCollateralAmount.hashCode); - _$hash = $jc(_$hash, targetRetentionAmount.hashCode); - _$hash = $jc(_$hash, temporarilyRetained.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'BalanceResponse') - ..add('available', available) - ..add('cashoutRetentionAmount', cashoutRetentionAmount) - ..add('conektaRetention', conektaRetention) - ..add('gateway', gateway) - ..add('pending', pending) - ..add('retained', retained) - ..add('retentionAmount', retentionAmount) - ..add('targetCollateralAmount', targetCollateralAmount) - ..add('targetRetentionAmount', targetRetentionAmount) - ..add('temporarilyRetained', temporarilyRetained)) - .toString(); - } -} - -class BalanceResponseBuilder - implements Builder { - _$BalanceResponse? _$v; - - ListBuilder? _available; - ListBuilder get available => - _$this._available ??= new ListBuilder(); - set available(ListBuilder? available) => - _$this._available = available; - - ListBuilder? _cashoutRetentionAmount; - ListBuilder get cashoutRetentionAmount => - _$this._cashoutRetentionAmount ??= new ListBuilder(); - set cashoutRetentionAmount( - ListBuilder? cashoutRetentionAmount) => - _$this._cashoutRetentionAmount = cashoutRetentionAmount; - - ListBuilder? _conektaRetention; - ListBuilder get conektaRetention => - _$this._conektaRetention ??= new ListBuilder(); - set conektaRetention(ListBuilder? conektaRetention) => - _$this._conektaRetention = conektaRetention; - - ListBuilder? _gateway; - ListBuilder get gateway => - _$this._gateway ??= new ListBuilder(); - set gateway(ListBuilder? gateway) => - _$this._gateway = gateway; - - ListBuilder? _pending; - ListBuilder get pending => - _$this._pending ??= new ListBuilder(); - set pending(ListBuilder? pending) => - _$this._pending = pending; - - ListBuilder? _retained; - ListBuilder get retained => - _$this._retained ??= new ListBuilder(); - set retained(ListBuilder? retained) => - _$this._retained = retained; - - ListBuilder? _retentionAmount; - ListBuilder get retentionAmount => - _$this._retentionAmount ??= new ListBuilder(); - set retentionAmount(ListBuilder? retentionAmount) => - _$this._retentionAmount = retentionAmount; - - JsonObject? _targetCollateralAmount; - JsonObject? get targetCollateralAmount => _$this._targetCollateralAmount; - set targetCollateralAmount(JsonObject? targetCollateralAmount) => - _$this._targetCollateralAmount = targetCollateralAmount; - - ListBuilder? _targetRetentionAmount; - ListBuilder get targetRetentionAmount => - _$this._targetRetentionAmount ??= new ListBuilder(); - set targetRetentionAmount( - ListBuilder? targetRetentionAmount) => - _$this._targetRetentionAmount = targetRetentionAmount; - - ListBuilder? _temporarilyRetained; - ListBuilder get temporarilyRetained => - _$this._temporarilyRetained ??= new ListBuilder(); - set temporarilyRetained( - ListBuilder? temporarilyRetained) => - _$this._temporarilyRetained = temporarilyRetained; - - BalanceResponseBuilder() { - BalanceResponse._defaults(this); - } - - BalanceResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _available = $v.available?.toBuilder(); - _cashoutRetentionAmount = $v.cashoutRetentionAmount?.toBuilder(); - _conektaRetention = $v.conektaRetention?.toBuilder(); - _gateway = $v.gateway?.toBuilder(); - _pending = $v.pending?.toBuilder(); - _retained = $v.retained?.toBuilder(); - _retentionAmount = $v.retentionAmount?.toBuilder(); - _targetCollateralAmount = $v.targetCollateralAmount; - _targetRetentionAmount = $v.targetRetentionAmount?.toBuilder(); - _temporarilyRetained = $v.temporarilyRetained?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(BalanceResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$BalanceResponse; - } - - @override - void update(void Function(BalanceResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - BalanceResponse build() => _build(); - - _$BalanceResponse _build() { - _$BalanceResponse _$result; - try { - _$result = _$v ?? - new _$BalanceResponse._( - available: _available?.build(), - cashoutRetentionAmount: _cashoutRetentionAmount?.build(), - conektaRetention: _conektaRetention?.build(), - gateway: _gateway?.build(), - pending: _pending?.build(), - retained: _retained?.build(), - retentionAmount: _retentionAmount?.build(), - targetCollateralAmount: targetCollateralAmount, - targetRetentionAmount: _targetRetentionAmount?.build(), - temporarilyRetained: _temporarilyRetained?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'available'; - _available?.build(); - _$failedField = 'cashoutRetentionAmount'; - _cashoutRetentionAmount?.build(); - _$failedField = 'conektaRetention'; - _conektaRetention?.build(); - _$failedField = 'gateway'; - _gateway?.build(); - _$failedField = 'pending'; - _pending?.build(); - _$failedField = 'retained'; - _retained?.build(); - _$failedField = 'retentionAmount'; - _retentionAmount?.build(); - - _$failedField = 'targetRetentionAmount'; - _targetRetentionAmount?.build(); - _$failedField = 'temporarilyRetained'; - _temporarilyRetained?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'BalanceResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/blacklist_rule_response.g.dart b/lib/src/model/blacklist_rule_response.g.dart deleted file mode 100644 index dedda83..0000000 --- a/lib/src/model/blacklist_rule_response.g.dart +++ /dev/null @@ -1,126 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'blacklist_rule_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$BlacklistRuleResponse extends BlacklistRuleResponse { - @override - final String? id; - @override - final String? field; - @override - final String? value; - @override - final String? description; - - factory _$BlacklistRuleResponse( - [void Function(BlacklistRuleResponseBuilder)? updates]) => - (new BlacklistRuleResponseBuilder()..update(updates))._build(); - - _$BlacklistRuleResponse._({this.id, this.field, this.value, this.description}) - : super._(); - - @override - BlacklistRuleResponse rebuild( - void Function(BlacklistRuleResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - BlacklistRuleResponseBuilder toBuilder() => - new BlacklistRuleResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is BlacklistRuleResponse && - id == other.id && - field == other.field && - value == other.value && - description == other.description; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, field.hashCode); - _$hash = $jc(_$hash, value.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'BlacklistRuleResponse') - ..add('id', id) - ..add('field', field) - ..add('value', value) - ..add('description', description)) - .toString(); - } -} - -class BlacklistRuleResponseBuilder - implements Builder { - _$BlacklistRuleResponse? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _field; - String? get field => _$this._field; - set field(String? field) => _$this._field = field; - - String? _value; - String? get value => _$this._value; - set value(String? value) => _$this._value = value; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - BlacklistRuleResponseBuilder() { - BlacklistRuleResponse._defaults(this); - } - - BlacklistRuleResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _field = $v.field; - _value = $v.value; - _description = $v.description; - _$v = null; - } - return this; - } - - @override - void replace(BlacklistRuleResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$BlacklistRuleResponse; - } - - @override - void update(void Function(BlacklistRuleResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - BlacklistRuleResponse build() => _build(); - - _$BlacklistRuleResponse _build() { - final _$result = _$v ?? - new _$BlacklistRuleResponse._( - id: id, field: field, value: value, description: description); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_order_response.g.dart b/lib/src/model/charge_order_response.g.dart deleted file mode 100644 index 17850ca..0000000 --- a/lib/src/model/charge_order_response.g.dart +++ /dev/null @@ -1,340 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_order_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeOrderResponse extends ChargeOrderResponse { - @override - final int? amount; - @override - final ChargeResponseChannel? channel; - @override - final int? createdAt; - @override - final String? currency; - @override - final String? customerId; - @override - final String? description; - @override - final String? deviceFingerprint; - @override - final String? failureCode; - @override - final String? failureMessage; - @override - final String? id; - @override - final bool? livemode; - @override - final int? monthlyInstallments; - @override - final String? object; - @override - final String? orderId; - @override - final int? paidAt; - @override - final ChargeOrderResponsePaymentMethod? paymentMethod; - @override - final String? referenceId; - @override - final BuiltList? refunds; - @override - final String? status; - - factory _$ChargeOrderResponse( - [void Function(ChargeOrderResponseBuilder)? updates]) => - (new ChargeOrderResponseBuilder()..update(updates))._build(); - - _$ChargeOrderResponse._( - {this.amount, - this.channel, - this.createdAt, - this.currency, - this.customerId, - this.description, - this.deviceFingerprint, - this.failureCode, - this.failureMessage, - this.id, - this.livemode, - this.monthlyInstallments, - this.object, - this.orderId, - this.paidAt, - this.paymentMethod, - this.referenceId, - this.refunds, - this.status}) - : super._(); - - @override - ChargeOrderResponse rebuild( - void Function(ChargeOrderResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeOrderResponseBuilder toBuilder() => - new ChargeOrderResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeOrderResponse && - amount == other.amount && - channel == other.channel && - createdAt == other.createdAt && - currency == other.currency && - customerId == other.customerId && - description == other.description && - deviceFingerprint == other.deviceFingerprint && - failureCode == other.failureCode && - failureMessage == other.failureMessage && - id == other.id && - livemode == other.livemode && - monthlyInstallments == other.monthlyInstallments && - object == other.object && - orderId == other.orderId && - paidAt == other.paidAt && - paymentMethod == other.paymentMethod && - referenceId == other.referenceId && - refunds == other.refunds && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, channel.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, deviceFingerprint.hashCode); - _$hash = $jc(_$hash, failureCode.hashCode); - _$hash = $jc(_$hash, failureMessage.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, monthlyInstallments.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, orderId.hashCode); - _$hash = $jc(_$hash, paidAt.hashCode); - _$hash = $jc(_$hash, paymentMethod.hashCode); - _$hash = $jc(_$hash, referenceId.hashCode); - _$hash = $jc(_$hash, refunds.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeOrderResponse') - ..add('amount', amount) - ..add('channel', channel) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('customerId', customerId) - ..add('description', description) - ..add('deviceFingerprint', deviceFingerprint) - ..add('failureCode', failureCode) - ..add('failureMessage', failureMessage) - ..add('id', id) - ..add('livemode', livemode) - ..add('monthlyInstallments', monthlyInstallments) - ..add('object', object) - ..add('orderId', orderId) - ..add('paidAt', paidAt) - ..add('paymentMethod', paymentMethod) - ..add('referenceId', referenceId) - ..add('refunds', refunds) - ..add('status', status)) - .toString(); - } -} - -class ChargeOrderResponseBuilder - implements Builder { - _$ChargeOrderResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - ChargeResponseChannelBuilder? _channel; - ChargeResponseChannelBuilder get channel => - _$this._channel ??= new ChargeResponseChannelBuilder(); - set channel(ChargeResponseChannelBuilder? channel) => - _$this._channel = channel; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(String? customerId) => _$this._customerId = customerId; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - String? _deviceFingerprint; - String? get deviceFingerprint => _$this._deviceFingerprint; - set deviceFingerprint(String? deviceFingerprint) => - _$this._deviceFingerprint = deviceFingerprint; - - String? _failureCode; - String? get failureCode => _$this._failureCode; - set failureCode(String? failureCode) => _$this._failureCode = failureCode; - - String? _failureMessage; - String? get failureMessage => _$this._failureMessage; - set failureMessage(String? failureMessage) => - _$this._failureMessage = failureMessage; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - int? _monthlyInstallments; - int? get monthlyInstallments => _$this._monthlyInstallments; - set monthlyInstallments(int? monthlyInstallments) => - _$this._monthlyInstallments = monthlyInstallments; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _orderId; - String? get orderId => _$this._orderId; - set orderId(String? orderId) => _$this._orderId = orderId; - - int? _paidAt; - int? get paidAt => _$this._paidAt; - set paidAt(int? paidAt) => _$this._paidAt = paidAt; - - ChargeOrderResponsePaymentMethodBuilder? _paymentMethod; - ChargeOrderResponsePaymentMethodBuilder get paymentMethod => - _$this._paymentMethod ??= new ChargeOrderResponsePaymentMethodBuilder(); - set paymentMethod(ChargeOrderResponsePaymentMethodBuilder? paymentMethod) => - _$this._paymentMethod = paymentMethod; - - String? _referenceId; - String? get referenceId => _$this._referenceId; - set referenceId(String? referenceId) => _$this._referenceId = referenceId; - - ListBuilder? _refunds; - ListBuilder get refunds => - _$this._refunds ??= new ListBuilder(); - set refunds(ListBuilder? refunds) => _$this._refunds = refunds; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - ChargeOrderResponseBuilder() { - ChargeOrderResponse._defaults(this); - } - - ChargeOrderResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _channel = $v.channel?.toBuilder(); - _createdAt = $v.createdAt; - _currency = $v.currency; - _customerId = $v.customerId; - _description = $v.description; - _deviceFingerprint = $v.deviceFingerprint; - _failureCode = $v.failureCode; - _failureMessage = $v.failureMessage; - _id = $v.id; - _livemode = $v.livemode; - _monthlyInstallments = $v.monthlyInstallments; - _object = $v.object; - _orderId = $v.orderId; - _paidAt = $v.paidAt; - _paymentMethod = $v.paymentMethod?.toBuilder(); - _referenceId = $v.referenceId; - _refunds = $v.refunds?.toBuilder(); - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(ChargeOrderResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeOrderResponse; - } - - @override - void update(void Function(ChargeOrderResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeOrderResponse build() => _build(); - - _$ChargeOrderResponse _build() { - _$ChargeOrderResponse _$result; - try { - _$result = _$v ?? - new _$ChargeOrderResponse._( - amount: amount, - channel: _channel?.build(), - createdAt: createdAt, - currency: currency, - customerId: customerId, - description: description, - deviceFingerprint: deviceFingerprint, - failureCode: failureCode, - failureMessage: failureMessage, - id: id, - livemode: livemode, - monthlyInstallments: monthlyInstallments, - object: object, - orderId: orderId, - paidAt: paidAt, - paymentMethod: _paymentMethod?.build(), - referenceId: referenceId, - refunds: _refunds?.build(), - status: status); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'channel'; - _channel?.build(); - - _$failedField = 'paymentMethod'; - _paymentMethod?.build(); - - _$failedField = 'refunds'; - _refunds?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ChargeOrderResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_order_response_payment_method.g.dart b/lib/src/model/charge_order_response_payment_method.g.dart deleted file mode 100644 index a1cffa7..0000000 --- a/lib/src/model/charge_order_response_payment_method.g.dart +++ /dev/null @@ -1,101 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_order_response_payment_method.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeOrderResponsePaymentMethod - extends ChargeOrderResponsePaymentMethod { - @override - final OneOf oneOf; - - factory _$ChargeOrderResponsePaymentMethod( - [void Function(ChargeOrderResponsePaymentMethodBuilder)? updates]) => - (new ChargeOrderResponsePaymentMethodBuilder()..update(updates))._build(); - - _$ChargeOrderResponsePaymentMethod._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'ChargeOrderResponsePaymentMethod', 'oneOf'); - } - - @override - ChargeOrderResponsePaymentMethod rebuild( - void Function(ChargeOrderResponsePaymentMethodBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeOrderResponsePaymentMethodBuilder toBuilder() => - new ChargeOrderResponsePaymentMethodBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeOrderResponsePaymentMethod && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeOrderResponsePaymentMethod') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class ChargeOrderResponsePaymentMethodBuilder - implements - Builder { - _$ChargeOrderResponsePaymentMethod? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - ChargeOrderResponsePaymentMethodBuilder() { - ChargeOrderResponsePaymentMethod._defaults(this); - } - - ChargeOrderResponsePaymentMethodBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(ChargeOrderResponsePaymentMethod other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeOrderResponsePaymentMethod; - } - - @override - void update(void Function(ChargeOrderResponsePaymentMethodBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeOrderResponsePaymentMethod build() => _build(); - - _$ChargeOrderResponsePaymentMethod _build() { - final _$result = _$v ?? - new _$ChargeOrderResponsePaymentMethod._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'ChargeOrderResponsePaymentMethod', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_request.g.dart b/lib/src/model/charge_request.g.dart deleted file mode 100644 index 04f0e34..0000000 --- a/lib/src/model/charge_request.g.dart +++ /dev/null @@ -1,134 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeRequest extends ChargeRequest { - @override - final int? amount; - @override - final ChargeRequestPaymentMethod paymentMethod; - @override - final String? referenceId; - - factory _$ChargeRequest([void Function(ChargeRequestBuilder)? updates]) => - (new ChargeRequestBuilder()..update(updates))._build(); - - _$ChargeRequest._( - {this.amount, required this.paymentMethod, this.referenceId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - paymentMethod, r'ChargeRequest', 'paymentMethod'); - } - - @override - ChargeRequest rebuild(void Function(ChargeRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeRequestBuilder toBuilder() => new ChargeRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeRequest && - amount == other.amount && - paymentMethod == other.paymentMethod && - referenceId == other.referenceId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, paymentMethod.hashCode); - _$hash = $jc(_$hash, referenceId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeRequest') - ..add('amount', amount) - ..add('paymentMethod', paymentMethod) - ..add('referenceId', referenceId)) - .toString(); - } -} - -class ChargeRequestBuilder - implements Builder { - _$ChargeRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - ChargeRequestPaymentMethodBuilder? _paymentMethod; - ChargeRequestPaymentMethodBuilder get paymentMethod => - _$this._paymentMethod ??= new ChargeRequestPaymentMethodBuilder(); - set paymentMethod(ChargeRequestPaymentMethodBuilder? paymentMethod) => - _$this._paymentMethod = paymentMethod; - - String? _referenceId; - String? get referenceId => _$this._referenceId; - set referenceId(String? referenceId) => _$this._referenceId = referenceId; - - ChargeRequestBuilder() { - ChargeRequest._defaults(this); - } - - ChargeRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _paymentMethod = $v.paymentMethod.toBuilder(); - _referenceId = $v.referenceId; - _$v = null; - } - return this; - } - - @override - void replace(ChargeRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeRequest; - } - - @override - void update(void Function(ChargeRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeRequest build() => _build(); - - _$ChargeRequest _build() { - _$ChargeRequest _$result; - try { - _$result = _$v ?? - new _$ChargeRequest._( - amount: amount, - paymentMethod: paymentMethod.build(), - referenceId: referenceId); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'paymentMethod'; - paymentMethod.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ChargeRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_request_payment_method.g.dart b/lib/src/model/charge_request_payment_method.g.dart deleted file mode 100644 index e363277..0000000 --- a/lib/src/model/charge_request_payment_method.g.dart +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_request_payment_method.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeRequestPaymentMethod extends ChargeRequestPaymentMethod { - @override - final OneOf oneOf; - - factory _$ChargeRequestPaymentMethod( - [void Function(ChargeRequestPaymentMethodBuilder)? updates]) => - (new ChargeRequestPaymentMethodBuilder()..update(updates))._build(); - - _$ChargeRequestPaymentMethod._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'ChargeRequestPaymentMethod', 'oneOf'); - } - - @override - ChargeRequestPaymentMethod rebuild( - void Function(ChargeRequestPaymentMethodBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeRequestPaymentMethodBuilder toBuilder() => - new ChargeRequestPaymentMethodBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeRequestPaymentMethod && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeRequestPaymentMethod') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class ChargeRequestPaymentMethodBuilder - implements - Builder { - _$ChargeRequestPaymentMethod? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - ChargeRequestPaymentMethodBuilder() { - ChargeRequestPaymentMethod._defaults(this); - } - - ChargeRequestPaymentMethodBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(ChargeRequestPaymentMethod other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeRequestPaymentMethod; - } - - @override - void update(void Function(ChargeRequestPaymentMethodBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeRequestPaymentMethod build() => _build(); - - _$ChargeRequestPaymentMethod _build() { - final _$result = _$v ?? - new _$ChargeRequestPaymentMethod._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'ChargeRequestPaymentMethod', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response.g.dart b/lib/src/model/charge_response.g.dart deleted file mode 100644 index e896ac3..0000000 --- a/lib/src/model/charge_response.g.dart +++ /dev/null @@ -1,391 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ChargeResponseBuilder { - void replace(ChargeResponse other); - void update(void Function(ChargeResponseBuilder) updates); - int? get amount; - set amount(int? amount); - - ChargeResponseChannelBuilder get channel; - set channel(ChargeResponseChannelBuilder? channel); - - int? get createdAt; - set createdAt(int? createdAt); - - String? get currency; - set currency(String? currency); - - String? get customerId; - set customerId(String? customerId); - - String? get description; - set description(String? description); - - String? get deviceFingerprint; - set deviceFingerprint(String? deviceFingerprint); - - String? get failureCode; - set failureCode(String? failureCode); - - String? get failureMessage; - set failureMessage(String? failureMessage); - - String? get id; - set id(String? id); - - bool? get livemode; - set livemode(bool? livemode); - - String? get object; - set object(String? object); - - String? get orderId; - set orderId(String? orderId); - - int? get paidAt; - set paidAt(int? paidAt); - - ChargeResponsePaymentMethodBuilder get paymentMethod; - set paymentMethod(ChargeResponsePaymentMethodBuilder? paymentMethod); - - String? get referenceId; - set referenceId(String? referenceId); - - ChargeResponseRefundsBuilder get refunds; - set refunds(ChargeResponseRefundsBuilder? refunds); - - String? get status; - set status(String? status); -} - -class _$$ChargeResponse extends $ChargeResponse { - @override - final int? amount; - @override - final ChargeResponseChannel? channel; - @override - final int? createdAt; - @override - final String? currency; - @override - final String? customerId; - @override - final String? description; - @override - final String? deviceFingerprint; - @override - final String? failureCode; - @override - final String? failureMessage; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - @override - final String? orderId; - @override - final int? paidAt; - @override - final ChargeResponsePaymentMethod? paymentMethod; - @override - final String? referenceId; - @override - final ChargeResponseRefunds? refunds; - @override - final String? status; - - factory _$$ChargeResponse([void Function($ChargeResponseBuilder)? updates]) => - (new $ChargeResponseBuilder()..update(updates))._build(); - - _$$ChargeResponse._( - {this.amount, - this.channel, - this.createdAt, - this.currency, - this.customerId, - this.description, - this.deviceFingerprint, - this.failureCode, - this.failureMessage, - this.id, - this.livemode, - this.object, - this.orderId, - this.paidAt, - this.paymentMethod, - this.referenceId, - this.refunds, - this.status}) - : super._(); - - @override - $ChargeResponse rebuild(void Function($ChargeResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ChargeResponseBuilder toBuilder() => - new $ChargeResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ChargeResponse && - amount == other.amount && - channel == other.channel && - createdAt == other.createdAt && - currency == other.currency && - customerId == other.customerId && - description == other.description && - deviceFingerprint == other.deviceFingerprint && - failureCode == other.failureCode && - failureMessage == other.failureMessage && - id == other.id && - livemode == other.livemode && - object == other.object && - orderId == other.orderId && - paidAt == other.paidAt && - paymentMethod == other.paymentMethod && - referenceId == other.referenceId && - refunds == other.refunds && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, channel.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, deviceFingerprint.hashCode); - _$hash = $jc(_$hash, failureCode.hashCode); - _$hash = $jc(_$hash, failureMessage.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, orderId.hashCode); - _$hash = $jc(_$hash, paidAt.hashCode); - _$hash = $jc(_$hash, paymentMethod.hashCode); - _$hash = $jc(_$hash, referenceId.hashCode); - _$hash = $jc(_$hash, refunds.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ChargeResponse') - ..add('amount', amount) - ..add('channel', channel) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('customerId', customerId) - ..add('description', description) - ..add('deviceFingerprint', deviceFingerprint) - ..add('failureCode', failureCode) - ..add('failureMessage', failureMessage) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('orderId', orderId) - ..add('paidAt', paidAt) - ..add('paymentMethod', paymentMethod) - ..add('referenceId', referenceId) - ..add('refunds', refunds) - ..add('status', status)) - .toString(); - } -} - -class $ChargeResponseBuilder - implements - Builder<$ChargeResponse, $ChargeResponseBuilder>, - ChargeResponseBuilder { - _$$ChargeResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(covariant int? amount) => _$this._amount = amount; - - ChargeResponseChannelBuilder? _channel; - ChargeResponseChannelBuilder get channel => - _$this._channel ??= new ChargeResponseChannelBuilder(); - set channel(covariant ChargeResponseChannelBuilder? channel) => - _$this._channel = channel; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(covariant String? currency) => _$this._currency = currency; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(covariant String? customerId) => - _$this._customerId = customerId; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - String? _deviceFingerprint; - String? get deviceFingerprint => _$this._deviceFingerprint; - set deviceFingerprint(covariant String? deviceFingerprint) => - _$this._deviceFingerprint = deviceFingerprint; - - String? _failureCode; - String? get failureCode => _$this._failureCode; - set failureCode(covariant String? failureCode) => - _$this._failureCode = failureCode; - - String? _failureMessage; - String? get failureMessage => _$this._failureMessage; - set failureMessage(covariant String? failureMessage) => - _$this._failureMessage = failureMessage; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _orderId; - String? get orderId => _$this._orderId; - set orderId(covariant String? orderId) => _$this._orderId = orderId; - - int? _paidAt; - int? get paidAt => _$this._paidAt; - set paidAt(covariant int? paidAt) => _$this._paidAt = paidAt; - - ChargeResponsePaymentMethodBuilder? _paymentMethod; - ChargeResponsePaymentMethodBuilder get paymentMethod => - _$this._paymentMethod ??= new ChargeResponsePaymentMethodBuilder(); - set paymentMethod( - covariant ChargeResponsePaymentMethodBuilder? paymentMethod) => - _$this._paymentMethod = paymentMethod; - - String? _referenceId; - String? get referenceId => _$this._referenceId; - set referenceId(covariant String? referenceId) => - _$this._referenceId = referenceId; - - ChargeResponseRefundsBuilder? _refunds; - ChargeResponseRefundsBuilder get refunds => - _$this._refunds ??= new ChargeResponseRefundsBuilder(); - set refunds(covariant ChargeResponseRefundsBuilder? refunds) => - _$this._refunds = refunds; - - String? _status; - String? get status => _$this._status; - set status(covariant String? status) => _$this._status = status; - - $ChargeResponseBuilder() { - $ChargeResponse._defaults(this); - } - - $ChargeResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _channel = $v.channel?.toBuilder(); - _createdAt = $v.createdAt; - _currency = $v.currency; - _customerId = $v.customerId; - _description = $v.description; - _deviceFingerprint = $v.deviceFingerprint; - _failureCode = $v.failureCode; - _failureMessage = $v.failureMessage; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _orderId = $v.orderId; - _paidAt = $v.paidAt; - _paymentMethod = $v.paymentMethod?.toBuilder(); - _referenceId = $v.referenceId; - _refunds = $v.refunds?.toBuilder(); - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(covariant $ChargeResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ChargeResponse; - } - - @override - void update(void Function($ChargeResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ChargeResponse build() => _build(); - - _$$ChargeResponse _build() { - _$$ChargeResponse _$result; - try { - _$result = _$v ?? - new _$$ChargeResponse._( - amount: amount, - channel: _channel?.build(), - createdAt: createdAt, - currency: currency, - customerId: customerId, - description: description, - deviceFingerprint: deviceFingerprint, - failureCode: failureCode, - failureMessage: failureMessage, - id: id, - livemode: livemode, - object: object, - orderId: orderId, - paidAt: paidAt, - paymentMethod: _paymentMethod?.build(), - referenceId: referenceId, - refunds: _refunds?.build(), - status: status); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'channel'; - _channel?.build(); - - _$failedField = 'paymentMethod'; - _paymentMethod?.build(); - - _$failedField = 'refunds'; - _refunds?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$ChargeResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_channel.g.dart b/lib/src/model/charge_response_channel.g.dart deleted file mode 100644 index 89ea5bd..0000000 --- a/lib/src/model/charge_response_channel.g.dart +++ /dev/null @@ -1,132 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_response_channel.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeResponseChannel extends ChargeResponseChannel { - @override - final String? segment; - @override - final String? checkoutRequestId; - @override - final String? checkoutRequestType; - @override - final String? id; - - factory _$ChargeResponseChannel( - [void Function(ChargeResponseChannelBuilder)? updates]) => - (new ChargeResponseChannelBuilder()..update(updates))._build(); - - _$ChargeResponseChannel._( - {this.segment, this.checkoutRequestId, this.checkoutRequestType, this.id}) - : super._(); - - @override - ChargeResponseChannel rebuild( - void Function(ChargeResponseChannelBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeResponseChannelBuilder toBuilder() => - new ChargeResponseChannelBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeResponseChannel && - segment == other.segment && - checkoutRequestId == other.checkoutRequestId && - checkoutRequestType == other.checkoutRequestType && - id == other.id; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, segment.hashCode); - _$hash = $jc(_$hash, checkoutRequestId.hashCode); - _$hash = $jc(_$hash, checkoutRequestType.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeResponseChannel') - ..add('segment', segment) - ..add('checkoutRequestId', checkoutRequestId) - ..add('checkoutRequestType', checkoutRequestType) - ..add('id', id)) - .toString(); - } -} - -class ChargeResponseChannelBuilder - implements Builder { - _$ChargeResponseChannel? _$v; - - String? _segment; - String? get segment => _$this._segment; - set segment(String? segment) => _$this._segment = segment; - - String? _checkoutRequestId; - String? get checkoutRequestId => _$this._checkoutRequestId; - set checkoutRequestId(String? checkoutRequestId) => - _$this._checkoutRequestId = checkoutRequestId; - - String? _checkoutRequestType; - String? get checkoutRequestType => _$this._checkoutRequestType; - set checkoutRequestType(String? checkoutRequestType) => - _$this._checkoutRequestType = checkoutRequestType; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - ChargeResponseChannelBuilder() { - ChargeResponseChannel._defaults(this); - } - - ChargeResponseChannelBuilder get _$this { - final $v = _$v; - if ($v != null) { - _segment = $v.segment; - _checkoutRequestId = $v.checkoutRequestId; - _checkoutRequestType = $v.checkoutRequestType; - _id = $v.id; - _$v = null; - } - return this; - } - - @override - void replace(ChargeResponseChannel other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeResponseChannel; - } - - @override - void update(void Function(ChargeResponseChannelBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeResponseChannel build() => _build(); - - _$ChargeResponseChannel _build() { - final _$result = _$v ?? - new _$ChargeResponseChannel._( - segment: segment, - checkoutRequestId: checkoutRequestId, - checkoutRequestType: checkoutRequestType, - id: id); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_payment_method.g.dart b/lib/src/model/charge_response_payment_method.g.dart deleted file mode 100644 index aa064e9..0000000 --- a/lib/src/model/charge_response_payment_method.g.dart +++ /dev/null @@ -1,100 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_response_payment_method.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeResponsePaymentMethod extends ChargeResponsePaymentMethod { - @override - final OneOf oneOf; - - factory _$ChargeResponsePaymentMethod( - [void Function(ChargeResponsePaymentMethodBuilder)? updates]) => - (new ChargeResponsePaymentMethodBuilder()..update(updates))._build(); - - _$ChargeResponsePaymentMethod._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'ChargeResponsePaymentMethod', 'oneOf'); - } - - @override - ChargeResponsePaymentMethod rebuild( - void Function(ChargeResponsePaymentMethodBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeResponsePaymentMethodBuilder toBuilder() => - new ChargeResponsePaymentMethodBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeResponsePaymentMethod && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeResponsePaymentMethod') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class ChargeResponsePaymentMethodBuilder - implements - Builder { - _$ChargeResponsePaymentMethod? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - ChargeResponsePaymentMethodBuilder() { - ChargeResponsePaymentMethod._defaults(this); - } - - ChargeResponsePaymentMethodBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(ChargeResponsePaymentMethod other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeResponsePaymentMethod; - } - - @override - void update(void Function(ChargeResponsePaymentMethodBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeResponsePaymentMethod build() => _build(); - - _$ChargeResponsePaymentMethod _build() { - final _$result = _$v ?? - new _$ChargeResponsePaymentMethod._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'ChargeResponsePaymentMethod', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_refunds.g.dart b/lib/src/model/charge_response_refunds.g.dart deleted file mode 100644 index b945e45..0000000 --- a/lib/src/model/charge_response_refunds.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_response_refunds.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeResponseRefunds extends ChargeResponseRefunds { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$ChargeResponseRefunds( - [void Function(ChargeResponseRefundsBuilder)? updates]) => - (new ChargeResponseRefundsBuilder()..update(updates))._build(); - - _$ChargeResponseRefunds._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'ChargeResponseRefunds', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'ChargeResponseRefunds', 'object'); - } - - @override - ChargeResponseRefunds rebuild( - void Function(ChargeResponseRefundsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeResponseRefundsBuilder toBuilder() => - new ChargeResponseRefundsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeResponseRefunds && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeResponseRefunds') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class ChargeResponseRefundsBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$ChargeResponseRefunds? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - ChargeResponseRefundsBuilder() { - ChargeResponseRefunds._defaults(this); - } - - ChargeResponseRefundsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant ChargeResponseRefunds other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeResponseRefunds; - } - - @override - void update(void Function(ChargeResponseRefundsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeResponseRefunds build() => _build(); - - _$ChargeResponseRefunds _build() { - _$ChargeResponseRefunds _$result; - try { - _$result = _$v ?? - new _$ChargeResponseRefunds._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'ChargeResponseRefunds', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'ChargeResponseRefunds', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ChargeResponseRefunds', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_refunds_data.g.dart b/lib/src/model/charge_response_refunds_data.g.dart deleted file mode 100644 index c034141..0000000 --- a/lib/src/model/charge_response_refunds_data.g.dart +++ /dev/null @@ -1,183 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_response_refunds_data.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeResponseRefundsData extends ChargeResponseRefundsData { - @override - final int amount; - @override - final String? authCode; - @override - final int createdAt; - @override - final int? expiresAt; - @override - final String id; - @override - final String object; - @override - final String? status; - - factory _$ChargeResponseRefundsData( - [void Function(ChargeResponseRefundsDataBuilder)? updates]) => - (new ChargeResponseRefundsDataBuilder()..update(updates))._build(); - - _$ChargeResponseRefundsData._( - {required this.amount, - this.authCode, - required this.createdAt, - this.expiresAt, - required this.id, - required this.object, - this.status}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'ChargeResponseRefundsData', 'amount'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'ChargeResponseRefundsData', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - id, r'ChargeResponseRefundsData', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'ChargeResponseRefundsData', 'object'); - } - - @override - ChargeResponseRefundsData rebuild( - void Function(ChargeResponseRefundsDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeResponseRefundsDataBuilder toBuilder() => - new ChargeResponseRefundsDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeResponseRefundsData && - amount == other.amount && - authCode == other.authCode && - createdAt == other.createdAt && - expiresAt == other.expiresAt && - id == other.id && - object == other.object && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, authCode.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeResponseRefundsData') - ..add('amount', amount) - ..add('authCode', authCode) - ..add('createdAt', createdAt) - ..add('expiresAt', expiresAt) - ..add('id', id) - ..add('object', object) - ..add('status', status)) - .toString(); - } -} - -class ChargeResponseRefundsDataBuilder - implements - Builder { - _$ChargeResponseRefundsData? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _authCode; - String? get authCode => _$this._authCode; - set authCode(String? authCode) => _$this._authCode = authCode; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - ChargeResponseRefundsDataBuilder() { - ChargeResponseRefundsData._defaults(this); - } - - ChargeResponseRefundsDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _authCode = $v.authCode; - _createdAt = $v.createdAt; - _expiresAt = $v.expiresAt; - _id = $v.id; - _object = $v.object; - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(ChargeResponseRefundsData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeResponseRefundsData; - } - - @override - void update(void Function(ChargeResponseRefundsDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeResponseRefundsData build() => _build(); - - _$ChargeResponseRefundsData _build() { - final _$result = _$v ?? - new _$ChargeResponseRefundsData._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'ChargeResponseRefundsData', 'amount'), - authCode: authCode, - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'ChargeResponseRefundsData', 'createdAt'), - expiresAt: expiresAt, - id: BuiltValueNullFieldError.checkNotNull( - id, r'ChargeResponseRefundsData', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'ChargeResponseRefundsData', 'object'), - status: status); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_update_request.g.dart b/lib/src/model/charge_update_request.g.dart deleted file mode 100644 index 6e52117..0000000 --- a/lib/src/model/charge_update_request.g.dart +++ /dev/null @@ -1,93 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charge_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargeUpdateRequest extends ChargeUpdateRequest { - @override - final String? referenceId; - - factory _$ChargeUpdateRequest( - [void Function(ChargeUpdateRequestBuilder)? updates]) => - (new ChargeUpdateRequestBuilder()..update(updates))._build(); - - _$ChargeUpdateRequest._({this.referenceId}) : super._(); - - @override - ChargeUpdateRequest rebuild( - void Function(ChargeUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargeUpdateRequestBuilder toBuilder() => - new ChargeUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargeUpdateRequest && referenceId == other.referenceId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, referenceId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargeUpdateRequest') - ..add('referenceId', referenceId)) - .toString(); - } -} - -class ChargeUpdateRequestBuilder - implements Builder { - _$ChargeUpdateRequest? _$v; - - String? _referenceId; - String? get referenceId => _$this._referenceId; - set referenceId(String? referenceId) => _$this._referenceId = referenceId; - - ChargeUpdateRequestBuilder() { - ChargeUpdateRequest._defaults(this); - } - - ChargeUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _referenceId = $v.referenceId; - _$v = null; - } - return this; - } - - @override - void replace(ChargeUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargeUpdateRequest; - } - - @override - void update(void Function(ChargeUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargeUpdateRequest build() => _build(); - - _$ChargeUpdateRequest _build() { - final _$result = - _$v ?? new _$ChargeUpdateRequest._(referenceId: referenceId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charges_data_response.g.dart b/lib/src/model/charges_data_response.g.dart deleted file mode 100644 index dde6f02..0000000 --- a/lib/src/model/charges_data_response.g.dart +++ /dev/null @@ -1,335 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charges_data_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargesDataResponse extends ChargesDataResponse { - @override - final int? amount; - @override - final ChargeResponseChannel? channel; - @override - final int? createdAt; - @override - final String? currency; - @override - final String? customerId; - @override - final String? description; - @override - final String? deviceFingerprint; - @override - final String? failureCode; - @override - final String? failureMessage; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - @override - final String? orderId; - @override - final int? paidAt; - @override - final ChargeResponsePaymentMethod? paymentMethod; - @override - final String? referenceId; - @override - final ChargeResponseRefunds? refunds; - @override - final String? status; - - factory _$ChargesDataResponse( - [void Function(ChargesDataResponseBuilder)? updates]) => - (new ChargesDataResponseBuilder()..update(updates))._build(); - - _$ChargesDataResponse._( - {this.amount, - this.channel, - this.createdAt, - this.currency, - this.customerId, - this.description, - this.deviceFingerprint, - this.failureCode, - this.failureMessage, - this.id, - this.livemode, - this.object, - this.orderId, - this.paidAt, - this.paymentMethod, - this.referenceId, - this.refunds, - this.status}) - : super._(); - - @override - ChargesDataResponse rebuild( - void Function(ChargesDataResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargesDataResponseBuilder toBuilder() => - new ChargesDataResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargesDataResponse && - amount == other.amount && - channel == other.channel && - createdAt == other.createdAt && - currency == other.currency && - customerId == other.customerId && - description == other.description && - deviceFingerprint == other.deviceFingerprint && - failureCode == other.failureCode && - failureMessage == other.failureMessage && - id == other.id && - livemode == other.livemode && - object == other.object && - orderId == other.orderId && - paidAt == other.paidAt && - paymentMethod == other.paymentMethod && - referenceId == other.referenceId && - refunds == other.refunds && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, channel.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, deviceFingerprint.hashCode); - _$hash = $jc(_$hash, failureCode.hashCode); - _$hash = $jc(_$hash, failureMessage.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, orderId.hashCode); - _$hash = $jc(_$hash, paidAt.hashCode); - _$hash = $jc(_$hash, paymentMethod.hashCode); - _$hash = $jc(_$hash, referenceId.hashCode); - _$hash = $jc(_$hash, refunds.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargesDataResponse') - ..add('amount', amount) - ..add('channel', channel) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('customerId', customerId) - ..add('description', description) - ..add('deviceFingerprint', deviceFingerprint) - ..add('failureCode', failureCode) - ..add('failureMessage', failureMessage) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('orderId', orderId) - ..add('paidAt', paidAt) - ..add('paymentMethod', paymentMethod) - ..add('referenceId', referenceId) - ..add('refunds', refunds) - ..add('status', status)) - .toString(); - } -} - -class ChargesDataResponseBuilder - implements - Builder, - ChargeResponseBuilder { - _$ChargesDataResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(covariant int? amount) => _$this._amount = amount; - - ChargeResponseChannelBuilder? _channel; - ChargeResponseChannelBuilder get channel => - _$this._channel ??= new ChargeResponseChannelBuilder(); - set channel(covariant ChargeResponseChannelBuilder? channel) => - _$this._channel = channel; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(covariant String? currency) => _$this._currency = currency; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(covariant String? customerId) => - _$this._customerId = customerId; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - String? _deviceFingerprint; - String? get deviceFingerprint => _$this._deviceFingerprint; - set deviceFingerprint(covariant String? deviceFingerprint) => - _$this._deviceFingerprint = deviceFingerprint; - - String? _failureCode; - String? get failureCode => _$this._failureCode; - set failureCode(covariant String? failureCode) => - _$this._failureCode = failureCode; - - String? _failureMessage; - String? get failureMessage => _$this._failureMessage; - set failureMessage(covariant String? failureMessage) => - _$this._failureMessage = failureMessage; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _orderId; - String? get orderId => _$this._orderId; - set orderId(covariant String? orderId) => _$this._orderId = orderId; - - int? _paidAt; - int? get paidAt => _$this._paidAt; - set paidAt(covariant int? paidAt) => _$this._paidAt = paidAt; - - ChargeResponsePaymentMethodBuilder? _paymentMethod; - ChargeResponsePaymentMethodBuilder get paymentMethod => - _$this._paymentMethod ??= new ChargeResponsePaymentMethodBuilder(); - set paymentMethod( - covariant ChargeResponsePaymentMethodBuilder? paymentMethod) => - _$this._paymentMethod = paymentMethod; - - String? _referenceId; - String? get referenceId => _$this._referenceId; - set referenceId(covariant String? referenceId) => - _$this._referenceId = referenceId; - - ChargeResponseRefundsBuilder? _refunds; - ChargeResponseRefundsBuilder get refunds => - _$this._refunds ??= new ChargeResponseRefundsBuilder(); - set refunds(covariant ChargeResponseRefundsBuilder? refunds) => - _$this._refunds = refunds; - - String? _status; - String? get status => _$this._status; - set status(covariant String? status) => _$this._status = status; - - ChargesDataResponseBuilder() { - ChargesDataResponse._defaults(this); - } - - ChargesDataResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _channel = $v.channel?.toBuilder(); - _createdAt = $v.createdAt; - _currency = $v.currency; - _customerId = $v.customerId; - _description = $v.description; - _deviceFingerprint = $v.deviceFingerprint; - _failureCode = $v.failureCode; - _failureMessage = $v.failureMessage; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _orderId = $v.orderId; - _paidAt = $v.paidAt; - _paymentMethod = $v.paymentMethod?.toBuilder(); - _referenceId = $v.referenceId; - _refunds = $v.refunds?.toBuilder(); - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChargesDataResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargesDataResponse; - } - - @override - void update(void Function(ChargesDataResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargesDataResponse build() => _build(); - - _$ChargesDataResponse _build() { - _$ChargesDataResponse _$result; - try { - _$result = _$v ?? - new _$ChargesDataResponse._( - amount: amount, - channel: _channel?.build(), - createdAt: createdAt, - currency: currency, - customerId: customerId, - description: description, - deviceFingerprint: deviceFingerprint, - failureCode: failureCode, - failureMessage: failureMessage, - id: id, - livemode: livemode, - object: object, - orderId: orderId, - paidAt: paidAt, - paymentMethod: _paymentMethod?.build(), - referenceId: referenceId, - refunds: _refunds?.build(), - status: status); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'channel'; - _channel?.build(); - - _$failedField = 'paymentMethod'; - _paymentMethod?.build(); - - _$failedField = 'refunds'; - _refunds?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ChargesDataResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charges_order_response.g.dart b/lib/src/model/charges_order_response.g.dart deleted file mode 100644 index 38e48d9..0000000 --- a/lib/src/model/charges_order_response.g.dart +++ /dev/null @@ -1,143 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charges_order_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargesOrderResponse extends ChargesOrderResponse { - @override - final BuiltList? data; - @override - final bool hasMore; - @override - final String object; - - factory _$ChargesOrderResponse( - [void Function(ChargesOrderResponseBuilder)? updates]) => - (new ChargesOrderResponseBuilder()..update(updates))._build(); - - _$ChargesOrderResponse._( - {this.data, required this.hasMore, required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'ChargesOrderResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'ChargesOrderResponse', 'object'); - } - - @override - ChargesOrderResponse rebuild( - void Function(ChargesOrderResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargesOrderResponseBuilder toBuilder() => - new ChargesOrderResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargesOrderResponse && - data == other.data && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargesOrderResponse') - ..add('data', data) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class ChargesOrderResponseBuilder - implements - Builder, - PaginationBuilder { - _$ChargesOrderResponse? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - ChargesOrderResponseBuilder() { - ChargesOrderResponse._defaults(this); - } - - ChargesOrderResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChargesOrderResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargesOrderResponse; - } - - @override - void update(void Function(ChargesOrderResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargesOrderResponse build() => _build(); - - _$ChargesOrderResponse _build() { - _$ChargesOrderResponse _$result; - try { - _$result = _$v ?? - new _$ChargesOrderResponse._( - data: _data?.build(), - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'ChargesOrderResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'ChargesOrderResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ChargesOrderResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charges_order_response_all_of_data.g.dart b/lib/src/model/charges_order_response_all_of_data.g.dart deleted file mode 100644 index 078ca01..0000000 --- a/lib/src/model/charges_order_response_all_of_data.g.dart +++ /dev/null @@ -1,336 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'charges_order_response_all_of_data.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ChargesOrderResponseAllOfData extends ChargesOrderResponseAllOfData { - @override - final int? amount; - @override - final ChargeResponseChannel? channel; - @override - final int? createdAt; - @override - final String? currency; - @override - final String? customerId; - @override - final String? description; - @override - final String? deviceFingerprint; - @override - final String? failureCode; - @override - final String? failureMessage; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - @override - final String? orderId; - @override - final int? paidAt; - @override - final ChargeResponsePaymentMethod? paymentMethod; - @override - final String? referenceId; - @override - final ChargeResponseRefunds? refunds; - @override - final String? status; - - factory _$ChargesOrderResponseAllOfData( - [void Function(ChargesOrderResponseAllOfDataBuilder)? updates]) => - (new ChargesOrderResponseAllOfDataBuilder()..update(updates))._build(); - - _$ChargesOrderResponseAllOfData._( - {this.amount, - this.channel, - this.createdAt, - this.currency, - this.customerId, - this.description, - this.deviceFingerprint, - this.failureCode, - this.failureMessage, - this.id, - this.livemode, - this.object, - this.orderId, - this.paidAt, - this.paymentMethod, - this.referenceId, - this.refunds, - this.status}) - : super._(); - - @override - ChargesOrderResponseAllOfData rebuild( - void Function(ChargesOrderResponseAllOfDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChargesOrderResponseAllOfDataBuilder toBuilder() => - new ChargesOrderResponseAllOfDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChargesOrderResponseAllOfData && - amount == other.amount && - channel == other.channel && - createdAt == other.createdAt && - currency == other.currency && - customerId == other.customerId && - description == other.description && - deviceFingerprint == other.deviceFingerprint && - failureCode == other.failureCode && - failureMessage == other.failureMessage && - id == other.id && - livemode == other.livemode && - object == other.object && - orderId == other.orderId && - paidAt == other.paidAt && - paymentMethod == other.paymentMethod && - referenceId == other.referenceId && - refunds == other.refunds && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, channel.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, deviceFingerprint.hashCode); - _$hash = $jc(_$hash, failureCode.hashCode); - _$hash = $jc(_$hash, failureMessage.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, orderId.hashCode); - _$hash = $jc(_$hash, paidAt.hashCode); - _$hash = $jc(_$hash, paymentMethod.hashCode); - _$hash = $jc(_$hash, referenceId.hashCode); - _$hash = $jc(_$hash, refunds.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChargesOrderResponseAllOfData') - ..add('amount', amount) - ..add('channel', channel) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('customerId', customerId) - ..add('description', description) - ..add('deviceFingerprint', deviceFingerprint) - ..add('failureCode', failureCode) - ..add('failureMessage', failureMessage) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('orderId', orderId) - ..add('paidAt', paidAt) - ..add('paymentMethod', paymentMethod) - ..add('referenceId', referenceId) - ..add('refunds', refunds) - ..add('status', status)) - .toString(); - } -} - -class ChargesOrderResponseAllOfDataBuilder - implements - Builder, - ChargeResponseBuilder { - _$ChargesOrderResponseAllOfData? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(covariant int? amount) => _$this._amount = amount; - - ChargeResponseChannelBuilder? _channel; - ChargeResponseChannelBuilder get channel => - _$this._channel ??= new ChargeResponseChannelBuilder(); - set channel(covariant ChargeResponseChannelBuilder? channel) => - _$this._channel = channel; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(covariant String? currency) => _$this._currency = currency; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(covariant String? customerId) => - _$this._customerId = customerId; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - String? _deviceFingerprint; - String? get deviceFingerprint => _$this._deviceFingerprint; - set deviceFingerprint(covariant String? deviceFingerprint) => - _$this._deviceFingerprint = deviceFingerprint; - - String? _failureCode; - String? get failureCode => _$this._failureCode; - set failureCode(covariant String? failureCode) => - _$this._failureCode = failureCode; - - String? _failureMessage; - String? get failureMessage => _$this._failureMessage; - set failureMessage(covariant String? failureMessage) => - _$this._failureMessage = failureMessage; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - String? _orderId; - String? get orderId => _$this._orderId; - set orderId(covariant String? orderId) => _$this._orderId = orderId; - - int? _paidAt; - int? get paidAt => _$this._paidAt; - set paidAt(covariant int? paidAt) => _$this._paidAt = paidAt; - - ChargeResponsePaymentMethodBuilder? _paymentMethod; - ChargeResponsePaymentMethodBuilder get paymentMethod => - _$this._paymentMethod ??= new ChargeResponsePaymentMethodBuilder(); - set paymentMethod( - covariant ChargeResponsePaymentMethodBuilder? paymentMethod) => - _$this._paymentMethod = paymentMethod; - - String? _referenceId; - String? get referenceId => _$this._referenceId; - set referenceId(covariant String? referenceId) => - _$this._referenceId = referenceId; - - ChargeResponseRefundsBuilder? _refunds; - ChargeResponseRefundsBuilder get refunds => - _$this._refunds ??= new ChargeResponseRefundsBuilder(); - set refunds(covariant ChargeResponseRefundsBuilder? refunds) => - _$this._refunds = refunds; - - String? _status; - String? get status => _$this._status; - set status(covariant String? status) => _$this._status = status; - - ChargesOrderResponseAllOfDataBuilder() { - ChargesOrderResponseAllOfData._defaults(this); - } - - ChargesOrderResponseAllOfDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _channel = $v.channel?.toBuilder(); - _createdAt = $v.createdAt; - _currency = $v.currency; - _customerId = $v.customerId; - _description = $v.description; - _deviceFingerprint = $v.deviceFingerprint; - _failureCode = $v.failureCode; - _failureMessage = $v.failureMessage; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _orderId = $v.orderId; - _paidAt = $v.paidAt; - _paymentMethod = $v.paymentMethod?.toBuilder(); - _referenceId = $v.referenceId; - _refunds = $v.refunds?.toBuilder(); - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChargesOrderResponseAllOfData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChargesOrderResponseAllOfData; - } - - @override - void update(void Function(ChargesOrderResponseAllOfDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChargesOrderResponseAllOfData build() => _build(); - - _$ChargesOrderResponseAllOfData _build() { - _$ChargesOrderResponseAllOfData _$result; - try { - _$result = _$v ?? - new _$ChargesOrderResponseAllOfData._( - amount: amount, - channel: _channel?.build(), - createdAt: createdAt, - currency: currency, - customerId: customerId, - description: description, - deviceFingerprint: deviceFingerprint, - failureCode: failureCode, - failureMessage: failureMessage, - id: id, - livemode: livemode, - object: object, - orderId: orderId, - paidAt: paidAt, - paymentMethod: _paymentMethod?.build(), - referenceId: referenceId, - refunds: _refunds?.build(), - status: status); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'channel'; - _channel?.build(); - - _$failedField = 'paymentMethod'; - _paymentMethod?.build(); - - _$failedField = 'refunds'; - _refunds?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ChargesOrderResponseAllOfData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout.g.dart b/lib/src/model/checkout.g.dart deleted file mode 100644 index 4442cef..0000000 --- a/lib/src/model/checkout.g.dart +++ /dev/null @@ -1,268 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkout.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$Checkout extends Checkout { - @override - final BuiltList allowedPaymentMethods; - @override - final int expiresAt; - @override - final bool? monthlyInstallmentsEnabled; - @override - final BuiltList? monthlyInstallmentsOptions; - @override - final String? threeDsMode; - @override - final String name; - @override - final bool? needsShippingContact; - @override - final bool? onDemandEnabled; - @override - final CheckoutOrderTemplate orderTemplate; - @override - final int? paymentsLimitCount; - @override - final bool recurrent; - @override - final String type; - - factory _$Checkout([void Function(CheckoutBuilder)? updates]) => - (new CheckoutBuilder()..update(updates))._build(); - - _$Checkout._( - {required this.allowedPaymentMethods, - required this.expiresAt, - this.monthlyInstallmentsEnabled, - this.monthlyInstallmentsOptions, - this.threeDsMode, - required this.name, - this.needsShippingContact, - this.onDemandEnabled, - required this.orderTemplate, - this.paymentsLimitCount, - required this.recurrent, - required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - allowedPaymentMethods, r'Checkout', 'allowedPaymentMethods'); - BuiltValueNullFieldError.checkNotNull(expiresAt, r'Checkout', 'expiresAt'); - BuiltValueNullFieldError.checkNotNull(name, r'Checkout', 'name'); - BuiltValueNullFieldError.checkNotNull( - orderTemplate, r'Checkout', 'orderTemplate'); - BuiltValueNullFieldError.checkNotNull(recurrent, r'Checkout', 'recurrent'); - BuiltValueNullFieldError.checkNotNull(type, r'Checkout', 'type'); - } - - @override - Checkout rebuild(void Function(CheckoutBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CheckoutBuilder toBuilder() => new CheckoutBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Checkout && - allowedPaymentMethods == other.allowedPaymentMethods && - expiresAt == other.expiresAt && - monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && - monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && - threeDsMode == other.threeDsMode && - name == other.name && - needsShippingContact == other.needsShippingContact && - onDemandEnabled == other.onDemandEnabled && - orderTemplate == other.orderTemplate && - paymentsLimitCount == other.paymentsLimitCount && - recurrent == other.recurrent && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); - _$hash = $jc(_$hash, threeDsMode.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, needsShippingContact.hashCode); - _$hash = $jc(_$hash, onDemandEnabled.hashCode); - _$hash = $jc(_$hash, orderTemplate.hashCode); - _$hash = $jc(_$hash, paymentsLimitCount.hashCode); - _$hash = $jc(_$hash, recurrent.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Checkout') - ..add('allowedPaymentMethods', allowedPaymentMethods) - ..add('expiresAt', expiresAt) - ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) - ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) - ..add('threeDsMode', threeDsMode) - ..add('name', name) - ..add('needsShippingContact', needsShippingContact) - ..add('onDemandEnabled', onDemandEnabled) - ..add('orderTemplate', orderTemplate) - ..add('paymentsLimitCount', paymentsLimitCount) - ..add('recurrent', recurrent) - ..add('type', type)) - .toString(); - } -} - -class CheckoutBuilder implements Builder { - _$Checkout? _$v; - - ListBuilder? _allowedPaymentMethods; - ListBuilder get allowedPaymentMethods => - _$this._allowedPaymentMethods ??= new ListBuilder(); - set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => - _$this._allowedPaymentMethods = allowedPaymentMethods; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - bool? _monthlyInstallmentsEnabled; - bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; - set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => - _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; - - ListBuilder? _monthlyInstallmentsOptions; - ListBuilder get monthlyInstallmentsOptions => - _$this._monthlyInstallmentsOptions ??= new ListBuilder(); - set monthlyInstallmentsOptions( - ListBuilder? monthlyInstallmentsOptions) => - _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; - - String? _threeDsMode; - String? get threeDsMode => _$this._threeDsMode; - set threeDsMode(String? threeDsMode) => _$this._threeDsMode = threeDsMode; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - bool? _needsShippingContact; - bool? get needsShippingContact => _$this._needsShippingContact; - set needsShippingContact(bool? needsShippingContact) => - _$this._needsShippingContact = needsShippingContact; - - bool? _onDemandEnabled; - bool? get onDemandEnabled => _$this._onDemandEnabled; - set onDemandEnabled(bool? onDemandEnabled) => - _$this._onDemandEnabled = onDemandEnabled; - - CheckoutOrderTemplateBuilder? _orderTemplate; - CheckoutOrderTemplateBuilder get orderTemplate => - _$this._orderTemplate ??= new CheckoutOrderTemplateBuilder(); - set orderTemplate(CheckoutOrderTemplateBuilder? orderTemplate) => - _$this._orderTemplate = orderTemplate; - - int? _paymentsLimitCount; - int? get paymentsLimitCount => _$this._paymentsLimitCount; - set paymentsLimitCount(int? paymentsLimitCount) => - _$this._paymentsLimitCount = paymentsLimitCount; - - bool? _recurrent; - bool? get recurrent => _$this._recurrent; - set recurrent(bool? recurrent) => _$this._recurrent = recurrent; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - CheckoutBuilder() { - Checkout._defaults(this); - } - - CheckoutBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPaymentMethods = $v.allowedPaymentMethods.toBuilder(); - _expiresAt = $v.expiresAt; - _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; - _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); - _threeDsMode = $v.threeDsMode; - _name = $v.name; - _needsShippingContact = $v.needsShippingContact; - _onDemandEnabled = $v.onDemandEnabled; - _orderTemplate = $v.orderTemplate.toBuilder(); - _paymentsLimitCount = $v.paymentsLimitCount; - _recurrent = $v.recurrent; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(Checkout other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Checkout; - } - - @override - void update(void Function(CheckoutBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Checkout build() => _build(); - - _$Checkout _build() { - _$Checkout _$result; - try { - _$result = _$v ?? - new _$Checkout._( - allowedPaymentMethods: allowedPaymentMethods.build(), - expiresAt: BuiltValueNullFieldError.checkNotNull( - expiresAt, r'Checkout', 'expiresAt'), - monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, - monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), - threeDsMode: threeDsMode, - name: BuiltValueNullFieldError.checkNotNull( - name, r'Checkout', 'name'), - needsShippingContact: needsShippingContact, - onDemandEnabled: onDemandEnabled, - orderTemplate: orderTemplate.build(), - paymentsLimitCount: paymentsLimitCount, - recurrent: BuiltValueNullFieldError.checkNotNull( - recurrent, r'Checkout', 'recurrent'), - type: BuiltValueNullFieldError.checkNotNull( - type, r'Checkout', 'type')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPaymentMethods'; - allowedPaymentMethods.build(); - - _$failedField = 'monthlyInstallmentsOptions'; - _monthlyInstallmentsOptions?.build(); - - _$failedField = 'orderTemplate'; - orderTemplate.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'Checkout', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_order_template.g.dart b/lib/src/model/checkout_order_template.g.dart deleted file mode 100644 index 5dd4dcf..0000000 --- a/lib/src/model/checkout_order_template.g.dart +++ /dev/null @@ -1,162 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkout_order_template.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CheckoutOrderTemplate extends CheckoutOrderTemplate { - @override - final String currency; - @override - final CheckoutOrderTemplateCustomerInfo? customerInfo; - @override - final BuiltList lineItems; - @override - final BuiltMap? metadata; - - factory _$CheckoutOrderTemplate( - [void Function(CheckoutOrderTemplateBuilder)? updates]) => - (new CheckoutOrderTemplateBuilder()..update(updates))._build(); - - _$CheckoutOrderTemplate._( - {required this.currency, - this.customerInfo, - required this.lineItems, - this.metadata}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - currency, r'CheckoutOrderTemplate', 'currency'); - BuiltValueNullFieldError.checkNotNull( - lineItems, r'CheckoutOrderTemplate', 'lineItems'); - } - - @override - CheckoutOrderTemplate rebuild( - void Function(CheckoutOrderTemplateBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CheckoutOrderTemplateBuilder toBuilder() => - new CheckoutOrderTemplateBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CheckoutOrderTemplate && - currency == other.currency && - customerInfo == other.customerInfo && - lineItems == other.lineItems && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerInfo.hashCode); - _$hash = $jc(_$hash, lineItems.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CheckoutOrderTemplate') - ..add('currency', currency) - ..add('customerInfo', customerInfo) - ..add('lineItems', lineItems) - ..add('metadata', metadata)) - .toString(); - } -} - -class CheckoutOrderTemplateBuilder - implements Builder { - _$CheckoutOrderTemplate? _$v; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - CheckoutOrderTemplateCustomerInfoBuilder? _customerInfo; - CheckoutOrderTemplateCustomerInfoBuilder get customerInfo => - _$this._customerInfo ??= new CheckoutOrderTemplateCustomerInfoBuilder(); - set customerInfo(CheckoutOrderTemplateCustomerInfoBuilder? customerInfo) => - _$this._customerInfo = customerInfo; - - ListBuilder? _lineItems; - ListBuilder get lineItems => - _$this._lineItems ??= new ListBuilder(); - set lineItems(ListBuilder? lineItems) => - _$this._lineItems = lineItems; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - CheckoutOrderTemplateBuilder() { - CheckoutOrderTemplate._defaults(this); - } - - CheckoutOrderTemplateBuilder get _$this { - final $v = _$v; - if ($v != null) { - _currency = $v.currency; - _customerInfo = $v.customerInfo?.toBuilder(); - _lineItems = $v.lineItems.toBuilder(); - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(CheckoutOrderTemplate other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CheckoutOrderTemplate; - } - - @override - void update(void Function(CheckoutOrderTemplateBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CheckoutOrderTemplate build() => _build(); - - _$CheckoutOrderTemplate _build() { - _$CheckoutOrderTemplate _$result; - try { - _$result = _$v ?? - new _$CheckoutOrderTemplate._( - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'CheckoutOrderTemplate', 'currency'), - customerInfo: _customerInfo?.build(), - lineItems: lineItems.build(), - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'customerInfo'; - _customerInfo?.build(); - _$failedField = 'lineItems'; - lineItems.build(); - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CheckoutOrderTemplate', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_order_template_customer_info.g.dart b/lib/src/model/checkout_order_template_customer_info.g.dart deleted file mode 100644 index 5450719..0000000 --- a/lib/src/model/checkout_order_template_customer_info.g.dart +++ /dev/null @@ -1,103 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkout_order_template_customer_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CheckoutOrderTemplateCustomerInfo - extends CheckoutOrderTemplateCustomerInfo { - @override - final OneOf oneOf; - - factory _$CheckoutOrderTemplateCustomerInfo( - [void Function(CheckoutOrderTemplateCustomerInfoBuilder)? updates]) => - (new CheckoutOrderTemplateCustomerInfoBuilder()..update(updates)) - ._build(); - - _$CheckoutOrderTemplateCustomerInfo._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'CheckoutOrderTemplateCustomerInfo', 'oneOf'); - } - - @override - CheckoutOrderTemplateCustomerInfo rebuild( - void Function(CheckoutOrderTemplateCustomerInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CheckoutOrderTemplateCustomerInfoBuilder toBuilder() => - new CheckoutOrderTemplateCustomerInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CheckoutOrderTemplateCustomerInfo && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CheckoutOrderTemplateCustomerInfo') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class CheckoutOrderTemplateCustomerInfoBuilder - implements - Builder { - _$CheckoutOrderTemplateCustomerInfo? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - CheckoutOrderTemplateCustomerInfoBuilder() { - CheckoutOrderTemplateCustomerInfo._defaults(this); - } - - CheckoutOrderTemplateCustomerInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(CheckoutOrderTemplateCustomerInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CheckoutOrderTemplateCustomerInfo; - } - - @override - void update( - void Function(CheckoutOrderTemplateCustomerInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CheckoutOrderTemplateCustomerInfo build() => _build(); - - _$CheckoutOrderTemplateCustomerInfo _build() { - final _$result = _$v ?? - new _$CheckoutOrderTemplateCustomerInfo._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'CheckoutOrderTemplateCustomerInfo', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_request.g.dart b/lib/src/model/checkout_request.g.dart deleted file mode 100644 index c83c738..0000000 --- a/lib/src/model/checkout_request.g.dart +++ /dev/null @@ -1,243 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkout_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CheckoutRequest extends CheckoutRequest { - @override - final BuiltList allowedPaymentMethods; - @override - final int? expiresAt; - @override - final String? failureUrl; - @override - final bool? monthlyInstallmentsEnabled; - @override - final BuiltList? monthlyInstallmentsOptions; - @override - final int? maxFailedRetries; - @override - final String? name; - @override - final bool? onDemandEnabled; - @override - final int? redirectionTime; - @override - final String? successUrl; - @override - final String? type; - - factory _$CheckoutRequest([void Function(CheckoutRequestBuilder)? updates]) => - (new CheckoutRequestBuilder()..update(updates))._build(); - - _$CheckoutRequest._( - {required this.allowedPaymentMethods, - this.expiresAt, - this.failureUrl, - this.monthlyInstallmentsEnabled, - this.monthlyInstallmentsOptions, - this.maxFailedRetries, - this.name, - this.onDemandEnabled, - this.redirectionTime, - this.successUrl, - this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - allowedPaymentMethods, r'CheckoutRequest', 'allowedPaymentMethods'); - } - - @override - CheckoutRequest rebuild(void Function(CheckoutRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CheckoutRequestBuilder toBuilder() => - new CheckoutRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CheckoutRequest && - allowedPaymentMethods == other.allowedPaymentMethods && - expiresAt == other.expiresAt && - failureUrl == other.failureUrl && - monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && - monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && - maxFailedRetries == other.maxFailedRetries && - name == other.name && - onDemandEnabled == other.onDemandEnabled && - redirectionTime == other.redirectionTime && - successUrl == other.successUrl && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, failureUrl.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); - _$hash = $jc(_$hash, maxFailedRetries.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, onDemandEnabled.hashCode); - _$hash = $jc(_$hash, redirectionTime.hashCode); - _$hash = $jc(_$hash, successUrl.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CheckoutRequest') - ..add('allowedPaymentMethods', allowedPaymentMethods) - ..add('expiresAt', expiresAt) - ..add('failureUrl', failureUrl) - ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) - ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) - ..add('maxFailedRetries', maxFailedRetries) - ..add('name', name) - ..add('onDemandEnabled', onDemandEnabled) - ..add('redirectionTime', redirectionTime) - ..add('successUrl', successUrl) - ..add('type', type)) - .toString(); - } -} - -class CheckoutRequestBuilder - implements Builder { - _$CheckoutRequest? _$v; - - ListBuilder? _allowedPaymentMethods; - ListBuilder get allowedPaymentMethods => - _$this._allowedPaymentMethods ??= new ListBuilder(); - set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => - _$this._allowedPaymentMethods = allowedPaymentMethods; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _failureUrl; - String? get failureUrl => _$this._failureUrl; - set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; - - bool? _monthlyInstallmentsEnabled; - bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; - set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => - _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; - - ListBuilder? _monthlyInstallmentsOptions; - ListBuilder get monthlyInstallmentsOptions => - _$this._monthlyInstallmentsOptions ??= new ListBuilder(); - set monthlyInstallmentsOptions( - ListBuilder? monthlyInstallmentsOptions) => - _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; - - int? _maxFailedRetries; - int? get maxFailedRetries => _$this._maxFailedRetries; - set maxFailedRetries(int? maxFailedRetries) => - _$this._maxFailedRetries = maxFailedRetries; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - bool? _onDemandEnabled; - bool? get onDemandEnabled => _$this._onDemandEnabled; - set onDemandEnabled(bool? onDemandEnabled) => - _$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; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - CheckoutRequestBuilder() { - CheckoutRequest._defaults(this); - } - - CheckoutRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPaymentMethods = $v.allowedPaymentMethods.toBuilder(); - _expiresAt = $v.expiresAt; - _failureUrl = $v.failureUrl; - _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; - _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); - _maxFailedRetries = $v.maxFailedRetries; - _name = $v.name; - _onDemandEnabled = $v.onDemandEnabled; - _redirectionTime = $v.redirectionTime; - _successUrl = $v.successUrl; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(CheckoutRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CheckoutRequest; - } - - @override - void update(void Function(CheckoutRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CheckoutRequest build() => _build(); - - _$CheckoutRequest _build() { - _$CheckoutRequest _$result; - try { - _$result = _$v ?? - new _$CheckoutRequest._( - allowedPaymentMethods: allowedPaymentMethods.build(), - expiresAt: expiresAt, - failureUrl: failureUrl, - monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, - monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), - maxFailedRetries: maxFailedRetries, - name: name, - onDemandEnabled: onDemandEnabled, - redirectionTime: redirectionTime, - successUrl: successUrl, - type: type); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPaymentMethods'; - allowedPaymentMethods.build(); - - _$failedField = 'monthlyInstallmentsOptions'; - _monthlyInstallmentsOptions?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CheckoutRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_response.g.dart b/lib/src/model/checkout_response.g.dart deleted file mode 100644 index 335a68a..0000000 --- a/lib/src/model/checkout_response.g.dart +++ /dev/null @@ -1,430 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkout_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CheckoutResponse extends CheckoutResponse { - @override - final BuiltList? allowedPaymentMethods; - @override - final bool? canNotExpire; - @override - final int? emailsSent; - @override - final BuiltList? excludeCardNetworks; - @override - final int? expiresAt; - @override - final String? failureUrl; - @override - final bool? force3dsFlow; - @override - final String id; - @override - final bool livemode; - @override - final BuiltMap? metadata; - @override - final bool? monthlyInstallmentsEnabled; - @override - final BuiltList? monthlyInstallmentsOptions; - @override - final String name; - @override - final bool? needsShippingContact; - @override - final String object; - @override - final int? paidPaymentsCount; - @override - final int? paymentsLimitCount; - @override - final bool? recurrent; - @override - final String? slug; - @override - final int? smsSent; - @override - final int? startsAt; - @override - final String? status; - @override - final String? successUrl; - @override - final String? type; - @override - final String? url; - - factory _$CheckoutResponse( - [void Function(CheckoutResponseBuilder)? updates]) => - (new CheckoutResponseBuilder()..update(updates))._build(); - - _$CheckoutResponse._( - {this.allowedPaymentMethods, - this.canNotExpire, - this.emailsSent, - this.excludeCardNetworks, - this.expiresAt, - this.failureUrl, - this.force3dsFlow, - required this.id, - required this.livemode, - this.metadata, - this.monthlyInstallmentsEnabled, - this.monthlyInstallmentsOptions, - required this.name, - this.needsShippingContact, - required this.object, - this.paidPaymentsCount, - this.paymentsLimitCount, - this.recurrent, - this.slug, - this.smsSent, - this.startsAt, - this.status, - this.successUrl, - this.type, - this.url}) - : super._() { - BuiltValueNullFieldError.checkNotNull(id, r'CheckoutResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - livemode, r'CheckoutResponse', 'livemode'); - BuiltValueNullFieldError.checkNotNull(name, r'CheckoutResponse', 'name'); - BuiltValueNullFieldError.checkNotNull( - object, r'CheckoutResponse', 'object'); - } - - @override - CheckoutResponse rebuild(void Function(CheckoutResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CheckoutResponseBuilder toBuilder() => - new CheckoutResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CheckoutResponse && - allowedPaymentMethods == other.allowedPaymentMethods && - canNotExpire == other.canNotExpire && - emailsSent == other.emailsSent && - excludeCardNetworks == other.excludeCardNetworks && - expiresAt == other.expiresAt && - failureUrl == other.failureUrl && - force3dsFlow == other.force3dsFlow && - id == other.id && - livemode == other.livemode && - metadata == other.metadata && - monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && - monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && - name == other.name && - needsShippingContact == other.needsShippingContact && - object == other.object && - paidPaymentsCount == other.paidPaymentsCount && - paymentsLimitCount == other.paymentsLimitCount && - recurrent == other.recurrent && - slug == other.slug && - smsSent == other.smsSent && - startsAt == other.startsAt && - status == other.status && - successUrl == other.successUrl && - type == other.type && - url == other.url; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); - _$hash = $jc(_$hash, canNotExpire.hashCode); - _$hash = $jc(_$hash, emailsSent.hashCode); - _$hash = $jc(_$hash, excludeCardNetworks.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, failureUrl.hashCode); - _$hash = $jc(_$hash, force3dsFlow.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, needsShippingContact.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, paidPaymentsCount.hashCode); - _$hash = $jc(_$hash, paymentsLimitCount.hashCode); - _$hash = $jc(_$hash, recurrent.hashCode); - _$hash = $jc(_$hash, slug.hashCode); - _$hash = $jc(_$hash, smsSent.hashCode); - _$hash = $jc(_$hash, startsAt.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, successUrl.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CheckoutResponse') - ..add('allowedPaymentMethods', allowedPaymentMethods) - ..add('canNotExpire', canNotExpire) - ..add('emailsSent', emailsSent) - ..add('excludeCardNetworks', excludeCardNetworks) - ..add('expiresAt', expiresAt) - ..add('failureUrl', failureUrl) - ..add('force3dsFlow', force3dsFlow) - ..add('id', id) - ..add('livemode', livemode) - ..add('metadata', metadata) - ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) - ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) - ..add('name', name) - ..add('needsShippingContact', needsShippingContact) - ..add('object', object) - ..add('paidPaymentsCount', paidPaymentsCount) - ..add('paymentsLimitCount', paymentsLimitCount) - ..add('recurrent', recurrent) - ..add('slug', slug) - ..add('smsSent', smsSent) - ..add('startsAt', startsAt) - ..add('status', status) - ..add('successUrl', successUrl) - ..add('type', type) - ..add('url', url)) - .toString(); - } -} - -class CheckoutResponseBuilder - implements Builder { - _$CheckoutResponse? _$v; - - ListBuilder? _allowedPaymentMethods; - ListBuilder get allowedPaymentMethods => - _$this._allowedPaymentMethods ??= new ListBuilder(); - set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => - _$this._allowedPaymentMethods = allowedPaymentMethods; - - bool? _canNotExpire; - bool? get canNotExpire => _$this._canNotExpire; - set canNotExpire(bool? canNotExpire) => _$this._canNotExpire = canNotExpire; - - int? _emailsSent; - int? get emailsSent => _$this._emailsSent; - set emailsSent(int? emailsSent) => _$this._emailsSent = emailsSent; - - ListBuilder? _excludeCardNetworks; - ListBuilder get excludeCardNetworks => - _$this._excludeCardNetworks ??= new ListBuilder(); - set excludeCardNetworks(ListBuilder? excludeCardNetworks) => - _$this._excludeCardNetworks = excludeCardNetworks; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _failureUrl; - String? get failureUrl => _$this._failureUrl; - set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; - - bool? _force3dsFlow; - bool? get force3dsFlow => _$this._force3dsFlow; - set force3dsFlow(bool? force3dsFlow) => _$this._force3dsFlow = force3dsFlow; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - bool? _monthlyInstallmentsEnabled; - bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; - set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => - _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; - - ListBuilder? _monthlyInstallmentsOptions; - ListBuilder get monthlyInstallmentsOptions => - _$this._monthlyInstallmentsOptions ??= new ListBuilder(); - set monthlyInstallmentsOptions( - ListBuilder? monthlyInstallmentsOptions) => - _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - bool? _needsShippingContact; - bool? get needsShippingContact => _$this._needsShippingContact; - set needsShippingContact(bool? needsShippingContact) => - _$this._needsShippingContact = needsShippingContact; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - int? _paidPaymentsCount; - int? get paidPaymentsCount => _$this._paidPaymentsCount; - set paidPaymentsCount(int? paidPaymentsCount) => - _$this._paidPaymentsCount = paidPaymentsCount; - - int? _paymentsLimitCount; - int? get paymentsLimitCount => _$this._paymentsLimitCount; - set paymentsLimitCount(int? paymentsLimitCount) => - _$this._paymentsLimitCount = paymentsLimitCount; - - bool? _recurrent; - bool? get recurrent => _$this._recurrent; - set recurrent(bool? recurrent) => _$this._recurrent = recurrent; - - String? _slug; - String? get slug => _$this._slug; - set slug(String? slug) => _$this._slug = slug; - - int? _smsSent; - int? get smsSent => _$this._smsSent; - set smsSent(int? smsSent) => _$this._smsSent = smsSent; - - int? _startsAt; - int? get startsAt => _$this._startsAt; - set startsAt(int? startsAt) => _$this._startsAt = startsAt; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - String? _successUrl; - String? get successUrl => _$this._successUrl; - set successUrl(String? successUrl) => _$this._successUrl = successUrl; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - CheckoutResponseBuilder() { - CheckoutResponse._defaults(this); - } - - CheckoutResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPaymentMethods = $v.allowedPaymentMethods?.toBuilder(); - _canNotExpire = $v.canNotExpire; - _emailsSent = $v.emailsSent; - _excludeCardNetworks = $v.excludeCardNetworks?.toBuilder(); - _expiresAt = $v.expiresAt; - _failureUrl = $v.failureUrl; - _force3dsFlow = $v.force3dsFlow; - _id = $v.id; - _livemode = $v.livemode; - _metadata = $v.metadata?.toBuilder(); - _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; - _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); - _name = $v.name; - _needsShippingContact = $v.needsShippingContact; - _object = $v.object; - _paidPaymentsCount = $v.paidPaymentsCount; - _paymentsLimitCount = $v.paymentsLimitCount; - _recurrent = $v.recurrent; - _slug = $v.slug; - _smsSent = $v.smsSent; - _startsAt = $v.startsAt; - _status = $v.status; - _successUrl = $v.successUrl; - _type = $v.type; - _url = $v.url; - _$v = null; - } - return this; - } - - @override - void replace(CheckoutResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CheckoutResponse; - } - - @override - void update(void Function(CheckoutResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CheckoutResponse build() => _build(); - - _$CheckoutResponse _build() { - _$CheckoutResponse _$result; - try { - _$result = _$v ?? - new _$CheckoutResponse._( - allowedPaymentMethods: _allowedPaymentMethods?.build(), - canNotExpire: canNotExpire, - emailsSent: emailsSent, - excludeCardNetworks: _excludeCardNetworks?.build(), - expiresAt: expiresAt, - failureUrl: failureUrl, - force3dsFlow: force3dsFlow, - id: BuiltValueNullFieldError.checkNotNull( - id, r'CheckoutResponse', 'id'), - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'CheckoutResponse', 'livemode'), - metadata: _metadata?.build(), - monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, - monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), - name: BuiltValueNullFieldError.checkNotNull( - name, r'CheckoutResponse', 'name'), - needsShippingContact: needsShippingContact, - object: BuiltValueNullFieldError.checkNotNull( - object, r'CheckoutResponse', 'object'), - paidPaymentsCount: paidPaymentsCount, - paymentsLimitCount: paymentsLimitCount, - recurrent: recurrent, - slug: slug, - smsSent: smsSent, - startsAt: startsAt, - status: status, - successUrl: successUrl, - type: type, - url: url); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPaymentMethods'; - _allowedPaymentMethods?.build(); - - _$failedField = 'excludeCardNetworks'; - _excludeCardNetworks?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'monthlyInstallmentsOptions'; - _monthlyInstallmentsOptions?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CheckoutResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkouts_response.g.dart b/lib/src/model/checkouts_response.g.dart deleted file mode 100644 index bcce14a..0000000 --- a/lib/src/model/checkouts_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'checkouts_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CheckoutsResponse extends CheckoutsResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$CheckoutsResponse( - [void Function(CheckoutsResponseBuilder)? updates]) => - (new CheckoutsResponseBuilder()..update(updates))._build(); - - _$CheckoutsResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'CheckoutsResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'CheckoutsResponse', 'object'); - } - - @override - CheckoutsResponse rebuild(void Function(CheckoutsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CheckoutsResponseBuilder toBuilder() => - new CheckoutsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CheckoutsResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CheckoutsResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class CheckoutsResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$CheckoutsResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - CheckoutsResponseBuilder() { - CheckoutsResponse._defaults(this); - } - - CheckoutsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant CheckoutsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CheckoutsResponse; - } - - @override - void update(void Function(CheckoutsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CheckoutsResponse build() => _build(); - - _$CheckoutsResponse _build() { - _$CheckoutsResponse _$result; - try { - _$result = _$v ?? - new _$CheckoutsResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'CheckoutsResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CheckoutsResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CheckoutsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_fiscal_info_address_response.g.dart b/lib/src/model/company_fiscal_info_address_response.g.dart deleted file mode 100644 index 4ec8170..0000000 --- a/lib/src/model/company_fiscal_info_address_response.g.dart +++ /dev/null @@ -1,254 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'company_fiscal_info_address_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const CompanyFiscalInfoAddressResponseObjectEnum - _$companyFiscalInfoAddressResponseObjectEnum_address = - const CompanyFiscalInfoAddressResponseObjectEnum._('address'); - -CompanyFiscalInfoAddressResponseObjectEnum - _$companyFiscalInfoAddressResponseObjectEnumValueOf(String name) { - switch (name) { - case 'address': - return _$companyFiscalInfoAddressResponseObjectEnum_address; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet - _$companyFiscalInfoAddressResponseObjectEnumValues = - new BuiltSet(const < - CompanyFiscalInfoAddressResponseObjectEnum>[ - _$companyFiscalInfoAddressResponseObjectEnum_address, -]); - -Serializer - _$companyFiscalInfoAddressResponseObjectEnumSerializer = - new _$CompanyFiscalInfoAddressResponseObjectEnumSerializer(); - -class _$CompanyFiscalInfoAddressResponseObjectEnumSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'address': 'address', - }; - static const Map _fromWire = const { - 'address': 'address', - }; - - @override - final Iterable types = const [ - CompanyFiscalInfoAddressResponseObjectEnum - ]; - @override - final String wireName = 'CompanyFiscalInfoAddressResponseObjectEnum'; - - @override - Object serialize(Serializers serializers, - CompanyFiscalInfoAddressResponseObjectEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - CompanyFiscalInfoAddressResponseObjectEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CompanyFiscalInfoAddressResponseObjectEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$CompanyFiscalInfoAddressResponse - extends CompanyFiscalInfoAddressResponse { - @override - final CompanyFiscalInfoAddressResponseObjectEnum? object; - @override - final String? street1; - @override - final String? street2; - @override - final String? city; - @override - final String? state; - @override - final String? country; - @override - final String? postalCode; - @override - final String? externalNumber; - @override - final String? internalNumber; - - factory _$CompanyFiscalInfoAddressResponse( - [void Function(CompanyFiscalInfoAddressResponseBuilder)? updates]) => - (new CompanyFiscalInfoAddressResponseBuilder()..update(updates))._build(); - - _$CompanyFiscalInfoAddressResponse._( - {this.object, - this.street1, - this.street2, - this.city, - this.state, - this.country, - this.postalCode, - this.externalNumber, - this.internalNumber}) - : super._(); - - @override - CompanyFiscalInfoAddressResponse rebuild( - void Function(CompanyFiscalInfoAddressResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CompanyFiscalInfoAddressResponseBuilder toBuilder() => - new CompanyFiscalInfoAddressResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CompanyFiscalInfoAddressResponse && - object == other.object && - street1 == other.street1 && - street2 == other.street2 && - city == other.city && - state == other.state && - country == other.country && - postalCode == other.postalCode && - externalNumber == other.externalNumber && - internalNumber == other.internalNumber; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, street1.hashCode); - _$hash = $jc(_$hash, street2.hashCode); - _$hash = $jc(_$hash, city.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, postalCode.hashCode); - _$hash = $jc(_$hash, externalNumber.hashCode); - _$hash = $jc(_$hash, internalNumber.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CompanyFiscalInfoAddressResponse') - ..add('object', object) - ..add('street1', street1) - ..add('street2', street2) - ..add('city', city) - ..add('state', state) - ..add('country', country) - ..add('postalCode', postalCode) - ..add('externalNumber', externalNumber) - ..add('internalNumber', internalNumber)) - .toString(); - } -} - -class CompanyFiscalInfoAddressResponseBuilder - implements - Builder { - _$CompanyFiscalInfoAddressResponse? _$v; - - CompanyFiscalInfoAddressResponseObjectEnum? _object; - CompanyFiscalInfoAddressResponseObjectEnum? get object => _$this._object; - set object(CompanyFiscalInfoAddressResponseObjectEnum? object) => - _$this._object = object; - - String? _street1; - String? get street1 => _$this._street1; - set street1(String? street1) => _$this._street1 = street1; - - String? _street2; - String? get street2 => _$this._street2; - set street2(String? street2) => _$this._street2 = street2; - - String? _city; - String? get city => _$this._city; - set city(String? city) => _$this._city = city; - - String? _state; - String? get state => _$this._state; - set state(String? state) => _$this._state = state; - - String? _country; - String? get country => _$this._country; - set country(String? country) => _$this._country = country; - - String? _postalCode; - String? get postalCode => _$this._postalCode; - set postalCode(String? postalCode) => _$this._postalCode = postalCode; - - String? _externalNumber; - String? get externalNumber => _$this._externalNumber; - set externalNumber(String? externalNumber) => - _$this._externalNumber = externalNumber; - - String? _internalNumber; - String? get internalNumber => _$this._internalNumber; - set internalNumber(String? internalNumber) => - _$this._internalNumber = internalNumber; - - CompanyFiscalInfoAddressResponseBuilder() { - CompanyFiscalInfoAddressResponse._defaults(this); - } - - CompanyFiscalInfoAddressResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _street1 = $v.street1; - _street2 = $v.street2; - _city = $v.city; - _state = $v.state; - _country = $v.country; - _postalCode = $v.postalCode; - _externalNumber = $v.externalNumber; - _internalNumber = $v.internalNumber; - _$v = null; - } - return this; - } - - @override - void replace(CompanyFiscalInfoAddressResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CompanyFiscalInfoAddressResponse; - } - - @override - void update(void Function(CompanyFiscalInfoAddressResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CompanyFiscalInfoAddressResponse build() => _build(); - - _$CompanyFiscalInfoAddressResponse _build() { - final _$result = _$v ?? - new _$CompanyFiscalInfoAddressResponse._( - object: object, - street1: street1, - street2: street2, - city: city, - state: state, - country: country, - postalCode: postalCode, - externalNumber: externalNumber, - internalNumber: internalNumber); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_fiscal_info_response.g.dart b/lib/src/model/company_fiscal_info_response.g.dart deleted file mode 100644 index 1859508..0000000 --- a/lib/src/model/company_fiscal_info_response.g.dart +++ /dev/null @@ -1,243 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'company_fiscal_info_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const CompanyFiscalInfoResponseObjectEnum - _$companyFiscalInfoResponseObjectEnum_fiscalInfo = - const CompanyFiscalInfoResponseObjectEnum._('fiscalInfo'); - -CompanyFiscalInfoResponseObjectEnum - _$companyFiscalInfoResponseObjectEnumValueOf(String name) { - switch (name) { - case 'fiscalInfo': - return _$companyFiscalInfoResponseObjectEnum_fiscalInfo; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet - _$companyFiscalInfoResponseObjectEnumValues = - new BuiltSet(const < - CompanyFiscalInfoResponseObjectEnum>[ - _$companyFiscalInfoResponseObjectEnum_fiscalInfo, -]); - -Serializer - _$companyFiscalInfoResponseObjectEnumSerializer = - new _$CompanyFiscalInfoResponseObjectEnumSerializer(); - -class _$CompanyFiscalInfoResponseObjectEnumSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'fiscalInfo': 'fiscal_info', - }; - static const Map _fromWire = const { - 'fiscal_info': 'fiscalInfo', - }; - - @override - final Iterable types = const [ - CompanyFiscalInfoResponseObjectEnum - ]; - @override - final String wireName = 'CompanyFiscalInfoResponseObjectEnum'; - - @override - Object serialize( - Serializers serializers, CompanyFiscalInfoResponseObjectEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - CompanyFiscalInfoResponseObjectEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CompanyFiscalInfoResponseObjectEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$CompanyFiscalInfoResponse extends CompanyFiscalInfoResponse { - @override - final CompanyFiscalInfoResponseObjectEnum? object; - @override - final String? taxId; - @override - final String? legalEntityName; - @override - final String? businessType; - @override - final String? phone; - @override - final String? physicalPersonBusinessType; - @override - final CompanyFiscalInfoAddressResponse? address; - - factory _$CompanyFiscalInfoResponse( - [void Function(CompanyFiscalInfoResponseBuilder)? updates]) => - (new CompanyFiscalInfoResponseBuilder()..update(updates))._build(); - - _$CompanyFiscalInfoResponse._( - {this.object, - this.taxId, - this.legalEntityName, - this.businessType, - this.phone, - this.physicalPersonBusinessType, - this.address}) - : super._(); - - @override - CompanyFiscalInfoResponse rebuild( - void Function(CompanyFiscalInfoResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CompanyFiscalInfoResponseBuilder toBuilder() => - new CompanyFiscalInfoResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CompanyFiscalInfoResponse && - object == other.object && - taxId == other.taxId && - legalEntityName == other.legalEntityName && - businessType == other.businessType && - phone == other.phone && - physicalPersonBusinessType == other.physicalPersonBusinessType && - address == other.address; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, legalEntityName.hashCode); - _$hash = $jc(_$hash, businessType.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, physicalPersonBusinessType.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CompanyFiscalInfoResponse') - ..add('object', object) - ..add('taxId', taxId) - ..add('legalEntityName', legalEntityName) - ..add('businessType', businessType) - ..add('phone', phone) - ..add('physicalPersonBusinessType', physicalPersonBusinessType) - ..add('address', address)) - .toString(); - } -} - -class CompanyFiscalInfoResponseBuilder - implements - Builder { - _$CompanyFiscalInfoResponse? _$v; - - CompanyFiscalInfoResponseObjectEnum? _object; - CompanyFiscalInfoResponseObjectEnum? get object => _$this._object; - set object(CompanyFiscalInfoResponseObjectEnum? object) => - _$this._object = object; - - String? _taxId; - String? get taxId => _$this._taxId; - set taxId(String? taxId) => _$this._taxId = taxId; - - String? _legalEntityName; - String? get legalEntityName => _$this._legalEntityName; - set legalEntityName(String? legalEntityName) => - _$this._legalEntityName = legalEntityName; - - String? _businessType; - String? get businessType => _$this._businessType; - set businessType(String? businessType) => _$this._businessType = businessType; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - String? _physicalPersonBusinessType; - String? get physicalPersonBusinessType => _$this._physicalPersonBusinessType; - set physicalPersonBusinessType(String? physicalPersonBusinessType) => - _$this._physicalPersonBusinessType = physicalPersonBusinessType; - - CompanyFiscalInfoAddressResponseBuilder? _address; - CompanyFiscalInfoAddressResponseBuilder get address => - _$this._address ??= new CompanyFiscalInfoAddressResponseBuilder(); - set address(CompanyFiscalInfoAddressResponseBuilder? address) => - _$this._address = address; - - CompanyFiscalInfoResponseBuilder() { - CompanyFiscalInfoResponse._defaults(this); - } - - CompanyFiscalInfoResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _taxId = $v.taxId; - _legalEntityName = $v.legalEntityName; - _businessType = $v.businessType; - _phone = $v.phone; - _physicalPersonBusinessType = $v.physicalPersonBusinessType; - _address = $v.address?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(CompanyFiscalInfoResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CompanyFiscalInfoResponse; - } - - @override - void update(void Function(CompanyFiscalInfoResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CompanyFiscalInfoResponse build() => _build(); - - _$CompanyFiscalInfoResponse _build() { - _$CompanyFiscalInfoResponse _$result; - try { - _$result = _$v ?? - new _$CompanyFiscalInfoResponse._( - object: object, - taxId: taxId, - legalEntityName: legalEntityName, - businessType: businessType, - phone: phone, - physicalPersonBusinessType: physicalPersonBusinessType, - address: _address?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - _address?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CompanyFiscalInfoResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_payout_destination_response.g.dart b/lib/src/model/company_payout_destination_response.g.dart deleted file mode 100644 index 82f233e..0000000 --- a/lib/src/model/company_payout_destination_response.g.dart +++ /dev/null @@ -1,273 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'company_payout_destination_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const CompanyPayoutDestinationResponseObjectEnum - _$companyPayoutDestinationResponseObjectEnum_payoutDestination = - const CompanyPayoutDestinationResponseObjectEnum._('payoutDestination'); - -CompanyPayoutDestinationResponseObjectEnum - _$companyPayoutDestinationResponseObjectEnumValueOf(String name) { - switch (name) { - case 'payoutDestination': - return _$companyPayoutDestinationResponseObjectEnum_payoutDestination; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet - _$companyPayoutDestinationResponseObjectEnumValues = - new BuiltSet(const < - CompanyPayoutDestinationResponseObjectEnum>[ - _$companyPayoutDestinationResponseObjectEnum_payoutDestination, -]); - -const CompanyPayoutDestinationResponseTypeEnum - _$companyPayoutDestinationResponseTypeEnum_bankAccount = - const CompanyPayoutDestinationResponseTypeEnum._('bankAccount'); - -CompanyPayoutDestinationResponseTypeEnum - _$companyPayoutDestinationResponseTypeEnumValueOf(String name) { - switch (name) { - case 'bankAccount': - return _$companyPayoutDestinationResponseTypeEnum_bankAccount; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet - _$companyPayoutDestinationResponseTypeEnumValues = - new BuiltSet(const < - CompanyPayoutDestinationResponseTypeEnum>[ - _$companyPayoutDestinationResponseTypeEnum_bankAccount, -]); - -Serializer - _$companyPayoutDestinationResponseObjectEnumSerializer = - new _$CompanyPayoutDestinationResponseObjectEnumSerializer(); -Serializer - _$companyPayoutDestinationResponseTypeEnumSerializer = - new _$CompanyPayoutDestinationResponseTypeEnumSerializer(); - -class _$CompanyPayoutDestinationResponseObjectEnumSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'payoutDestination': 'payout_destination', - }; - static const Map _fromWire = const { - 'payout_destination': 'payoutDestination', - }; - - @override - final Iterable types = const [ - CompanyPayoutDestinationResponseObjectEnum - ]; - @override - final String wireName = 'CompanyPayoutDestinationResponseObjectEnum'; - - @override - Object serialize(Serializers serializers, - CompanyPayoutDestinationResponseObjectEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - CompanyPayoutDestinationResponseObjectEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CompanyPayoutDestinationResponseObjectEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$CompanyPayoutDestinationResponseTypeEnumSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'bankAccount': 'bank_account', - }; - static const Map _fromWire = const { - 'bank_account': 'bankAccount', - }; - - @override - final Iterable types = const [ - CompanyPayoutDestinationResponseTypeEnum - ]; - @override - final String wireName = 'CompanyPayoutDestinationResponseTypeEnum'; - - @override - Object serialize(Serializers serializers, - CompanyPayoutDestinationResponseTypeEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - CompanyPayoutDestinationResponseTypeEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CompanyPayoutDestinationResponseTypeEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$CompanyPayoutDestinationResponse - extends CompanyPayoutDestinationResponse { - @override - final CompanyPayoutDestinationResponseObjectEnum? object; - @override - final String? currency; - @override - final String? accountHolderName; - @override - final String? bank; - @override - final CompanyPayoutDestinationResponseTypeEnum? type; - @override - final String? accountNumber; - - factory _$CompanyPayoutDestinationResponse( - [void Function(CompanyPayoutDestinationResponseBuilder)? updates]) => - (new CompanyPayoutDestinationResponseBuilder()..update(updates))._build(); - - _$CompanyPayoutDestinationResponse._( - {this.object, - this.currency, - this.accountHolderName, - this.bank, - this.type, - this.accountNumber}) - : super._(); - - @override - CompanyPayoutDestinationResponse rebuild( - void Function(CompanyPayoutDestinationResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CompanyPayoutDestinationResponseBuilder toBuilder() => - new CompanyPayoutDestinationResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CompanyPayoutDestinationResponse && - object == other.object && - currency == other.currency && - accountHolderName == other.accountHolderName && - bank == other.bank && - type == other.type && - accountNumber == other.accountNumber; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, accountHolderName.hashCode); - _$hash = $jc(_$hash, bank.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, accountNumber.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CompanyPayoutDestinationResponse') - ..add('object', object) - ..add('currency', currency) - ..add('accountHolderName', accountHolderName) - ..add('bank', bank) - ..add('type', type) - ..add('accountNumber', accountNumber)) - .toString(); - } -} - -class CompanyPayoutDestinationResponseBuilder - implements - Builder { - _$CompanyPayoutDestinationResponse? _$v; - - CompanyPayoutDestinationResponseObjectEnum? _object; - CompanyPayoutDestinationResponseObjectEnum? get object => _$this._object; - set object(CompanyPayoutDestinationResponseObjectEnum? object) => - _$this._object = object; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - String? _accountHolderName; - String? get accountHolderName => _$this._accountHolderName; - set accountHolderName(String? accountHolderName) => - _$this._accountHolderName = accountHolderName; - - String? _bank; - String? get bank => _$this._bank; - set bank(String? bank) => _$this._bank = bank; - - CompanyPayoutDestinationResponseTypeEnum? _type; - CompanyPayoutDestinationResponseTypeEnum? get type => _$this._type; - set type(CompanyPayoutDestinationResponseTypeEnum? type) => - _$this._type = type; - - String? _accountNumber; - String? get accountNumber => _$this._accountNumber; - set accountNumber(String? accountNumber) => - _$this._accountNumber = accountNumber; - - CompanyPayoutDestinationResponseBuilder() { - CompanyPayoutDestinationResponse._defaults(this); - } - - CompanyPayoutDestinationResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _currency = $v.currency; - _accountHolderName = $v.accountHolderName; - _bank = $v.bank; - _type = $v.type; - _accountNumber = $v.accountNumber; - _$v = null; - } - return this; - } - - @override - void replace(CompanyPayoutDestinationResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CompanyPayoutDestinationResponse; - } - - @override - void update(void Function(CompanyPayoutDestinationResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CompanyPayoutDestinationResponse build() => _build(); - - _$CompanyPayoutDestinationResponse _build() { - final _$result = _$v ?? - new _$CompanyPayoutDestinationResponse._( - object: object, - currency: currency, - accountHolderName: accountHolderName, - bank: bank, - type: type, - accountNumber: accountNumber); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_response.g.dart b/lib/src/model/company_response.g.dart deleted file mode 100644 index a1914d9..0000000 --- a/lib/src/model/company_response.g.dart +++ /dev/null @@ -1,249 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'company_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const CompanyResponseObjectEnum _$companyResponseObjectEnum_company = - const CompanyResponseObjectEnum._('company'); - -CompanyResponseObjectEnum _$companyResponseObjectEnumValueOf(String name) { - switch (name) { - case 'company': - return _$companyResponseObjectEnum_company; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$companyResponseObjectEnumValues = - new BuiltSet(const [ - _$companyResponseObjectEnum_company, -]); - -Serializer _$companyResponseObjectEnumSerializer = - new _$CompanyResponseObjectEnumSerializer(); - -class _$CompanyResponseObjectEnumSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'company': 'company', - }; - static const Map _fromWire = const { - 'company': 'company', - }; - - @override - final Iterable types = const [CompanyResponseObjectEnum]; - @override - final String wireName = 'CompanyResponseObjectEnum'; - - @override - Object serialize(Serializers serializers, CompanyResponseObjectEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - CompanyResponseObjectEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CompanyResponseObjectEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$CompanyResponse extends CompanyResponse { - @override - final String? id; - @override - final int? createdAt; - @override - final String? name; - @override - final CompanyResponseObjectEnum? object; - @override - final String? parentCompanyId; - @override - final bool? useParentFiscalData; - @override - final CompanyPayoutDestinationResponse? payoutDestination; - @override - final CompanyFiscalInfoResponse? fiscalInfo; - - factory _$CompanyResponse([void Function(CompanyResponseBuilder)? updates]) => - (new CompanyResponseBuilder()..update(updates))._build(); - - _$CompanyResponse._( - {this.id, - this.createdAt, - this.name, - this.object, - this.parentCompanyId, - this.useParentFiscalData, - this.payoutDestination, - this.fiscalInfo}) - : super._(); - - @override - CompanyResponse rebuild(void Function(CompanyResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CompanyResponseBuilder toBuilder() => - new CompanyResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CompanyResponse && - id == other.id && - createdAt == other.createdAt && - name == other.name && - object == other.object && - parentCompanyId == other.parentCompanyId && - useParentFiscalData == other.useParentFiscalData && - payoutDestination == other.payoutDestination && - fiscalInfo == other.fiscalInfo; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, parentCompanyId.hashCode); - _$hash = $jc(_$hash, useParentFiscalData.hashCode); - _$hash = $jc(_$hash, payoutDestination.hashCode); - _$hash = $jc(_$hash, fiscalInfo.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CompanyResponse') - ..add('id', id) - ..add('createdAt', createdAt) - ..add('name', name) - ..add('object', object) - ..add('parentCompanyId', parentCompanyId) - ..add('useParentFiscalData', useParentFiscalData) - ..add('payoutDestination', payoutDestination) - ..add('fiscalInfo', fiscalInfo)) - .toString(); - } -} - -class CompanyResponseBuilder - implements Builder { - _$CompanyResponse? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - CompanyResponseObjectEnum? _object; - CompanyResponseObjectEnum? get object => _$this._object; - set object(CompanyResponseObjectEnum? object) => _$this._object = object; - - String? _parentCompanyId; - String? get parentCompanyId => _$this._parentCompanyId; - set parentCompanyId(String? parentCompanyId) => - _$this._parentCompanyId = parentCompanyId; - - bool? _useParentFiscalData; - bool? get useParentFiscalData => _$this._useParentFiscalData; - set useParentFiscalData(bool? useParentFiscalData) => - _$this._useParentFiscalData = useParentFiscalData; - - CompanyPayoutDestinationResponseBuilder? _payoutDestination; - CompanyPayoutDestinationResponseBuilder get payoutDestination => - _$this._payoutDestination ??= - new CompanyPayoutDestinationResponseBuilder(); - set payoutDestination( - CompanyPayoutDestinationResponseBuilder? payoutDestination) => - _$this._payoutDestination = payoutDestination; - - CompanyFiscalInfoResponseBuilder? _fiscalInfo; - CompanyFiscalInfoResponseBuilder get fiscalInfo => - _$this._fiscalInfo ??= new CompanyFiscalInfoResponseBuilder(); - set fiscalInfo(CompanyFiscalInfoResponseBuilder? fiscalInfo) => - _$this._fiscalInfo = fiscalInfo; - - CompanyResponseBuilder() { - CompanyResponse._defaults(this); - } - - CompanyResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _createdAt = $v.createdAt; - _name = $v.name; - _object = $v.object; - _parentCompanyId = $v.parentCompanyId; - _useParentFiscalData = $v.useParentFiscalData; - _payoutDestination = $v.payoutDestination?.toBuilder(); - _fiscalInfo = $v.fiscalInfo?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(CompanyResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CompanyResponse; - } - - @override - void update(void Function(CompanyResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CompanyResponse build() => _build(); - - _$CompanyResponse _build() { - _$CompanyResponse _$result; - try { - _$result = _$v ?? - new _$CompanyResponse._( - id: id, - createdAt: createdAt, - name: name, - object: object, - parentCompanyId: parentCompanyId, - useParentFiscalData: useParentFiscalData, - payoutDestination: _payoutDestination?.build(), - fiscalInfo: _fiscalInfo?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'payoutDestination'; - _payoutDestination?.build(); - _$failedField = 'fiscalInfo'; - _fiscalInfo?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CompanyResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_customer_fiscal_entities_response.g.dart b/lib/src/model/create_customer_fiscal_entities_response.g.dart deleted file mode 100644 index b6b859e..0000000 --- a/lib/src/model/create_customer_fiscal_entities_response.g.dart +++ /dev/null @@ -1,259 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'create_customer_fiscal_entities_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CreateCustomerFiscalEntitiesResponse - extends CreateCustomerFiscalEntitiesResponse { - @override - final int createdAt; - @override - final bool? default_; - @override - final String id; - @override - final String? parentId; - @override - final String object; - @override - final CustomerAddress address; - @override - final String? taxId; - @override - final String? email; - @override - final String? phone; - @override - final BuiltMap? metadata; - @override - final String? companyName; - - factory _$CreateCustomerFiscalEntitiesResponse( - [void Function(CreateCustomerFiscalEntitiesResponseBuilder)? - updates]) => - (new CreateCustomerFiscalEntitiesResponseBuilder()..update(updates)) - ._build(); - - _$CreateCustomerFiscalEntitiesResponse._( - {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}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - createdAt, r'CreateCustomerFiscalEntitiesResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - id, r'CreateCustomerFiscalEntitiesResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'CreateCustomerFiscalEntitiesResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - address, r'CreateCustomerFiscalEntitiesResponse', 'address'); - } - - @override - CreateCustomerFiscalEntitiesResponse rebuild( - void Function(CreateCustomerFiscalEntitiesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CreateCustomerFiscalEntitiesResponseBuilder toBuilder() => - new CreateCustomerFiscalEntitiesResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CreateCustomerFiscalEntitiesResponse && - 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; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, companyName.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CreateCustomerFiscalEntitiesResponse') - ..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)) - .toString(); - } -} - -class CreateCustomerFiscalEntitiesResponseBuilder - implements - Builder, - CustomerFiscalEntitiesRequestBuilder { - _$CreateCustomerFiscalEntitiesResponse? _$v; - - 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; - String? get taxId => _$this._taxId; - set taxId(covariant String? taxId) => _$this._taxId = taxId; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _companyName; - String? get companyName => _$this._companyName; - set companyName(covariant String? companyName) => - _$this._companyName = companyName; - - CreateCustomerFiscalEntitiesResponseBuilder() { - CreateCustomerFiscalEntitiesResponse._defaults(this); - } - - CreateCustomerFiscalEntitiesResponseBuilder 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; - _$v = null; - } - return this; - } - - @override - void replace(covariant CreateCustomerFiscalEntitiesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CreateCustomerFiscalEntitiesResponse; - } - - @override - void update( - void Function(CreateCustomerFiscalEntitiesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CreateCustomerFiscalEntitiesResponse build() => _build(); - - _$CreateCustomerFiscalEntitiesResponse _build() { - _$CreateCustomerFiscalEntitiesResponse _$result; - 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'), - address: address.build(), - taxId: taxId, - email: email, - phone: phone, - metadata: _metadata?.build(), - companyName: companyName); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CreateCustomerFiscalEntitiesResponse', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_customer_payment_methods_request.g.dart b/lib/src/model/create_customer_payment_methods_request.g.dart deleted file mode 100644 index cb725a3..0000000 --- a/lib/src/model/create_customer_payment_methods_request.g.dart +++ /dev/null @@ -1,104 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'create_customer_payment_methods_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CreateCustomerPaymentMethodsRequest - extends CreateCustomerPaymentMethodsRequest { - @override - final OneOf oneOf; - - factory _$CreateCustomerPaymentMethodsRequest( - [void Function(CreateCustomerPaymentMethodsRequestBuilder)? - updates]) => - (new CreateCustomerPaymentMethodsRequestBuilder()..update(updates)) - ._build(); - - _$CreateCustomerPaymentMethodsRequest._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'CreateCustomerPaymentMethodsRequest', 'oneOf'); - } - - @override - CreateCustomerPaymentMethodsRequest rebuild( - void Function(CreateCustomerPaymentMethodsRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CreateCustomerPaymentMethodsRequestBuilder toBuilder() => - new CreateCustomerPaymentMethodsRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CreateCustomerPaymentMethodsRequest && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CreateCustomerPaymentMethodsRequest') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class CreateCustomerPaymentMethodsRequestBuilder - implements - Builder { - _$CreateCustomerPaymentMethodsRequest? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - CreateCustomerPaymentMethodsRequestBuilder() { - CreateCustomerPaymentMethodsRequest._defaults(this); - } - - CreateCustomerPaymentMethodsRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(CreateCustomerPaymentMethodsRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CreateCustomerPaymentMethodsRequest; - } - - @override - void update( - void Function(CreateCustomerPaymentMethodsRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CreateCustomerPaymentMethodsRequest build() => _build(); - - _$CreateCustomerPaymentMethodsRequest _build() { - final _$result = _$v ?? - new _$CreateCustomerPaymentMethodsRequest._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'CreateCustomerPaymentMethodsRequest', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_customer_payment_methods_response.g.dart b/lib/src/model/create_customer_payment_methods_response.g.dart deleted file mode 100644 index e6c84f6..0000000 --- a/lib/src/model/create_customer_payment_methods_response.g.dart +++ /dev/null @@ -1,105 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'create_customer_payment_methods_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CreateCustomerPaymentMethodsResponse - extends CreateCustomerPaymentMethodsResponse { - @override - final OneOf oneOf; - - factory _$CreateCustomerPaymentMethodsResponse( - [void Function(CreateCustomerPaymentMethodsResponseBuilder)? - updates]) => - (new CreateCustomerPaymentMethodsResponseBuilder()..update(updates)) - ._build(); - - _$CreateCustomerPaymentMethodsResponse._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'CreateCustomerPaymentMethodsResponse', 'oneOf'); - } - - @override - CreateCustomerPaymentMethodsResponse rebuild( - void Function(CreateCustomerPaymentMethodsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CreateCustomerPaymentMethodsResponseBuilder toBuilder() => - new CreateCustomerPaymentMethodsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CreateCustomerPaymentMethodsResponse && - oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CreateCustomerPaymentMethodsResponse') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class CreateCustomerPaymentMethodsResponseBuilder - implements - Builder { - _$CreateCustomerPaymentMethodsResponse? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - CreateCustomerPaymentMethodsResponseBuilder() { - CreateCustomerPaymentMethodsResponse._defaults(this); - } - - CreateCustomerPaymentMethodsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(CreateCustomerPaymentMethodsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CreateCustomerPaymentMethodsResponse; - } - - @override - void update( - void Function(CreateCustomerPaymentMethodsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CreateCustomerPaymentMethodsResponse build() => _build(); - - _$CreateCustomerPaymentMethodsResponse _build() { - final _$result = _$v ?? - new _$CreateCustomerPaymentMethodsResponse._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'CreateCustomerPaymentMethodsResponse', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_risk_rules_data.g.dart b/lib/src/model/create_risk_rules_data.g.dart deleted file mode 100644 index 964acef..0000000 --- a/lib/src/model/create_risk_rules_data.g.dart +++ /dev/null @@ -1,129 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'create_risk_rules_data.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CreateRiskRulesData extends CreateRiskRulesData { - @override - final String description; - @override - final String field; - @override - final String value; - - factory _$CreateRiskRulesData( - [void Function(CreateRiskRulesDataBuilder)? updates]) => - (new CreateRiskRulesDataBuilder()..update(updates))._build(); - - _$CreateRiskRulesData._( - {required this.description, required this.field, required this.value}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - description, r'CreateRiskRulesData', 'description'); - BuiltValueNullFieldError.checkNotNull( - field, r'CreateRiskRulesData', 'field'); - BuiltValueNullFieldError.checkNotNull( - value, r'CreateRiskRulesData', 'value'); - } - - @override - CreateRiskRulesData rebuild( - void Function(CreateRiskRulesDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CreateRiskRulesDataBuilder toBuilder() => - new CreateRiskRulesDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CreateRiskRulesData && - description == other.description && - field == other.field && - value == other.value; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, field.hashCode); - _$hash = $jc(_$hash, value.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CreateRiskRulesData') - ..add('description', description) - ..add('field', field) - ..add('value', value)) - .toString(); - } -} - -class CreateRiskRulesDataBuilder - implements Builder { - _$CreateRiskRulesData? _$v; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - String? _field; - String? get field => _$this._field; - set field(String? field) => _$this._field = field; - - String? _value; - String? get value => _$this._value; - set value(String? value) => _$this._value = value; - - CreateRiskRulesDataBuilder() { - CreateRiskRulesData._defaults(this); - } - - CreateRiskRulesDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _description = $v.description; - _field = $v.field; - _value = $v.value; - _$v = null; - } - return this; - } - - @override - void replace(CreateRiskRulesData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CreateRiskRulesData; - } - - @override - void update(void Function(CreateRiskRulesDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CreateRiskRulesData build() => _build(); - - _$CreateRiskRulesData _build() { - final _$result = _$v ?? - new _$CreateRiskRulesData._( - description: BuiltValueNullFieldError.checkNotNull( - description, r'CreateRiskRulesData', 'description'), - field: BuiltValueNullFieldError.checkNotNull( - field, r'CreateRiskRulesData', 'field'), - value: BuiltValueNullFieldError.checkNotNull( - value, r'CreateRiskRulesData', 'value')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer.g.dart b/lib/src/model/customer.g.dart deleted file mode 100644 index 8fe9a36..0000000 --- a/lib/src/model/customer.g.dart +++ /dev/null @@ -1,326 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$Customer extends Customer { - @override - final CustomerAntifraudInfo? antifraudInfo; - @override - final bool? corporate; - @override - final String? customReference; - @override - final String? dateOfBirth; - @override - final String email; - @override - final String? defaultPaymentSourceId; - @override - final String? defaultShippingContactId; - @override - final BuiltList? fiscalEntities; - @override - final BuiltMap? metadata; - @override - final String name; - @override - final String? nationalId; - @override - final BuiltList? paymentSources; - @override - final String phone; - @override - final String? planId; - @override - final BuiltList? shippingContacts; - @override - final SubscriptionRequest? subscription; - - factory _$Customer([void Function(CustomerBuilder)? updates]) => - (new CustomerBuilder()..update(updates))._build(); - - _$Customer._( - {this.antifraudInfo, - this.corporate, - this.customReference, - this.dateOfBirth, - required this.email, - this.defaultPaymentSourceId, - this.defaultShippingContactId, - this.fiscalEntities, - this.metadata, - required this.name, - this.nationalId, - this.paymentSources, - required this.phone, - this.planId, - this.shippingContacts, - this.subscription}) - : super._() { - BuiltValueNullFieldError.checkNotNull(email, r'Customer', 'email'); - BuiltValueNullFieldError.checkNotNull(name, r'Customer', 'name'); - BuiltValueNullFieldError.checkNotNull(phone, r'Customer', 'phone'); - } - - @override - Customer rebuild(void Function(CustomerBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerBuilder toBuilder() => new CustomerBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Customer && - antifraudInfo == other.antifraudInfo && - corporate == other.corporate && - customReference == other.customReference && - dateOfBirth == other.dateOfBirth && - email == other.email && - defaultPaymentSourceId == other.defaultPaymentSourceId && - defaultShippingContactId == other.defaultShippingContactId && - fiscalEntities == other.fiscalEntities && - metadata == other.metadata && - name == other.name && - nationalId == other.nationalId && - paymentSources == other.paymentSources && - phone == other.phone && - planId == other.planId && - shippingContacts == other.shippingContacts && - subscription == other.subscription; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, customReference.hashCode); - _$hash = $jc(_$hash, dateOfBirth.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, defaultPaymentSourceId.hashCode); - _$hash = $jc(_$hash, defaultShippingContactId.hashCode); - _$hash = $jc(_$hash, fiscalEntities.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, nationalId.hashCode); - _$hash = $jc(_$hash, paymentSources.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, planId.hashCode); - _$hash = $jc(_$hash, shippingContacts.hashCode); - _$hash = $jc(_$hash, subscription.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Customer') - ..add('antifraudInfo', antifraudInfo) - ..add('corporate', corporate) - ..add('customReference', customReference) - ..add('dateOfBirth', dateOfBirth) - ..add('email', email) - ..add('defaultPaymentSourceId', defaultPaymentSourceId) - ..add('defaultShippingContactId', defaultShippingContactId) - ..add('fiscalEntities', fiscalEntities) - ..add('metadata', metadata) - ..add('name', name) - ..add('nationalId', nationalId) - ..add('paymentSources', paymentSources) - ..add('phone', phone) - ..add('planId', planId) - ..add('shippingContacts', shippingContacts) - ..add('subscription', subscription)) - .toString(); - } -} - -class CustomerBuilder implements Builder { - _$Customer? _$v; - - CustomerAntifraudInfoBuilder? _antifraudInfo; - CustomerAntifraudInfoBuilder get antifraudInfo => - _$this._antifraudInfo ??= new CustomerAntifraudInfoBuilder(); - set antifraudInfo(CustomerAntifraudInfoBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(bool? corporate) => _$this._corporate = corporate; - - String? _customReference; - String? get customReference => _$this._customReference; - set customReference(String? customReference) => - _$this._customReference = customReference; - - String? _dateOfBirth; - String? get dateOfBirth => _$this._dateOfBirth; - set dateOfBirth(String? dateOfBirth) => _$this._dateOfBirth = dateOfBirth; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - String? _defaultPaymentSourceId; - String? get defaultPaymentSourceId => _$this._defaultPaymentSourceId; - set defaultPaymentSourceId(String? defaultPaymentSourceId) => - _$this._defaultPaymentSourceId = defaultPaymentSourceId; - - String? _defaultShippingContactId; - String? get defaultShippingContactId => _$this._defaultShippingContactId; - set defaultShippingContactId(String? defaultShippingContactId) => - _$this._defaultShippingContactId = defaultShippingContactId; - - ListBuilder? _fiscalEntities; - ListBuilder get fiscalEntities => - _$this._fiscalEntities ??= - new ListBuilder(); - set fiscalEntities( - ListBuilder? fiscalEntities) => - _$this._fiscalEntities = fiscalEntities; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _nationalId; - String? get nationalId => _$this._nationalId; - set nationalId(String? nationalId) => _$this._nationalId = nationalId; - - ListBuilder? _paymentSources; - ListBuilder get paymentSources => - _$this._paymentSources ??= - new ListBuilder(); - set paymentSources( - ListBuilder? paymentSources) => - _$this._paymentSources = paymentSources; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - String? _planId; - String? get planId => _$this._planId; - set planId(String? planId) => _$this._planId = planId; - - ListBuilder? _shippingContacts; - ListBuilder get shippingContacts => - _$this._shippingContacts ??= new ListBuilder(); - set shippingContacts( - ListBuilder? shippingContacts) => - _$this._shippingContacts = shippingContacts; - - SubscriptionRequestBuilder? _subscription; - SubscriptionRequestBuilder get subscription => - _$this._subscription ??= new SubscriptionRequestBuilder(); - set subscription(SubscriptionRequestBuilder? subscription) => - _$this._subscription = subscription; - - CustomerBuilder() { - Customer._defaults(this); - } - - CustomerBuilder get _$this { - final $v = _$v; - if ($v != null) { - _antifraudInfo = $v.antifraudInfo?.toBuilder(); - _corporate = $v.corporate; - _customReference = $v.customReference; - _dateOfBirth = $v.dateOfBirth; - _email = $v.email; - _defaultPaymentSourceId = $v.defaultPaymentSourceId; - _defaultShippingContactId = $v.defaultShippingContactId; - _fiscalEntities = $v.fiscalEntities?.toBuilder(); - _metadata = $v.metadata?.toBuilder(); - _name = $v.name; - _nationalId = $v.nationalId; - _paymentSources = $v.paymentSources?.toBuilder(); - _phone = $v.phone; - _planId = $v.planId; - _shippingContacts = $v.shippingContacts?.toBuilder(); - _subscription = $v.subscription?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(Customer other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Customer; - } - - @override - void update(void Function(CustomerBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Customer build() => _build(); - - _$Customer _build() { - _$Customer _$result; - try { - _$result = _$v ?? - new _$Customer._( - antifraudInfo: _antifraudInfo?.build(), - corporate: corporate, - customReference: customReference, - dateOfBirth: dateOfBirth, - email: BuiltValueNullFieldError.checkNotNull( - email, r'Customer', 'email'), - defaultPaymentSourceId: defaultPaymentSourceId, - defaultShippingContactId: defaultShippingContactId, - fiscalEntities: _fiscalEntities?.build(), - metadata: _metadata?.build(), - name: BuiltValueNullFieldError.checkNotNull( - name, r'Customer', 'name'), - nationalId: nationalId, - paymentSources: _paymentSources?.build(), - phone: BuiltValueNullFieldError.checkNotNull( - phone, r'Customer', 'phone'), - planId: planId, - shippingContacts: _shippingContacts?.build(), - subscription: _subscription?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'fiscalEntities'; - _fiscalEntities?.build(); - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'paymentSources'; - _paymentSources?.build(); - - _$failedField = 'shippingContacts'; - _shippingContacts?.build(); - _$failedField = 'subscription'; - _subscription?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'Customer', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_address.g.dart b/lib/src/model/customer_address.g.dart deleted file mode 100644 index 1223c18..0000000 --- a/lib/src/model/customer_address.g.dart +++ /dev/null @@ -1,189 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_address.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerAddress extends CustomerAddress { - @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 _$CustomerAddress([void Function(CustomerAddressBuilder)? updates]) => - (new CustomerAddressBuilder()..update(updates))._build(); - - _$CustomerAddress._( - {required this.street1, - this.street2, - required this.postalCode, - required this.city, - this.state, - this.country, - this.residential, - this.externalNumber}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - street1, r'CustomerAddress', 'street1'); - BuiltValueNullFieldError.checkNotNull( - postalCode, r'CustomerAddress', 'postalCode'); - BuiltValueNullFieldError.checkNotNull(city, r'CustomerAddress', 'city'); - } - - @override - CustomerAddress rebuild(void Function(CustomerAddressBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerAddressBuilder toBuilder() => - new CustomerAddressBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerAddress && - 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 { - var _$hash = 0; - _$hash = $jc(_$hash, street1.hashCode); - _$hash = $jc(_$hash, street2.hashCode); - _$hash = $jc(_$hash, postalCode.hashCode); - _$hash = $jc(_$hash, city.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, residential.hashCode); - _$hash = $jc(_$hash, externalNumber.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerAddress') - ..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 CustomerAddressBuilder - implements Builder { - _$CustomerAddress? _$v; - - String? _street1; - String? get street1 => _$this._street1; - set street1(String? street1) => _$this._street1 = street1; - - String? _street2; - String? get street2 => _$this._street2; - set street2(String? street2) => _$this._street2 = street2; - - String? _postalCode; - String? get postalCode => _$this._postalCode; - set postalCode(String? postalCode) => _$this._postalCode = postalCode; - - String? _city; - String? get city => _$this._city; - set city(String? city) => _$this._city = city; - - String? _state; - String? get state => _$this._state; - set state(String? state) => _$this._state = state; - - String? _country; - String? get country => _$this._country; - set country(String? country) => _$this._country = country; - - bool? _residential; - bool? get residential => _$this._residential; - set residential(bool? residential) => _$this._residential = residential; - - String? _externalNumber; - String? get externalNumber => _$this._externalNumber; - set externalNumber(String? externalNumber) => - _$this._externalNumber = externalNumber; - - CustomerAddressBuilder() { - CustomerAddress._defaults(this); - } - - CustomerAddressBuilder 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(CustomerAddress other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerAddress; - } - - @override - void update(void Function(CustomerAddressBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerAddress build() => _build(); - - _$CustomerAddress _build() { - final _$result = _$v ?? - new _$CustomerAddress._( - street1: BuiltValueNullFieldError.checkNotNull( - street1, r'CustomerAddress', 'street1'), - street2: street2, - postalCode: BuiltValueNullFieldError.checkNotNull( - postalCode, r'CustomerAddress', 'postalCode'), - city: BuiltValueNullFieldError.checkNotNull( - city, r'CustomerAddress', 'city'), - state: state, - country: country, - residential: residential, - externalNumber: externalNumber); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_antifraud_info.g.dart b/lib/src/model/customer_antifraud_info.g.dart deleted file mode 100644 index 602271c..0000000 --- a/lib/src/model/customer_antifraud_info.g.dart +++ /dev/null @@ -1,107 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_antifraud_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerAntifraudInfo extends CustomerAntifraudInfo { - @override - final int? accountCreatedAt; - @override - final int? firstPaidAt; - - factory _$CustomerAntifraudInfo( - [void Function(CustomerAntifraudInfoBuilder)? updates]) => - (new CustomerAntifraudInfoBuilder()..update(updates))._build(); - - _$CustomerAntifraudInfo._({this.accountCreatedAt, this.firstPaidAt}) - : super._(); - - @override - CustomerAntifraudInfo rebuild( - void Function(CustomerAntifraudInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerAntifraudInfoBuilder toBuilder() => - new CustomerAntifraudInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerAntifraudInfo && - accountCreatedAt == other.accountCreatedAt && - firstPaidAt == other.firstPaidAt; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, accountCreatedAt.hashCode); - _$hash = $jc(_$hash, firstPaidAt.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerAntifraudInfo') - ..add('accountCreatedAt', accountCreatedAt) - ..add('firstPaidAt', firstPaidAt)) - .toString(); - } -} - -class CustomerAntifraudInfoBuilder - implements Builder { - _$CustomerAntifraudInfo? _$v; - - int? _accountCreatedAt; - int? get accountCreatedAt => _$this._accountCreatedAt; - set accountCreatedAt(int? accountCreatedAt) => - _$this._accountCreatedAt = accountCreatedAt; - - int? _firstPaidAt; - int? get firstPaidAt => _$this._firstPaidAt; - set firstPaidAt(int? firstPaidAt) => _$this._firstPaidAt = firstPaidAt; - - CustomerAntifraudInfoBuilder() { - CustomerAntifraudInfo._defaults(this); - } - - CustomerAntifraudInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _accountCreatedAt = $v.accountCreatedAt; - _firstPaidAt = $v.firstPaidAt; - _$v = null; - } - return this; - } - - @override - void replace(CustomerAntifraudInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerAntifraudInfo; - } - - @override - void update(void Function(CustomerAntifraudInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerAntifraudInfo build() => _build(); - - _$CustomerAntifraudInfo _build() { - final _$result = _$v ?? - new _$CustomerAntifraudInfo._( - accountCreatedAt: accountCreatedAt, firstPaidAt: firstPaidAt); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_antifraud_info_response.g.dart b/lib/src/model/customer_antifraud_info_response.g.dart deleted file mode 100644 index 0ced70c..0000000 --- a/lib/src/model/customer_antifraud_info_response.g.dart +++ /dev/null @@ -1,109 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_antifraud_info_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerAntifraudInfoResponse extends CustomerAntifraudInfoResponse { - @override - final int? firstPaidAt; - @override - final int? accountCreatedAt; - - factory _$CustomerAntifraudInfoResponse( - [void Function(CustomerAntifraudInfoResponseBuilder)? updates]) => - (new CustomerAntifraudInfoResponseBuilder()..update(updates))._build(); - - _$CustomerAntifraudInfoResponse._({this.firstPaidAt, this.accountCreatedAt}) - : super._(); - - @override - CustomerAntifraudInfoResponse rebuild( - void Function(CustomerAntifraudInfoResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerAntifraudInfoResponseBuilder toBuilder() => - new CustomerAntifraudInfoResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerAntifraudInfoResponse && - firstPaidAt == other.firstPaidAt && - accountCreatedAt == other.accountCreatedAt; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, firstPaidAt.hashCode); - _$hash = $jc(_$hash, accountCreatedAt.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerAntifraudInfoResponse') - ..add('firstPaidAt', firstPaidAt) - ..add('accountCreatedAt', accountCreatedAt)) - .toString(); - } -} - -class CustomerAntifraudInfoResponseBuilder - implements - Builder { - _$CustomerAntifraudInfoResponse? _$v; - - int? _firstPaidAt; - int? get firstPaidAt => _$this._firstPaidAt; - set firstPaidAt(int? firstPaidAt) => _$this._firstPaidAt = firstPaidAt; - - int? _accountCreatedAt; - int? get accountCreatedAt => _$this._accountCreatedAt; - set accountCreatedAt(int? accountCreatedAt) => - _$this._accountCreatedAt = accountCreatedAt; - - CustomerAntifraudInfoResponseBuilder() { - CustomerAntifraudInfoResponse._defaults(this); - } - - CustomerAntifraudInfoResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _firstPaidAt = $v.firstPaidAt; - _accountCreatedAt = $v.accountCreatedAt; - _$v = null; - } - return this; - } - - @override - void replace(CustomerAntifraudInfoResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerAntifraudInfoResponse; - } - - @override - void update(void Function(CustomerAntifraudInfoResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerAntifraudInfoResponse build() => _build(); - - _$CustomerAntifraudInfoResponse _build() { - final _$result = _$v ?? - new _$CustomerAntifraudInfoResponse._( - firstPaidAt: firstPaidAt, accountCreatedAt: accountCreatedAt); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_fiscal_entities_data_response.g.dart b/lib/src/model/customer_fiscal_entities_data_response.g.dart deleted file mode 100644 index e2cfc07..0000000 --- a/lib/src/model/customer_fiscal_entities_data_response.g.dart +++ /dev/null @@ -1,257 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_fiscal_entities_data_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerFiscalEntitiesDataResponse - extends CustomerFiscalEntitiesDataResponse { - @override - final int createdAt; - @override - final bool? default_; - @override - final String id; - @override - final String? parentId; - @override - final String object; - @override - final CustomerAddress address; - @override - final String? taxId; - @override - final String? email; - @override - final String? phone; - @override - final BuiltMap? metadata; - @override - final String? companyName; - - factory _$CustomerFiscalEntitiesDataResponse( - [void Function(CustomerFiscalEntitiesDataResponseBuilder)? - updates]) => - (new CustomerFiscalEntitiesDataResponseBuilder()..update(updates)) - ._build(); - - _$CustomerFiscalEntitiesDataResponse._( - {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}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - createdAt, r'CustomerFiscalEntitiesDataResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - id, r'CustomerFiscalEntitiesDataResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomerFiscalEntitiesDataResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - address, r'CustomerFiscalEntitiesDataResponse', 'address'); - } - - @override - CustomerFiscalEntitiesDataResponse rebuild( - void Function(CustomerFiscalEntitiesDataResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerFiscalEntitiesDataResponseBuilder toBuilder() => - new CustomerFiscalEntitiesDataResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerFiscalEntitiesDataResponse && - 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; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, companyName.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerFiscalEntitiesDataResponse') - ..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)) - .toString(); - } -} - -class CustomerFiscalEntitiesDataResponseBuilder - implements - Builder, - CustomerFiscalEntitiesRequestBuilder { - _$CustomerFiscalEntitiesDataResponse? _$v; - - 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; - String? get taxId => _$this._taxId; - set taxId(covariant String? taxId) => _$this._taxId = taxId; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _companyName; - String? get companyName => _$this._companyName; - set companyName(covariant String? companyName) => - _$this._companyName = companyName; - - CustomerFiscalEntitiesDataResponseBuilder() { - CustomerFiscalEntitiesDataResponse._defaults(this); - } - - CustomerFiscalEntitiesDataResponseBuilder 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; - _$v = null; - } - return this; - } - - @override - void replace(covariant CustomerFiscalEntitiesDataResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerFiscalEntitiesDataResponse; - } - - @override - void update( - void Function(CustomerFiscalEntitiesDataResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerFiscalEntitiesDataResponse build() => _build(); - - _$CustomerFiscalEntitiesDataResponse _build() { - _$CustomerFiscalEntitiesDataResponse _$result; - 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'), - address: address.build(), - taxId: taxId, - email: email, - phone: phone, - metadata: _metadata?.build(), - companyName: companyName); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerFiscalEntitiesDataResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_fiscal_entities_request.g.dart b/lib/src/model/customer_fiscal_entities_request.g.dart deleted file mode 100644 index c3e6c3b..0000000 --- a/lib/src/model/customer_fiscal_entities_request.g.dart +++ /dev/null @@ -1,206 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_fiscal_entities_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerFiscalEntitiesRequestBuilder { - void replace(CustomerFiscalEntitiesRequest other); - void update(void Function(CustomerFiscalEntitiesRequestBuilder) updates); - CustomerAddressBuilder get address; - set address(CustomerAddressBuilder? address); - - String? get taxId; - set taxId(String? taxId); - - String? get email; - set email(String? email); - - String? get phone; - set phone(String? phone); - - MapBuilder get metadata; - set metadata(MapBuilder? metadata); - - String? get companyName; - set companyName(String? companyName); -} - -class _$$CustomerFiscalEntitiesRequest extends $CustomerFiscalEntitiesRequest { - @override - final CustomerAddress address; - @override - final String? taxId; - @override - final String? email; - @override - final String? phone; - @override - final BuiltMap? metadata; - @override - final String? companyName; - - factory _$$CustomerFiscalEntitiesRequest( - [void Function($CustomerFiscalEntitiesRequestBuilder)? updates]) => - (new $CustomerFiscalEntitiesRequestBuilder()..update(updates))._build(); - - _$$CustomerFiscalEntitiesRequest._( - {required this.address, - this.taxId, - this.email, - this.phone, - this.metadata, - this.companyName}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - address, r'$CustomerFiscalEntitiesRequest', 'address'); - } - - @override - $CustomerFiscalEntitiesRequest rebuild( - void Function($CustomerFiscalEntitiesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerFiscalEntitiesRequestBuilder toBuilder() => - new $CustomerFiscalEntitiesRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerFiscalEntitiesRequest && - address == other.address && - taxId == other.taxId && - email == other.email && - phone == other.phone && - metadata == other.metadata && - companyName == other.companyName; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, companyName.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerFiscalEntitiesRequest') - ..add('address', address) - ..add('taxId', taxId) - ..add('email', email) - ..add('phone', phone) - ..add('metadata', metadata) - ..add('companyName', companyName)) - .toString(); - } -} - -class $CustomerFiscalEntitiesRequestBuilder - implements - Builder<$CustomerFiscalEntitiesRequest, - $CustomerFiscalEntitiesRequestBuilder>, - CustomerFiscalEntitiesRequestBuilder { - _$$CustomerFiscalEntitiesRequest? _$v; - - CustomerAddressBuilder? _address; - CustomerAddressBuilder get address => - _$this._address ??= new CustomerAddressBuilder(); - set address(covariant CustomerAddressBuilder? address) => - _$this._address = address; - - String? _taxId; - String? get taxId => _$this._taxId; - set taxId(covariant String? taxId) => _$this._taxId = taxId; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _companyName; - String? get companyName => _$this._companyName; - set companyName(covariant String? companyName) => - _$this._companyName = companyName; - - $CustomerFiscalEntitiesRequestBuilder() { - $CustomerFiscalEntitiesRequest._defaults(this); - } - - $CustomerFiscalEntitiesRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _address = $v.address.toBuilder(); - _taxId = $v.taxId; - _email = $v.email; - _phone = $v.phone; - _metadata = $v.metadata?.toBuilder(); - _companyName = $v.companyName; - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerFiscalEntitiesRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerFiscalEntitiesRequest; - } - - @override - void update(void Function($CustomerFiscalEntitiesRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerFiscalEntitiesRequest build() => _build(); - - _$$CustomerFiscalEntitiesRequest _build() { - _$$CustomerFiscalEntitiesRequest _$result; - try { - _$result = _$v ?? - new _$$CustomerFiscalEntitiesRequest._( - address: address.build(), - taxId: taxId, - email: email, - phone: phone, - metadata: _metadata?.build(), - companyName: companyName); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomerFiscalEntitiesRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_fiscal_entities_response.g.dart b/lib/src/model/customer_fiscal_entities_response.g.dart deleted file mode 100644 index 610ee5f..0000000 --- a/lib/src/model/customer_fiscal_entities_response.g.dart +++ /dev/null @@ -1,144 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_fiscal_entities_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerFiscalEntitiesResponse extends CustomerFiscalEntitiesResponse { - @override - final BuiltList? data; - @override - final bool hasMore; - @override - final String object; - - factory _$CustomerFiscalEntitiesResponse( - [void Function(CustomerFiscalEntitiesResponseBuilder)? updates]) => - (new CustomerFiscalEntitiesResponseBuilder()..update(updates))._build(); - - _$CustomerFiscalEntitiesResponse._( - {this.data, required this.hasMore, required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomerFiscalEntitiesResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomerFiscalEntitiesResponse', 'object'); - } - - @override - CustomerFiscalEntitiesResponse rebuild( - void Function(CustomerFiscalEntitiesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerFiscalEntitiesResponseBuilder toBuilder() => - new CustomerFiscalEntitiesResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerFiscalEntitiesResponse && - data == other.data && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerFiscalEntitiesResponse') - ..add('data', data) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class CustomerFiscalEntitiesResponseBuilder - implements - Builder, - PaginationBuilder { - _$CustomerFiscalEntitiesResponse? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - CustomerFiscalEntitiesResponseBuilder() { - CustomerFiscalEntitiesResponse._defaults(this); - } - - CustomerFiscalEntitiesResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant CustomerFiscalEntitiesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerFiscalEntitiesResponse; - } - - @override - void update(void Function(CustomerFiscalEntitiesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerFiscalEntitiesResponse build() => _build(); - - _$CustomerFiscalEntitiesResponse _build() { - _$CustomerFiscalEntitiesResponse _$result; - try { - _$result = _$v ?? - new _$CustomerFiscalEntitiesResponse._( - data: _data?.build(), - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomerFiscalEntitiesResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CustomerFiscalEntitiesResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerFiscalEntitiesResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_info.g.dart b/lib/src/model/customer_info.g.dart deleted file mode 100644 index 72d01da..0000000 --- a/lib/src/model/customer_info.g.dart +++ /dev/null @@ -1,149 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerInfo extends CustomerInfo { - @override - final String name; - @override - final String email; - @override - final String phone; - @override - final bool? corporate; - @override - final String? object; - - factory _$CustomerInfo([void Function(CustomerInfoBuilder)? updates]) => - (new CustomerInfoBuilder()..update(updates))._build(); - - _$CustomerInfo._( - {required this.name, - required this.email, - required this.phone, - this.corporate, - this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull(name, r'CustomerInfo', 'name'); - BuiltValueNullFieldError.checkNotNull(email, r'CustomerInfo', 'email'); - BuiltValueNullFieldError.checkNotNull(phone, r'CustomerInfo', 'phone'); - } - - @override - CustomerInfo rebuild(void Function(CustomerInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerInfoBuilder toBuilder() => new CustomerInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerInfo && - name == other.name && - email == other.email && - phone == other.phone && - corporate == other.corporate && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerInfo') - ..add('name', name) - ..add('email', email) - ..add('phone', phone) - ..add('corporate', corporate) - ..add('object', object)) - .toString(); - } -} - -class CustomerInfoBuilder - implements Builder { - _$CustomerInfo? _$v; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(bool? corporate) => _$this._corporate = corporate; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - CustomerInfoBuilder() { - CustomerInfo._defaults(this); - } - - CustomerInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _name = $v.name; - _email = $v.email; - _phone = $v.phone; - _corporate = $v.corporate; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(CustomerInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerInfo; - } - - @override - void update(void Function(CustomerInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerInfo build() => _build(); - - _$CustomerInfo _build() { - final _$result = _$v ?? - new _$CustomerInfo._( - name: BuiltValueNullFieldError.checkNotNull( - name, r'CustomerInfo', 'name'), - email: BuiltValueNullFieldError.checkNotNull( - email, r'CustomerInfo', 'email'), - phone: BuiltValueNullFieldError.checkNotNull( - phone, r'CustomerInfo', 'phone'), - corporate: corporate, - object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_info_just_customer_id.g.dart b/lib/src/model/customer_info_just_customer_id.g.dart deleted file mode 100644 index 0bff0f6..0000000 --- a/lib/src/model/customer_info_just_customer_id.g.dart +++ /dev/null @@ -1,100 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_info_just_customer_id.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerInfoJustCustomerId extends CustomerInfoJustCustomerId { - @override - final String customerId; - - factory _$CustomerInfoJustCustomerId( - [void Function(CustomerInfoJustCustomerIdBuilder)? updates]) => - (new CustomerInfoJustCustomerIdBuilder()..update(updates))._build(); - - _$CustomerInfoJustCustomerId._({required this.customerId}) : super._() { - BuiltValueNullFieldError.checkNotNull( - customerId, r'CustomerInfoJustCustomerId', 'customerId'); - } - - @override - CustomerInfoJustCustomerId rebuild( - void Function(CustomerInfoJustCustomerIdBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerInfoJustCustomerIdBuilder toBuilder() => - new CustomerInfoJustCustomerIdBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerInfoJustCustomerId && - customerId == other.customerId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerInfoJustCustomerId') - ..add('customerId', customerId)) - .toString(); - } -} - -class CustomerInfoJustCustomerIdBuilder - implements - Builder { - _$CustomerInfoJustCustomerId? _$v; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(String? customerId) => _$this._customerId = customerId; - - CustomerInfoJustCustomerIdBuilder() { - CustomerInfoJustCustomerId._defaults(this); - } - - CustomerInfoJustCustomerIdBuilder get _$this { - final $v = _$v; - if ($v != null) { - _customerId = $v.customerId; - _$v = null; - } - return this; - } - - @override - void replace(CustomerInfoJustCustomerId other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerInfoJustCustomerId; - } - - @override - void update(void Function(CustomerInfoJustCustomerIdBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerInfoJustCustomerId build() => _build(); - - _$CustomerInfoJustCustomerId _build() { - final _$result = _$v ?? - new _$CustomerInfoJustCustomerId._( - customerId: BuiltValueNullFieldError.checkNotNull( - customerId, r'CustomerInfoJustCustomerId', 'customerId')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_info_just_customer_id_response.g.dart b/lib/src/model/customer_info_just_customer_id_response.g.dart deleted file mode 100644 index b32ccd7..0000000 --- a/lib/src/model/customer_info_just_customer_id_response.g.dart +++ /dev/null @@ -1,109 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_info_just_customer_id_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerInfoJustCustomerIdResponseBuilder { - void replace(CustomerInfoJustCustomerIdResponse other); - void update(void Function(CustomerInfoJustCustomerIdResponseBuilder) updates); - String? get customerId; - set customerId(String? customerId); -} - -class _$$CustomerInfoJustCustomerIdResponse - extends $CustomerInfoJustCustomerIdResponse { - @override - final String? customerId; - - factory _$$CustomerInfoJustCustomerIdResponse( - [void Function($CustomerInfoJustCustomerIdResponseBuilder)? - updates]) => - (new $CustomerInfoJustCustomerIdResponseBuilder()..update(updates)) - ._build(); - - _$$CustomerInfoJustCustomerIdResponse._({this.customerId}) : super._(); - - @override - $CustomerInfoJustCustomerIdResponse rebuild( - void Function($CustomerInfoJustCustomerIdResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerInfoJustCustomerIdResponseBuilder toBuilder() => - new $CustomerInfoJustCustomerIdResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerInfoJustCustomerIdResponse && - customerId == other.customerId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerInfoJustCustomerIdResponse') - ..add('customerId', customerId)) - .toString(); - } -} - -class $CustomerInfoJustCustomerIdResponseBuilder - implements - Builder<$CustomerInfoJustCustomerIdResponse, - $CustomerInfoJustCustomerIdResponseBuilder>, - CustomerInfoJustCustomerIdResponseBuilder { - _$$CustomerInfoJustCustomerIdResponse? _$v; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(covariant String? customerId) => - _$this._customerId = customerId; - - $CustomerInfoJustCustomerIdResponseBuilder() { - $CustomerInfoJustCustomerIdResponse._defaults(this); - } - - $CustomerInfoJustCustomerIdResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _customerId = $v.customerId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerInfoJustCustomerIdResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerInfoJustCustomerIdResponse; - } - - @override - void update( - void Function($CustomerInfoJustCustomerIdResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerInfoJustCustomerIdResponse build() => _build(); - - _$$CustomerInfoJustCustomerIdResponse _build() { - final _$result = _$v ?? - new _$$CustomerInfoJustCustomerIdResponse._(customerId: customerId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_method_request.g.dart b/lib/src/model/customer_payment_method_request.g.dart deleted file mode 100644 index c457707..0000000 --- a/lib/src/model/customer_payment_method_request.g.dart +++ /dev/null @@ -1,108 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_payment_method_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerPaymentMethodRequestBuilder { - void replace(CustomerPaymentMethodRequest other); - void update(void Function(CustomerPaymentMethodRequestBuilder) updates); - String? get type; - set type(String? type); -} - -class _$$CustomerPaymentMethodRequest extends $CustomerPaymentMethodRequest { - @override - final String type; - - factory _$$CustomerPaymentMethodRequest( - [void Function($CustomerPaymentMethodRequestBuilder)? updates]) => - (new $CustomerPaymentMethodRequestBuilder()..update(updates))._build(); - - _$$CustomerPaymentMethodRequest._({required this.type}) : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'$CustomerPaymentMethodRequest', 'type'); - } - - @override - $CustomerPaymentMethodRequest rebuild( - void Function($CustomerPaymentMethodRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerPaymentMethodRequestBuilder toBuilder() => - new $CustomerPaymentMethodRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerPaymentMethodRequest && type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerPaymentMethodRequest') - ..add('type', type)) - .toString(); - } -} - -class $CustomerPaymentMethodRequestBuilder - implements - Builder<$CustomerPaymentMethodRequest, - $CustomerPaymentMethodRequestBuilder>, - CustomerPaymentMethodRequestBuilder { - _$$CustomerPaymentMethodRequest? _$v; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - $CustomerPaymentMethodRequestBuilder() { - $CustomerPaymentMethodRequest._defaults(this); - } - - $CustomerPaymentMethodRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerPaymentMethodRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerPaymentMethodRequest; - } - - @override - void update(void Function($CustomerPaymentMethodRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerPaymentMethodRequest build() => _build(); - - _$$CustomerPaymentMethodRequest _build() { - final _$result = _$v ?? - new _$$CustomerPaymentMethodRequest._( - type: BuiltValueNullFieldError.checkNotNull( - type, r'$CustomerPaymentMethodRequest', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_methods_data.g.dart b/lib/src/model/customer_payment_methods_data.g.dart deleted file mode 100644 index c4de883..0000000 --- a/lib/src/model/customer_payment_methods_data.g.dart +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_payment_methods_data.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerPaymentMethodsData extends CustomerPaymentMethodsData { - @override - final OneOf oneOf; - - factory _$CustomerPaymentMethodsData( - [void Function(CustomerPaymentMethodsDataBuilder)? updates]) => - (new CustomerPaymentMethodsDataBuilder()..update(updates))._build(); - - _$CustomerPaymentMethodsData._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'CustomerPaymentMethodsData', 'oneOf'); - } - - @override - CustomerPaymentMethodsData rebuild( - void Function(CustomerPaymentMethodsDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerPaymentMethodsDataBuilder toBuilder() => - new CustomerPaymentMethodsDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerPaymentMethodsData && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerPaymentMethodsData') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class CustomerPaymentMethodsDataBuilder - implements - Builder { - _$CustomerPaymentMethodsData? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - CustomerPaymentMethodsDataBuilder() { - CustomerPaymentMethodsData._defaults(this); - } - - CustomerPaymentMethodsDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(CustomerPaymentMethodsData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerPaymentMethodsData; - } - - @override - void update(void Function(CustomerPaymentMethodsDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerPaymentMethodsData build() => _build(); - - _$CustomerPaymentMethodsData _build() { - final _$result = _$v ?? - new _$CustomerPaymentMethodsData._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'CustomerPaymentMethodsData', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_methods_request.g.dart b/lib/src/model/customer_payment_methods_request.g.dart deleted file mode 100644 index 11831f2..0000000 --- a/lib/src/model/customer_payment_methods_request.g.dart +++ /dev/null @@ -1,100 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_payment_methods_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerPaymentMethodsRequest extends CustomerPaymentMethodsRequest { - @override - final OneOf oneOf; - - factory _$CustomerPaymentMethodsRequest( - [void Function(CustomerPaymentMethodsRequestBuilder)? updates]) => - (new CustomerPaymentMethodsRequestBuilder()..update(updates))._build(); - - _$CustomerPaymentMethodsRequest._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'CustomerPaymentMethodsRequest', 'oneOf'); - } - - @override - CustomerPaymentMethodsRequest rebuild( - void Function(CustomerPaymentMethodsRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerPaymentMethodsRequestBuilder toBuilder() => - new CustomerPaymentMethodsRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerPaymentMethodsRequest && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerPaymentMethodsRequest') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class CustomerPaymentMethodsRequestBuilder - implements - Builder { - _$CustomerPaymentMethodsRequest? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - CustomerPaymentMethodsRequestBuilder() { - CustomerPaymentMethodsRequest._defaults(this); - } - - CustomerPaymentMethodsRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(CustomerPaymentMethodsRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerPaymentMethodsRequest; - } - - @override - void update(void Function(CustomerPaymentMethodsRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerPaymentMethodsRequest build() => _build(); - - _$CustomerPaymentMethodsRequest _build() { - final _$result = _$v ?? - new _$CustomerPaymentMethodsRequest._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'CustomerPaymentMethodsRequest', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_methods_response.g.dart b/lib/src/model/customer_payment_methods_response.g.dart deleted file mode 100644 index 465ab95..0000000 --- a/lib/src/model/customer_payment_methods_response.g.dart +++ /dev/null @@ -1,174 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_payment_methods_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerPaymentMethodsResponse extends CustomerPaymentMethodsResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$CustomerPaymentMethodsResponse( - [void Function(CustomerPaymentMethodsResponseBuilder)? updates]) => - (new CustomerPaymentMethodsResponseBuilder()..update(updates))._build(); - - _$CustomerPaymentMethodsResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomerPaymentMethodsResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomerPaymentMethodsResponse', 'object'); - } - - @override - CustomerPaymentMethodsResponse rebuild( - void Function(CustomerPaymentMethodsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerPaymentMethodsResponseBuilder toBuilder() => - new CustomerPaymentMethodsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerPaymentMethodsResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerPaymentMethodsResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class CustomerPaymentMethodsResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$CustomerPaymentMethodsResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - CustomerPaymentMethodsResponseBuilder() { - CustomerPaymentMethodsResponse._defaults(this); - } - - CustomerPaymentMethodsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant CustomerPaymentMethodsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerPaymentMethodsResponse; - } - - @override - void update(void Function(CustomerPaymentMethodsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerPaymentMethodsResponse build() => _build(); - - _$CustomerPaymentMethodsResponse _build() { - _$CustomerPaymentMethodsResponse _$result; - try { - _$result = _$v ?? - new _$CustomerPaymentMethodsResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomerPaymentMethodsResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CustomerPaymentMethodsResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerPaymentMethodsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_response.g.dart b/lib/src/model/customer_response.g.dart deleted file mode 100644 index 8686bad..0000000 --- a/lib/src/model/customer_response.g.dart +++ /dev/null @@ -1,383 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerResponse extends CustomerResponse { - @override - final CustomerAntifraudInfoResponse? antifraudInfo; - @override - final bool? corporate; - @override - final int createdAt; - @override - final String? customReference; - @override - final String? dateOfBirth; - @override - final String? defaultFiscalEntityId; - @override - final String? defaultShippingContactId; - @override - final String? defaultPaymentSourceId; - @override - final String? email; - @override - final CustomerFiscalEntitiesResponse? fiscalEntities; - @override - final String id; - @override - final bool livemode; - @override - final String name; - @override - final String? nationalId; - @override - final BuiltMap? metadata; - @override - final String object; - @override - final CustomerPaymentMethodsResponse? paymentSources; - @override - final String? phone; - @override - final CustomerResponseShippingContacts? shippingContacts; - @override - final SubscriptionResponse? subscription; - - factory _$CustomerResponse( - [void Function(CustomerResponseBuilder)? updates]) => - (new CustomerResponseBuilder()..update(updates))._build(); - - _$CustomerResponse._( - {this.antifraudInfo, - this.corporate, - required this.createdAt, - this.customReference, - this.dateOfBirth, - this.defaultFiscalEntityId, - this.defaultShippingContactId, - this.defaultPaymentSourceId, - this.email, - this.fiscalEntities, - required this.id, - required this.livemode, - required this.name, - this.nationalId, - this.metadata, - required this.object, - this.paymentSources, - this.phone, - this.shippingContacts, - this.subscription}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - createdAt, r'CustomerResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull(id, r'CustomerResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - livemode, r'CustomerResponse', 'livemode'); - BuiltValueNullFieldError.checkNotNull(name, r'CustomerResponse', 'name'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomerResponse', 'object'); - } - - @override - CustomerResponse rebuild(void Function(CustomerResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerResponseBuilder toBuilder() => - new CustomerResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerResponse && - antifraudInfo == other.antifraudInfo && - corporate == other.corporate && - createdAt == other.createdAt && - customReference == other.customReference && - dateOfBirth == other.dateOfBirth && - defaultFiscalEntityId == other.defaultFiscalEntityId && - defaultShippingContactId == other.defaultShippingContactId && - defaultPaymentSourceId == other.defaultPaymentSourceId && - email == other.email && - fiscalEntities == other.fiscalEntities && - id == other.id && - livemode == other.livemode && - name == other.name && - nationalId == other.nationalId && - metadata == other.metadata && - object == other.object && - paymentSources == other.paymentSources && - phone == other.phone && - shippingContacts == other.shippingContacts && - subscription == other.subscription; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, customReference.hashCode); - _$hash = $jc(_$hash, dateOfBirth.hashCode); - _$hash = $jc(_$hash, defaultFiscalEntityId.hashCode); - _$hash = $jc(_$hash, defaultShippingContactId.hashCode); - _$hash = $jc(_$hash, defaultPaymentSourceId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, fiscalEntities.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, nationalId.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, paymentSources.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, shippingContacts.hashCode); - _$hash = $jc(_$hash, subscription.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerResponse') - ..add('antifraudInfo', antifraudInfo) - ..add('corporate', corporate) - ..add('createdAt', createdAt) - ..add('customReference', customReference) - ..add('dateOfBirth', dateOfBirth) - ..add('defaultFiscalEntityId', defaultFiscalEntityId) - ..add('defaultShippingContactId', defaultShippingContactId) - ..add('defaultPaymentSourceId', defaultPaymentSourceId) - ..add('email', email) - ..add('fiscalEntities', fiscalEntities) - ..add('id', id) - ..add('livemode', livemode) - ..add('name', name) - ..add('nationalId', nationalId) - ..add('metadata', metadata) - ..add('object', object) - ..add('paymentSources', paymentSources) - ..add('phone', phone) - ..add('shippingContacts', shippingContacts) - ..add('subscription', subscription)) - .toString(); - } -} - -class CustomerResponseBuilder - implements Builder { - _$CustomerResponse? _$v; - - CustomerAntifraudInfoResponseBuilder? _antifraudInfo; - CustomerAntifraudInfoResponseBuilder get antifraudInfo => - _$this._antifraudInfo ??= new CustomerAntifraudInfoResponseBuilder(); - set antifraudInfo(CustomerAntifraudInfoResponseBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(bool? corporate) => _$this._corporate = corporate; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _customReference; - String? get customReference => _$this._customReference; - set customReference(String? customReference) => - _$this._customReference = customReference; - - String? _dateOfBirth; - String? get dateOfBirth => _$this._dateOfBirth; - set dateOfBirth(String? dateOfBirth) => _$this._dateOfBirth = dateOfBirth; - - String? _defaultFiscalEntityId; - String? get defaultFiscalEntityId => _$this._defaultFiscalEntityId; - set defaultFiscalEntityId(String? defaultFiscalEntityId) => - _$this._defaultFiscalEntityId = defaultFiscalEntityId; - - String? _defaultShippingContactId; - String? get defaultShippingContactId => _$this._defaultShippingContactId; - set defaultShippingContactId(String? defaultShippingContactId) => - _$this._defaultShippingContactId = defaultShippingContactId; - - String? _defaultPaymentSourceId; - String? get defaultPaymentSourceId => _$this._defaultPaymentSourceId; - set defaultPaymentSourceId(String? defaultPaymentSourceId) => - _$this._defaultPaymentSourceId = defaultPaymentSourceId; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - CustomerFiscalEntitiesResponseBuilder? _fiscalEntities; - CustomerFiscalEntitiesResponseBuilder get fiscalEntities => - _$this._fiscalEntities ??= new CustomerFiscalEntitiesResponseBuilder(); - set fiscalEntities(CustomerFiscalEntitiesResponseBuilder? fiscalEntities) => - _$this._fiscalEntities = fiscalEntities; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _nationalId; - String? get nationalId => _$this._nationalId; - set nationalId(String? nationalId) => _$this._nationalId = nationalId; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - CustomerPaymentMethodsResponseBuilder? _paymentSources; - CustomerPaymentMethodsResponseBuilder get paymentSources => - _$this._paymentSources ??= new CustomerPaymentMethodsResponseBuilder(); - set paymentSources(CustomerPaymentMethodsResponseBuilder? paymentSources) => - _$this._paymentSources = paymentSources; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - CustomerResponseShippingContactsBuilder? _shippingContacts; - CustomerResponseShippingContactsBuilder get shippingContacts => - _$this._shippingContacts ??= - new CustomerResponseShippingContactsBuilder(); - set shippingContacts( - CustomerResponseShippingContactsBuilder? shippingContacts) => - _$this._shippingContacts = shippingContacts; - - SubscriptionResponseBuilder? _subscription; - SubscriptionResponseBuilder get subscription => - _$this._subscription ??= new SubscriptionResponseBuilder(); - set subscription(SubscriptionResponseBuilder? subscription) => - _$this._subscription = subscription; - - CustomerResponseBuilder() { - CustomerResponse._defaults(this); - } - - CustomerResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _antifraudInfo = $v.antifraudInfo?.toBuilder(); - _corporate = $v.corporate; - _createdAt = $v.createdAt; - _customReference = $v.customReference; - _dateOfBirth = $v.dateOfBirth; - _defaultFiscalEntityId = $v.defaultFiscalEntityId; - _defaultShippingContactId = $v.defaultShippingContactId; - _defaultPaymentSourceId = $v.defaultPaymentSourceId; - _email = $v.email; - _fiscalEntities = $v.fiscalEntities?.toBuilder(); - _id = $v.id; - _livemode = $v.livemode; - _name = $v.name; - _nationalId = $v.nationalId; - _metadata = $v.metadata?.toBuilder(); - _object = $v.object; - _paymentSources = $v.paymentSources?.toBuilder(); - _phone = $v.phone; - _shippingContacts = $v.shippingContacts?.toBuilder(); - _subscription = $v.subscription?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(CustomerResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerResponse; - } - - @override - void update(void Function(CustomerResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerResponse build() => _build(); - - _$CustomerResponse _build() { - _$CustomerResponse _$result; - try { - _$result = _$v ?? - new _$CustomerResponse._( - antifraudInfo: _antifraudInfo?.build(), - corporate: corporate, - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'CustomerResponse', 'createdAt'), - customReference: customReference, - dateOfBirth: dateOfBirth, - defaultFiscalEntityId: defaultFiscalEntityId, - defaultShippingContactId: defaultShippingContactId, - defaultPaymentSourceId: defaultPaymentSourceId, - email: email, - fiscalEntities: _fiscalEntities?.build(), - id: BuiltValueNullFieldError.checkNotNull( - id, r'CustomerResponse', 'id'), - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'CustomerResponse', 'livemode'), - name: BuiltValueNullFieldError.checkNotNull( - name, r'CustomerResponse', 'name'), - nationalId: nationalId, - metadata: _metadata?.build(), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CustomerResponse', 'object'), - paymentSources: _paymentSources?.build(), - phone: phone, - shippingContacts: _shippingContacts?.build(), - subscription: _subscription?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'fiscalEntities'; - _fiscalEntities?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'paymentSources'; - _paymentSources?.build(); - - _$failedField = 'shippingContacts'; - _shippingContacts?.build(); - _$failedField = 'subscription'; - _subscription?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_response_shipping_contacts.g.dart b/lib/src/model/customer_response_shipping_contacts.g.dart deleted file mode 100644 index 18f4f4a..0000000 --- a/lib/src/model/customer_response_shipping_contacts.g.dart +++ /dev/null @@ -1,145 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_response_shipping_contacts.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerResponseShippingContacts - extends CustomerResponseShippingContacts { - @override - final BuiltList? data; - @override - final bool hasMore; - @override - final String object; - - factory _$CustomerResponseShippingContacts( - [void Function(CustomerResponseShippingContactsBuilder)? updates]) => - (new CustomerResponseShippingContactsBuilder()..update(updates))._build(); - - _$CustomerResponseShippingContacts._( - {this.data, required this.hasMore, required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomerResponseShippingContacts', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomerResponseShippingContacts', 'object'); - } - - @override - CustomerResponseShippingContacts rebuild( - void Function(CustomerResponseShippingContactsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerResponseShippingContactsBuilder toBuilder() => - new CustomerResponseShippingContactsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerResponseShippingContacts && - data == other.data && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerResponseShippingContacts') - ..add('data', data) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class CustomerResponseShippingContactsBuilder - implements - Builder, - PaginationBuilder { - _$CustomerResponseShippingContacts? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - CustomerResponseShippingContactsBuilder() { - CustomerResponseShippingContacts._defaults(this); - } - - CustomerResponseShippingContactsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant CustomerResponseShippingContacts other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerResponseShippingContacts; - } - - @override - void update(void Function(CustomerResponseShippingContactsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerResponseShippingContacts build() => _build(); - - _$CustomerResponseShippingContacts _build() { - _$CustomerResponseShippingContacts _$result; - try { - _$result = _$v ?? - new _$CustomerResponseShippingContacts._( - data: _data?.build(), - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomerResponseShippingContacts', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CustomerResponseShippingContacts', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerResponseShippingContacts', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts.g.dart b/lib/src/model/customer_shipping_contacts.g.dart deleted file mode 100644 index 1a5317e..0000000 --- a/lib/src/model/customer_shipping_contacts.g.dart +++ /dev/null @@ -1,235 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_shipping_contacts.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerShippingContactsBuilder { - void replace(CustomerShippingContacts other); - void update(void Function(CustomerShippingContactsBuilder) updates); - String? get phone; - set phone(String? phone); - - String? get receiver; - set receiver(String? receiver); - - String? get betweenStreets; - set betweenStreets(String? betweenStreets); - - CustomerShippingContactsAddressBuilder get address; - set address(CustomerShippingContactsAddressBuilder? address); - - String? get parentId; - set parentId(String? parentId); - - bool? get default_; - set default_(bool? default_); - - bool? get deleted; - set deleted(bool? deleted); - - MapBuilder get metadata; - set metadata(MapBuilder? metadata); -} - -class _$$CustomerShippingContacts extends $CustomerShippingContacts { - @override - final String? phone; - @override - final String? receiver; - @override - final String? betweenStreets; - @override - final CustomerShippingContactsAddress address; - @override - final String? parentId; - @override - final bool? default_; - @override - final bool? deleted; - @override - final BuiltMap? metadata; - - factory _$$CustomerShippingContacts( - [void Function($CustomerShippingContactsBuilder)? updates]) => - (new $CustomerShippingContactsBuilder()..update(updates))._build(); - - _$$CustomerShippingContacts._( - {this.phone, - this.receiver, - this.betweenStreets, - required this.address, - this.parentId, - this.default_, - this.deleted, - this.metadata}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - address, r'$CustomerShippingContacts', 'address'); - } - - @override - $CustomerShippingContacts rebuild( - void Function($CustomerShippingContactsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerShippingContactsBuilder toBuilder() => - new $CustomerShippingContactsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerShippingContacts && - phone == other.phone && - receiver == other.receiver && - betweenStreets == other.betweenStreets && - address == other.address && - parentId == other.parentId && - default_ == other.default_ && - deleted == other.deleted && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, receiver.hashCode); - _$hash = $jc(_$hash, betweenStreets.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerShippingContacts') - ..add('phone', phone) - ..add('receiver', receiver) - ..add('betweenStreets', betweenStreets) - ..add('address', address) - ..add('parentId', parentId) - ..add('default_', default_) - ..add('deleted', deleted) - ..add('metadata', metadata)) - .toString(); - } -} - -class $CustomerShippingContactsBuilder - implements - Builder<$CustomerShippingContacts, $CustomerShippingContactsBuilder>, - CustomerShippingContactsBuilder { - _$$CustomerShippingContacts? _$v; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - String? _receiver; - String? get receiver => _$this._receiver; - set receiver(covariant String? receiver) => _$this._receiver = receiver; - - String? _betweenStreets; - String? get betweenStreets => _$this._betweenStreets; - set betweenStreets(covariant String? betweenStreets) => - _$this._betweenStreets = betweenStreets; - - CustomerShippingContactsAddressBuilder? _address; - CustomerShippingContactsAddressBuilder get address => - _$this._address ??= new CustomerShippingContactsAddressBuilder(); - set address(covariant CustomerShippingContactsAddressBuilder? address) => - _$this._address = address; - - 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_; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - $CustomerShippingContactsBuilder() { - $CustomerShippingContacts._defaults(this); - } - - $CustomerShippingContactsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _phone = $v.phone; - _receiver = $v.receiver; - _betweenStreets = $v.betweenStreets; - _address = $v.address.toBuilder(); - _parentId = $v.parentId; - _default_ = $v.default_; - _deleted = $v.deleted; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerShippingContacts other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerShippingContacts; - } - - @override - void update(void Function($CustomerShippingContactsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerShippingContacts build() => _build(); - - _$$CustomerShippingContacts _build() { - _$$CustomerShippingContacts _$result; - try { - _$result = _$v ?? - new _$$CustomerShippingContacts._( - phone: phone, - receiver: receiver, - betweenStreets: betweenStreets, - address: address.build(), - parentId: parentId, - default_: default_, - deleted: deleted, - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomerShippingContacts', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_address.g.dart b/lib/src/model/customer_shipping_contacts_address.g.dart deleted file mode 100644 index 041e298..0000000 --- a/lib/src/model/customer_shipping_contacts_address.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_shipping_contacts_address.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerShippingContactsAddress - extends CustomerShippingContactsAddress { - @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; - - factory _$CustomerShippingContactsAddress( - [void Function(CustomerShippingContactsAddressBuilder)? updates]) => - (new CustomerShippingContactsAddressBuilder()..update(updates))._build(); - - _$CustomerShippingContactsAddress._( - {this.street1, - this.street2, - this.postalCode, - this.city, - this.state, - this.country, - this.residential}) - : super._(); - - @override - CustomerShippingContactsAddress rebuild( - void Function(CustomerShippingContactsAddressBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerShippingContactsAddressBuilder toBuilder() => - new CustomerShippingContactsAddressBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerShippingContactsAddress && - street1 == other.street1 && - street2 == other.street2 && - postalCode == other.postalCode && - city == other.city && - state == other.state && - country == other.country && - residential == other.residential; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, street1.hashCode); - _$hash = $jc(_$hash, street2.hashCode); - _$hash = $jc(_$hash, postalCode.hashCode); - _$hash = $jc(_$hash, city.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, residential.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerShippingContactsAddress') - ..add('street1', street1) - ..add('street2', street2) - ..add('postalCode', postalCode) - ..add('city', city) - ..add('state', state) - ..add('country', country) - ..add('residential', residential)) - .toString(); - } -} - -class CustomerShippingContactsAddressBuilder - implements - Builder { - _$CustomerShippingContactsAddress? _$v; - - String? _street1; - String? get street1 => _$this._street1; - set street1(String? street1) => _$this._street1 = street1; - - String? _street2; - String? get street2 => _$this._street2; - set street2(String? street2) => _$this._street2 = street2; - - String? _postalCode; - String? get postalCode => _$this._postalCode; - set postalCode(String? postalCode) => _$this._postalCode = postalCode; - - String? _city; - String? get city => _$this._city; - set city(String? city) => _$this._city = city; - - String? _state; - String? get state => _$this._state; - set state(String? state) => _$this._state = state; - - String? _country; - String? get country => _$this._country; - set country(String? country) => _$this._country = country; - - bool? _residential; - bool? get residential => _$this._residential; - set residential(bool? residential) => _$this._residential = residential; - - CustomerShippingContactsAddressBuilder() { - CustomerShippingContactsAddress._defaults(this); - } - - CustomerShippingContactsAddressBuilder 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; - _$v = null; - } - return this; - } - - @override - void replace(CustomerShippingContactsAddress other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerShippingContactsAddress; - } - - @override - void update(void Function(CustomerShippingContactsAddressBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerShippingContactsAddress build() => _build(); - - _$CustomerShippingContactsAddress _build() { - final _$result = _$v ?? - new _$CustomerShippingContactsAddress._( - street1: street1, - street2: street2, - postalCode: postalCode, - city: city, - state: state, - country: country, - residential: residential); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_data_response.g.dart b/lib/src/model/customer_shipping_contacts_data_response.g.dart deleted file mode 100644 index d161f88..0000000 --- a/lib/src/model/customer_shipping_contacts_data_response.g.dart +++ /dev/null @@ -1,259 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_shipping_contacts_data_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerShippingContactsDataResponse - extends CustomerShippingContactsDataResponse { - @override - final int createdAt; - @override - final String id; - @override - final String object; - @override - final String? phone; - @override - final String? receiver; - @override - final String? betweenStreets; - @override - final CustomerShippingContactsAddress address; - @override - final String? parentId; - @override - final bool? default_; - @override - final bool? deleted; - @override - final BuiltMap? metadata; - - factory _$CustomerShippingContactsDataResponse( - [void Function(CustomerShippingContactsDataResponseBuilder)? - updates]) => - (new CustomerShippingContactsDataResponseBuilder()..update(updates)) - ._build(); - - _$CustomerShippingContactsDataResponse._( - {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}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - createdAt, r'CustomerShippingContactsDataResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - id, r'CustomerShippingContactsDataResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomerShippingContactsDataResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - address, r'CustomerShippingContactsDataResponse', 'address'); - } - - @override - CustomerShippingContactsDataResponse rebuild( - void Function(CustomerShippingContactsDataResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerShippingContactsDataResponseBuilder toBuilder() => - new CustomerShippingContactsDataResponseBuilder()..replace(this); - - @override - 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 && - address == other.address && - parentId == other.parentId && - default_ == other.default_ && - deleted == other.deleted && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, receiver.hashCode); - _$hash = $jc(_$hash, betweenStreets.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @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) - ..add('address', address) - ..add('parentId', parentId) - ..add('default_', default_) - ..add('deleted', deleted) - ..add('metadata', metadata)) - .toString(); - } -} - -class CustomerShippingContactsDataResponseBuilder - implements - Builder, - 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; - - String? _receiver; - String? get receiver => _$this._receiver; - set receiver(covariant String? receiver) => _$this._receiver = receiver; - - String? _betweenStreets; - String? get betweenStreets => _$this._betweenStreets; - set betweenStreets(covariant String? betweenStreets) => - _$this._betweenStreets = betweenStreets; - - CustomerShippingContactsAddressBuilder? _address; - CustomerShippingContactsAddressBuilder get address => - _$this._address ??= new CustomerShippingContactsAddressBuilder(); - set address(covariant CustomerShippingContactsAddressBuilder? address) => - _$this._address = address; - - 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_; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - CustomerShippingContactsDataResponseBuilder() { - CustomerShippingContactsDataResponse._defaults(this); - } - - 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; - _address = $v.address.toBuilder(); - _parentId = $v.parentId; - _default_ = $v.default_; - _deleted = $v.deleted; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant CustomerShippingContactsDataResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerShippingContactsDataResponse; - } - - @override - void update( - void Function(CustomerShippingContactsDataResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerShippingContactsDataResponse build() => _build(); - - _$CustomerShippingContactsDataResponse _build() { - _$CustomerShippingContactsDataResponse _$result; - 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, - address: address.build(), - parentId: parentId, - default_: default_, - deleted: deleted, - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerShippingContactsDataResponse', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_response.g.dart b/lib/src/model/customer_shipping_contacts_response.g.dart deleted file mode 100644 index 303bece..0000000 --- a/lib/src/model/customer_shipping_contacts_response.g.dart +++ /dev/null @@ -1,282 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_shipping_contacts_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class CustomerShippingContactsResponseBuilder { - void replace(CustomerShippingContactsResponse other); - void update(void Function(CustomerShippingContactsResponseBuilder) updates); - String? get phone; - set phone(String? phone); - - String? get receiver; - set receiver(String? receiver); - - String? get betweenStreets; - set betweenStreets(String? betweenStreets); - - CustomerShippingContactsResponseAddressBuilder get address; - set address(CustomerShippingContactsResponseAddressBuilder? address); - - String? get parentId; - set parentId(String? parentId); - - bool? get default_; - set default_(bool? default_); - - String? get id; - set id(String? id); - - int? get createdAt; - set createdAt(int? createdAt); - - MapBuilder get metadata; - set metadata(MapBuilder? metadata); - - String? get object; - set object(String? object); - - bool? get deleted; - set deleted(bool? deleted); -} - -class _$$CustomerShippingContactsResponse - extends $CustomerShippingContactsResponse { - @override - final String? phone; - @override - final String? receiver; - @override - final String? betweenStreets; - @override - final CustomerShippingContactsResponseAddress? address; - @override - final String? parentId; - @override - final bool? default_; - @override - final String? id; - @override - final int? createdAt; - @override - final BuiltMap? metadata; - @override - final String? object; - @override - final bool? deleted; - - factory _$$CustomerShippingContactsResponse( - [void Function($CustomerShippingContactsResponseBuilder)? updates]) => - (new $CustomerShippingContactsResponseBuilder()..update(updates)) - ._build(); - - _$$CustomerShippingContactsResponse._( - {this.phone, - this.receiver, - this.betweenStreets, - this.address, - this.parentId, - this.default_, - this.id, - this.createdAt, - this.metadata, - this.object, - this.deleted}) - : super._(); - - @override - $CustomerShippingContactsResponse rebuild( - void Function($CustomerShippingContactsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $CustomerShippingContactsResponseBuilder toBuilder() => - new $CustomerShippingContactsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $CustomerShippingContactsResponse && - phone == other.phone && - receiver == other.receiver && - betweenStreets == other.betweenStreets && - address == other.address && - parentId == other.parentId && - default_ == other.default_ && - id == other.id && - createdAt == other.createdAt && - metadata == other.metadata && - object == other.object && - deleted == other.deleted; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, receiver.hashCode); - _$hash = $jc(_$hash, betweenStreets.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$CustomerShippingContactsResponse') - ..add('phone', phone) - ..add('receiver', receiver) - ..add('betweenStreets', betweenStreets) - ..add('address', address) - ..add('parentId', parentId) - ..add('default_', default_) - ..add('id', id) - ..add('createdAt', createdAt) - ..add('metadata', metadata) - ..add('object', object) - ..add('deleted', deleted)) - .toString(); - } -} - -class $CustomerShippingContactsResponseBuilder - implements - Builder<$CustomerShippingContactsResponse, - $CustomerShippingContactsResponseBuilder>, - CustomerShippingContactsResponseBuilder { - _$$CustomerShippingContactsResponse? _$v; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - String? _receiver; - String? get receiver => _$this._receiver; - set receiver(covariant String? receiver) => _$this._receiver = receiver; - - String? _betweenStreets; - String? get betweenStreets => _$this._betweenStreets; - set betweenStreets(covariant String? betweenStreets) => - _$this._betweenStreets = betweenStreets; - - CustomerShippingContactsResponseAddressBuilder? _address; - CustomerShippingContactsResponseAddressBuilder get address => - _$this._address ??= new CustomerShippingContactsResponseAddressBuilder(); - set address( - covariant CustomerShippingContactsResponseAddressBuilder? address) => - _$this._address = address; - - 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? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - $CustomerShippingContactsResponseBuilder() { - $CustomerShippingContactsResponse._defaults(this); - } - - $CustomerShippingContactsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _phone = $v.phone; - _receiver = $v.receiver; - _betweenStreets = $v.betweenStreets; - _address = $v.address?.toBuilder(); - _parentId = $v.parentId; - _default_ = $v.default_; - _id = $v.id; - _createdAt = $v.createdAt; - _metadata = $v.metadata?.toBuilder(); - _object = $v.object; - _deleted = $v.deleted; - _$v = null; - } - return this; - } - - @override - void replace(covariant $CustomerShippingContactsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$CustomerShippingContactsResponse; - } - - @override - void update( - void Function($CustomerShippingContactsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $CustomerShippingContactsResponse build() => _build(); - - _$$CustomerShippingContactsResponse _build() { - _$$CustomerShippingContactsResponse _$result; - try { - _$result = _$v ?? - new _$$CustomerShippingContactsResponse._( - phone: phone, - receiver: receiver, - betweenStreets: betweenStreets, - address: _address?.build(), - parentId: parentId, - default_: default_, - id: id, - createdAt: createdAt, - metadata: _metadata?.build(), - object: object, - deleted: deleted); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - _address?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$CustomerShippingContactsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_response_address.g.dart b/lib/src/model/customer_shipping_contacts_response_address.g.dart deleted file mode 100644 index 09500d1..0000000 --- a/lib/src/model/customer_shipping_contacts_response_address.g.dart +++ /dev/null @@ -1,189 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_shipping_contacts_response_address.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerShippingContactsResponseAddress - extends CustomerShippingContactsResponseAddress { - @override - final String? object; - @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; - - factory _$CustomerShippingContactsResponseAddress( - [void Function(CustomerShippingContactsResponseAddressBuilder)? - updates]) => - (new CustomerShippingContactsResponseAddressBuilder()..update(updates)) - ._build(); - - _$CustomerShippingContactsResponseAddress._( - {this.object, - this.street1, - this.street2, - this.postalCode, - this.city, - this.state, - this.country, - this.residential}) - : super._(); - - @override - CustomerShippingContactsResponseAddress rebuild( - void Function(CustomerShippingContactsResponseAddressBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerShippingContactsResponseAddressBuilder toBuilder() => - new CustomerShippingContactsResponseAddressBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerShippingContactsResponseAddress && - object == other.object && - street1 == other.street1 && - street2 == other.street2 && - postalCode == other.postalCode && - city == other.city && - state == other.state && - country == other.country && - residential == other.residential; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, street1.hashCode); - _$hash = $jc(_$hash, street2.hashCode); - _$hash = $jc(_$hash, postalCode.hashCode); - _$hash = $jc(_$hash, city.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, residential.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'CustomerShippingContactsResponseAddress') - ..add('object', object) - ..add('street1', street1) - ..add('street2', street2) - ..add('postalCode', postalCode) - ..add('city', city) - ..add('state', state) - ..add('country', country) - ..add('residential', residential)) - .toString(); - } -} - -class CustomerShippingContactsResponseAddressBuilder - implements - Builder { - _$CustomerShippingContactsResponseAddress? _$v; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _street1; - String? get street1 => _$this._street1; - set street1(String? street1) => _$this._street1 = street1; - - String? _street2; - String? get street2 => _$this._street2; - set street2(String? street2) => _$this._street2 = street2; - - String? _postalCode; - String? get postalCode => _$this._postalCode; - set postalCode(String? postalCode) => _$this._postalCode = postalCode; - - String? _city; - String? get city => _$this._city; - set city(String? city) => _$this._city = city; - - String? _state; - String? get state => _$this._state; - set state(String? state) => _$this._state = state; - - String? _country; - String? get country => _$this._country; - set country(String? country) => _$this._country = country; - - bool? _residential; - bool? get residential => _$this._residential; - set residential(bool? residential) => _$this._residential = residential; - - CustomerShippingContactsResponseAddressBuilder() { - CustomerShippingContactsResponseAddress._defaults(this); - } - - CustomerShippingContactsResponseAddressBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _street1 = $v.street1; - _street2 = $v.street2; - _postalCode = $v.postalCode; - _city = $v.city; - _state = $v.state; - _country = $v.country; - _residential = $v.residential; - _$v = null; - } - return this; - } - - @override - void replace(CustomerShippingContactsResponseAddress other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerShippingContactsResponseAddress; - } - - @override - void update( - void Function(CustomerShippingContactsResponseAddressBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerShippingContactsResponseAddress build() => _build(); - - _$CustomerShippingContactsResponseAddress _build() { - final _$result = _$v ?? - new _$CustomerShippingContactsResponseAddress._( - object: object, - street1: street1, - street2: street2, - postalCode: postalCode, - city: city, - state: state, - country: country, - residential: residential); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_update_fiscal_entities_request.g.dart b/lib/src/model/customer_update_fiscal_entities_request.g.dart deleted file mode 100644 index 8509f67..0000000 --- a/lib/src/model/customer_update_fiscal_entities_request.g.dart +++ /dev/null @@ -1,184 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_update_fiscal_entities_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerUpdateFiscalEntitiesRequest - extends CustomerUpdateFiscalEntitiesRequest { - @override - final CustomerAddress? address; - @override - final String? taxId; - @override - final String? email; - @override - final String? phone; - @override - final BuiltMap? metadata; - @override - final String? companyName; - - factory _$CustomerUpdateFiscalEntitiesRequest( - [void Function(CustomerUpdateFiscalEntitiesRequestBuilder)? - updates]) => - (new CustomerUpdateFiscalEntitiesRequestBuilder()..update(updates)) - ._build(); - - _$CustomerUpdateFiscalEntitiesRequest._( - {this.address, - this.taxId, - this.email, - this.phone, - this.metadata, - this.companyName}) - : super._(); - - @override - CustomerUpdateFiscalEntitiesRequest rebuild( - void Function(CustomerUpdateFiscalEntitiesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerUpdateFiscalEntitiesRequestBuilder toBuilder() => - new CustomerUpdateFiscalEntitiesRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerUpdateFiscalEntitiesRequest && - address == other.address && - taxId == other.taxId && - email == other.email && - phone == other.phone && - metadata == other.metadata && - companyName == other.companyName; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, companyName.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerUpdateFiscalEntitiesRequest') - ..add('address', address) - ..add('taxId', taxId) - ..add('email', email) - ..add('phone', phone) - ..add('metadata', metadata) - ..add('companyName', companyName)) - .toString(); - } -} - -class CustomerUpdateFiscalEntitiesRequestBuilder - implements - Builder { - _$CustomerUpdateFiscalEntitiesRequest? _$v; - - CustomerAddressBuilder? _address; - CustomerAddressBuilder get address => - _$this._address ??= new CustomerAddressBuilder(); - set address(CustomerAddressBuilder? address) => _$this._address = address; - - String? _taxId; - String? get taxId => _$this._taxId; - set taxId(String? taxId) => _$this._taxId = taxId; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _companyName; - String? get companyName => _$this._companyName; - set companyName(String? companyName) => _$this._companyName = companyName; - - CustomerUpdateFiscalEntitiesRequestBuilder() { - CustomerUpdateFiscalEntitiesRequest._defaults(this); - } - - CustomerUpdateFiscalEntitiesRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _address = $v.address?.toBuilder(); - _taxId = $v.taxId; - _email = $v.email; - _phone = $v.phone; - _metadata = $v.metadata?.toBuilder(); - _companyName = $v.companyName; - _$v = null; - } - return this; - } - - @override - void replace(CustomerUpdateFiscalEntitiesRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerUpdateFiscalEntitiesRequest; - } - - @override - void update( - void Function(CustomerUpdateFiscalEntitiesRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerUpdateFiscalEntitiesRequest build() => _build(); - - _$CustomerUpdateFiscalEntitiesRequest _build() { - _$CustomerUpdateFiscalEntitiesRequest _$result; - try { - _$result = _$v ?? - new _$CustomerUpdateFiscalEntitiesRequest._( - address: _address?.build(), - taxId: taxId, - email: email, - phone: phone, - metadata: _metadata?.build(), - companyName: companyName); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - _address?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerUpdateFiscalEntitiesRequest', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_update_shipping_contacts.g.dart b/lib/src/model/customer_update_shipping_contacts.g.dart deleted file mode 100644 index 7b5987a..0000000 --- a/lib/src/model/customer_update_shipping_contacts.g.dart +++ /dev/null @@ -1,187 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customer_update_shipping_contacts.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomerUpdateShippingContacts extends CustomerUpdateShippingContacts { - @override - final String? phone; - @override - final String? receiver; - @override - final String? betweenStreets; - @override - final CustomerShippingContactsAddress? address; - @override - final String? parentId; - @override - final bool? default_; - @override - final bool? deleted; - - factory _$CustomerUpdateShippingContacts( - [void Function(CustomerUpdateShippingContactsBuilder)? updates]) => - (new CustomerUpdateShippingContactsBuilder()..update(updates))._build(); - - _$CustomerUpdateShippingContacts._( - {this.phone, - this.receiver, - this.betweenStreets, - this.address, - this.parentId, - this.default_, - this.deleted}) - : super._(); - - @override - CustomerUpdateShippingContacts rebuild( - void Function(CustomerUpdateShippingContactsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomerUpdateShippingContactsBuilder toBuilder() => - new CustomerUpdateShippingContactsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomerUpdateShippingContacts && - phone == other.phone && - receiver == other.receiver && - betweenStreets == other.betweenStreets && - address == other.address && - parentId == other.parentId && - default_ == other.default_ && - deleted == other.deleted; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, receiver.hashCode); - _$hash = $jc(_$hash, betweenStreets.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomerUpdateShippingContacts') - ..add('phone', phone) - ..add('receiver', receiver) - ..add('betweenStreets', betweenStreets) - ..add('address', address) - ..add('parentId', parentId) - ..add('default_', default_) - ..add('deleted', deleted)) - .toString(); - } -} - -class CustomerUpdateShippingContactsBuilder - implements - Builder { - _$CustomerUpdateShippingContacts? _$v; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - String? _receiver; - String? get receiver => _$this._receiver; - set receiver(String? receiver) => _$this._receiver = receiver; - - String? _betweenStreets; - String? get betweenStreets => _$this._betweenStreets; - set betweenStreets(String? betweenStreets) => - _$this._betweenStreets = betweenStreets; - - CustomerShippingContactsAddressBuilder? _address; - CustomerShippingContactsAddressBuilder get address => - _$this._address ??= new CustomerShippingContactsAddressBuilder(); - set address(CustomerShippingContactsAddressBuilder? address) => - _$this._address = address; - - String? _parentId; - String? get parentId => _$this._parentId; - set parentId(String? parentId) => _$this._parentId = parentId; - - bool? _default_; - bool? get default_ => _$this._default_; - set default_(bool? default_) => _$this._default_ = default_; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(bool? deleted) => _$this._deleted = deleted; - - CustomerUpdateShippingContactsBuilder() { - CustomerUpdateShippingContacts._defaults(this); - } - - CustomerUpdateShippingContactsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _phone = $v.phone; - _receiver = $v.receiver; - _betweenStreets = $v.betweenStreets; - _address = $v.address?.toBuilder(); - _parentId = $v.parentId; - _default_ = $v.default_; - _deleted = $v.deleted; - _$v = null; - } - return this; - } - - @override - void replace(CustomerUpdateShippingContacts other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomerUpdateShippingContacts; - } - - @override - void update(void Function(CustomerUpdateShippingContactsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomerUpdateShippingContacts build() => _build(); - - _$CustomerUpdateShippingContacts _build() { - _$CustomerUpdateShippingContacts _$result; - try { - _$result = _$v ?? - new _$CustomerUpdateShippingContacts._( - phone: phone, - receiver: receiver, - betweenStreets: betweenStreets, - address: _address?.build(), - parentId: parentId, - default_: default_, - deleted: deleted); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - _address?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomerUpdateShippingContacts', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customers_response.g.dart b/lib/src/model/customers_response.g.dart deleted file mode 100644 index 47b4937..0000000 --- a/lib/src/model/customers_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'customers_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$CustomersResponse extends CustomersResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$CustomersResponse( - [void Function(CustomersResponseBuilder)? updates]) => - (new CustomersResponseBuilder()..update(updates))._build(); - - _$CustomersResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomersResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'CustomersResponse', 'object'); - } - - @override - CustomersResponse rebuild(void Function(CustomersResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CustomersResponseBuilder toBuilder() => - new CustomersResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CustomersResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CustomersResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class CustomersResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$CustomersResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - CustomersResponseBuilder() { - CustomersResponse._defaults(this); - } - - CustomersResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant CustomersResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CustomersResponse; - } - - @override - void update(void Function(CustomersResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CustomersResponse build() => _build(); - - _$CustomersResponse _build() { - _$CustomersResponse _$result; - try { - _$result = _$v ?? - new _$CustomersResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'CustomersResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'CustomersResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'CustomersResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/delete_api_keys_response.g.dart b/lib/src/model/delete_api_keys_response.g.dart deleted file mode 100644 index 4c89b75..0000000 --- a/lib/src/model/delete_api_keys_response.g.dart +++ /dev/null @@ -1,196 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'delete_api_keys_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$DeleteApiKeysResponse extends DeleteApiKeysResponse { - @override - final bool? active; - @override - final int? createdAt; - @override - final String? description; - @override - final bool? livemode; - @override - final String? prefix; - @override - final String? id; - @override - final String? object; - @override - final bool? deleted; - @override - final String? role; - - factory _$DeleteApiKeysResponse( - [void Function(DeleteApiKeysResponseBuilder)? updates]) => - (new DeleteApiKeysResponseBuilder()..update(updates))._build(); - - _$DeleteApiKeysResponse._( - {this.active, - this.createdAt, - this.description, - this.livemode, - this.prefix, - this.id, - this.object, - this.deleted, - this.role}) - : super._(); - - @override - DeleteApiKeysResponse rebuild( - void Function(DeleteApiKeysResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DeleteApiKeysResponseBuilder toBuilder() => - new DeleteApiKeysResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DeleteApiKeysResponse && - active == other.active && - createdAt == other.createdAt && - description == other.description && - livemode == other.livemode && - prefix == other.prefix && - id == other.id && - object == other.object && - deleted == other.deleted && - role == other.role; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, prefix.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, role.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DeleteApiKeysResponse') - ..add('active', active) - ..add('createdAt', createdAt) - ..add('description', description) - ..add('livemode', livemode) - ..add('prefix', prefix) - ..add('id', id) - ..add('object', object) - ..add('deleted', deleted) - ..add('role', role)) - .toString(); - } -} - -class DeleteApiKeysResponseBuilder - implements - Builder, - ApiKeyResponseOnDeleteBuilder { - _$DeleteApiKeysResponse? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(covariant bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(covariant bool? livemode) => _$this._livemode = livemode; - - String? _prefix; - String? get prefix => _$this._prefix; - set prefix(covariant String? prefix) => _$this._prefix = prefix; - - 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; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - String? _role; - String? get role => _$this._role; - set role(covariant String? role) => _$this._role = role; - - DeleteApiKeysResponseBuilder() { - DeleteApiKeysResponse._defaults(this); - } - - DeleteApiKeysResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _createdAt = $v.createdAt; - _description = $v.description; - _livemode = $v.livemode; - _prefix = $v.prefix; - _id = $v.id; - _object = $v.object; - _deleted = $v.deleted; - _role = $v.role; - _$v = null; - } - return this; - } - - @override - void replace(covariant DeleteApiKeysResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DeleteApiKeysResponse; - } - - @override - void update(void Function(DeleteApiKeysResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DeleteApiKeysResponse build() => _build(); - - _$DeleteApiKeysResponse _build() { - final _$result = _$v ?? - new _$DeleteApiKeysResponse._( - active: active, - createdAt: createdAt, - description: description, - livemode: livemode, - prefix: prefix, - id: id, - object: object, - deleted: deleted, - role: role); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/deleted_blacklist_rule_response.g.dart b/lib/src/model/deleted_blacklist_rule_response.g.dart deleted file mode 100644 index ad27468..0000000 --- a/lib/src/model/deleted_blacklist_rule_response.g.dart +++ /dev/null @@ -1,129 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'deleted_blacklist_rule_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$DeletedBlacklistRuleResponse extends DeletedBlacklistRuleResponse { - @override - final String? id; - @override - final String? field; - @override - final String? value; - @override - final String? description; - - factory _$DeletedBlacklistRuleResponse( - [void Function(DeletedBlacklistRuleResponseBuilder)? updates]) => - (new DeletedBlacklistRuleResponseBuilder()..update(updates))._build(); - - _$DeletedBlacklistRuleResponse._( - {this.id, this.field, this.value, this.description}) - : super._(); - - @override - DeletedBlacklistRuleResponse rebuild( - void Function(DeletedBlacklistRuleResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DeletedBlacklistRuleResponseBuilder toBuilder() => - new DeletedBlacklistRuleResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DeletedBlacklistRuleResponse && - id == other.id && - field == other.field && - value == other.value && - description == other.description; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, field.hashCode); - _$hash = $jc(_$hash, value.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DeletedBlacklistRuleResponse') - ..add('id', id) - ..add('field', field) - ..add('value', value) - ..add('description', description)) - .toString(); - } -} - -class DeletedBlacklistRuleResponseBuilder - implements - Builder { - _$DeletedBlacklistRuleResponse? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _field; - String? get field => _$this._field; - set field(String? field) => _$this._field = field; - - String? _value; - String? get value => _$this._value; - set value(String? value) => _$this._value = value; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - DeletedBlacklistRuleResponseBuilder() { - DeletedBlacklistRuleResponse._defaults(this); - } - - DeletedBlacklistRuleResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _field = $v.field; - _value = $v.value; - _description = $v.description; - _$v = null; - } - return this; - } - - @override - void replace(DeletedBlacklistRuleResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DeletedBlacklistRuleResponse; - } - - @override - void update(void Function(DeletedBlacklistRuleResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DeletedBlacklistRuleResponse build() => _build(); - - _$DeletedBlacklistRuleResponse _build() { - final _$result = _$v ?? - new _$DeletedBlacklistRuleResponse._( - id: id, field: field, value: value, description: description); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/deleted_whitelist_rule_response.g.dart b/lib/src/model/deleted_whitelist_rule_response.g.dart deleted file mode 100644 index b9cc337..0000000 --- a/lib/src/model/deleted_whitelist_rule_response.g.dart +++ /dev/null @@ -1,129 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'deleted_whitelist_rule_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$DeletedWhitelistRuleResponse extends DeletedWhitelistRuleResponse { - @override - final String? id; - @override - final String? field; - @override - final String? value; - @override - final String? description; - - factory _$DeletedWhitelistRuleResponse( - [void Function(DeletedWhitelistRuleResponseBuilder)? updates]) => - (new DeletedWhitelistRuleResponseBuilder()..update(updates))._build(); - - _$DeletedWhitelistRuleResponse._( - {this.id, this.field, this.value, this.description}) - : super._(); - - @override - DeletedWhitelistRuleResponse rebuild( - void Function(DeletedWhitelistRuleResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DeletedWhitelistRuleResponseBuilder toBuilder() => - new DeletedWhitelistRuleResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DeletedWhitelistRuleResponse && - id == other.id && - field == other.field && - value == other.value && - description == other.description; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, field.hashCode); - _$hash = $jc(_$hash, value.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DeletedWhitelistRuleResponse') - ..add('id', id) - ..add('field', field) - ..add('value', value) - ..add('description', description)) - .toString(); - } -} - -class DeletedWhitelistRuleResponseBuilder - implements - Builder { - _$DeletedWhitelistRuleResponse? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _field; - String? get field => _$this._field; - set field(String? field) => _$this._field = field; - - String? _value; - String? get value => _$this._value; - set value(String? value) => _$this._value = value; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - DeletedWhitelistRuleResponseBuilder() { - DeletedWhitelistRuleResponse._defaults(this); - } - - DeletedWhitelistRuleResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _field = $v.field; - _value = $v.value; - _description = $v.description; - _$v = null; - } - return this; - } - - @override - void replace(DeletedWhitelistRuleResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DeletedWhitelistRuleResponse; - } - - @override - void update(void Function(DeletedWhitelistRuleResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DeletedWhitelistRuleResponse build() => _build(); - - _$DeletedWhitelistRuleResponse _build() { - final _$result = _$v ?? - new _$DeletedWhitelistRuleResponse._( - id: id, field: field, value: value, description: description); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/details.g.dart b/lib/src/model/details.g.dart deleted file mode 100644 index 1524310..0000000 --- a/lib/src/model/details.g.dart +++ /dev/null @@ -1,110 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'details.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class DetailsBuilder { - void replace(Details other); - void update(void Function(DetailsBuilder) updates); - ListBuilder get details; - set details(ListBuilder? details); -} - -class _$$Details extends $Details { - @override - final BuiltList? details; - - factory _$$Details([void Function($DetailsBuilder)? updates]) => - (new $DetailsBuilder()..update(updates))._build(); - - _$$Details._({this.details}) : super._(); - - @override - $Details rebuild(void Function($DetailsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $DetailsBuilder toBuilder() => new $DetailsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $Details && details == other.details; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, details.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$Details')..add('details', details)) - .toString(); - } -} - -class $DetailsBuilder - implements Builder<$Details, $DetailsBuilder>, DetailsBuilder { - _$$Details? _$v; - - ListBuilder? _details; - ListBuilder get details => - _$this._details ??= new ListBuilder(); - set details(covariant ListBuilder? details) => - _$this._details = details; - - $DetailsBuilder() { - $Details._defaults(this); - } - - $DetailsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _details = $v.details?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $Details other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$Details; - } - - @override - void update(void Function($DetailsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $Details build() => _build(); - - _$$Details _build() { - _$$Details _$result; - try { - _$result = _$v ?? new _$$Details._(details: _details?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'details'; - _details?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$Details', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/details_error.g.dart b/lib/src/model/details_error.g.dart deleted file mode 100644 index 8231273..0000000 --- a/lib/src/model/details_error.g.dart +++ /dev/null @@ -1,126 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'details_error.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$DetailsError extends DetailsError { - @override - final String? code; - @override - final String? param; - @override - final String? message; - @override - final String? debugMessage; - - factory _$DetailsError([void Function(DetailsErrorBuilder)? updates]) => - (new DetailsErrorBuilder()..update(updates))._build(); - - _$DetailsError._({this.code, this.param, this.message, this.debugMessage}) - : super._(); - - @override - DetailsError rebuild(void Function(DetailsErrorBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DetailsErrorBuilder toBuilder() => new DetailsErrorBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DetailsError && - code == other.code && - param == other.param && - message == other.message && - debugMessage == other.debugMessage; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, code.hashCode); - _$hash = $jc(_$hash, param.hashCode); - _$hash = $jc(_$hash, message.hashCode); - _$hash = $jc(_$hash, debugMessage.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DetailsError') - ..add('code', code) - ..add('param', param) - ..add('message', message) - ..add('debugMessage', debugMessage)) - .toString(); - } -} - -class DetailsErrorBuilder - implements Builder { - _$DetailsError? _$v; - - String? _code; - String? get code => _$this._code; - set code(String? code) => _$this._code = code; - - String? _param; - String? get param => _$this._param; - set param(String? param) => _$this._param = param; - - String? _message; - String? get message => _$this._message; - set message(String? message) => _$this._message = message; - - String? _debugMessage; - String? get debugMessage => _$this._debugMessage; - set debugMessage(String? debugMessage) => _$this._debugMessage = debugMessage; - - DetailsErrorBuilder() { - DetailsError._defaults(this); - } - - DetailsErrorBuilder get _$this { - final $v = _$v; - if ($v != null) { - _code = $v.code; - _param = $v.param; - _message = $v.message; - _debugMessage = $v.debugMessage; - _$v = null; - } - return this; - } - - @override - void replace(DetailsError other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DetailsError; - } - - @override - void update(void Function(DetailsErrorBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DetailsError build() => _build(); - - _$DetailsError _build() { - final _$result = _$v ?? - new _$DetailsError._( - code: code, - param: param, - message: message, - debugMessage: debugMessage); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/discount_lines_data_response.g.dart b/lib/src/model/discount_lines_data_response.g.dart deleted file mode 100644 index 60e2ea6..0000000 --- a/lib/src/model/discount_lines_data_response.g.dart +++ /dev/null @@ -1,178 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'discount_lines_data_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { - @override - final String id; - @override - final String parentId; - @override - final String object; - @override - final int amount; - @override - final String code; - @override - final String type; - - factory _$DiscountLinesDataResponse( - [void Function(DiscountLinesDataResponseBuilder)? updates]) => - (new DiscountLinesDataResponseBuilder()..update(updates))._build(); - - _$DiscountLinesDataResponse._( - {required this.id, - required this.parentId, - required this.object, - required this.amount, - required this.code, - required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - id, r'DiscountLinesDataResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - parentId, r'DiscountLinesDataResponse', 'parentId'); - BuiltValueNullFieldError.checkNotNull( - object, r'DiscountLinesDataResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - amount, r'DiscountLinesDataResponse', 'amount'); - BuiltValueNullFieldError.checkNotNull( - code, r'DiscountLinesDataResponse', 'code'); - BuiltValueNullFieldError.checkNotNull( - type, r'DiscountLinesDataResponse', 'type'); - } - - @override - DiscountLinesDataResponse rebuild( - void Function(DiscountLinesDataResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DiscountLinesDataResponseBuilder toBuilder() => - new DiscountLinesDataResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DiscountLinesDataResponse && - id == other.id && - parentId == other.parentId && - object == other.object && - amount == other.amount && - code == other.code && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, code.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DiscountLinesDataResponse') - ..add('id', id) - ..add('parentId', parentId) - ..add('object', object) - ..add('amount', amount) - ..add('code', code) - ..add('type', type)) - .toString(); - } -} - -class DiscountLinesDataResponseBuilder - implements - Builder, - DiscountLinesResponseBuilder { - _$DiscountLinesDataResponse? _$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; - - String? _code; - String? get code => _$this._code; - set code(covariant String? code) => _$this._code = code; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - DiscountLinesDataResponseBuilder() { - DiscountLinesDataResponse._defaults(this); - } - - DiscountLinesDataResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _parentId = $v.parentId; - _object = $v.object; - _amount = $v.amount; - _code = $v.code; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant DiscountLinesDataResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DiscountLinesDataResponse; - } - - @override - void update(void Function(DiscountLinesDataResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DiscountLinesDataResponse build() => _build(); - - _$DiscountLinesDataResponse _build() { - final _$result = _$v ?? - new _$DiscountLinesDataResponse._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'DiscountLinesDataResponse', 'id'), - parentId: BuiltValueNullFieldError.checkNotNull( - parentId, r'DiscountLinesDataResponse', 'parentId'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'DiscountLinesDataResponse', 'object'), - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'DiscountLinesDataResponse', 'amount'), - code: BuiltValueNullFieldError.checkNotNull( - code, r'DiscountLinesDataResponse', 'code'), - type: BuiltValueNullFieldError.checkNotNull( - type, r'DiscountLinesDataResponse', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/discount_lines_response.g.dart b/lib/src/model/discount_lines_response.g.dart deleted file mode 100644 index f7b9213..0000000 --- a/lib/src/model/discount_lines_response.g.dart +++ /dev/null @@ -1,200 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'discount_lines_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class DiscountLinesResponseBuilder - implements OrderDiscountLinesRequestBuilder { - void replace(covariant DiscountLinesResponse other); - void update(void Function(DiscountLinesResponseBuilder) updates); - String? get id; - set id(covariant String? id); - - String? get parentId; - set parentId(covariant String? parentId); - - String? get object; - set object(covariant String? object); - - int? get amount; - set amount(covariant int? amount); - - String? get code; - set code(covariant String? code); - - String? get type; - set type(covariant String? type); -} - -class _$$DiscountLinesResponse extends $DiscountLinesResponse { - @override - final String id; - @override - final String parentId; - @override - final String object; - @override - final int amount; - @override - final String code; - @override - final String type; - - factory _$$DiscountLinesResponse( - [void Function($DiscountLinesResponseBuilder)? updates]) => - (new $DiscountLinesResponseBuilder()..update(updates))._build(); - - _$$DiscountLinesResponse._( - {required this.id, - required this.parentId, - required this.object, - required this.amount, - required this.code, - required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull(id, r'$DiscountLinesResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - parentId, r'$DiscountLinesResponse', 'parentId'); - BuiltValueNullFieldError.checkNotNull( - object, r'$DiscountLinesResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - amount, r'$DiscountLinesResponse', 'amount'); - BuiltValueNullFieldError.checkNotNull( - code, r'$DiscountLinesResponse', 'code'); - BuiltValueNullFieldError.checkNotNull( - type, r'$DiscountLinesResponse', 'type'); - } - - @override - $DiscountLinesResponse rebuild( - void Function($DiscountLinesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $DiscountLinesResponseBuilder toBuilder() => - new $DiscountLinesResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $DiscountLinesResponse && - id == other.id && - parentId == other.parentId && - object == other.object && - amount == other.amount && - code == other.code && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, code.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$DiscountLinesResponse') - ..add('id', id) - ..add('parentId', parentId) - ..add('object', object) - ..add('amount', amount) - ..add('code', code) - ..add('type', type)) - .toString(); - } -} - -class $DiscountLinesResponseBuilder - implements - Builder<$DiscountLinesResponse, $DiscountLinesResponseBuilder>, - DiscountLinesResponseBuilder { - _$$DiscountLinesResponse? _$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; - - String? _code; - String? get code => _$this._code; - set code(covariant String? code) => _$this._code = code; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - $DiscountLinesResponseBuilder() { - $DiscountLinesResponse._defaults(this); - } - - $DiscountLinesResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _parentId = $v.parentId; - _object = $v.object; - _amount = $v.amount; - _code = $v.code; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant $DiscountLinesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$DiscountLinesResponse; - } - - @override - void update(void Function($DiscountLinesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $DiscountLinesResponse build() => _build(); - - _$$DiscountLinesResponse _build() { - final _$result = _$v ?? - new _$$DiscountLinesResponse._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'$DiscountLinesResponse', 'id'), - parentId: BuiltValueNullFieldError.checkNotNull( - parentId, r'$DiscountLinesResponse', 'parentId'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'$DiscountLinesResponse', 'object'), - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'$DiscountLinesResponse', 'amount'), - code: BuiltValueNullFieldError.checkNotNull( - code, r'$DiscountLinesResponse', 'code'), - type: BuiltValueNullFieldError.checkNotNull( - type, r'$DiscountLinesResponse', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/email_checkout_request.g.dart b/lib/src/model/email_checkout_request.g.dart deleted file mode 100644 index 29a5a6f..0000000 --- a/lib/src/model/email_checkout_request.g.dart +++ /dev/null @@ -1,98 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'email_checkout_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$EmailCheckoutRequest extends EmailCheckoutRequest { - @override - final String email; - - factory _$EmailCheckoutRequest( - [void Function(EmailCheckoutRequestBuilder)? updates]) => - (new EmailCheckoutRequestBuilder()..update(updates))._build(); - - _$EmailCheckoutRequest._({required this.email}) : super._() { - BuiltValueNullFieldError.checkNotNull( - email, r'EmailCheckoutRequest', 'email'); - } - - @override - EmailCheckoutRequest rebuild( - void Function(EmailCheckoutRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - EmailCheckoutRequestBuilder toBuilder() => - new EmailCheckoutRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is EmailCheckoutRequest && email == other.email; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'EmailCheckoutRequest') - ..add('email', email)) - .toString(); - } -} - -class EmailCheckoutRequestBuilder - implements Builder { - _$EmailCheckoutRequest? _$v; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - EmailCheckoutRequestBuilder() { - EmailCheckoutRequest._defaults(this); - } - - EmailCheckoutRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _email = $v.email; - _$v = null; - } - return this; - } - - @override - void replace(EmailCheckoutRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$EmailCheckoutRequest; - } - - @override - void update(void Function(EmailCheckoutRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - EmailCheckoutRequest build() => _build(); - - _$EmailCheckoutRequest _build() { - final _$result = _$v ?? - new _$EmailCheckoutRequest._( - email: BuiltValueNullFieldError.checkNotNull( - email, r'EmailCheckoutRequest', 'email')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/error.g.dart b/lib/src/model/error.g.dart deleted file mode 100644 index aa84c26..0000000 --- a/lib/src/model/error.g.dart +++ /dev/null @@ -1,139 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'error.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$Error extends Error { - @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.logId, this.type, this.object, this.details}) : super._(); - - @override - Error rebuild(void Function(ErrorBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ErrorBuilder toBuilder() => new ErrorBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Error && - logId == other.logId && - type == other.type && - object == other.object && - details == other.details; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, logId.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, details.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Error') - ..add('logId', logId) - ..add('type', type) - ..add('object', object) - ..add('details', details)) - .toString(); - } -} - -class ErrorBuilder implements Builder, DetailsBuilder { - _$Error? _$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; - - ListBuilder? _details; - ListBuilder get details => - _$this._details ??= new ListBuilder(); - set details(covariant ListBuilder? details) => - _$this._details = details; - - ErrorBuilder() { - Error._defaults(this); - } - - ErrorBuilder get _$this { - final $v = _$v; - if ($v != null) { - _logId = $v.logId; - _type = $v.type; - _object = $v.object; - _details = $v.details?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant Error other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Error; - } - - @override - void update(void Function(ErrorBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Error build() => _build(); - - _$Error _build() { - _$Error _$result; - try { - _$result = _$v ?? - new _$Error._( - logId: logId, - type: type, - object: object, - details: _details?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'details'; - _details?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'Error', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/event_response.g.dart b/lib/src/model/event_response.g.dart deleted file mode 100644 index 22eb8fe..0000000 --- a/lib/src/model/event_response.g.dart +++ /dev/null @@ -1,198 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'event_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$EventResponse extends EventResponse { - @override - final int? createdAt; - @override - final BuiltMap? data; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - @override - final String? type; - @override - final BuiltList? webhookLogs; - @override - final String? webhookStatus; - - factory _$EventResponse([void Function(EventResponseBuilder)? updates]) => - (new EventResponseBuilder()..update(updates))._build(); - - _$EventResponse._( - {this.createdAt, - this.data, - this.id, - this.livemode, - this.object, - this.type, - this.webhookLogs, - this.webhookStatus}) - : super._(); - - @override - EventResponse rebuild(void Function(EventResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - EventResponseBuilder toBuilder() => new EventResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is EventResponse && - createdAt == other.createdAt && - data == other.data && - id == other.id && - livemode == other.livemode && - object == other.object && - type == other.type && - webhookLogs == other.webhookLogs && - webhookStatus == other.webhookStatus; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, webhookLogs.hashCode); - _$hash = $jc(_$hash, webhookStatus.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'EventResponse') - ..add('createdAt', createdAt) - ..add('data', data) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('type', type) - ..add('webhookLogs', webhookLogs) - ..add('webhookStatus', webhookStatus)) - .toString(); - } -} - -class EventResponseBuilder - implements Builder { - _$EventResponse? _$v; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - MapBuilder? _data; - MapBuilder get data => - _$this._data ??= new MapBuilder(); - set data(MapBuilder? data) => _$this._data = data; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - ListBuilder? _webhookLogs; - ListBuilder get webhookLogs => - _$this._webhookLogs ??= new ListBuilder(); - set webhookLogs(ListBuilder? webhookLogs) => - _$this._webhookLogs = webhookLogs; - - String? _webhookStatus; - String? get webhookStatus => _$this._webhookStatus; - set webhookStatus(String? webhookStatus) => - _$this._webhookStatus = webhookStatus; - - EventResponseBuilder() { - EventResponse._defaults(this); - } - - EventResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _createdAt = $v.createdAt; - _data = $v.data?.toBuilder(); - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _type = $v.type; - _webhookLogs = $v.webhookLogs?.toBuilder(); - _webhookStatus = $v.webhookStatus; - _$v = null; - } - return this; - } - - @override - void replace(EventResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$EventResponse; - } - - @override - void update(void Function(EventResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - EventResponse build() => _build(); - - _$EventResponse _build() { - _$EventResponse _$result; - try { - _$result = _$v ?? - new _$EventResponse._( - createdAt: createdAt, - data: _data?.build(), - id: id, - livemode: livemode, - object: object, - type: type, - webhookLogs: _webhookLogs?.build(), - webhookStatus: webhookStatus); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - - _$failedField = 'webhookLogs'; - _webhookLogs?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'EventResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/event_types.g.dart b/lib/src/model/event_types.g.dart deleted file mode 100644 index 104d988..0000000 --- a/lib/src/model/event_types.g.dart +++ /dev/null @@ -1,95 +0,0 @@ -// 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'); -const EventTypes _$orderPeriodPendingPayment = - const EventTypes._('orderPeriodPendingPayment'); - -EventTypes _$valueOf(String name) { - switch (name) { - case 'webhookPing': - return _$webhookPing; - case 'orderPeriodPaid': - return _$orderPeriodPaid; - case 'orderPeriodExpired': - return _$orderPeriodExpired; - case 'orderPeriodCanceled': - return _$orderPeriodCanceled; - case 'orderPeriodPendingPayment': - return _$orderPeriodPendingPayment; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$values = - new BuiltSet(const [ - _$webhookPing, - _$orderPeriodPaid, - _$orderPeriodExpired, - _$orderPeriodCanceled, - _$orderPeriodPendingPayment, -]); - -class _$EventTypesMeta { - const _$EventTypesMeta(); - EventTypes get webhookPing => _$webhookPing; - EventTypes get orderPeriodPaid => _$orderPeriodPaid; - EventTypes get orderPeriodExpired => _$orderPeriodExpired; - EventTypes get orderPeriodCanceled => _$orderPeriodCanceled; - EventTypes get orderPeriodPendingPayment => _$orderPeriodPendingPayment; - 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', - 'orderPeriodPendingPayment': 'order.pending_payment', - }; - static const Map _fromWire = const { - 'webhook_ping': 'webhookPing', - 'order.paid': 'orderPeriodPaid', - 'order.expired': 'orderPeriodExpired', - 'order.canceled': 'orderPeriodCanceled', - 'order.pending_payment': 'orderPeriodPendingPayment', - }; - - @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: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/events_resend_response.g.dart b/lib/src/model/events_resend_response.g.dart deleted file mode 100644 index cab475d..0000000 --- a/lib/src/model/events_resend_response.g.dart +++ /dev/null @@ -1,175 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'events_resend_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$EventsResendResponse extends EventsResendResponse { - @override - final int? failedAttempts; - @override - final String? id; - @override - final int? lastAttemptedAt; - @override - final int? lastHttpResponseStatus; - @override - final BuiltMap? responseData; - @override - final String? url; - - factory _$EventsResendResponse( - [void Function(EventsResendResponseBuilder)? updates]) => - (new EventsResendResponseBuilder()..update(updates))._build(); - - _$EventsResendResponse._( - {this.failedAttempts, - this.id, - this.lastAttemptedAt, - this.lastHttpResponseStatus, - this.responseData, - this.url}) - : super._(); - - @override - EventsResendResponse rebuild( - void Function(EventsResendResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - EventsResendResponseBuilder toBuilder() => - new EventsResendResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is EventsResendResponse && - failedAttempts == other.failedAttempts && - id == other.id && - lastAttemptedAt == other.lastAttemptedAt && - lastHttpResponseStatus == other.lastHttpResponseStatus && - responseData == other.responseData && - url == other.url; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, failedAttempts.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, lastAttemptedAt.hashCode); - _$hash = $jc(_$hash, lastHttpResponseStatus.hashCode); - _$hash = $jc(_$hash, responseData.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'EventsResendResponse') - ..add('failedAttempts', failedAttempts) - ..add('id', id) - ..add('lastAttemptedAt', lastAttemptedAt) - ..add('lastHttpResponseStatus', lastHttpResponseStatus) - ..add('responseData', responseData) - ..add('url', url)) - .toString(); - } -} - -class EventsResendResponseBuilder - implements Builder { - _$EventsResendResponse? _$v; - - int? _failedAttempts; - int? get failedAttempts => _$this._failedAttempts; - set failedAttempts(int? failedAttempts) => - _$this._failedAttempts = failedAttempts; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - int? _lastAttemptedAt; - int? get lastAttemptedAt => _$this._lastAttemptedAt; - set lastAttemptedAt(int? lastAttemptedAt) => - _$this._lastAttemptedAt = lastAttemptedAt; - - int? _lastHttpResponseStatus; - int? get lastHttpResponseStatus => _$this._lastHttpResponseStatus; - set lastHttpResponseStatus(int? lastHttpResponseStatus) => - _$this._lastHttpResponseStatus = lastHttpResponseStatus; - - MapBuilder? _responseData; - MapBuilder get responseData => - _$this._responseData ??= new MapBuilder(); - set responseData(MapBuilder? responseData) => - _$this._responseData = responseData; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - EventsResendResponseBuilder() { - EventsResendResponse._defaults(this); - } - - EventsResendResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _failedAttempts = $v.failedAttempts; - _id = $v.id; - _lastAttemptedAt = $v.lastAttemptedAt; - _lastHttpResponseStatus = $v.lastHttpResponseStatus; - _responseData = $v.responseData?.toBuilder(); - _url = $v.url; - _$v = null; - } - return this; - } - - @override - void replace(EventsResendResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$EventsResendResponse; - } - - @override - void update(void Function(EventsResendResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - EventsResendResponse build() => _build(); - - _$EventsResendResponse _build() { - _$EventsResendResponse _$result; - try { - _$result = _$v ?? - new _$EventsResendResponse._( - failedAttempts: failedAttempts, - id: id, - lastAttemptedAt: lastAttemptedAt, - lastHttpResponseStatus: lastHttpResponseStatus, - responseData: _responseData?.build(), - url: url); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'responseData'; - _responseData?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'EventsResendResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/fiscal_entity_address.g.dart b/lib/src/model/fiscal_entity_address.g.dart deleted file mode 100644 index 88f990f..0000000 --- a/lib/src/model/fiscal_entity_address.g.dart +++ /dev/null @@ -1,214 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'fiscal_entity_address.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class FiscalEntityAddressBuilder { - void replace(FiscalEntityAddress other); - void update(void Function(FiscalEntityAddressBuilder) 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); - - String? get externalNumber; - set externalNumber(String? externalNumber); -} - -class _$$FiscalEntityAddress extends $FiscalEntityAddress { - @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 String externalNumber; - - factory _$$FiscalEntityAddress( - [void Function($FiscalEntityAddressBuilder)? updates]) => - (new $FiscalEntityAddressBuilder()..update(updates))._build(); - - _$$FiscalEntityAddress._( - {required this.street1, - this.street2, - required this.postalCode, - required this.city, - this.state, - required this.country, - required this.externalNumber}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - street1, r'$FiscalEntityAddress', 'street1'); - BuiltValueNullFieldError.checkNotNull( - postalCode, r'$FiscalEntityAddress', 'postalCode'); - BuiltValueNullFieldError.checkNotNull( - city, r'$FiscalEntityAddress', 'city'); - BuiltValueNullFieldError.checkNotNull( - country, r'$FiscalEntityAddress', 'country'); - BuiltValueNullFieldError.checkNotNull( - externalNumber, r'$FiscalEntityAddress', 'externalNumber'); - } - - @override - $FiscalEntityAddress rebuild( - void Function($FiscalEntityAddressBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $FiscalEntityAddressBuilder toBuilder() => - new $FiscalEntityAddressBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $FiscalEntityAddress && - street1 == other.street1 && - street2 == other.street2 && - postalCode == other.postalCode && - city == other.city && - state == other.state && - country == other.country && - externalNumber == other.externalNumber; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, street1.hashCode); - _$hash = $jc(_$hash, street2.hashCode); - _$hash = $jc(_$hash, postalCode.hashCode); - _$hash = $jc(_$hash, city.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, externalNumber.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$FiscalEntityAddress') - ..add('street1', street1) - ..add('street2', street2) - ..add('postalCode', postalCode) - ..add('city', city) - ..add('state', state) - ..add('country', country) - ..add('externalNumber', externalNumber)) - .toString(); - } -} - -class $FiscalEntityAddressBuilder - implements - Builder<$FiscalEntityAddress, $FiscalEntityAddressBuilder>, - FiscalEntityAddressBuilder { - _$$FiscalEntityAddress? _$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; - - String? _externalNumber; - String? get externalNumber => _$this._externalNumber; - set externalNumber(covariant String? externalNumber) => - _$this._externalNumber = externalNumber; - - $FiscalEntityAddressBuilder() { - $FiscalEntityAddress._defaults(this); - } - - $FiscalEntityAddressBuilder 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; - _externalNumber = $v.externalNumber; - _$v = null; - } - return this; - } - - @override - void replace(covariant $FiscalEntityAddress other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$FiscalEntityAddress; - } - - @override - void update(void Function($FiscalEntityAddressBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $FiscalEntityAddress build() => _build(); - - _$$FiscalEntityAddress _build() { - final _$result = _$v ?? - new _$$FiscalEntityAddress._( - street1: BuiltValueNullFieldError.checkNotNull( - street1, r'$FiscalEntityAddress', 'street1'), - street2: street2, - postalCode: BuiltValueNullFieldError.checkNotNull( - postalCode, r'$FiscalEntityAddress', 'postalCode'), - city: BuiltValueNullFieldError.checkNotNull( - city, r'$FiscalEntityAddress', 'city'), - state: state, - country: BuiltValueNullFieldError.checkNotNull( - country, r'$FiscalEntityAddress', 'country'), - externalNumber: BuiltValueNullFieldError.checkNotNull( - externalNumber, r'$FiscalEntityAddress', 'externalNumber')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_api_keys_response.g.dart b/lib/src/model/get_api_keys_response.g.dart deleted file mode 100644 index 4f0ab5d..0000000 --- a/lib/src/model/get_api_keys_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_api_keys_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetApiKeysResponse extends GetApiKeysResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetApiKeysResponse( - [void Function(GetApiKeysResponseBuilder)? updates]) => - (new GetApiKeysResponseBuilder()..update(updates))._build(); - - _$GetApiKeysResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetApiKeysResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetApiKeysResponse', 'object'); - } - - @override - GetApiKeysResponse rebuild( - void Function(GetApiKeysResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetApiKeysResponseBuilder toBuilder() => - new GetApiKeysResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetApiKeysResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetApiKeysResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetApiKeysResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetApiKeysResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetApiKeysResponseBuilder() { - GetApiKeysResponse._defaults(this); - } - - GetApiKeysResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetApiKeysResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetApiKeysResponse; - } - - @override - void update(void Function(GetApiKeysResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetApiKeysResponse build() => _build(); - - _$GetApiKeysResponse _build() { - _$GetApiKeysResponse _$result; - try { - _$result = _$v ?? - new _$GetApiKeysResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetApiKeysResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetApiKeysResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetApiKeysResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_charges_response.g.dart b/lib/src/model/get_charges_response.g.dart deleted file mode 100644 index 71f7a7d..0000000 --- a/lib/src/model/get_charges_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_charges_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetChargesResponse extends GetChargesResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetChargesResponse( - [void Function(GetChargesResponseBuilder)? updates]) => - (new GetChargesResponseBuilder()..update(updates))._build(); - - _$GetChargesResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetChargesResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetChargesResponse', 'object'); - } - - @override - GetChargesResponse rebuild( - void Function(GetChargesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetChargesResponseBuilder toBuilder() => - new GetChargesResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetChargesResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetChargesResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetChargesResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetChargesResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetChargesResponseBuilder() { - GetChargesResponse._defaults(this); - } - - GetChargesResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetChargesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetChargesResponse; - } - - @override - void update(void Function(GetChargesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetChargesResponse build() => _build(); - - _$GetChargesResponse _build() { - _$GetChargesResponse _$result; - try { - _$result = _$v ?? - new _$GetChargesResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetChargesResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetChargesResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetChargesResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_companies_response.g.dart b/lib/src/model/get_companies_response.g.dart deleted file mode 100644 index a48cf48..0000000 --- a/lib/src/model/get_companies_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_companies_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetCompaniesResponse extends GetCompaniesResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetCompaniesResponse( - [void Function(GetCompaniesResponseBuilder)? updates]) => - (new GetCompaniesResponseBuilder()..update(updates))._build(); - - _$GetCompaniesResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetCompaniesResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetCompaniesResponse', 'object'); - } - - @override - GetCompaniesResponse rebuild( - void Function(GetCompaniesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetCompaniesResponseBuilder toBuilder() => - new GetCompaniesResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetCompaniesResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetCompaniesResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetCompaniesResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetCompaniesResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetCompaniesResponseBuilder() { - GetCompaniesResponse._defaults(this); - } - - GetCompaniesResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetCompaniesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetCompaniesResponse; - } - - @override - void update(void Function(GetCompaniesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetCompaniesResponse build() => _build(); - - _$GetCompaniesResponse _build() { - _$GetCompaniesResponse _$result; - try { - _$result = _$v ?? - new _$GetCompaniesResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetCompaniesResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetCompaniesResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetCompaniesResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_customer_payment_method_data_response.g.dart b/lib/src/model/get_customer_payment_method_data_response.g.dart deleted file mode 100644 index e611c08..0000000 --- a/lib/src/model/get_customer_payment_method_data_response.g.dart +++ /dev/null @@ -1,105 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_customer_payment_method_data_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetCustomerPaymentMethodDataResponse - extends GetCustomerPaymentMethodDataResponse { - @override - final OneOf oneOf; - - factory _$GetCustomerPaymentMethodDataResponse( - [void Function(GetCustomerPaymentMethodDataResponseBuilder)? - updates]) => - (new GetCustomerPaymentMethodDataResponseBuilder()..update(updates)) - ._build(); - - _$GetCustomerPaymentMethodDataResponse._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'GetCustomerPaymentMethodDataResponse', 'oneOf'); - } - - @override - GetCustomerPaymentMethodDataResponse rebuild( - void Function(GetCustomerPaymentMethodDataResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetCustomerPaymentMethodDataResponseBuilder toBuilder() => - new GetCustomerPaymentMethodDataResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetCustomerPaymentMethodDataResponse && - oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetCustomerPaymentMethodDataResponse') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class GetCustomerPaymentMethodDataResponseBuilder - implements - Builder { - _$GetCustomerPaymentMethodDataResponse? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - GetCustomerPaymentMethodDataResponseBuilder() { - GetCustomerPaymentMethodDataResponse._defaults(this); - } - - GetCustomerPaymentMethodDataResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(GetCustomerPaymentMethodDataResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetCustomerPaymentMethodDataResponse; - } - - @override - void update( - void Function(GetCustomerPaymentMethodDataResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetCustomerPaymentMethodDataResponse build() => _build(); - - _$GetCustomerPaymentMethodDataResponse _build() { - final _$result = _$v ?? - new _$GetCustomerPaymentMethodDataResponse._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'GetCustomerPaymentMethodDataResponse', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_events_response.g.dart b/lib/src/model/get_events_response.g.dart deleted file mode 100644 index ceabf5e..0000000 --- a/lib/src/model/get_events_response.g.dart +++ /dev/null @@ -1,171 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_events_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetEventsResponse extends GetEventsResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetEventsResponse( - [void Function(GetEventsResponseBuilder)? updates]) => - (new GetEventsResponseBuilder()..update(updates))._build(); - - _$GetEventsResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetEventsResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetEventsResponse', 'object'); - } - - @override - GetEventsResponse rebuild(void Function(GetEventsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetEventsResponseBuilder toBuilder() => - new GetEventsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetEventsResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetEventsResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetEventsResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetEventsResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetEventsResponseBuilder() { - GetEventsResponse._defaults(this); - } - - GetEventsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetEventsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetEventsResponse; - } - - @override - void update(void Function(GetEventsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetEventsResponse build() => _build(); - - _$GetEventsResponse _build() { - _$GetEventsResponse _$result; - try { - _$result = _$v ?? - new _$GetEventsResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetEventsResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetEventsResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetEventsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_order_discount_lines_response.g.dart b/lib/src/model/get_order_discount_lines_response.g.dart deleted file mode 100644 index 3bd5573..0000000 --- a/lib/src/model/get_order_discount_lines_response.g.dart +++ /dev/null @@ -1,174 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_order_discount_lines_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetOrderDiscountLinesResponse extends GetOrderDiscountLinesResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetOrderDiscountLinesResponse( - [void Function(GetOrderDiscountLinesResponseBuilder)? updates]) => - (new GetOrderDiscountLinesResponseBuilder()..update(updates))._build(); - - _$GetOrderDiscountLinesResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetOrderDiscountLinesResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetOrderDiscountLinesResponse', 'object'); - } - - @override - GetOrderDiscountLinesResponse rebuild( - void Function(GetOrderDiscountLinesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetOrderDiscountLinesResponseBuilder toBuilder() => - new GetOrderDiscountLinesResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetOrderDiscountLinesResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetOrderDiscountLinesResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetOrderDiscountLinesResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetOrderDiscountLinesResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetOrderDiscountLinesResponseBuilder() { - GetOrderDiscountLinesResponse._defaults(this); - } - - GetOrderDiscountLinesResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetOrderDiscountLinesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetOrderDiscountLinesResponse; - } - - @override - void update(void Function(GetOrderDiscountLinesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetOrderDiscountLinesResponse build() => _build(); - - _$GetOrderDiscountLinesResponse _build() { - _$GetOrderDiscountLinesResponse _$result; - try { - _$result = _$v ?? - new _$GetOrderDiscountLinesResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetOrderDiscountLinesResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetOrderDiscountLinesResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetOrderDiscountLinesResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_orders_response.g.dart b/lib/src/model/get_orders_response.g.dart deleted file mode 100644 index 8407af9..0000000 --- a/lib/src/model/get_orders_response.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_orders_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetOrdersResponse extends GetOrdersResponse { - @override - final BuiltList data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetOrdersResponse( - [void Function(GetOrdersResponseBuilder)? updates]) => - (new GetOrdersResponseBuilder()..update(updates))._build(); - - _$GetOrdersResponse._( - {required this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull(data, r'GetOrdersResponse', 'data'); - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetOrdersResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetOrdersResponse', 'object'); - } - - @override - GetOrdersResponse rebuild(void Function(GetOrdersResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetOrdersResponseBuilder toBuilder() => - new GetOrdersResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetOrdersResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetOrdersResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetOrdersResponseBuilder - implements - Builder, - OrdersResponseBuilder, - PageBuilder, - PaginationBuilder { - _$GetOrdersResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetOrdersResponseBuilder() { - GetOrdersResponse._defaults(this); - } - - GetOrdersResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetOrdersResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetOrdersResponse; - } - - @override - void update(void Function(GetOrdersResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetOrdersResponse build() => _build(); - - _$GetOrdersResponse _build() { - _$GetOrdersResponse _$result; - try { - _$result = _$v ?? - new _$GetOrdersResponse._( - data: data.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetOrdersResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetOrdersResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - data.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetOrdersResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_payment_method_response.g.dart b/lib/src/model/get_payment_method_response.g.dart deleted file mode 100644 index 6e0a11b..0000000 --- a/lib/src/model/get_payment_method_response.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_payment_method_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetPaymentMethodResponse extends GetPaymentMethodResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetPaymentMethodResponse( - [void Function(GetPaymentMethodResponseBuilder)? updates]) => - (new GetPaymentMethodResponseBuilder()..update(updates))._build(); - - _$GetPaymentMethodResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetPaymentMethodResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetPaymentMethodResponse', 'object'); - } - - @override - GetPaymentMethodResponse rebuild( - void Function(GetPaymentMethodResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetPaymentMethodResponseBuilder toBuilder() => - new GetPaymentMethodResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetPaymentMethodResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetPaymentMethodResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetPaymentMethodResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetPaymentMethodResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetPaymentMethodResponseBuilder() { - GetPaymentMethodResponse._defaults(this); - } - - GetPaymentMethodResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetPaymentMethodResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetPaymentMethodResponse; - } - - @override - void update(void Function(GetPaymentMethodResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetPaymentMethodResponse build() => _build(); - - _$GetPaymentMethodResponse _build() { - _$GetPaymentMethodResponse _$result; - try { - _$result = _$v ?? - new _$GetPaymentMethodResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetPaymentMethodResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetPaymentMethodResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetPaymentMethodResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_plans_response.g.dart b/lib/src/model/get_plans_response.g.dart deleted file mode 100644 index 10ae286..0000000 --- a/lib/src/model/get_plans_response.g.dart +++ /dev/null @@ -1,171 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_plans_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetPlansResponse extends GetPlansResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetPlansResponse( - [void Function(GetPlansResponseBuilder)? updates]) => - (new GetPlansResponseBuilder()..update(updates))._build(); - - _$GetPlansResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetPlansResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetPlansResponse', 'object'); - } - - @override - GetPlansResponse rebuild(void Function(GetPlansResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetPlansResponseBuilder toBuilder() => - new GetPlansResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetPlansResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetPlansResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetPlansResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetPlansResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetPlansResponseBuilder() { - GetPlansResponse._defaults(this); - } - - GetPlansResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetPlansResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetPlansResponse; - } - - @override - void update(void Function(GetPlansResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetPlansResponse build() => _build(); - - _$GetPlansResponse _build() { - _$GetPlansResponse _$result; - try { - _$result = _$v ?? - new _$GetPlansResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetPlansResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetPlansResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetPlansResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_transactions_response.g.dart b/lib/src/model/get_transactions_response.g.dart deleted file mode 100644 index a48584f..0000000 --- a/lib/src/model/get_transactions_response.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_transactions_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetTransactionsResponse extends GetTransactionsResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetTransactionsResponse( - [void Function(GetTransactionsResponseBuilder)? updates]) => - (new GetTransactionsResponseBuilder()..update(updates))._build(); - - _$GetTransactionsResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetTransactionsResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetTransactionsResponse', 'object'); - } - - @override - GetTransactionsResponse rebuild( - void Function(GetTransactionsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetTransactionsResponseBuilder toBuilder() => - new GetTransactionsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetTransactionsResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetTransactionsResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetTransactionsResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetTransactionsResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetTransactionsResponseBuilder() { - GetTransactionsResponse._defaults(this); - } - - GetTransactionsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetTransactionsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetTransactionsResponse; - } - - @override - void update(void Function(GetTransactionsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetTransactionsResponse build() => _build(); - - _$GetTransactionsResponse _build() { - _$GetTransactionsResponse _$result; - try { - _$result = _$v ?? - new _$GetTransactionsResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetTransactionsResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetTransactionsResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetTransactionsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_transfers_response.g.dart b/lib/src/model/get_transfers_response.g.dart deleted file mode 100644 index 8330ab0..0000000 --- a/lib/src/model/get_transfers_response.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_transfers_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetTransfersResponse extends GetTransfersResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetTransfersResponse( - [void Function(GetTransfersResponseBuilder)? updates]) => - (new GetTransfersResponseBuilder()..update(updates))._build(); - - _$GetTransfersResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetTransfersResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetTransfersResponse', 'object'); - } - - @override - GetTransfersResponse rebuild( - void Function(GetTransfersResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetTransfersResponseBuilder toBuilder() => - new GetTransfersResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetTransfersResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetTransfersResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetTransfersResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetTransfersResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetTransfersResponseBuilder() { - GetTransfersResponse._defaults(this); - } - - GetTransfersResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetTransfersResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetTransfersResponse; - } - - @override - void update(void Function(GetTransfersResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetTransfersResponse build() => _build(); - - _$GetTransfersResponse _build() { - _$GetTransfersResponse _$result; - try { - _$result = _$v ?? - new _$GetTransfersResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetTransfersResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetTransfersResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetTransfersResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_webhook_keys_response.g.dart b/lib/src/model/get_webhook_keys_response.g.dart deleted file mode 100644 index 9006634..0000000 --- a/lib/src/model/get_webhook_keys_response.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_webhook_keys_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetWebhookKeysResponse extends GetWebhookKeysResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetWebhookKeysResponse( - [void Function(GetWebhookKeysResponseBuilder)? updates]) => - (new GetWebhookKeysResponseBuilder()..update(updates))._build(); - - _$GetWebhookKeysResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetWebhookKeysResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetWebhookKeysResponse', 'object'); - } - - @override - GetWebhookKeysResponse rebuild( - void Function(GetWebhookKeysResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetWebhookKeysResponseBuilder toBuilder() => - new GetWebhookKeysResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetWebhookKeysResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetWebhookKeysResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetWebhookKeysResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetWebhookKeysResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetWebhookKeysResponseBuilder() { - GetWebhookKeysResponse._defaults(this); - } - - GetWebhookKeysResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetWebhookKeysResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetWebhookKeysResponse; - } - - @override - void update(void Function(GetWebhookKeysResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetWebhookKeysResponse build() => _build(); - - _$GetWebhookKeysResponse _build() { - _$GetWebhookKeysResponse _$result; - try { - _$result = _$v ?? - new _$GetWebhookKeysResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetWebhookKeysResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetWebhookKeysResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetWebhookKeysResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_webhooks_response.g.dart b/lib/src/model/get_webhooks_response.g.dart deleted file mode 100644 index 7c1ed72..0000000 --- a/lib/src/model/get_webhooks_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_webhooks_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$GetWebhooksResponse extends GetWebhooksResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$GetWebhooksResponse( - [void Function(GetWebhooksResponseBuilder)? updates]) => - (new GetWebhooksResponseBuilder()..update(updates))._build(); - - _$GetWebhooksResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetWebhooksResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'GetWebhooksResponse', 'object'); - } - - @override - GetWebhooksResponse rebuild( - void Function(GetWebhooksResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GetWebhooksResponseBuilder toBuilder() => - new GetWebhooksResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GetWebhooksResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GetWebhooksResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class GetWebhooksResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$GetWebhooksResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - GetWebhooksResponseBuilder() { - GetWebhooksResponse._defaults(this); - } - - GetWebhooksResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant GetWebhooksResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GetWebhooksResponse; - } - - @override - void update(void Function(GetWebhooksResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GetWebhooksResponse build() => _build(); - - _$GetWebhooksResponse _build() { - _$GetWebhooksResponse _$result; - try { - _$result = _$v ?? - new _$GetWebhooksResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'GetWebhooksResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'GetWebhooksResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GetWebhooksResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/log_response.g.dart b/lib/src/model/log_response.g.dart deleted file mode 100644 index 3fd61fd..0000000 --- a/lib/src/model/log_response.g.dart +++ /dev/null @@ -1,360 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'log_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$LogResponse extends LogResponse { - @override - final int createdAt; - @override - final String id; - @override - final String? ipAddress; - @override - final bool livemode; - @override - final String? loggableId; - @override - final String? loggableType; - @override - final String? method; - @override - final String? oauthTokenId; - @override - final BuiltMap? queryString; - @override - final String? related; - @override - final JsonObject? requestBody; - @override - final BuiltMap? requestHeaders; - @override - final JsonObject? responseBody; - @override - final BuiltMap? responseHeaders; - @override - final BuiltList? searchableTags; - @override - final String? status; - @override - final String? updatedAt; - @override - final String? url; - @override - final String? userAccountId; - @override - final String? version; - - factory _$LogResponse([void Function(LogResponseBuilder)? updates]) => - (new LogResponseBuilder()..update(updates))._build(); - - _$LogResponse._( - {required this.createdAt, - required this.id, - this.ipAddress, - required this.livemode, - this.loggableId, - this.loggableType, - this.method, - this.oauthTokenId, - this.queryString, - this.related, - this.requestBody, - this.requestHeaders, - this.responseBody, - this.responseHeaders, - this.searchableTags, - this.status, - this.updatedAt, - this.url, - this.userAccountId, - this.version}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - createdAt, r'LogResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull(id, r'LogResponse', 'id'); - BuiltValueNullFieldError.checkNotNull(livemode, r'LogResponse', 'livemode'); - } - - @override - LogResponse rebuild(void Function(LogResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - LogResponseBuilder toBuilder() => new LogResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is LogResponse && - createdAt == other.createdAt && - id == other.id && - ipAddress == other.ipAddress && - livemode == other.livemode && - loggableId == other.loggableId && - loggableType == other.loggableType && - method == other.method && - oauthTokenId == other.oauthTokenId && - queryString == other.queryString && - related == other.related && - requestBody == other.requestBody && - requestHeaders == other.requestHeaders && - responseBody == other.responseBody && - responseHeaders == other.responseHeaders && - searchableTags == other.searchableTags && - status == other.status && - updatedAt == other.updatedAt && - url == other.url && - userAccountId == other.userAccountId && - version == other.version; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, ipAddress.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, loggableId.hashCode); - _$hash = $jc(_$hash, loggableType.hashCode); - _$hash = $jc(_$hash, method.hashCode); - _$hash = $jc(_$hash, oauthTokenId.hashCode); - _$hash = $jc(_$hash, queryString.hashCode); - _$hash = $jc(_$hash, related.hashCode); - _$hash = $jc(_$hash, requestBody.hashCode); - _$hash = $jc(_$hash, requestHeaders.hashCode); - _$hash = $jc(_$hash, responseBody.hashCode); - _$hash = $jc(_$hash, responseHeaders.hashCode); - _$hash = $jc(_$hash, searchableTags.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, updatedAt.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jc(_$hash, userAccountId.hashCode); - _$hash = $jc(_$hash, version.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'LogResponse') - ..add('createdAt', createdAt) - ..add('id', id) - ..add('ipAddress', ipAddress) - ..add('livemode', livemode) - ..add('loggableId', loggableId) - ..add('loggableType', loggableType) - ..add('method', method) - ..add('oauthTokenId', oauthTokenId) - ..add('queryString', queryString) - ..add('related', related) - ..add('requestBody', requestBody) - ..add('requestHeaders', requestHeaders) - ..add('responseBody', responseBody) - ..add('responseHeaders', responseHeaders) - ..add('searchableTags', searchableTags) - ..add('status', status) - ..add('updatedAt', updatedAt) - ..add('url', url) - ..add('userAccountId', userAccountId) - ..add('version', version)) - .toString(); - } -} - -class LogResponseBuilder implements Builder { - _$LogResponse? _$v; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _ipAddress; - String? get ipAddress => _$this._ipAddress; - set ipAddress(String? ipAddress) => _$this._ipAddress = ipAddress; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _loggableId; - String? get loggableId => _$this._loggableId; - set loggableId(String? loggableId) => _$this._loggableId = loggableId; - - String? _loggableType; - String? get loggableType => _$this._loggableType; - set loggableType(String? loggableType) => _$this._loggableType = loggableType; - - String? _method; - String? get method => _$this._method; - set method(String? method) => _$this._method = method; - - String? _oauthTokenId; - String? get oauthTokenId => _$this._oauthTokenId; - set oauthTokenId(String? oauthTokenId) => _$this._oauthTokenId = oauthTokenId; - - MapBuilder? _queryString; - MapBuilder get queryString => - _$this._queryString ??= new MapBuilder(); - set queryString(MapBuilder? queryString) => - _$this._queryString = queryString; - - String? _related; - String? get related => _$this._related; - set related(String? related) => _$this._related = related; - - JsonObject? _requestBody; - JsonObject? get requestBody => _$this._requestBody; - set requestBody(JsonObject? requestBody) => _$this._requestBody = requestBody; - - MapBuilder? _requestHeaders; - MapBuilder get requestHeaders => - _$this._requestHeaders ??= new MapBuilder(); - set requestHeaders(MapBuilder? requestHeaders) => - _$this._requestHeaders = requestHeaders; - - JsonObject? _responseBody; - JsonObject? get responseBody => _$this._responseBody; - set responseBody(JsonObject? responseBody) => - _$this._responseBody = responseBody; - - MapBuilder? _responseHeaders; - MapBuilder get responseHeaders => - _$this._responseHeaders ??= new MapBuilder(); - set responseHeaders(MapBuilder? responseHeaders) => - _$this._responseHeaders = responseHeaders; - - ListBuilder? _searchableTags; - ListBuilder get searchableTags => - _$this._searchableTags ??= new ListBuilder(); - set searchableTags(ListBuilder? searchableTags) => - _$this._searchableTags = searchableTags; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - String? _updatedAt; - String? get updatedAt => _$this._updatedAt; - set updatedAt(String? updatedAt) => _$this._updatedAt = updatedAt; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - String? _userAccountId; - String? get userAccountId => _$this._userAccountId; - set userAccountId(String? userAccountId) => - _$this._userAccountId = userAccountId; - - String? _version; - String? get version => _$this._version; - set version(String? version) => _$this._version = version; - - LogResponseBuilder() { - LogResponse._defaults(this); - } - - LogResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _createdAt = $v.createdAt; - _id = $v.id; - _ipAddress = $v.ipAddress; - _livemode = $v.livemode; - _loggableId = $v.loggableId; - _loggableType = $v.loggableType; - _method = $v.method; - _oauthTokenId = $v.oauthTokenId; - _queryString = $v.queryString?.toBuilder(); - _related = $v.related; - _requestBody = $v.requestBody; - _requestHeaders = $v.requestHeaders?.toBuilder(); - _responseBody = $v.responseBody; - _responseHeaders = $v.responseHeaders?.toBuilder(); - _searchableTags = $v.searchableTags?.toBuilder(); - _status = $v.status; - _updatedAt = $v.updatedAt; - _url = $v.url; - _userAccountId = $v.userAccountId; - _version = $v.version; - _$v = null; - } - return this; - } - - @override - void replace(LogResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$LogResponse; - } - - @override - void update(void Function(LogResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - LogResponse build() => _build(); - - _$LogResponse _build() { - _$LogResponse _$result; - try { - _$result = _$v ?? - new _$LogResponse._( - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'LogResponse', 'createdAt'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'LogResponse', 'id'), - ipAddress: ipAddress, - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'LogResponse', 'livemode'), - loggableId: loggableId, - loggableType: loggableType, - method: method, - oauthTokenId: oauthTokenId, - queryString: _queryString?.build(), - related: related, - requestBody: requestBody, - requestHeaders: _requestHeaders?.build(), - responseBody: responseBody, - responseHeaders: _responseHeaders?.build(), - searchableTags: _searchableTags?.build(), - status: status, - updatedAt: updatedAt, - url: url, - userAccountId: userAccountId, - version: version); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'queryString'; - _queryString?.build(); - - _$failedField = 'requestHeaders'; - _requestHeaders?.build(); - - _$failedField = 'responseHeaders'; - _responseHeaders?.build(); - _$failedField = 'searchableTags'; - _searchableTags?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'LogResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/logs_response.g.dart b/lib/src/model/logs_response.g.dart deleted file mode 100644 index 72dc16d..0000000 --- a/lib/src/model/logs_response.g.dart +++ /dev/null @@ -1,157 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'logs_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$LogsResponse extends LogsResponse { - @override - final bool? hasMore; - @override - final String? object; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final BuiltList? data; - - factory _$LogsResponse([void Function(LogsResponseBuilder)? updates]) => - (new LogsResponseBuilder()..update(updates))._build(); - - _$LogsResponse._( - {this.hasMore, - this.object, - this.nextPageUrl, - this.previousPageUrl, - this.data}) - : super._(); - - @override - LogsResponse rebuild(void Function(LogsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - LogsResponseBuilder toBuilder() => new LogsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is LogsResponse && - hasMore == other.hasMore && - object == other.object && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - data == other.data; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'LogsResponse') - ..add('hasMore', hasMore) - ..add('object', object) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('data', data)) - .toString(); - } -} - -class LogsResponseBuilder - implements Builder { - _$LogsResponse? _$v; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _nextPageUrl; - String? get nextPageUrl => _$this._nextPageUrl; - set nextPageUrl(String? nextPageUrl) => _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(ListBuilder? data) => _$this._data = data; - - LogsResponseBuilder() { - LogsResponse._defaults(this); - } - - LogsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _hasMore = $v.hasMore; - _object = $v.object; - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _data = $v.data?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(LogsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$LogsResponse; - } - - @override - void update(void Function(LogsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - LogsResponse build() => _build(); - - _$LogsResponse _build() { - _$LogsResponse _$result; - try { - _$result = _$v ?? - new _$LogsResponse._( - hasMore: hasMore, - object: object, - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - data: _data?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'LogsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/logs_response_data.g.dart b/lib/src/model/logs_response_data.g.dart deleted file mode 100644 index 751d1c1..0000000 --- a/lib/src/model/logs_response_data.g.dart +++ /dev/null @@ -1,355 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'logs_response_data.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$LogsResponseData extends LogsResponseData { - @override - final int? createdAt; - @override - final String? id; - @override - final String? ipAddress; - @override - final bool? livemode; - @override - final String? loggableId; - @override - final String? loggableType; - @override - final String? method; - @override - final String? oauthTokenId; - @override - final BuiltMap? queryString; - @override - final String? related; - @override - final JsonObject? requestBody; - @override - final BuiltMap? requestHeaders; - @override - final JsonObject? responseBody; - @override - final BuiltMap? responseHeaders; - @override - final BuiltList? searchableTags; - @override - final String? status; - @override - final String? updatedAt; - @override - final String? url; - @override - final String? userAccountId; - @override - final String? version; - - factory _$LogsResponseData( - [void Function(LogsResponseDataBuilder)? updates]) => - (new LogsResponseDataBuilder()..update(updates))._build(); - - _$LogsResponseData._( - {this.createdAt, - this.id, - this.ipAddress, - this.livemode, - this.loggableId, - this.loggableType, - this.method, - this.oauthTokenId, - this.queryString, - this.related, - this.requestBody, - this.requestHeaders, - this.responseBody, - this.responseHeaders, - this.searchableTags, - this.status, - this.updatedAt, - this.url, - this.userAccountId, - this.version}) - : super._(); - - @override - LogsResponseData rebuild(void Function(LogsResponseDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - LogsResponseDataBuilder toBuilder() => - new LogsResponseDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is LogsResponseData && - createdAt == other.createdAt && - id == other.id && - ipAddress == other.ipAddress && - livemode == other.livemode && - loggableId == other.loggableId && - loggableType == other.loggableType && - method == other.method && - oauthTokenId == other.oauthTokenId && - queryString == other.queryString && - related == other.related && - requestBody == other.requestBody && - requestHeaders == other.requestHeaders && - responseBody == other.responseBody && - responseHeaders == other.responseHeaders && - searchableTags == other.searchableTags && - status == other.status && - updatedAt == other.updatedAt && - url == other.url && - userAccountId == other.userAccountId && - version == other.version; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, ipAddress.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, loggableId.hashCode); - _$hash = $jc(_$hash, loggableType.hashCode); - _$hash = $jc(_$hash, method.hashCode); - _$hash = $jc(_$hash, oauthTokenId.hashCode); - _$hash = $jc(_$hash, queryString.hashCode); - _$hash = $jc(_$hash, related.hashCode); - _$hash = $jc(_$hash, requestBody.hashCode); - _$hash = $jc(_$hash, requestHeaders.hashCode); - _$hash = $jc(_$hash, responseBody.hashCode); - _$hash = $jc(_$hash, responseHeaders.hashCode); - _$hash = $jc(_$hash, searchableTags.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, updatedAt.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jc(_$hash, userAccountId.hashCode); - _$hash = $jc(_$hash, version.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'LogsResponseData') - ..add('createdAt', createdAt) - ..add('id', id) - ..add('ipAddress', ipAddress) - ..add('livemode', livemode) - ..add('loggableId', loggableId) - ..add('loggableType', loggableType) - ..add('method', method) - ..add('oauthTokenId', oauthTokenId) - ..add('queryString', queryString) - ..add('related', related) - ..add('requestBody', requestBody) - ..add('requestHeaders', requestHeaders) - ..add('responseBody', responseBody) - ..add('responseHeaders', responseHeaders) - ..add('searchableTags', searchableTags) - ..add('status', status) - ..add('updatedAt', updatedAt) - ..add('url', url) - ..add('userAccountId', userAccountId) - ..add('version', version)) - .toString(); - } -} - -class LogsResponseDataBuilder - implements Builder { - _$LogsResponseData? _$v; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _ipAddress; - String? get ipAddress => _$this._ipAddress; - set ipAddress(String? ipAddress) => _$this._ipAddress = ipAddress; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _loggableId; - String? get loggableId => _$this._loggableId; - set loggableId(String? loggableId) => _$this._loggableId = loggableId; - - String? _loggableType; - String? get loggableType => _$this._loggableType; - set loggableType(String? loggableType) => _$this._loggableType = loggableType; - - String? _method; - String? get method => _$this._method; - set method(String? method) => _$this._method = method; - - String? _oauthTokenId; - String? get oauthTokenId => _$this._oauthTokenId; - set oauthTokenId(String? oauthTokenId) => _$this._oauthTokenId = oauthTokenId; - - MapBuilder? _queryString; - MapBuilder get queryString => - _$this._queryString ??= new MapBuilder(); - set queryString(MapBuilder? queryString) => - _$this._queryString = queryString; - - String? _related; - String? get related => _$this._related; - set related(String? related) => _$this._related = related; - - JsonObject? _requestBody; - JsonObject? get requestBody => _$this._requestBody; - set requestBody(JsonObject? requestBody) => _$this._requestBody = requestBody; - - MapBuilder? _requestHeaders; - MapBuilder get requestHeaders => - _$this._requestHeaders ??= new MapBuilder(); - set requestHeaders(MapBuilder? requestHeaders) => - _$this._requestHeaders = requestHeaders; - - JsonObject? _responseBody; - JsonObject? get responseBody => _$this._responseBody; - set responseBody(JsonObject? responseBody) => - _$this._responseBody = responseBody; - - MapBuilder? _responseHeaders; - MapBuilder get responseHeaders => - _$this._responseHeaders ??= new MapBuilder(); - set responseHeaders(MapBuilder? responseHeaders) => - _$this._responseHeaders = responseHeaders; - - ListBuilder? _searchableTags; - ListBuilder get searchableTags => - _$this._searchableTags ??= new ListBuilder(); - set searchableTags(ListBuilder? searchableTags) => - _$this._searchableTags = searchableTags; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - String? _updatedAt; - String? get updatedAt => _$this._updatedAt; - set updatedAt(String? updatedAt) => _$this._updatedAt = updatedAt; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - String? _userAccountId; - String? get userAccountId => _$this._userAccountId; - set userAccountId(String? userAccountId) => - _$this._userAccountId = userAccountId; - - String? _version; - String? get version => _$this._version; - set version(String? version) => _$this._version = version; - - LogsResponseDataBuilder() { - LogsResponseData._defaults(this); - } - - LogsResponseDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _createdAt = $v.createdAt; - _id = $v.id; - _ipAddress = $v.ipAddress; - _livemode = $v.livemode; - _loggableId = $v.loggableId; - _loggableType = $v.loggableType; - _method = $v.method; - _oauthTokenId = $v.oauthTokenId; - _queryString = $v.queryString?.toBuilder(); - _related = $v.related; - _requestBody = $v.requestBody; - _requestHeaders = $v.requestHeaders?.toBuilder(); - _responseBody = $v.responseBody; - _responseHeaders = $v.responseHeaders?.toBuilder(); - _searchableTags = $v.searchableTags?.toBuilder(); - _status = $v.status; - _updatedAt = $v.updatedAt; - _url = $v.url; - _userAccountId = $v.userAccountId; - _version = $v.version; - _$v = null; - } - return this; - } - - @override - void replace(LogsResponseData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$LogsResponseData; - } - - @override - void update(void Function(LogsResponseDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - LogsResponseData build() => _build(); - - _$LogsResponseData _build() { - _$LogsResponseData _$result; - try { - _$result = _$v ?? - new _$LogsResponseData._( - createdAt: createdAt, - id: id, - ipAddress: ipAddress, - livemode: livemode, - loggableId: loggableId, - loggableType: loggableType, - method: method, - oauthTokenId: oauthTokenId, - queryString: _queryString?.build(), - related: related, - requestBody: requestBody, - requestHeaders: _requestHeaders?.build(), - responseBody: responseBody, - responseHeaders: _responseHeaders?.build(), - searchableTags: _searchableTags?.build(), - status: status, - updatedAt: updatedAt, - url: url, - userAccountId: userAccountId, - version: version); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'queryString'; - _queryString?.build(); - - _$failedField = 'requestHeaders'; - _requestHeaders?.build(); - - _$failedField = 'responseHeaders'; - _responseHeaders?.build(); - _$failedField = 'searchableTags'; - _searchableTags?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'LogsResponseData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_capture_request.g.dart b/lib/src/model/order_capture_request.g.dart deleted file mode 100644 index aa24019..0000000 --- a/lib/src/model/order_capture_request.g.dart +++ /dev/null @@ -1,98 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_capture_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderCaptureRequest extends OrderCaptureRequest { - @override - final int amount; - - factory _$OrderCaptureRequest( - [void Function(OrderCaptureRequestBuilder)? updates]) => - (new OrderCaptureRequestBuilder()..update(updates))._build(); - - _$OrderCaptureRequest._({required this.amount}) : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'OrderCaptureRequest', 'amount'); - } - - @override - OrderCaptureRequest rebuild( - void Function(OrderCaptureRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderCaptureRequestBuilder toBuilder() => - new OrderCaptureRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderCaptureRequest && amount == other.amount; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderCaptureRequest') - ..add('amount', amount)) - .toString(); - } -} - -class OrderCaptureRequestBuilder - implements Builder { - _$OrderCaptureRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - OrderCaptureRequestBuilder() { - OrderCaptureRequest._defaults(this); - } - - OrderCaptureRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _$v = null; - } - return this; - } - - @override - void replace(OrderCaptureRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderCaptureRequest; - } - - @override - void update(void Function(OrderCaptureRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderCaptureRequest build() => _build(); - - _$OrderCaptureRequest _build() { - final _$result = _$v ?? - new _$OrderCaptureRequest._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'OrderCaptureRequest', 'amount')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_customer_info_response.g.dart b/lib/src/model/order_customer_info_response.g.dart deleted file mode 100644 index f93377b..0000000 --- a/lib/src/model/order_customer_info_response.g.dart +++ /dev/null @@ -1,182 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_customer_info_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderCustomerInfoResponseBuilder { - void replace(OrderCustomerInfoResponse other); - void update(void Function(OrderCustomerInfoResponseBuilder) updates); - String? get customerCustomReference; - set customerCustomReference(String? customerCustomReference); - - String? get name; - set name(String? name); - - String? get email; - set email(String? email); - - String? get phone; - set phone(String? phone); - - bool? get corporate; - set corporate(bool? corporate); - - String? get object; - set object(String? object); -} - -class _$$OrderCustomerInfoResponse extends $OrderCustomerInfoResponse { - @override - final String? customerCustomReference; - @override - final String? name; - @override - final String? email; - @override - final String? phone; - @override - final bool? corporate; - @override - final String? object; - - factory _$$OrderCustomerInfoResponse( - [void Function($OrderCustomerInfoResponseBuilder)? updates]) => - (new $OrderCustomerInfoResponseBuilder()..update(updates))._build(); - - _$$OrderCustomerInfoResponse._( - {this.customerCustomReference, - this.name, - this.email, - this.phone, - this.corporate, - this.object}) - : super._(); - - @override - $OrderCustomerInfoResponse rebuild( - void Function($OrderCustomerInfoResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderCustomerInfoResponseBuilder toBuilder() => - new $OrderCustomerInfoResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderCustomerInfoResponse && - customerCustomReference == other.customerCustomReference && - name == other.name && - email == other.email && - phone == other.phone && - corporate == other.corporate && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, customerCustomReference.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderCustomerInfoResponse') - ..add('customerCustomReference', customerCustomReference) - ..add('name', name) - ..add('email', email) - ..add('phone', phone) - ..add('corporate', corporate) - ..add('object', object)) - .toString(); - } -} - -class $OrderCustomerInfoResponseBuilder - implements - Builder<$OrderCustomerInfoResponse, $OrderCustomerInfoResponseBuilder>, - OrderCustomerInfoResponseBuilder { - _$$OrderCustomerInfoResponse? _$v; - - String? _customerCustomReference; - String? get customerCustomReference => _$this._customerCustomReference; - set customerCustomReference(covariant String? customerCustomReference) => - _$this._customerCustomReference = customerCustomReference; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(covariant bool? corporate) => _$this._corporate = corporate; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - $OrderCustomerInfoResponseBuilder() { - $OrderCustomerInfoResponse._defaults(this); - } - - $OrderCustomerInfoResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _customerCustomReference = $v.customerCustomReference; - _name = $v.name; - _email = $v.email; - _phone = $v.phone; - _corporate = $v.corporate; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderCustomerInfoResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderCustomerInfoResponse; - } - - @override - void update(void Function($OrderCustomerInfoResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderCustomerInfoResponse build() => _build(); - - _$$OrderCustomerInfoResponse _build() { - final _$result = _$v ?? - new _$$OrderCustomerInfoResponse._( - customerCustomReference: customerCustomReference, - name: name, - email: email, - phone: phone, - corporate: corporate, - object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_discount_lines_request.g.dart b/lib/src/model/order_discount_lines_request.g.dart deleted file mode 100644 index 1ff2e46..0000000 --- a/lib/src/model/order_discount_lines_request.g.dart +++ /dev/null @@ -1,144 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_discount_lines_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderDiscountLinesRequestBuilder { - void replace(OrderDiscountLinesRequest other); - void update(void Function(OrderDiscountLinesRequestBuilder) updates); - int? get amount; - set amount(int? amount); - - String? get code; - set code(String? code); - - String? get type; - set type(String? type); -} - -class _$$OrderDiscountLinesRequest extends $OrderDiscountLinesRequest { - @override - final int amount; - @override - final String code; - @override - final String type; - - factory _$$OrderDiscountLinesRequest( - [void Function($OrderDiscountLinesRequestBuilder)? updates]) => - (new $OrderDiscountLinesRequestBuilder()..update(updates))._build(); - - _$$OrderDiscountLinesRequest._( - {required this.amount, required this.code, required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'$OrderDiscountLinesRequest', 'amount'); - BuiltValueNullFieldError.checkNotNull( - code, r'$OrderDiscountLinesRequest', 'code'); - BuiltValueNullFieldError.checkNotNull( - type, r'$OrderDiscountLinesRequest', 'type'); - } - - @override - $OrderDiscountLinesRequest rebuild( - void Function($OrderDiscountLinesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderDiscountLinesRequestBuilder toBuilder() => - new $OrderDiscountLinesRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderDiscountLinesRequest && - amount == other.amount && - code == other.code && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, code.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderDiscountLinesRequest') - ..add('amount', amount) - ..add('code', code) - ..add('type', type)) - .toString(); - } -} - -class $OrderDiscountLinesRequestBuilder - implements - Builder<$OrderDiscountLinesRequest, $OrderDiscountLinesRequestBuilder>, - OrderDiscountLinesRequestBuilder { - _$$OrderDiscountLinesRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(covariant int? amount) => _$this._amount = amount; - - String? _code; - String? get code => _$this._code; - set code(covariant String? code) => _$this._code = code; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - $OrderDiscountLinesRequestBuilder() { - $OrderDiscountLinesRequest._defaults(this); - } - - $OrderDiscountLinesRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _code = $v.code; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderDiscountLinesRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderDiscountLinesRequest; - } - - @override - void update(void Function($OrderDiscountLinesRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderDiscountLinesRequest build() => _build(); - - _$$OrderDiscountLinesRequest _build() { - final _$result = _$v ?? - new _$$OrderDiscountLinesRequest._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'$OrderDiscountLinesRequest', 'amount'), - code: BuiltValueNullFieldError.checkNotNull( - code, r'$OrderDiscountLinesRequest', 'code'), - type: BuiltValueNullFieldError.checkNotNull( - type, r'$OrderDiscountLinesRequest', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_fiscal_entity_address_response.g.dart b/lib/src/model/order_fiscal_entity_address_response.g.dart deleted file mode 100644 index 7a8020b..0000000 --- a/lib/src/model/order_fiscal_entity_address_response.g.dart +++ /dev/null @@ -1,205 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_fiscal_entity_address_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderFiscalEntityAddressResponse - extends OrderFiscalEntityAddressResponse { - @override - final String? object; - @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 String externalNumber; - - factory _$OrderFiscalEntityAddressResponse( - [void Function(OrderFiscalEntityAddressResponseBuilder)? updates]) => - (new OrderFiscalEntityAddressResponseBuilder()..update(updates))._build(); - - _$OrderFiscalEntityAddressResponse._( - {this.object, - required this.street1, - this.street2, - required this.postalCode, - required this.city, - this.state, - required this.country, - required this.externalNumber}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - street1, r'OrderFiscalEntityAddressResponse', 'street1'); - BuiltValueNullFieldError.checkNotNull( - postalCode, r'OrderFiscalEntityAddressResponse', 'postalCode'); - BuiltValueNullFieldError.checkNotNull( - city, r'OrderFiscalEntityAddressResponse', 'city'); - BuiltValueNullFieldError.checkNotNull( - country, r'OrderFiscalEntityAddressResponse', 'country'); - BuiltValueNullFieldError.checkNotNull( - externalNumber, r'OrderFiscalEntityAddressResponse', 'externalNumber'); - } - - @override - OrderFiscalEntityAddressResponse rebuild( - void Function(OrderFiscalEntityAddressResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderFiscalEntityAddressResponseBuilder toBuilder() => - new OrderFiscalEntityAddressResponseBuilder()..replace(this); - - @override - 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; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, street1.hashCode); - _$hash = $jc(_$hash, street2.hashCode); - _$hash = $jc(_$hash, postalCode.hashCode); - _$hash = $jc(_$hash, city.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, externalNumber.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @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)) - .toString(); - } -} - -class OrderFiscalEntityAddressResponseBuilder - implements - Builder, - 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; - - 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; - - String? _externalNumber; - String? get externalNumber => _$this._externalNumber; - set externalNumber(covariant String? externalNumber) => - _$this._externalNumber = externalNumber; - - OrderFiscalEntityAddressResponseBuilder() { - OrderFiscalEntityAddressResponse._defaults(this); - } - - OrderFiscalEntityAddressResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _object = $v.object; - _street1 = $v.street1; - _street2 = $v.street2; - _postalCode = $v.postalCode; - _city = $v.city; - _state = $v.state; - _country = $v.country; - _externalNumber = $v.externalNumber; - _$v = null; - } - return this; - } - - @override - void replace(covariant OrderFiscalEntityAddressResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderFiscalEntityAddressResponse; - } - - @override - void update(void Function(OrderFiscalEntityAddressResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderFiscalEntityAddressResponse build() => _build(); - - _$OrderFiscalEntityAddressResponse _build() { - final _$result = _$v ?? - new _$OrderFiscalEntityAddressResponse._( - object: object, - street1: BuiltValueNullFieldError.checkNotNull( - street1, r'OrderFiscalEntityAddressResponse', 'street1'), - street2: street2, - postalCode: BuiltValueNullFieldError.checkNotNull( - postalCode, r'OrderFiscalEntityAddressResponse', 'postalCode'), - city: BuiltValueNullFieldError.checkNotNull( - city, r'OrderFiscalEntityAddressResponse', 'city'), - state: state, - country: BuiltValueNullFieldError.checkNotNull( - country, r'OrderFiscalEntityAddressResponse', 'country'), - externalNumber: BuiltValueNullFieldError.checkNotNull( - externalNumber, - r'OrderFiscalEntityAddressResponse', - 'externalNumber')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_fiscal_entity_request.g.dart b/lib/src/model/order_fiscal_entity_request.g.dart deleted file mode 100644 index 6353224..0000000 --- a/lib/src/model/order_fiscal_entity_request.g.dart +++ /dev/null @@ -1,177 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_fiscal_entity_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderFiscalEntityRequest extends OrderFiscalEntityRequest { - @override - final FiscalEntityAddress address; - @override - final String? email; - @override - final BuiltMap? metadata; - @override - final String? name; - @override - final String? phone; - @override - final String? taxId; - - factory _$OrderFiscalEntityRequest( - [void Function(OrderFiscalEntityRequestBuilder)? updates]) => - (new OrderFiscalEntityRequestBuilder()..update(updates))._build(); - - _$OrderFiscalEntityRequest._( - {required this.address, - this.email, - this.metadata, - this.name, - this.phone, - this.taxId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - address, r'OrderFiscalEntityRequest', 'address'); - } - - @override - OrderFiscalEntityRequest rebuild( - void Function(OrderFiscalEntityRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderFiscalEntityRequestBuilder toBuilder() => - new OrderFiscalEntityRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderFiscalEntityRequest && - address == other.address && - email == other.email && - metadata == other.metadata && - name == other.name && - phone == other.phone && - taxId == other.taxId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderFiscalEntityRequest') - ..add('address', address) - ..add('email', email) - ..add('metadata', metadata) - ..add('name', name) - ..add('phone', phone) - ..add('taxId', taxId)) - .toString(); - } -} - -class OrderFiscalEntityRequestBuilder - implements - Builder { - _$OrderFiscalEntityRequest? _$v; - - FiscalEntityAddress? _address; - FiscalEntityAddress? get address => _$this._address; - set address(FiscalEntityAddress? address) => _$this._address = address; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - String? _taxId; - String? get taxId => _$this._taxId; - set taxId(String? taxId) => _$this._taxId = taxId; - - OrderFiscalEntityRequestBuilder() { - OrderFiscalEntityRequest._defaults(this); - } - - OrderFiscalEntityRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _address = $v.address; - _email = $v.email; - _metadata = $v.metadata?.toBuilder(); - _name = $v.name; - _phone = $v.phone; - _taxId = $v.taxId; - _$v = null; - } - return this; - } - - @override - void replace(OrderFiscalEntityRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderFiscalEntityRequest; - } - - @override - void update(void Function(OrderFiscalEntityRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderFiscalEntityRequest build() => _build(); - - _$OrderFiscalEntityRequest _build() { - _$OrderFiscalEntityRequest _$result; - try { - _$result = _$v ?? - new _$OrderFiscalEntityRequest._( - address: BuiltValueNullFieldError.checkNotNull( - address, r'OrderFiscalEntityRequest', 'address'), - email: email, - metadata: _metadata?.build(), - name: name, - phone: phone, - taxId: taxId); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderFiscalEntityRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_fiscal_entity_response.g.dart b/lib/src/model/order_fiscal_entity_response.g.dart deleted file mode 100644 index afbd435..0000000 --- a/lib/src/model/order_fiscal_entity_response.g.dart +++ /dev/null @@ -1,226 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_fiscal_entity_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderFiscalEntityResponse extends OrderFiscalEntityResponse { - @override - final OrderFiscalEntityAddressResponse address; - @override - final String? email; - @override - final BuiltMap? metadata; - @override - final String? name; - @override - final String? taxId; - @override - final String id; - @override - final int createdAt; - @override - final String object; - @override - final String? phone; - - factory _$OrderFiscalEntityResponse( - [void Function(OrderFiscalEntityResponseBuilder)? updates]) => - (new OrderFiscalEntityResponseBuilder()..update(updates))._build(); - - _$OrderFiscalEntityResponse._( - {required this.address, - this.email, - this.metadata, - this.name, - this.taxId, - required this.id, - required this.createdAt, - required this.object, - this.phone}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - address, r'OrderFiscalEntityResponse', 'address'); - BuiltValueNullFieldError.checkNotNull( - id, r'OrderFiscalEntityResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'OrderFiscalEntityResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - object, r'OrderFiscalEntityResponse', 'object'); - } - - @override - OrderFiscalEntityResponse rebuild( - void Function(OrderFiscalEntityResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderFiscalEntityResponseBuilder toBuilder() => - new OrderFiscalEntityResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderFiscalEntityResponse && - address == other.address && - email == other.email && - metadata == other.metadata && - name == other.name && - taxId == other.taxId && - id == other.id && - createdAt == other.createdAt && - object == other.object && - phone == other.phone; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderFiscalEntityResponse') - ..add('address', address) - ..add('email', email) - ..add('metadata', metadata) - ..add('name', name) - ..add('taxId', taxId) - ..add('id', id) - ..add('createdAt', createdAt) - ..add('object', object) - ..add('phone', phone)) - .toString(); - } -} - -class OrderFiscalEntityResponseBuilder - implements - Builder { - _$OrderFiscalEntityResponse? _$v; - - OrderFiscalEntityAddressResponseBuilder? _address; - OrderFiscalEntityAddressResponseBuilder get address => - _$this._address ??= new OrderFiscalEntityAddressResponseBuilder(); - set address(OrderFiscalEntityAddressResponseBuilder? address) => - _$this._address = address; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _taxId; - String? get taxId => _$this._taxId; - set taxId(String? taxId) => _$this._taxId = taxId; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - OrderFiscalEntityResponseBuilder() { - OrderFiscalEntityResponse._defaults(this); - } - - OrderFiscalEntityResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _address = $v.address.toBuilder(); - _email = $v.email; - _metadata = $v.metadata?.toBuilder(); - _name = $v.name; - _taxId = $v.taxId; - _id = $v.id; - _createdAt = $v.createdAt; - _object = $v.object; - _phone = $v.phone; - _$v = null; - } - return this; - } - - @override - void replace(OrderFiscalEntityResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderFiscalEntityResponse; - } - - @override - void update(void Function(OrderFiscalEntityResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderFiscalEntityResponse build() => _build(); - - _$OrderFiscalEntityResponse _build() { - _$OrderFiscalEntityResponse _$result; - try { - _$result = _$v ?? - new _$OrderFiscalEntityResponse._( - address: address.build(), - email: email, - metadata: _metadata?.build(), - name: name, - taxId: taxId, - id: BuiltValueNullFieldError.checkNotNull( - id, r'OrderFiscalEntityResponse', 'id'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'OrderFiscalEntityResponse', 'createdAt'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'OrderFiscalEntityResponse', 'object'), - phone: phone); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderFiscalEntityResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_next_action_response.g.dart b/lib/src/model/order_next_action_response.g.dart deleted file mode 100644 index 1c43be4..0000000 --- a/lib/src/model/order_next_action_response.g.dart +++ /dev/null @@ -1,123 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_next_action_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderNextActionResponse extends OrderNextActionResponse { - @override - final OrderNextActionResponseRedirectToUrl? redirectToUrl; - @override - final String? type; - - factory _$OrderNextActionResponse( - [void Function(OrderNextActionResponseBuilder)? updates]) => - (new OrderNextActionResponseBuilder()..update(updates))._build(); - - _$OrderNextActionResponse._({this.redirectToUrl, this.type}) : super._(); - - @override - OrderNextActionResponse rebuild( - void Function(OrderNextActionResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderNextActionResponseBuilder toBuilder() => - new OrderNextActionResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderNextActionResponse && - redirectToUrl == other.redirectToUrl && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, redirectToUrl.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderNextActionResponse') - ..add('redirectToUrl', redirectToUrl) - ..add('type', type)) - .toString(); - } -} - -class OrderNextActionResponseBuilder - implements - Builder { - _$OrderNextActionResponse? _$v; - - OrderNextActionResponseRedirectToUrlBuilder? _redirectToUrl; - OrderNextActionResponseRedirectToUrlBuilder get redirectToUrl => - _$this._redirectToUrl ??= - new OrderNextActionResponseRedirectToUrlBuilder(); - set redirectToUrl( - OrderNextActionResponseRedirectToUrlBuilder? redirectToUrl) => - _$this._redirectToUrl = redirectToUrl; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - OrderNextActionResponseBuilder() { - OrderNextActionResponse._defaults(this); - } - - OrderNextActionResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _redirectToUrl = $v.redirectToUrl?.toBuilder(); - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(OrderNextActionResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderNextActionResponse; - } - - @override - void update(void Function(OrderNextActionResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderNextActionResponse build() => _build(); - - _$OrderNextActionResponse _build() { - _$OrderNextActionResponse _$result; - try { - _$result = _$v ?? - new _$OrderNextActionResponse._( - redirectToUrl: _redirectToUrl?.build(), type: type); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'redirectToUrl'; - _redirectToUrl?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderNextActionResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_next_action_response_redirect_to_url.g.dart b/lib/src/model/order_next_action_response_redirect_to_url.g.dart deleted file mode 100644 index 080555a..0000000 --- a/lib/src/model/order_next_action_response_redirect_to_url.g.dart +++ /dev/null @@ -1,112 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_next_action_response_redirect_to_url.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderNextActionResponseRedirectToUrl - extends OrderNextActionResponseRedirectToUrl { - @override - final String? url; - @override - final String? returnUrl; - - factory _$OrderNextActionResponseRedirectToUrl( - [void Function(OrderNextActionResponseRedirectToUrlBuilder)? - updates]) => - (new OrderNextActionResponseRedirectToUrlBuilder()..update(updates)) - ._build(); - - _$OrderNextActionResponseRedirectToUrl._({this.url, this.returnUrl}) - : super._(); - - @override - OrderNextActionResponseRedirectToUrl rebuild( - void Function(OrderNextActionResponseRedirectToUrlBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderNextActionResponseRedirectToUrlBuilder toBuilder() => - new OrderNextActionResponseRedirectToUrlBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderNextActionResponseRedirectToUrl && - url == other.url && - returnUrl == other.returnUrl; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jc(_$hash, returnUrl.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderNextActionResponseRedirectToUrl') - ..add('url', url) - ..add('returnUrl', returnUrl)) - .toString(); - } -} - -class OrderNextActionResponseRedirectToUrlBuilder - implements - Builder { - _$OrderNextActionResponseRedirectToUrl? _$v; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - String? _returnUrl; - String? get returnUrl => _$this._returnUrl; - set returnUrl(String? returnUrl) => _$this._returnUrl = returnUrl; - - OrderNextActionResponseRedirectToUrlBuilder() { - OrderNextActionResponseRedirectToUrl._defaults(this); - } - - OrderNextActionResponseRedirectToUrlBuilder get _$this { - final $v = _$v; - if ($v != null) { - _url = $v.url; - _returnUrl = $v.returnUrl; - _$v = null; - } - return this; - } - - @override - void replace(OrderNextActionResponseRedirectToUrl other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderNextActionResponseRedirectToUrl; - } - - @override - void update( - void Function(OrderNextActionResponseRedirectToUrlBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderNextActionResponseRedirectToUrl build() => _build(); - - _$OrderNextActionResponseRedirectToUrl _build() { - final _$result = _$v ?? - new _$OrderNextActionResponseRedirectToUrl._( - url: url, returnUrl: returnUrl); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_refund_request.dart b/lib/src/model/order_refund_request.dart index 05a3658..acd2fcb 100644 --- a/lib/src/model/order_refund_request.dart +++ b/lib/src/model/order_refund_request.dart @@ -59,7 +59,7 @@ class _$OrderRefundRequestSerializer implements PrimitiveSerializer - (new OrderRefundRequestBuilder()..update(updates))._build(); - - _$OrderRefundRequest._( - {required this.amount, this.expiresAt, required this.reason}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'OrderRefundRequest', 'amount'); - BuiltValueNullFieldError.checkNotNull( - reason, r'OrderRefundRequest', 'reason'); - } - - @override - OrderRefundRequest rebuild( - void Function(OrderRefundRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderRefundRequestBuilder toBuilder() => - new OrderRefundRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderRefundRequest && - amount == other.amount && - expiresAt == other.expiresAt && - reason == other.reason; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, reason.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderRefundRequest') - ..add('amount', amount) - ..add('expiresAt', expiresAt) - ..add('reason', reason)) - .toString(); - } -} - -class OrderRefundRequestBuilder - implements Builder { - _$OrderRefundRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _reason; - String? get reason => _$this._reason; - set reason(String? reason) => _$this._reason = reason; - - OrderRefundRequestBuilder() { - OrderRefundRequest._defaults(this); - } - - OrderRefundRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _expiresAt = $v.expiresAt; - _reason = $v.reason; - _$v = null; - } - return this; - } - - @override - void replace(OrderRefundRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderRefundRequest; - } - - @override - void update(void Function(OrderRefundRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderRefundRequest build() => _build(); - - _$OrderRefundRequest _build() { - final _$result = _$v ?? - new _$OrderRefundRequest._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'OrderRefundRequest', 'amount'), - expiresAt: expiresAt, - reason: BuiltValueNullFieldError.checkNotNull( - reason, r'OrderRefundRequest', 'reason')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_request.g.dart b/lib/src/model/order_request.g.dart deleted file mode 100644 index 971cc13..0000000 --- a/lib/src/model/order_request.g.dart +++ /dev/null @@ -1,332 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderRequest extends OrderRequest { - @override - final BuiltList? charges; - @override - final CheckoutRequest? checkout; - @override - final String currency; - @override - final OrderRequestCustomerInfo customerInfo; - @override - final BuiltList? discountLines; - @override - final OrderFiscalEntityRequest? fiscalEntity; - @override - final BuiltList lineItems; - @override - final BuiltMap? metadata; - @override - final bool? needsShippingContact; - @override - final bool? preAuthorize; - @override - final String? processingMode; - @override - final String? returnUrl; - @override - final CustomerShippingContacts? shippingContact; - @override - final BuiltList? shippingLines; - @override - final BuiltList? taxLines; - @override - final String? threeDsMode; - - factory _$OrderRequest([void Function(OrderRequestBuilder)? updates]) => - (new OrderRequestBuilder()..update(updates))._build(); - - _$OrderRequest._( - {this.charges, - this.checkout, - required this.currency, - required this.customerInfo, - this.discountLines, - this.fiscalEntity, - required this.lineItems, - this.metadata, - this.needsShippingContact, - this.preAuthorize, - this.processingMode, - this.returnUrl, - this.shippingContact, - this.shippingLines, - this.taxLines, - this.threeDsMode}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - currency, r'OrderRequest', 'currency'); - BuiltValueNullFieldError.checkNotNull( - customerInfo, r'OrderRequest', 'customerInfo'); - BuiltValueNullFieldError.checkNotNull( - lineItems, r'OrderRequest', 'lineItems'); - } - - @override - OrderRequest rebuild(void Function(OrderRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderRequestBuilder toBuilder() => new OrderRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderRequest && - charges == other.charges && - checkout == other.checkout && - currency == other.currency && - customerInfo == other.customerInfo && - discountLines == other.discountLines && - fiscalEntity == other.fiscalEntity && - lineItems == other.lineItems && - metadata == other.metadata && - needsShippingContact == other.needsShippingContact && - preAuthorize == other.preAuthorize && - processingMode == other.processingMode && - returnUrl == other.returnUrl && - shippingContact == other.shippingContact && - shippingLines == other.shippingLines && - taxLines == other.taxLines && - threeDsMode == other.threeDsMode; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, charges.hashCode); - _$hash = $jc(_$hash, checkout.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerInfo.hashCode); - _$hash = $jc(_$hash, discountLines.hashCode); - _$hash = $jc(_$hash, fiscalEntity.hashCode); - _$hash = $jc(_$hash, lineItems.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, needsShippingContact.hashCode); - _$hash = $jc(_$hash, preAuthorize.hashCode); - _$hash = $jc(_$hash, processingMode.hashCode); - _$hash = $jc(_$hash, returnUrl.hashCode); - _$hash = $jc(_$hash, shippingContact.hashCode); - _$hash = $jc(_$hash, shippingLines.hashCode); - _$hash = $jc(_$hash, taxLines.hashCode); - _$hash = $jc(_$hash, threeDsMode.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderRequest') - ..add('charges', charges) - ..add('checkout', checkout) - ..add('currency', currency) - ..add('customerInfo', customerInfo) - ..add('discountLines', discountLines) - ..add('fiscalEntity', fiscalEntity) - ..add('lineItems', lineItems) - ..add('metadata', metadata) - ..add('needsShippingContact', needsShippingContact) - ..add('preAuthorize', preAuthorize) - ..add('processingMode', processingMode) - ..add('returnUrl', returnUrl) - ..add('shippingContact', shippingContact) - ..add('shippingLines', shippingLines) - ..add('taxLines', taxLines) - ..add('threeDsMode', threeDsMode)) - .toString(); - } -} - -class OrderRequestBuilder - implements Builder { - _$OrderRequest? _$v; - - ListBuilder? _charges; - ListBuilder get charges => - _$this._charges ??= new ListBuilder(); - set charges(ListBuilder? charges) => _$this._charges = charges; - - CheckoutRequestBuilder? _checkout; - CheckoutRequestBuilder get checkout => - _$this._checkout ??= new CheckoutRequestBuilder(); - set checkout(CheckoutRequestBuilder? checkout) => _$this._checkout = checkout; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - OrderRequestCustomerInfoBuilder? _customerInfo; - OrderRequestCustomerInfoBuilder get customerInfo => - _$this._customerInfo ??= new OrderRequestCustomerInfoBuilder(); - set customerInfo(OrderRequestCustomerInfoBuilder? customerInfo) => - _$this._customerInfo = customerInfo; - - ListBuilder? _discountLines; - ListBuilder get discountLines => - _$this._discountLines ??= new ListBuilder(); - set discountLines(ListBuilder? discountLines) => - _$this._discountLines = discountLines; - - OrderFiscalEntityRequestBuilder? _fiscalEntity; - OrderFiscalEntityRequestBuilder get fiscalEntity => - _$this._fiscalEntity ??= new OrderFiscalEntityRequestBuilder(); - set fiscalEntity(OrderFiscalEntityRequestBuilder? fiscalEntity) => - _$this._fiscalEntity = fiscalEntity; - - ListBuilder? _lineItems; - ListBuilder get lineItems => - _$this._lineItems ??= new ListBuilder(); - set lineItems(ListBuilder? lineItems) => - _$this._lineItems = lineItems; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - bool? _needsShippingContact; - bool? get needsShippingContact => _$this._needsShippingContact; - set needsShippingContact(bool? needsShippingContact) => - _$this._needsShippingContact = needsShippingContact; - - bool? _preAuthorize; - bool? get preAuthorize => _$this._preAuthorize; - set preAuthorize(bool? preAuthorize) => _$this._preAuthorize = preAuthorize; - - String? _processingMode; - String? get processingMode => _$this._processingMode; - set processingMode(String? processingMode) => - _$this._processingMode = processingMode; - - String? _returnUrl; - String? get returnUrl => _$this._returnUrl; - set returnUrl(String? returnUrl) => _$this._returnUrl = returnUrl; - - CustomerShippingContacts? _shippingContact; - CustomerShippingContacts? get shippingContact => _$this._shippingContact; - set shippingContact(CustomerShippingContacts? shippingContact) => - _$this._shippingContact = shippingContact; - - ListBuilder? _shippingLines; - ListBuilder get shippingLines => - _$this._shippingLines ??= new ListBuilder(); - set shippingLines(ListBuilder? shippingLines) => - _$this._shippingLines = shippingLines; - - ListBuilder? _taxLines; - ListBuilder get taxLines => - _$this._taxLines ??= new ListBuilder(); - set taxLines(ListBuilder? taxLines) => - _$this._taxLines = taxLines; - - String? _threeDsMode; - String? get threeDsMode => _$this._threeDsMode; - set threeDsMode(String? threeDsMode) => _$this._threeDsMode = threeDsMode; - - OrderRequestBuilder() { - OrderRequest._defaults(this); - } - - OrderRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _charges = $v.charges?.toBuilder(); - _checkout = $v.checkout?.toBuilder(); - _currency = $v.currency; - _customerInfo = $v.customerInfo.toBuilder(); - _discountLines = $v.discountLines?.toBuilder(); - _fiscalEntity = $v.fiscalEntity?.toBuilder(); - _lineItems = $v.lineItems.toBuilder(); - _metadata = $v.metadata?.toBuilder(); - _needsShippingContact = $v.needsShippingContact; - _preAuthorize = $v.preAuthorize; - _processingMode = $v.processingMode; - _returnUrl = $v.returnUrl; - _shippingContact = $v.shippingContact; - _shippingLines = $v.shippingLines?.toBuilder(); - _taxLines = $v.taxLines?.toBuilder(); - _threeDsMode = $v.threeDsMode; - _$v = null; - } - return this; - } - - @override - void replace(OrderRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderRequest; - } - - @override - void update(void Function(OrderRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderRequest build() => _build(); - - _$OrderRequest _build() { - _$OrderRequest _$result; - try { - _$result = _$v ?? - new _$OrderRequest._( - charges: _charges?.build(), - checkout: _checkout?.build(), - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'OrderRequest', 'currency'), - customerInfo: customerInfo.build(), - discountLines: _discountLines?.build(), - fiscalEntity: _fiscalEntity?.build(), - lineItems: lineItems.build(), - metadata: _metadata?.build(), - needsShippingContact: needsShippingContact, - preAuthorize: preAuthorize, - processingMode: processingMode, - returnUrl: returnUrl, - shippingContact: shippingContact, - shippingLines: _shippingLines?.build(), - taxLines: _taxLines?.build(), - threeDsMode: threeDsMode); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'charges'; - _charges?.build(); - _$failedField = 'checkout'; - _checkout?.build(); - - _$failedField = 'customerInfo'; - customerInfo.build(); - _$failedField = 'discountLines'; - _discountLines?.build(); - _$failedField = 'fiscalEntity'; - _fiscalEntity?.build(); - _$failedField = 'lineItems'; - lineItems.build(); - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'shippingLines'; - _shippingLines?.build(); - _$failedField = 'taxLines'; - _taxLines?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_request_customer_info.g.dart b/lib/src/model/order_request_customer_info.g.dart deleted file mode 100644 index f4d2929..0000000 --- a/lib/src/model/order_request_customer_info.g.dart +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_request_customer_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderRequestCustomerInfo extends OrderRequestCustomerInfo { - @override - final OneOf oneOf; - - factory _$OrderRequestCustomerInfo( - [void Function(OrderRequestCustomerInfoBuilder)? updates]) => - (new OrderRequestCustomerInfoBuilder()..update(updates))._build(); - - _$OrderRequestCustomerInfo._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'OrderRequestCustomerInfo', 'oneOf'); - } - - @override - OrderRequestCustomerInfo rebuild( - void Function(OrderRequestCustomerInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderRequestCustomerInfoBuilder toBuilder() => - new OrderRequestCustomerInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderRequestCustomerInfo && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderRequestCustomerInfo') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class OrderRequestCustomerInfoBuilder - implements - Builder { - _$OrderRequestCustomerInfo? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - OrderRequestCustomerInfoBuilder() { - OrderRequestCustomerInfo._defaults(this); - } - - OrderRequestCustomerInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(OrderRequestCustomerInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderRequestCustomerInfo; - } - - @override - void update(void Function(OrderRequestCustomerInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderRequestCustomerInfo build() => _build(); - - _$OrderRequestCustomerInfo _build() { - final _$result = _$v ?? - new _$OrderRequestCustomerInfo._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'OrderRequestCustomerInfo', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response.g.dart b/lib/src/model/order_response.g.dart deleted file mode 100644 index 8b1b58e..0000000 --- a/lib/src/model/order_response.g.dart +++ /dev/null @@ -1,392 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponse extends OrderResponse { - @override - final int? amount; - @override - final int? amountRefunded; - @override - final ChargeResponseChannel? channel; - @override - final OrderResponseCharges? charges; - @override - final OrderResponseCheckout? checkout; - @override - final int? createdAt; - @override - final String? currency; - @override - final OrderResponseCustomerInfo? customerInfo; - @override - final OrderResponseDiscountLines? discountLines; - @override - final OrderFiscalEntityResponse? fiscalEntity; - @override - final String? id; - @override - final bool? isRefundable; - @override - final OrderResponseProducts? lineItems; - @override - final bool? livemode; - @override - final BuiltMap? metadata; - @override - final OrderNextActionResponse? nextAction; - @override - final String? object; - @override - final String? paymentStatus; - @override - final String? processingMode; - @override - final OrderResponseShippingContact? shippingContact; - @override - final int? updatedAt; - - factory _$OrderResponse([void Function(OrderResponseBuilder)? updates]) => - (new OrderResponseBuilder()..update(updates))._build(); - - _$OrderResponse._( - {this.amount, - this.amountRefunded, - this.channel, - this.charges, - this.checkout, - this.createdAt, - this.currency, - this.customerInfo, - this.discountLines, - this.fiscalEntity, - this.id, - this.isRefundable, - this.lineItems, - this.livemode, - this.metadata, - this.nextAction, - this.object, - this.paymentStatus, - this.processingMode, - this.shippingContact, - this.updatedAt}) - : super._(); - - @override - OrderResponse rebuild(void Function(OrderResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseBuilder toBuilder() => new OrderResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponse && - amount == other.amount && - amountRefunded == other.amountRefunded && - channel == other.channel && - charges == other.charges && - checkout == other.checkout && - createdAt == other.createdAt && - currency == other.currency && - customerInfo == other.customerInfo && - discountLines == other.discountLines && - fiscalEntity == other.fiscalEntity && - id == other.id && - isRefundable == other.isRefundable && - lineItems == other.lineItems && - livemode == other.livemode && - metadata == other.metadata && - nextAction == other.nextAction && - object == other.object && - paymentStatus == other.paymentStatus && - processingMode == other.processingMode && - shippingContact == other.shippingContact && - updatedAt == other.updatedAt; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, amountRefunded.hashCode); - _$hash = $jc(_$hash, channel.hashCode); - _$hash = $jc(_$hash, charges.hashCode); - _$hash = $jc(_$hash, checkout.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerInfo.hashCode); - _$hash = $jc(_$hash, discountLines.hashCode); - _$hash = $jc(_$hash, fiscalEntity.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, isRefundable.hashCode); - _$hash = $jc(_$hash, lineItems.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, nextAction.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, paymentStatus.hashCode); - _$hash = $jc(_$hash, processingMode.hashCode); - _$hash = $jc(_$hash, shippingContact.hashCode); - _$hash = $jc(_$hash, updatedAt.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponse') - ..add('amount', amount) - ..add('amountRefunded', amountRefunded) - ..add('channel', channel) - ..add('charges', charges) - ..add('checkout', checkout) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('customerInfo', customerInfo) - ..add('discountLines', discountLines) - ..add('fiscalEntity', fiscalEntity) - ..add('id', id) - ..add('isRefundable', isRefundable) - ..add('lineItems', lineItems) - ..add('livemode', livemode) - ..add('metadata', metadata) - ..add('nextAction', nextAction) - ..add('object', object) - ..add('paymentStatus', paymentStatus) - ..add('processingMode', processingMode) - ..add('shippingContact', shippingContact) - ..add('updatedAt', updatedAt)) - .toString(); - } -} - -class OrderResponseBuilder - implements Builder { - _$OrderResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - int? _amountRefunded; - int? get amountRefunded => _$this._amountRefunded; - set amountRefunded(int? amountRefunded) => - _$this._amountRefunded = amountRefunded; - - ChargeResponseChannelBuilder? _channel; - ChargeResponseChannelBuilder get channel => - _$this._channel ??= new ChargeResponseChannelBuilder(); - set channel(ChargeResponseChannelBuilder? channel) => - _$this._channel = channel; - - OrderResponseChargesBuilder? _charges; - OrderResponseChargesBuilder get charges => - _$this._charges ??= new OrderResponseChargesBuilder(); - set charges(OrderResponseChargesBuilder? charges) => - _$this._charges = charges; - - OrderResponseCheckoutBuilder? _checkout; - OrderResponseCheckoutBuilder get checkout => - _$this._checkout ??= new OrderResponseCheckoutBuilder(); - set checkout(OrderResponseCheckoutBuilder? checkout) => - _$this._checkout = checkout; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - OrderResponseCustomerInfoBuilder? _customerInfo; - OrderResponseCustomerInfoBuilder get customerInfo => - _$this._customerInfo ??= new OrderResponseCustomerInfoBuilder(); - set customerInfo(OrderResponseCustomerInfoBuilder? customerInfo) => - _$this._customerInfo = customerInfo; - - OrderResponseDiscountLinesBuilder? _discountLines; - OrderResponseDiscountLinesBuilder get discountLines => - _$this._discountLines ??= new OrderResponseDiscountLinesBuilder(); - set discountLines(OrderResponseDiscountLinesBuilder? discountLines) => - _$this._discountLines = discountLines; - - OrderFiscalEntityResponseBuilder? _fiscalEntity; - OrderFiscalEntityResponseBuilder get fiscalEntity => - _$this._fiscalEntity ??= new OrderFiscalEntityResponseBuilder(); - set fiscalEntity(OrderFiscalEntityResponseBuilder? fiscalEntity) => - _$this._fiscalEntity = fiscalEntity; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _isRefundable; - bool? get isRefundable => _$this._isRefundable; - set isRefundable(bool? isRefundable) => _$this._isRefundable = isRefundable; - - OrderResponseProductsBuilder? _lineItems; - OrderResponseProductsBuilder get lineItems => - _$this._lineItems ??= new OrderResponseProductsBuilder(); - set lineItems(OrderResponseProductsBuilder? lineItems) => - _$this._lineItems = lineItems; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - OrderNextActionResponseBuilder? _nextAction; - OrderNextActionResponseBuilder get nextAction => - _$this._nextAction ??= new OrderNextActionResponseBuilder(); - set nextAction(OrderNextActionResponseBuilder? nextAction) => - _$this._nextAction = nextAction; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _paymentStatus; - String? get paymentStatus => _$this._paymentStatus; - set paymentStatus(String? paymentStatus) => - _$this._paymentStatus = paymentStatus; - - String? _processingMode; - String? get processingMode => _$this._processingMode; - set processingMode(String? processingMode) => - _$this._processingMode = processingMode; - - OrderResponseShippingContactBuilder? _shippingContact; - OrderResponseShippingContactBuilder get shippingContact => - _$this._shippingContact ??= new OrderResponseShippingContactBuilder(); - set shippingContact(OrderResponseShippingContactBuilder? shippingContact) => - _$this._shippingContact = shippingContact; - - int? _updatedAt; - int? get updatedAt => _$this._updatedAt; - set updatedAt(int? updatedAt) => _$this._updatedAt = updatedAt; - - OrderResponseBuilder() { - OrderResponse._defaults(this); - } - - OrderResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _amountRefunded = $v.amountRefunded; - _channel = $v.channel?.toBuilder(); - _charges = $v.charges?.toBuilder(); - _checkout = $v.checkout?.toBuilder(); - _createdAt = $v.createdAt; - _currency = $v.currency; - _customerInfo = $v.customerInfo?.toBuilder(); - _discountLines = $v.discountLines?.toBuilder(); - _fiscalEntity = $v.fiscalEntity?.toBuilder(); - _id = $v.id; - _isRefundable = $v.isRefundable; - _lineItems = $v.lineItems?.toBuilder(); - _livemode = $v.livemode; - _metadata = $v.metadata?.toBuilder(); - _nextAction = $v.nextAction?.toBuilder(); - _object = $v.object; - _paymentStatus = $v.paymentStatus; - _processingMode = $v.processingMode; - _shippingContact = $v.shippingContact?.toBuilder(); - _updatedAt = $v.updatedAt; - _$v = null; - } - return this; - } - - @override - void replace(OrderResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponse; - } - - @override - void update(void Function(OrderResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponse build() => _build(); - - _$OrderResponse _build() { - _$OrderResponse _$result; - try { - _$result = _$v ?? - new _$OrderResponse._( - amount: amount, - amountRefunded: amountRefunded, - channel: _channel?.build(), - charges: _charges?.build(), - checkout: _checkout?.build(), - createdAt: createdAt, - currency: currency, - customerInfo: _customerInfo?.build(), - discountLines: _discountLines?.build(), - fiscalEntity: _fiscalEntity?.build(), - id: id, - isRefundable: isRefundable, - lineItems: _lineItems?.build(), - livemode: livemode, - metadata: _metadata?.build(), - nextAction: _nextAction?.build(), - object: object, - paymentStatus: paymentStatus, - processingMode: processingMode, - shippingContact: _shippingContact?.build(), - updatedAt: updatedAt); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'channel'; - _channel?.build(); - _$failedField = 'charges'; - _charges?.build(); - _$failedField = 'checkout'; - _checkout?.build(); - - _$failedField = 'customerInfo'; - _customerInfo?.build(); - _$failedField = 'discountLines'; - _discountLines?.build(); - _$failedField = 'fiscalEntity'; - _fiscalEntity?.build(); - - _$failedField = 'lineItems'; - _lineItems?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - _$failedField = 'nextAction'; - _nextAction?.build(); - - _$failedField = 'shippingContact'; - _shippingContact?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_charges.g.dart b/lib/src/model/order_response_charges.g.dart deleted file mode 100644 index 24b96a8..0000000 --- a/lib/src/model/order_response_charges.g.dart +++ /dev/null @@ -1,142 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_charges.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponseCharges extends OrderResponseCharges { - @override - final BuiltList? data; - @override - final bool hasMore; - @override - final String object; - - factory _$OrderResponseCharges( - [void Function(OrderResponseChargesBuilder)? updates]) => - (new OrderResponseChargesBuilder()..update(updates))._build(); - - _$OrderResponseCharges._( - {this.data, required this.hasMore, required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'OrderResponseCharges', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'OrderResponseCharges', 'object'); - } - - @override - OrderResponseCharges rebuild( - void Function(OrderResponseChargesBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseChargesBuilder toBuilder() => - new OrderResponseChargesBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponseCharges && - data == other.data && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponseCharges') - ..add('data', data) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class OrderResponseChargesBuilder - implements - Builder, - PaginationBuilder { - _$OrderResponseCharges? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - OrderResponseChargesBuilder() { - OrderResponseCharges._defaults(this); - } - - OrderResponseChargesBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant OrderResponseCharges other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponseCharges; - } - - @override - void update(void Function(OrderResponseChargesBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponseCharges build() => _build(); - - _$OrderResponseCharges _build() { - _$OrderResponseCharges _$result; - try { - _$result = _$v ?? - new _$OrderResponseCharges._( - data: _data?.build(), - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'OrderResponseCharges', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'OrderResponseCharges', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderResponseCharges', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_checkout.g.dart b/lib/src/model/order_response_checkout.g.dart deleted file mode 100644 index da479db..0000000 --- a/lib/src/model/order_response_checkout.g.dart +++ /dev/null @@ -1,459 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_checkout.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponseCheckout extends OrderResponseCheckout { - @override - final BuiltList? allowedPaymentMethods; - @override - final bool? canNotExpire; - @override - final int? emailsSent; - @override - final BuiltList? excludeCardNetworks; - @override - final int? expiresAt; - @override - final String? failureUrl; - @override - final bool? force3dsFlow; - @override - final String? id; - @override - final bool? isRedirectOnFailure; - @override - final bool? livemode; - @override - final int? maxFailedRetries; - @override - final BuiltMap? metadata; - @override - final bool? monthlyInstallmentsEnabled; - @override - final BuiltList? monthlyInstallmentsOptions; - @override - final String? name; - @override - final bool? needsShippingContact; - @override - final String? object; - @override - final bool? onDemandEnabled; - @override - final int? paidPaymentsCount; - @override - final bool? recurrent; - @override - final int? redirectionTime; - @override - final String? slug; - @override - final int? smsSent; - @override - final String? successUrl; - @override - final int? startsAt; - @override - final String? status; - @override - final String? type; - @override - final String? url; - - factory _$OrderResponseCheckout( - [void Function(OrderResponseCheckoutBuilder)? updates]) => - (new OrderResponseCheckoutBuilder()..update(updates))._build(); - - _$OrderResponseCheckout._( - {this.allowedPaymentMethods, - this.canNotExpire, - this.emailsSent, - this.excludeCardNetworks, - this.expiresAt, - this.failureUrl, - this.force3dsFlow, - this.id, - this.isRedirectOnFailure, - this.livemode, - this.maxFailedRetries, - this.metadata, - this.monthlyInstallmentsEnabled, - this.monthlyInstallmentsOptions, - this.name, - this.needsShippingContact, - this.object, - this.onDemandEnabled, - this.paidPaymentsCount, - this.recurrent, - this.redirectionTime, - this.slug, - this.smsSent, - this.successUrl, - this.startsAt, - this.status, - this.type, - this.url}) - : super._(); - - @override - OrderResponseCheckout rebuild( - void Function(OrderResponseCheckoutBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseCheckoutBuilder toBuilder() => - new OrderResponseCheckoutBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponseCheckout && - allowedPaymentMethods == other.allowedPaymentMethods && - canNotExpire == other.canNotExpire && - emailsSent == other.emailsSent && - excludeCardNetworks == other.excludeCardNetworks && - expiresAt == other.expiresAt && - failureUrl == other.failureUrl && - force3dsFlow == other.force3dsFlow && - id == other.id && - isRedirectOnFailure == other.isRedirectOnFailure && - livemode == other.livemode && - maxFailedRetries == other.maxFailedRetries && - metadata == other.metadata && - monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && - monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && - name == other.name && - needsShippingContact == other.needsShippingContact && - object == other.object && - onDemandEnabled == other.onDemandEnabled && - paidPaymentsCount == other.paidPaymentsCount && - recurrent == other.recurrent && - redirectionTime == other.redirectionTime && - slug == other.slug && - smsSent == other.smsSent && - successUrl == other.successUrl && - startsAt == other.startsAt && - status == other.status && - type == other.type && - url == other.url; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); - _$hash = $jc(_$hash, canNotExpire.hashCode); - _$hash = $jc(_$hash, emailsSent.hashCode); - _$hash = $jc(_$hash, excludeCardNetworks.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, failureUrl.hashCode); - _$hash = $jc(_$hash, force3dsFlow.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, isRedirectOnFailure.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, maxFailedRetries.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, needsShippingContact.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, onDemandEnabled.hashCode); - _$hash = $jc(_$hash, paidPaymentsCount.hashCode); - _$hash = $jc(_$hash, recurrent.hashCode); - _$hash = $jc(_$hash, redirectionTime.hashCode); - _$hash = $jc(_$hash, slug.hashCode); - _$hash = $jc(_$hash, smsSent.hashCode); - _$hash = $jc(_$hash, successUrl.hashCode); - _$hash = $jc(_$hash, startsAt.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponseCheckout') - ..add('allowedPaymentMethods', allowedPaymentMethods) - ..add('canNotExpire', canNotExpire) - ..add('emailsSent', emailsSent) - ..add('excludeCardNetworks', excludeCardNetworks) - ..add('expiresAt', expiresAt) - ..add('failureUrl', failureUrl) - ..add('force3dsFlow', force3dsFlow) - ..add('id', id) - ..add('isRedirectOnFailure', isRedirectOnFailure) - ..add('livemode', livemode) - ..add('maxFailedRetries', maxFailedRetries) - ..add('metadata', metadata) - ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) - ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) - ..add('name', name) - ..add('needsShippingContact', needsShippingContact) - ..add('object', object) - ..add('onDemandEnabled', onDemandEnabled) - ..add('paidPaymentsCount', paidPaymentsCount) - ..add('recurrent', recurrent) - ..add('redirectionTime', redirectionTime) - ..add('slug', slug) - ..add('smsSent', smsSent) - ..add('successUrl', successUrl) - ..add('startsAt', startsAt) - ..add('status', status) - ..add('type', type) - ..add('url', url)) - .toString(); - } -} - -class OrderResponseCheckoutBuilder - implements Builder { - _$OrderResponseCheckout? _$v; - - ListBuilder? _allowedPaymentMethods; - ListBuilder get allowedPaymentMethods => - _$this._allowedPaymentMethods ??= new ListBuilder(); - set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => - _$this._allowedPaymentMethods = allowedPaymentMethods; - - bool? _canNotExpire; - bool? get canNotExpire => _$this._canNotExpire; - set canNotExpire(bool? canNotExpire) => _$this._canNotExpire = canNotExpire; - - int? _emailsSent; - int? get emailsSent => _$this._emailsSent; - set emailsSent(int? emailsSent) => _$this._emailsSent = emailsSent; - - ListBuilder? _excludeCardNetworks; - ListBuilder get excludeCardNetworks => - _$this._excludeCardNetworks ??= new ListBuilder(); - set excludeCardNetworks(ListBuilder? excludeCardNetworks) => - _$this._excludeCardNetworks = excludeCardNetworks; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _failureUrl; - String? get failureUrl => _$this._failureUrl; - set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; - - bool? _force3dsFlow; - bool? get force3dsFlow => _$this._force3dsFlow; - set force3dsFlow(bool? force3dsFlow) => _$this._force3dsFlow = force3dsFlow; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _isRedirectOnFailure; - bool? get isRedirectOnFailure => _$this._isRedirectOnFailure; - set isRedirectOnFailure(bool? isRedirectOnFailure) => - _$this._isRedirectOnFailure = isRedirectOnFailure; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - int? _maxFailedRetries; - int? get maxFailedRetries => _$this._maxFailedRetries; - set maxFailedRetries(int? maxFailedRetries) => - _$this._maxFailedRetries = maxFailedRetries; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - bool? _monthlyInstallmentsEnabled; - bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; - set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => - _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; - - ListBuilder? _monthlyInstallmentsOptions; - ListBuilder get monthlyInstallmentsOptions => - _$this._monthlyInstallmentsOptions ??= new ListBuilder(); - set monthlyInstallmentsOptions( - ListBuilder? monthlyInstallmentsOptions) => - _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - bool? _needsShippingContact; - bool? get needsShippingContact => _$this._needsShippingContact; - set needsShippingContact(bool? needsShippingContact) => - _$this._needsShippingContact = needsShippingContact; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - bool? _onDemandEnabled; - bool? get onDemandEnabled => _$this._onDemandEnabled; - set onDemandEnabled(bool? onDemandEnabled) => - _$this._onDemandEnabled = onDemandEnabled; - - int? _paidPaymentsCount; - int? get paidPaymentsCount => _$this._paidPaymentsCount; - set paidPaymentsCount(int? paidPaymentsCount) => - _$this._paidPaymentsCount = paidPaymentsCount; - - bool? _recurrent; - bool? get recurrent => _$this._recurrent; - set recurrent(bool? recurrent) => _$this._recurrent = recurrent; - - int? _redirectionTime; - int? get redirectionTime => _$this._redirectionTime; - set redirectionTime(int? redirectionTime) => - _$this._redirectionTime = redirectionTime; - - String? _slug; - String? get slug => _$this._slug; - set slug(String? slug) => _$this._slug = slug; - - int? _smsSent; - int? get smsSent => _$this._smsSent; - set smsSent(int? smsSent) => _$this._smsSent = smsSent; - - String? _successUrl; - String? get successUrl => _$this._successUrl; - set successUrl(String? successUrl) => _$this._successUrl = successUrl; - - int? _startsAt; - int? get startsAt => _$this._startsAt; - set startsAt(int? startsAt) => _$this._startsAt = startsAt; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - OrderResponseCheckoutBuilder() { - OrderResponseCheckout._defaults(this); - } - - OrderResponseCheckoutBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPaymentMethods = $v.allowedPaymentMethods?.toBuilder(); - _canNotExpire = $v.canNotExpire; - _emailsSent = $v.emailsSent; - _excludeCardNetworks = $v.excludeCardNetworks?.toBuilder(); - _expiresAt = $v.expiresAt; - _failureUrl = $v.failureUrl; - _force3dsFlow = $v.force3dsFlow; - _id = $v.id; - _isRedirectOnFailure = $v.isRedirectOnFailure; - _livemode = $v.livemode; - _maxFailedRetries = $v.maxFailedRetries; - _metadata = $v.metadata?.toBuilder(); - _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; - _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); - _name = $v.name; - _needsShippingContact = $v.needsShippingContact; - _object = $v.object; - _onDemandEnabled = $v.onDemandEnabled; - _paidPaymentsCount = $v.paidPaymentsCount; - _recurrent = $v.recurrent; - _redirectionTime = $v.redirectionTime; - _slug = $v.slug; - _smsSent = $v.smsSent; - _successUrl = $v.successUrl; - _startsAt = $v.startsAt; - _status = $v.status; - _type = $v.type; - _url = $v.url; - _$v = null; - } - return this; - } - - @override - void replace(OrderResponseCheckout other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponseCheckout; - } - - @override - void update(void Function(OrderResponseCheckoutBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponseCheckout build() => _build(); - - _$OrderResponseCheckout _build() { - _$OrderResponseCheckout _$result; - try { - _$result = _$v ?? - new _$OrderResponseCheckout._( - allowedPaymentMethods: _allowedPaymentMethods?.build(), - canNotExpire: canNotExpire, - emailsSent: emailsSent, - excludeCardNetworks: _excludeCardNetworks?.build(), - expiresAt: expiresAt, - failureUrl: failureUrl, - force3dsFlow: force3dsFlow, - id: id, - isRedirectOnFailure: isRedirectOnFailure, - livemode: livemode, - maxFailedRetries: maxFailedRetries, - metadata: _metadata?.build(), - monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, - monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), - name: name, - needsShippingContact: needsShippingContact, - object: object, - onDemandEnabled: onDemandEnabled, - paidPaymentsCount: paidPaymentsCount, - recurrent: recurrent, - redirectionTime: redirectionTime, - slug: slug, - smsSent: smsSent, - successUrl: successUrl, - startsAt: startsAt, - status: status, - type: type, - url: url); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPaymentMethods'; - _allowedPaymentMethods?.build(); - - _$failedField = 'excludeCardNetworks'; - _excludeCardNetworks?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'monthlyInstallmentsOptions'; - _monthlyInstallmentsOptions?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderResponseCheckout', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_customer_info.g.dart b/lib/src/model/order_response_customer_info.g.dart deleted file mode 100644 index 38667d9..0000000 --- a/lib/src/model/order_response_customer_info.g.dart +++ /dev/null @@ -1,175 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_customer_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponseCustomerInfo extends OrderResponseCustomerInfo { - @override - final String? customerId; - @override - final String? customerCustomReference; - @override - final String? name; - @override - final String? email; - @override - final String? phone; - @override - final bool? corporate; - @override - final String? object; - - factory _$OrderResponseCustomerInfo( - [void Function(OrderResponseCustomerInfoBuilder)? updates]) => - (new OrderResponseCustomerInfoBuilder()..update(updates))._build(); - - _$OrderResponseCustomerInfo._( - {this.customerId, - this.customerCustomReference, - this.name, - this.email, - this.phone, - this.corporate, - this.object}) - : super._(); - - @override - OrderResponseCustomerInfo rebuild( - void Function(OrderResponseCustomerInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseCustomerInfoBuilder toBuilder() => - new OrderResponseCustomerInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponseCustomerInfo && - customerId == other.customerId && - customerCustomReference == other.customerCustomReference && - name == other.name && - email == other.email && - phone == other.phone && - corporate == other.corporate && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jc(_$hash, customerCustomReference.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponseCustomerInfo') - ..add('customerId', customerId) - ..add('customerCustomReference', customerCustomReference) - ..add('name', name) - ..add('email', email) - ..add('phone', phone) - ..add('corporate', corporate) - ..add('object', object)) - .toString(); - } -} - -class OrderResponseCustomerInfoBuilder - implements - Builder, - CustomerInfoJustCustomerIdResponseBuilder, - OrderCustomerInfoResponseBuilder { - _$OrderResponseCustomerInfo? _$v; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(covariant String? customerId) => - _$this._customerId = customerId; - - String? _customerCustomReference; - String? get customerCustomReference => _$this._customerCustomReference; - set customerCustomReference(covariant String? customerCustomReference) => - _$this._customerCustomReference = customerCustomReference; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(covariant bool? corporate) => _$this._corporate = corporate; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - OrderResponseCustomerInfoBuilder() { - OrderResponseCustomerInfo._defaults(this); - } - - OrderResponseCustomerInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _customerId = $v.customerId; - _customerCustomReference = $v.customerCustomReference; - _name = $v.name; - _email = $v.email; - _phone = $v.phone; - _corporate = $v.corporate; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant OrderResponseCustomerInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponseCustomerInfo; - } - - @override - void update(void Function(OrderResponseCustomerInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponseCustomerInfo build() => _build(); - - _$OrderResponseCustomerInfo _build() { - final _$result = _$v ?? - new _$OrderResponseCustomerInfo._( - customerId: customerId, - customerCustomReference: customerCustomReference, - name: name, - email: email, - phone: phone, - corporate: corporate, - object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_discount_lines.g.dart b/lib/src/model/order_response_discount_lines.g.dart deleted file mode 100644 index 9e4f264..0000000 --- a/lib/src/model/order_response_discount_lines.g.dart +++ /dev/null @@ -1,143 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_discount_lines.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponseDiscountLines extends OrderResponseDiscountLines { - @override - final BuiltList? data; - @override - final bool hasMore; - @override - final String object; - - factory _$OrderResponseDiscountLines( - [void Function(OrderResponseDiscountLinesBuilder)? updates]) => - (new OrderResponseDiscountLinesBuilder()..update(updates))._build(); - - _$OrderResponseDiscountLines._( - {this.data, required this.hasMore, required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'OrderResponseDiscountLines', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'OrderResponseDiscountLines', 'object'); - } - - @override - OrderResponseDiscountLines rebuild( - void Function(OrderResponseDiscountLinesBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseDiscountLinesBuilder toBuilder() => - new OrderResponseDiscountLinesBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponseDiscountLines && - data == other.data && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponseDiscountLines') - ..add('data', data) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class OrderResponseDiscountLinesBuilder - implements - Builder, - PaginationBuilder { - _$OrderResponseDiscountLines? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => - _$this._data = data; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - OrderResponseDiscountLinesBuilder() { - OrderResponseDiscountLines._defaults(this); - } - - OrderResponseDiscountLinesBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant OrderResponseDiscountLines other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponseDiscountLines; - } - - @override - void update(void Function(OrderResponseDiscountLinesBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponseDiscountLines build() => _build(); - - _$OrderResponseDiscountLines _build() { - _$OrderResponseDiscountLines _$result; - try { - _$result = _$v ?? - new _$OrderResponseDiscountLines._( - data: _data?.build(), - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'OrderResponseDiscountLines', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'OrderResponseDiscountLines', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderResponseDiscountLines', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_products.g.dart b/lib/src/model/order_response_products.g.dart deleted file mode 100644 index 7ffb150..0000000 --- a/lib/src/model/order_response_products.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_products.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponseProducts extends OrderResponseProducts { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$OrderResponseProducts( - [void Function(OrderResponseProductsBuilder)? updates]) => - (new OrderResponseProductsBuilder()..update(updates))._build(); - - _$OrderResponseProducts._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'OrderResponseProducts', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'OrderResponseProducts', 'object'); - } - - @override - OrderResponseProducts rebuild( - void Function(OrderResponseProductsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseProductsBuilder toBuilder() => - new OrderResponseProductsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponseProducts && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponseProducts') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class OrderResponseProductsBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$OrderResponseProducts? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - OrderResponseProductsBuilder() { - OrderResponseProducts._defaults(this); - } - - OrderResponseProductsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant OrderResponseProducts other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponseProducts; - } - - @override - void update(void Function(OrderResponseProductsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponseProducts build() => _build(); - - _$OrderResponseProducts _build() { - _$OrderResponseProducts _$result; - try { - _$result = _$v ?? - new _$OrderResponseProducts._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'OrderResponseProducts', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'OrderResponseProducts', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderResponseProducts', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_shipping_contact.g.dart b/lib/src/model/order_response_shipping_contact.g.dart deleted file mode 100644 index cd618de..0000000 --- a/lib/src/model/order_response_shipping_contact.g.dart +++ /dev/null @@ -1,242 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_response_shipping_contact.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderResponseShippingContact extends OrderResponseShippingContact { - @override - final String? phone; - @override - final String? receiver; - @override - final String? betweenStreets; - @override - final CustomerShippingContactsResponseAddress? address; - @override - final String? parentId; - @override - final bool? default_; - @override - final String? id; - @override - final int? createdAt; - @override - final BuiltMap? metadata; - @override - final String? object; - @override - final bool? deleted; - - factory _$OrderResponseShippingContact( - [void Function(OrderResponseShippingContactBuilder)? updates]) => - (new OrderResponseShippingContactBuilder()..update(updates))._build(); - - _$OrderResponseShippingContact._( - {this.phone, - this.receiver, - this.betweenStreets, - this.address, - this.parentId, - this.default_, - this.id, - this.createdAt, - this.metadata, - this.object, - this.deleted}) - : super._(); - - @override - OrderResponseShippingContact rebuild( - void Function(OrderResponseShippingContactBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderResponseShippingContactBuilder toBuilder() => - new OrderResponseShippingContactBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderResponseShippingContact && - phone == other.phone && - receiver == other.receiver && - betweenStreets == other.betweenStreets && - address == other.address && - parentId == other.parentId && - default_ == other.default_ && - id == other.id && - createdAt == other.createdAt && - metadata == other.metadata && - object == other.object && - deleted == other.deleted; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, receiver.hashCode); - _$hash = $jc(_$hash, betweenStreets.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderResponseShippingContact') - ..add('phone', phone) - ..add('receiver', receiver) - ..add('betweenStreets', betweenStreets) - ..add('address', address) - ..add('parentId', parentId) - ..add('default_', default_) - ..add('id', id) - ..add('createdAt', createdAt) - ..add('metadata', metadata) - ..add('object', object) - ..add('deleted', deleted)) - .toString(); - } -} - -class OrderResponseShippingContactBuilder - implements - Builder, - CustomerShippingContactsResponseBuilder { - _$OrderResponseShippingContact? _$v; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - String? _receiver; - String? get receiver => _$this._receiver; - set receiver(covariant String? receiver) => _$this._receiver = receiver; - - String? _betweenStreets; - String? get betweenStreets => _$this._betweenStreets; - set betweenStreets(covariant String? betweenStreets) => - _$this._betweenStreets = betweenStreets; - - CustomerShippingContactsResponseAddressBuilder? _address; - CustomerShippingContactsResponseAddressBuilder get address => - _$this._address ??= new CustomerShippingContactsResponseAddressBuilder(); - set address( - covariant CustomerShippingContactsResponseAddressBuilder? address) => - _$this._address = address; - - 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? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(covariant bool? deleted) => _$this._deleted = deleted; - - OrderResponseShippingContactBuilder() { - OrderResponseShippingContact._defaults(this); - } - - OrderResponseShippingContactBuilder get _$this { - final $v = _$v; - if ($v != null) { - _phone = $v.phone; - _receiver = $v.receiver; - _betweenStreets = $v.betweenStreets; - _address = $v.address?.toBuilder(); - _parentId = $v.parentId; - _default_ = $v.default_; - _id = $v.id; - _createdAt = $v.createdAt; - _metadata = $v.metadata?.toBuilder(); - _object = $v.object; - _deleted = $v.deleted; - _$v = null; - } - return this; - } - - @override - void replace(covariant OrderResponseShippingContact other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderResponseShippingContact; - } - - @override - void update(void Function(OrderResponseShippingContactBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderResponseShippingContact build() => _build(); - - _$OrderResponseShippingContact _build() { - _$OrderResponseShippingContact _$result; - try { - _$result = _$v ?? - new _$OrderResponseShippingContact._( - phone: phone, - receiver: receiver, - betweenStreets: betweenStreets, - address: _address?.build(), - parentId: parentId, - default_: default_, - id: id, - createdAt: createdAt, - metadata: _metadata?.build(), - object: object, - deleted: deleted); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - _address?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderResponseShippingContact', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_tax_request.g.dart b/lib/src/model/order_tax_request.g.dart deleted file mode 100644 index 42ebe4c..0000000 --- a/lib/src/model/order_tax_request.g.dart +++ /dev/null @@ -1,156 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_tax_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrderTaxRequestBuilder { - void replace(OrderTaxRequest other); - void update(void Function(OrderTaxRequestBuilder) updates); - int? get amount; - set amount(int? amount); - - String? get description; - set description(String? description); - - MapBuilder get metadata; - set metadata(MapBuilder? metadata); -} - -class _$$OrderTaxRequest extends $OrderTaxRequest { - @override - final int amount; - @override - final String description; - @override - final BuiltMap? metadata; - - factory _$$OrderTaxRequest( - [void Function($OrderTaxRequestBuilder)? updates]) => - (new $OrderTaxRequestBuilder()..update(updates))._build(); - - _$$OrderTaxRequest._( - {required this.amount, required this.description, this.metadata}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'$OrderTaxRequest', 'amount'); - BuiltValueNullFieldError.checkNotNull( - description, r'$OrderTaxRequest', 'description'); - } - - @override - $OrderTaxRequest rebuild(void Function($OrderTaxRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrderTaxRequestBuilder toBuilder() => - new $OrderTaxRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrderTaxRequest && - amount == other.amount && - description == other.description && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrderTaxRequest') - ..add('amount', amount) - ..add('description', description) - ..add('metadata', metadata)) - .toString(); - } -} - -class $OrderTaxRequestBuilder - implements - Builder<$OrderTaxRequest, $OrderTaxRequestBuilder>, - OrderTaxRequestBuilder { - _$$OrderTaxRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(covariant int? amount) => _$this._amount = amount; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - $OrderTaxRequestBuilder() { - $OrderTaxRequest._defaults(this); - } - - $OrderTaxRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _description = $v.description; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrderTaxRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrderTaxRequest; - } - - @override - void update(void Function($OrderTaxRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrderTaxRequest build() => _build(); - - _$$OrderTaxRequest _build() { - _$$OrderTaxRequest _$result; - try { - _$result = _$v ?? - new _$$OrderTaxRequest._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'$OrderTaxRequest', 'amount'), - description: BuiltValueNullFieldError.checkNotNull( - description, r'$OrderTaxRequest', 'description'), - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$OrderTaxRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_update_fiscal_entity_request.g.dart b/lib/src/model/order_update_fiscal_entity_request.g.dart deleted file mode 100644 index a12e265..0000000 --- a/lib/src/model/order_update_fiscal_entity_request.g.dart +++ /dev/null @@ -1,178 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_update_fiscal_entity_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderUpdateFiscalEntityRequest extends OrderUpdateFiscalEntityRequest { - @override - final FiscalEntityAddress address; - @override - final String? email; - @override - final String? name; - @override - final BuiltMap? metadata; - @override - final String? phone; - @override - final String? taxId; - - factory _$OrderUpdateFiscalEntityRequest( - [void Function(OrderUpdateFiscalEntityRequestBuilder)? updates]) => - (new OrderUpdateFiscalEntityRequestBuilder()..update(updates))._build(); - - _$OrderUpdateFiscalEntityRequest._( - {required this.address, - this.email, - this.name, - this.metadata, - this.phone, - this.taxId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - address, r'OrderUpdateFiscalEntityRequest', 'address'); - } - - @override - OrderUpdateFiscalEntityRequest rebuild( - void Function(OrderUpdateFiscalEntityRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderUpdateFiscalEntityRequestBuilder toBuilder() => - new OrderUpdateFiscalEntityRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderUpdateFiscalEntityRequest && - address == other.address && - email == other.email && - name == other.name && - metadata == other.metadata && - phone == other.phone && - taxId == other.taxId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderUpdateFiscalEntityRequest') - ..add('address', address) - ..add('email', email) - ..add('name', name) - ..add('metadata', metadata) - ..add('phone', phone) - ..add('taxId', taxId)) - .toString(); - } -} - -class OrderUpdateFiscalEntityRequestBuilder - implements - Builder { - _$OrderUpdateFiscalEntityRequest? _$v; - - FiscalEntityAddress? _address; - FiscalEntityAddress? get address => _$this._address; - set address(FiscalEntityAddress? address) => _$this._address = address; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - String? _taxId; - String? get taxId => _$this._taxId; - set taxId(String? taxId) => _$this._taxId = taxId; - - OrderUpdateFiscalEntityRequestBuilder() { - OrderUpdateFiscalEntityRequest._defaults(this); - } - - OrderUpdateFiscalEntityRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _address = $v.address; - _email = $v.email; - _name = $v.name; - _metadata = $v.metadata?.toBuilder(); - _phone = $v.phone; - _taxId = $v.taxId; - _$v = null; - } - return this; - } - - @override - void replace(OrderUpdateFiscalEntityRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderUpdateFiscalEntityRequest; - } - - @override - void update(void Function(OrderUpdateFiscalEntityRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderUpdateFiscalEntityRequest build() => _build(); - - _$OrderUpdateFiscalEntityRequest _build() { - _$OrderUpdateFiscalEntityRequest _$result; - try { - _$result = _$v ?? - new _$OrderUpdateFiscalEntityRequest._( - address: BuiltValueNullFieldError.checkNotNull( - address, r'OrderUpdateFiscalEntityRequest', 'address'), - email: email, - name: name, - metadata: _metadata?.build(), - phone: phone, - taxId: taxId); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderUpdateFiscalEntityRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_update_request.g.dart b/lib/src/model/order_update_request.g.dart deleted file mode 100644 index 01c2e35..0000000 --- a/lib/src/model/order_update_request.g.dart +++ /dev/null @@ -1,277 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderUpdateRequest extends OrderUpdateRequest { - @override - final BuiltList? charges; - @override - final CheckoutRequest? checkout; - @override - final String? currency; - @override - final OrderUpdateRequestCustomerInfo? customerInfo; - @override - final BuiltList? discountLines; - @override - final OrderUpdateFiscalEntityRequest? fiscalEntity; - @override - final BuiltList? lineItems; - @override - final BuiltMap? metadata; - @override - final bool? preAuthorize; - @override - final CustomerShippingContacts? shippingContact; - @override - final BuiltList? shippingLines; - @override - final BuiltList? taxLines; - - factory _$OrderUpdateRequest( - [void Function(OrderUpdateRequestBuilder)? updates]) => - (new OrderUpdateRequestBuilder()..update(updates))._build(); - - _$OrderUpdateRequest._( - {this.charges, - this.checkout, - this.currency, - this.customerInfo, - this.discountLines, - this.fiscalEntity, - this.lineItems, - this.metadata, - this.preAuthorize, - this.shippingContact, - this.shippingLines, - this.taxLines}) - : super._(); - - @override - OrderUpdateRequest rebuild( - void Function(OrderUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderUpdateRequestBuilder toBuilder() => - new OrderUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderUpdateRequest && - charges == other.charges && - checkout == other.checkout && - currency == other.currency && - customerInfo == other.customerInfo && - discountLines == other.discountLines && - fiscalEntity == other.fiscalEntity && - lineItems == other.lineItems && - metadata == other.metadata && - preAuthorize == other.preAuthorize && - shippingContact == other.shippingContact && - shippingLines == other.shippingLines && - taxLines == other.taxLines; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, charges.hashCode); - _$hash = $jc(_$hash, checkout.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerInfo.hashCode); - _$hash = $jc(_$hash, discountLines.hashCode); - _$hash = $jc(_$hash, fiscalEntity.hashCode); - _$hash = $jc(_$hash, lineItems.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, preAuthorize.hashCode); - _$hash = $jc(_$hash, shippingContact.hashCode); - _$hash = $jc(_$hash, shippingLines.hashCode); - _$hash = $jc(_$hash, taxLines.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderUpdateRequest') - ..add('charges', charges) - ..add('checkout', checkout) - ..add('currency', currency) - ..add('customerInfo', customerInfo) - ..add('discountLines', discountLines) - ..add('fiscalEntity', fiscalEntity) - ..add('lineItems', lineItems) - ..add('metadata', metadata) - ..add('preAuthorize', preAuthorize) - ..add('shippingContact', shippingContact) - ..add('shippingLines', shippingLines) - ..add('taxLines', taxLines)) - .toString(); - } -} - -class OrderUpdateRequestBuilder - implements Builder { - _$OrderUpdateRequest? _$v; - - ListBuilder? _charges; - ListBuilder get charges => - _$this._charges ??= new ListBuilder(); - set charges(ListBuilder? charges) => _$this._charges = charges; - - CheckoutRequestBuilder? _checkout; - CheckoutRequestBuilder get checkout => - _$this._checkout ??= new CheckoutRequestBuilder(); - set checkout(CheckoutRequestBuilder? checkout) => _$this._checkout = checkout; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - OrderUpdateRequestCustomerInfoBuilder? _customerInfo; - OrderUpdateRequestCustomerInfoBuilder get customerInfo => - _$this._customerInfo ??= new OrderUpdateRequestCustomerInfoBuilder(); - set customerInfo(OrderUpdateRequestCustomerInfoBuilder? customerInfo) => - _$this._customerInfo = customerInfo; - - ListBuilder? _discountLines; - ListBuilder get discountLines => - _$this._discountLines ??= new ListBuilder(); - set discountLines(ListBuilder? discountLines) => - _$this._discountLines = discountLines; - - OrderUpdateFiscalEntityRequestBuilder? _fiscalEntity; - OrderUpdateFiscalEntityRequestBuilder get fiscalEntity => - _$this._fiscalEntity ??= new OrderUpdateFiscalEntityRequestBuilder(); - set fiscalEntity(OrderUpdateFiscalEntityRequestBuilder? fiscalEntity) => - _$this._fiscalEntity = fiscalEntity; - - ListBuilder? _lineItems; - ListBuilder get lineItems => - _$this._lineItems ??= new ListBuilder(); - set lineItems(ListBuilder? lineItems) => - _$this._lineItems = lineItems; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - bool? _preAuthorize; - bool? get preAuthorize => _$this._preAuthorize; - set preAuthorize(bool? preAuthorize) => _$this._preAuthorize = preAuthorize; - - CustomerShippingContacts? _shippingContact; - CustomerShippingContacts? get shippingContact => _$this._shippingContact; - set shippingContact(CustomerShippingContacts? shippingContact) => - _$this._shippingContact = shippingContact; - - ListBuilder? _shippingLines; - ListBuilder get shippingLines => - _$this._shippingLines ??= new ListBuilder(); - set shippingLines(ListBuilder? shippingLines) => - _$this._shippingLines = shippingLines; - - ListBuilder? _taxLines; - ListBuilder get taxLines => - _$this._taxLines ??= new ListBuilder(); - set taxLines(ListBuilder? taxLines) => - _$this._taxLines = taxLines; - - OrderUpdateRequestBuilder() { - OrderUpdateRequest._defaults(this); - } - - OrderUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _charges = $v.charges?.toBuilder(); - _checkout = $v.checkout?.toBuilder(); - _currency = $v.currency; - _customerInfo = $v.customerInfo?.toBuilder(); - _discountLines = $v.discountLines?.toBuilder(); - _fiscalEntity = $v.fiscalEntity?.toBuilder(); - _lineItems = $v.lineItems?.toBuilder(); - _metadata = $v.metadata?.toBuilder(); - _preAuthorize = $v.preAuthorize; - _shippingContact = $v.shippingContact; - _shippingLines = $v.shippingLines?.toBuilder(); - _taxLines = $v.taxLines?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(OrderUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderUpdateRequest; - } - - @override - void update(void Function(OrderUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderUpdateRequest build() => _build(); - - _$OrderUpdateRequest _build() { - _$OrderUpdateRequest _$result; - try { - _$result = _$v ?? - new _$OrderUpdateRequest._( - charges: _charges?.build(), - checkout: _checkout?.build(), - currency: currency, - customerInfo: _customerInfo?.build(), - discountLines: _discountLines?.build(), - fiscalEntity: _fiscalEntity?.build(), - lineItems: _lineItems?.build(), - metadata: _metadata?.build(), - preAuthorize: preAuthorize, - shippingContact: shippingContact, - shippingLines: _shippingLines?.build(), - taxLines: _taxLines?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'charges'; - _charges?.build(); - _$failedField = 'checkout'; - _checkout?.build(); - - _$failedField = 'customerInfo'; - _customerInfo?.build(); - _$failedField = 'discountLines'; - _discountLines?.build(); - _$failedField = 'fiscalEntity'; - _fiscalEntity?.build(); - _$failedField = 'lineItems'; - _lineItems?.build(); - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'shippingLines'; - _shippingLines?.build(); - _$failedField = 'taxLines'; - _taxLines?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'OrderUpdateRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_update_request_customer_info.g.dart b/lib/src/model/order_update_request_customer_info.g.dart deleted file mode 100644 index d16cf26..0000000 --- a/lib/src/model/order_update_request_customer_info.g.dart +++ /dev/null @@ -1,100 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'order_update_request_customer_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$OrderUpdateRequestCustomerInfo extends OrderUpdateRequestCustomerInfo { - @override - final OneOf oneOf; - - factory _$OrderUpdateRequestCustomerInfo( - [void Function(OrderUpdateRequestCustomerInfoBuilder)? updates]) => - (new OrderUpdateRequestCustomerInfoBuilder()..update(updates))._build(); - - _$OrderUpdateRequestCustomerInfo._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'OrderUpdateRequestCustomerInfo', 'oneOf'); - } - - @override - OrderUpdateRequestCustomerInfo rebuild( - void Function(OrderUpdateRequestCustomerInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - OrderUpdateRequestCustomerInfoBuilder toBuilder() => - new OrderUpdateRequestCustomerInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is OrderUpdateRequestCustomerInfo && oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'OrderUpdateRequestCustomerInfo') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class OrderUpdateRequestCustomerInfoBuilder - implements - Builder { - _$OrderUpdateRequestCustomerInfo? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - OrderUpdateRequestCustomerInfoBuilder() { - OrderUpdateRequestCustomerInfo._defaults(this); - } - - OrderUpdateRequestCustomerInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(OrderUpdateRequestCustomerInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$OrderUpdateRequestCustomerInfo; - } - - @override - void update(void Function(OrderUpdateRequestCustomerInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - OrderUpdateRequestCustomerInfo build() => _build(); - - _$OrderUpdateRequestCustomerInfo _build() { - final _$result = _$v ?? - new _$OrderUpdateRequestCustomerInfo._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'OrderUpdateRequestCustomerInfo', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/orders_response.g.dart b/lib/src/model/orders_response.g.dart deleted file mode 100644 index 198ce5a..0000000 --- a/lib/src/model/orders_response.g.dart +++ /dev/null @@ -1,114 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'orders_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class OrdersResponseBuilder { - void replace(OrdersResponse other); - void update(void Function(OrdersResponseBuilder) updates); - ListBuilder get data; - set data(ListBuilder? data); -} - -class _$$OrdersResponse extends $OrdersResponse { - @override - final BuiltList data; - - factory _$$OrdersResponse([void Function($OrdersResponseBuilder)? updates]) => - (new $OrdersResponseBuilder()..update(updates))._build(); - - _$$OrdersResponse._({required this.data}) : super._() { - BuiltValueNullFieldError.checkNotNull(data, r'$OrdersResponse', 'data'); - } - - @override - $OrdersResponse rebuild(void Function($OrdersResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $OrdersResponseBuilder toBuilder() => - new $OrdersResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $OrdersResponse && data == other.data; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$OrdersResponse')..add('data', data)) - .toString(); - } -} - -class $OrdersResponseBuilder - implements - Builder<$OrdersResponse, $OrdersResponseBuilder>, - OrdersResponseBuilder { - _$$OrdersResponse? _$v; - - ListBuilder? _data; - ListBuilder get data => - _$this._data ??= new ListBuilder(); - set data(covariant ListBuilder? data) => _$this._data = data; - - $OrdersResponseBuilder() { - $OrdersResponse._defaults(this); - } - - $OrdersResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $OrdersResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$OrdersResponse; - } - - @override - void update(void Function($OrdersResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $OrdersResponse build() => _build(); - - _$$OrdersResponse _build() { - _$$OrdersResponse _$result; - try { - _$result = _$v ?? new _$$OrdersResponse._(data: data.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - data.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$OrdersResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/page.g.dart b/lib/src/model/page.g.dart deleted file mode 100644 index 29e2556..0000000 --- a/lib/src/model/page.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'page.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PageBuilder { - void replace(Page other); - void update(void Function(PageBuilder) updates); - String? get nextPageUrl; - set nextPageUrl(String? nextPageUrl); - - String? get previousPageUrl; - set previousPageUrl(String? previousPageUrl); -} - -class _$$Page extends $Page { - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - - factory _$$Page([void Function($PageBuilder)? updates]) => - (new $PageBuilder()..update(updates))._build(); - - _$$Page._({this.nextPageUrl, this.previousPageUrl}) : super._(); - - @override - $Page rebuild(void Function($PageBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PageBuilder toBuilder() => new $PageBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $Page && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$Page') - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl)) - .toString(); - } -} - -class $PageBuilder implements Builder<$Page, $PageBuilder>, PageBuilder { - _$$Page? _$v; - - String? _nextPageUrl; - String? get nextPageUrl => _$this._nextPageUrl; - set nextPageUrl(covariant String? nextPageUrl) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - $PageBuilder() { - $Page._defaults(this); - } - - $PageBuilder get _$this { - final $v = _$v; - if ($v != null) { - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _$v = null; - } - return this; - } - - @override - void replace(covariant $Page other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$Page; - } - - @override - void update(void Function($PageBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $Page build() => _build(); - - _$$Page _build() { - final _$result = _$v ?? - new _$$Page._( - nextPageUrl: nextPageUrl, previousPageUrl: previousPageUrl); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/pagination.g.dart b/lib/src/model/pagination.g.dart deleted file mode 100644 index 99ddd79..0000000 --- a/lib/src/model/pagination.g.dart +++ /dev/null @@ -1,118 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'pagination.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaginationBuilder { - void replace(Pagination other); - void update(void Function(PaginationBuilder) updates); - bool? get hasMore; - set hasMore(bool? hasMore); - - String? get object; - set object(String? object); -} - -class _$$Pagination extends $Pagination { - @override - final bool hasMore; - @override - final String object; - - factory _$$Pagination([void Function($PaginationBuilder)? updates]) => - (new $PaginationBuilder()..update(updates))._build(); - - _$$Pagination._({required this.hasMore, required this.object}) : super._() { - BuiltValueNullFieldError.checkNotNull(hasMore, r'$Pagination', 'hasMore'); - BuiltValueNullFieldError.checkNotNull(object, r'$Pagination', 'object'); - } - - @override - $Pagination rebuild(void Function($PaginationBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaginationBuilder toBuilder() => new $PaginationBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $Pagination && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$Pagination') - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class $PaginationBuilder - implements Builder<$Pagination, $PaginationBuilder>, PaginationBuilder { - _$$Pagination? _$v; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - $PaginationBuilder() { - $Pagination._defaults(this); - } - - $PaginationBuilder get _$this { - final $v = _$v; - if ($v != null) { - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $Pagination other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$Pagination; - } - - @override - void update(void Function($PaginationBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $Pagination build() => _build(); - - _$$Pagination _build() { - final _$result = _$v ?? - new _$$Pagination._( - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'$Pagination', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'$Pagination', 'object')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method.g.dart b/lib/src/model/payment_method.g.dart deleted file mode 100644 index 6940026..0000000 --- a/lib/src/model/payment_method.g.dart +++ /dev/null @@ -1,119 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodBuilder { - void replace(PaymentMethod other); - void update(void Function(PaymentMethodBuilder) updates); - String? get type; - set type(String? type); - - String? get object; - set object(String? object); -} - -class _$$PaymentMethod extends $PaymentMethod { - @override - final String? type; - @override - final String object; - - factory _$$PaymentMethod([void Function($PaymentMethodBuilder)? updates]) => - (new $PaymentMethodBuilder()..update(updates))._build(); - - _$$PaymentMethod._({this.type, required this.object}) : super._() { - BuiltValueNullFieldError.checkNotNull(object, r'$PaymentMethod', 'object'); - } - - @override - $PaymentMethod rebuild(void Function($PaymentMethodBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodBuilder toBuilder() => - new $PaymentMethodBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethod && - type == other.type && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethod') - ..add('type', type) - ..add('object', object)) - .toString(); - } -} - -class $PaymentMethodBuilder - implements - Builder<$PaymentMethod, $PaymentMethodBuilder>, - PaymentMethodBuilder { - _$$PaymentMethod? _$v; - - 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; - - $PaymentMethodBuilder() { - $PaymentMethod._defaults(this); - } - - $PaymentMethodBuilder get _$this { - final $v = _$v; - if ($v != null) { - _type = $v.type; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethod other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethod; - } - - @override - void update(void Function($PaymentMethodBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethod build() => _build(); - - _$$PaymentMethod _build() { - final _$result = _$v ?? - new _$$PaymentMethod._( - type: type, - object: BuiltValueNullFieldError.checkNotNull( - object, r'$PaymentMethod', 'object')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_bank_transfer.g.dart b/lib/src/model/payment_method_bank_transfer.g.dart deleted file mode 100644 index d61cab4..0000000 --- a/lib/src/model/payment_method_bank_transfer.g.dart +++ /dev/null @@ -1,347 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_bank_transfer.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { - @override - final String? issuingAccountBank; - @override - final int? executedAt; - @override - final String? receivingAccountBank; - @override - final String? issuingAccountNumber; - @override - final String? description; - @override - final String? trackingCode; - @override - final String? customerIpAddress; - @override - final int? expiresAt; - @override - final String? receivingAccountTaxId; - @override - final String? receivingAccountNumber; - @override - final String? bank; - @override - final String? issuingAccountHolderName; - @override - final String? issuingAccountTaxId; - @override - final BuiltList? paymentAttempts; - @override - final String? referenceNumber; - @override - final String? receivingAccountHolderName; - @override - final String? clabe; - @override - final String? type; - @override - final String object; - - factory _$PaymentMethodBankTransfer( - [void Function(PaymentMethodBankTransferBuilder)? updates]) => - (new PaymentMethodBankTransferBuilder()..update(updates))._build(); - - _$PaymentMethodBankTransfer._( - {this.issuingAccountBank, - this.executedAt, - this.receivingAccountBank, - this.issuingAccountNumber, - this.description, - this.trackingCode, - this.customerIpAddress, - this.expiresAt, - this.receivingAccountTaxId, - this.receivingAccountNumber, - this.bank, - this.issuingAccountHolderName, - this.issuingAccountTaxId, - this.paymentAttempts, - this.referenceNumber, - this.receivingAccountHolderName, - this.clabe, - this.type, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodBankTransfer', 'object'); - } - - @override - PaymentMethodBankTransfer rebuild( - void Function(PaymentMethodBankTransferBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodBankTransferBuilder toBuilder() => - new PaymentMethodBankTransferBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodBankTransfer && - issuingAccountBank == other.issuingAccountBank && - executedAt == other.executedAt && - receivingAccountBank == other.receivingAccountBank && - issuingAccountNumber == other.issuingAccountNumber && - description == other.description && - trackingCode == other.trackingCode && - customerIpAddress == other.customerIpAddress && - expiresAt == other.expiresAt && - receivingAccountTaxId == other.receivingAccountTaxId && - receivingAccountNumber == other.receivingAccountNumber && - bank == other.bank && - issuingAccountHolderName == other.issuingAccountHolderName && - issuingAccountTaxId == other.issuingAccountTaxId && - paymentAttempts == other.paymentAttempts && - referenceNumber == other.referenceNumber && - receivingAccountHolderName == other.receivingAccountHolderName && - clabe == other.clabe && - type == other.type && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, issuingAccountBank.hashCode); - _$hash = $jc(_$hash, executedAt.hashCode); - _$hash = $jc(_$hash, receivingAccountBank.hashCode); - _$hash = $jc(_$hash, issuingAccountNumber.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, trackingCode.hashCode); - _$hash = $jc(_$hash, customerIpAddress.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, receivingAccountTaxId.hashCode); - _$hash = $jc(_$hash, receivingAccountNumber.hashCode); - _$hash = $jc(_$hash, bank.hashCode); - _$hash = $jc(_$hash, issuingAccountHolderName.hashCode); - _$hash = $jc(_$hash, issuingAccountTaxId.hashCode); - _$hash = $jc(_$hash, paymentAttempts.hashCode); - _$hash = $jc(_$hash, referenceNumber.hashCode); - _$hash = $jc(_$hash, receivingAccountHolderName.hashCode); - _$hash = $jc(_$hash, clabe.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodBankTransfer') - ..add('issuingAccountBank', issuingAccountBank) - ..add('executedAt', executedAt) - ..add('receivingAccountBank', receivingAccountBank) - ..add('issuingAccountNumber', issuingAccountNumber) - ..add('description', description) - ..add('trackingCode', trackingCode) - ..add('customerIpAddress', customerIpAddress) - ..add('expiresAt', expiresAt) - ..add('receivingAccountTaxId', receivingAccountTaxId) - ..add('receivingAccountNumber', receivingAccountNumber) - ..add('bank', bank) - ..add('issuingAccountHolderName', issuingAccountHolderName) - ..add('issuingAccountTaxId', issuingAccountTaxId) - ..add('paymentAttempts', paymentAttempts) - ..add('referenceNumber', referenceNumber) - ..add('receivingAccountHolderName', receivingAccountHolderName) - ..add('clabe', clabe) - ..add('type', type) - ..add('object', object)) - .toString(); - } -} - -class PaymentMethodBankTransferBuilder - implements - Builder, - PaymentMethodBuilder { - _$PaymentMethodBankTransfer? _$v; - - String? _issuingAccountBank; - String? get issuingAccountBank => _$this._issuingAccountBank; - set issuingAccountBank(covariant String? issuingAccountBank) => - _$this._issuingAccountBank = issuingAccountBank; - - 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; - - String? _trackingCode; - String? get trackingCode => _$this._trackingCode; - set trackingCode(covariant String? trackingCode) => - _$this._trackingCode = trackingCode; - - String? _customerIpAddress; - String? get customerIpAddress => _$this._customerIpAddress; - set customerIpAddress(covariant String? customerIpAddress) => - _$this._customerIpAddress = customerIpAddress; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _receivingAccountTaxId; - String? get receivingAccountTaxId => _$this._receivingAccountTaxId; - set receivingAccountTaxId(covariant String? receivingAccountTaxId) => - _$this._receivingAccountTaxId = receivingAccountTaxId; - - 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; - 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? _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? _clabe; - String? get clabe => _$this._clabe; - set clabe(covariant String? clabe) => _$this._clabe = clabe; - - 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; - - PaymentMethodBankTransferBuilder() { - PaymentMethodBankTransfer._defaults(this); - } - - PaymentMethodBankTransferBuilder get _$this { - final $v = _$v; - if ($v != null) { - _issuingAccountBank = $v.issuingAccountBank; - _executedAt = $v.executedAt; - _receivingAccountBank = $v.receivingAccountBank; - _issuingAccountNumber = $v.issuingAccountNumber; - _description = $v.description; - _trackingCode = $v.trackingCode; - _customerIpAddress = $v.customerIpAddress; - _expiresAt = $v.expiresAt; - _receivingAccountTaxId = $v.receivingAccountTaxId; - _receivingAccountNumber = $v.receivingAccountNumber; - _bank = $v.bank; - _issuingAccountHolderName = $v.issuingAccountHolderName; - _issuingAccountTaxId = $v.issuingAccountTaxId; - _paymentAttempts = $v.paymentAttempts?.toBuilder(); - _referenceNumber = $v.referenceNumber; - _receivingAccountHolderName = $v.receivingAccountHolderName; - _clabe = $v.clabe; - _type = $v.type; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodBankTransfer other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodBankTransfer; - } - - @override - void update(void Function(PaymentMethodBankTransferBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodBankTransfer build() => _build(); - - _$PaymentMethodBankTransfer _build() { - _$PaymentMethodBankTransfer _$result; - try { - _$result = _$v ?? - new _$PaymentMethodBankTransfer._( - issuingAccountBank: issuingAccountBank, - executedAt: executedAt, - receivingAccountBank: receivingAccountBank, - issuingAccountNumber: issuingAccountNumber, - description: description, - trackingCode: trackingCode, - customerIpAddress: customerIpAddress, - expiresAt: expiresAt, - receivingAccountTaxId: receivingAccountTaxId, - receivingAccountNumber: receivingAccountNumber, - bank: bank, - issuingAccountHolderName: issuingAccountHolderName, - issuingAccountTaxId: issuingAccountTaxId, - paymentAttempts: _paymentAttempts?.build(), - referenceNumber: referenceNumber, - receivingAccountHolderName: receivingAccountHolderName, - clabe: clabe, - type: type, - object: BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodBankTransfer', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'paymentAttempts'; - _paymentAttempts?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'PaymentMethodBankTransfer', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_card.g.dart b/lib/src/model/payment_method_card.g.dart deleted file mode 100644 index 6a8d15e..0000000 --- a/lib/src/model/payment_method_card.g.dart +++ /dev/null @@ -1,276 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_card.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodCard extends PaymentMethodCard { - @override - final String? country; - @override - final String? expMonth; - @override - final String? last4; - @override - final String? authCode; - @override - final String? expYear; - @override - final String? accountType; - @override - final String? contractId; - @override - final String? name; - @override - final String? customerIpAddress; - @override - final String? brand; - @override - final BuiltList? fraudIndicators; - @override - final String? issuer; - @override - final String? type; - @override - final String object; - - factory _$PaymentMethodCard( - [void Function(PaymentMethodCardBuilder)? updates]) => - (new PaymentMethodCardBuilder()..update(updates))._build(); - - _$PaymentMethodCard._( - {this.country, - this.expMonth, - this.last4, - this.authCode, - this.expYear, - this.accountType, - this.contractId, - this.name, - this.customerIpAddress, - this.brand, - this.fraudIndicators, - this.issuer, - this.type, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCard', 'object'); - } - - @override - PaymentMethodCard rebuild(void Function(PaymentMethodCardBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodCardBuilder toBuilder() => - new PaymentMethodCardBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodCard && - country == other.country && - expMonth == other.expMonth && - last4 == other.last4 && - authCode == other.authCode && - expYear == other.expYear && - accountType == other.accountType && - contractId == other.contractId && - name == other.name && - customerIpAddress == other.customerIpAddress && - brand == other.brand && - fraudIndicators == other.fraudIndicators && - issuer == other.issuer && - type == other.type && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, country.hashCode); - _$hash = $jc(_$hash, expMonth.hashCode); - _$hash = $jc(_$hash, last4.hashCode); - _$hash = $jc(_$hash, authCode.hashCode); - _$hash = $jc(_$hash, expYear.hashCode); - _$hash = $jc(_$hash, accountType.hashCode); - _$hash = $jc(_$hash, contractId.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, customerIpAddress.hashCode); - _$hash = $jc(_$hash, brand.hashCode); - _$hash = $jc(_$hash, fraudIndicators.hashCode); - _$hash = $jc(_$hash, issuer.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodCard') - ..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('customerIpAddress', customerIpAddress) - ..add('brand', brand) - ..add('fraudIndicators', fraudIndicators) - ..add('issuer', issuer) - ..add('type', type) - ..add('object', object)) - .toString(); - } -} - -class PaymentMethodCardBuilder - implements - Builder, - PaymentMethodBuilder { - _$PaymentMethodCard? _$v; - - 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? _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? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - String? _customerIpAddress; - String? get customerIpAddress => _$this._customerIpAddress; - set customerIpAddress(covariant String? customerIpAddress) => - _$this._customerIpAddress = customerIpAddress; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - 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? _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; - - PaymentMethodCardBuilder() { - PaymentMethodCard._defaults(this); - } - - PaymentMethodCardBuilder get _$this { - final $v = _$v; - if ($v != null) { - _country = $v.country; - _expMonth = $v.expMonth; - _last4 = $v.last4; - _authCode = $v.authCode; - _expYear = $v.expYear; - _accountType = $v.accountType; - _contractId = $v.contractId; - _name = $v.name; - _customerIpAddress = $v.customerIpAddress; - _brand = $v.brand; - _fraudIndicators = $v.fraudIndicators?.toBuilder(); - _issuer = $v.issuer; - _type = $v.type; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodCard other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodCard; - } - - @override - void update(void Function(PaymentMethodCardBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodCard build() => _build(); - - _$PaymentMethodCard _build() { - _$PaymentMethodCard _$result; - try { - _$result = _$v ?? - new _$PaymentMethodCard._( - country: country, - expMonth: expMonth, - last4: last4, - authCode: authCode, - expYear: expYear, - accountType: accountType, - contractId: contractId, - name: name, - customerIpAddress: customerIpAddress, - brand: brand, - fraudIndicators: _fraudIndicators?.build(), - issuer: issuer, - type: type, - object: BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCard', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'fraudIndicators'; - _fraudIndicators?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'PaymentMethodCard', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_card_request.g.dart b/lib/src/model/payment_method_card_request.g.dart deleted file mode 100644 index 16672f2..0000000 --- a/lib/src/model/payment_method_card_request.g.dart +++ /dev/null @@ -1,191 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_card_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodCardRequest extends PaymentMethodCardRequest { - @override - final String cvc; - @override - final String expMonth; - @override - final String number; - @override - final String expYear; - @override - final String name; - @override - final String? customerIpAddress; - @override - final String type; - - factory _$PaymentMethodCardRequest( - [void Function(PaymentMethodCardRequestBuilder)? updates]) => - (new PaymentMethodCardRequestBuilder()..update(updates))._build(); - - _$PaymentMethodCardRequest._( - {required this.cvc, - required this.expMonth, - required this.number, - required this.expYear, - required this.name, - this.customerIpAddress, - required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - cvc, r'PaymentMethodCardRequest', 'cvc'); - BuiltValueNullFieldError.checkNotNull( - expMonth, r'PaymentMethodCardRequest', 'expMonth'); - BuiltValueNullFieldError.checkNotNull( - number, r'PaymentMethodCardRequest', 'number'); - BuiltValueNullFieldError.checkNotNull( - expYear, r'PaymentMethodCardRequest', 'expYear'); - BuiltValueNullFieldError.checkNotNull( - name, r'PaymentMethodCardRequest', 'name'); - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCardRequest', 'type'); - } - - @override - PaymentMethodCardRequest rebuild( - void Function(PaymentMethodCardRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodCardRequestBuilder toBuilder() => - new PaymentMethodCardRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodCardRequest && - cvc == other.cvc && - expMonth == other.expMonth && - number == other.number && - expYear == other.expYear && - name == other.name && - customerIpAddress == other.customerIpAddress && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, cvc.hashCode); - _$hash = $jc(_$hash, expMonth.hashCode); - _$hash = $jc(_$hash, number.hashCode); - _$hash = $jc(_$hash, expYear.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, customerIpAddress.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodCardRequest') - ..add('cvc', cvc) - ..add('expMonth', expMonth) - ..add('number', number) - ..add('expYear', expYear) - ..add('name', name) - ..add('customerIpAddress', customerIpAddress) - ..add('type', type)) - .toString(); - } -} - -class PaymentMethodCardRequestBuilder - implements - Builder, - CustomerPaymentMethodRequestBuilder { - _$PaymentMethodCardRequest? _$v; - - String? _cvc; - String? get cvc => _$this._cvc; - set cvc(covariant String? cvc) => _$this._cvc = cvc; - - String? _expMonth; - String? get expMonth => _$this._expMonth; - set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; - - String? _number; - String? get number => _$this._number; - set number(covariant String? number) => _$this._number = number; - - String? _expYear; - String? get expYear => _$this._expYear; - set expYear(covariant String? expYear) => _$this._expYear = expYear; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - String? _customerIpAddress; - String? get customerIpAddress => _$this._customerIpAddress; - set customerIpAddress(covariant String? customerIpAddress) => - _$this._customerIpAddress = customerIpAddress; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - PaymentMethodCardRequestBuilder() { - PaymentMethodCardRequest._defaults(this); - } - - PaymentMethodCardRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _cvc = $v.cvc; - _expMonth = $v.expMonth; - _number = $v.number; - _expYear = $v.expYear; - _name = $v.name; - _customerIpAddress = $v.customerIpAddress; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodCardRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodCardRequest; - } - - @override - void update(void Function(PaymentMethodCardRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodCardRequest build() => _build(); - - _$PaymentMethodCardRequest _build() { - final _$result = _$v ?? - new _$PaymentMethodCardRequest._( - cvc: BuiltValueNullFieldError.checkNotNull( - cvc, r'PaymentMethodCardRequest', 'cvc'), - expMonth: BuiltValueNullFieldError.checkNotNull( - expMonth, r'PaymentMethodCardRequest', 'expMonth'), - number: BuiltValueNullFieldError.checkNotNull( - number, r'PaymentMethodCardRequest', 'number'), - expYear: BuiltValueNullFieldError.checkNotNull( - expYear, r'PaymentMethodCardRequest', 'expYear'), - name: BuiltValueNullFieldError.checkNotNull( - name, r'PaymentMethodCardRequest', 'name'), - customerIpAddress: customerIpAddress, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCardRequest', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_card_response.g.dart b/lib/src/model/payment_method_card_response.g.dart deleted file mode 100644 index 1744962..0000000 --- a/lib/src/model/payment_method_card_response.g.dart +++ /dev/null @@ -1,282 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_card_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { - @override - final String? last4; - @override - final String? expMonth; - @override - final bool? visibleOnCheckout; - @override - final String? expYear; - @override - final String? bin; - @override - final String? cardType; - @override - final String? name; - @override - final bool? default_; - @override - final String? brand; - @override - final String? paymentSourceStatus; - @override - final String type; - @override - final String id; - @override - final String object; - @override - final int createdAt; - @override - final String? parentId; - - factory _$PaymentMethodCardResponse( - [void Function(PaymentMethodCardResponseBuilder)? updates]) => - (new PaymentMethodCardResponseBuilder()..update(updates))._build(); - - _$PaymentMethodCardResponse._( - {this.last4, - this.expMonth, - this.visibleOnCheckout, - this.expYear, - this.bin, - this.cardType, - this.name, - this.default_, - this.brand, - this.paymentSourceStatus, - required this.type, - required this.id, - required this.object, - required this.createdAt, - this.parentId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCardResponse', 'type'); - BuiltValueNullFieldError.checkNotNull( - id, r'PaymentMethodCardResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCardResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'PaymentMethodCardResponse', 'createdAt'); - } - - @override - PaymentMethodCardResponse rebuild( - void Function(PaymentMethodCardResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodCardResponseBuilder toBuilder() => - new PaymentMethodCardResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodCardResponse && - last4 == other.last4 && - expMonth == other.expMonth && - visibleOnCheckout == other.visibleOnCheckout && - expYear == other.expYear && - bin == other.bin && - cardType == other.cardType && - name == other.name && - default_ == other.default_ && - brand == other.brand && - paymentSourceStatus == other.paymentSourceStatus && - type == other.type && - id == other.id && - object == other.object && - createdAt == other.createdAt && - parentId == other.parentId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, last4.hashCode); - _$hash = $jc(_$hash, expMonth.hashCode); - _$hash = $jc(_$hash, visibleOnCheckout.hashCode); - _$hash = $jc(_$hash, expYear.hashCode); - _$hash = $jc(_$hash, bin.hashCode); - _$hash = $jc(_$hash, cardType.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, brand.hashCode); - _$hash = $jc(_$hash, paymentSourceStatus.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodCardResponse') - ..add('last4', last4) - ..add('expMonth', expMonth) - ..add('visibleOnCheckout', visibleOnCheckout) - ..add('expYear', expYear) - ..add('bin', bin) - ..add('cardType', cardType) - ..add('name', name) - ..add('default_', default_) - ..add('brand', brand) - ..add('paymentSourceStatus', paymentSourceStatus) - ..add('type', type) - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt) - ..add('parentId', parentId)) - .toString(); - } -} - -class PaymentMethodCardResponseBuilder - implements - Builder, - PaymentMethodResponseBuilder { - _$PaymentMethodCardResponse? _$v; - - String? _last4; - String? get last4 => _$this._last4; - set last4(covariant String? last4) => _$this._last4 = last4; - - 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? _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; - set name(covariant String? name) => _$this._name = name; - - bool? _default_; - bool? get default_ => _$this._default_; - set default_(covariant bool? default_) => _$this._default_ = default_; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - String? _paymentSourceStatus; - String? get paymentSourceStatus => _$this._paymentSourceStatus; - set paymentSourceStatus(covariant String? paymentSourceStatus) => - _$this._paymentSourceStatus = paymentSourceStatus; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - 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; - - PaymentMethodCardResponseBuilder() { - PaymentMethodCardResponse._defaults(this); - } - - PaymentMethodCardResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _last4 = $v.last4; - _expMonth = $v.expMonth; - _visibleOnCheckout = $v.visibleOnCheckout; - _expYear = $v.expYear; - _bin = $v.bin; - _cardType = $v.cardType; - _name = $v.name; - _default_ = $v.default_; - _brand = $v.brand; - _paymentSourceStatus = $v.paymentSourceStatus; - _type = $v.type; - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodCardResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodCardResponse; - } - - @override - void update(void Function(PaymentMethodCardResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodCardResponse build() => _build(); - - _$PaymentMethodCardResponse _build() { - final _$result = _$v ?? - new _$PaymentMethodCardResponse._( - last4: last4, - expMonth: expMonth, - visibleOnCheckout: visibleOnCheckout, - expYear: expYear, - bin: bin, - cardType: cardType, - name: name, - default_: default_, - brand: brand, - paymentSourceStatus: paymentSourceStatus, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCardResponse', 'type'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'PaymentMethodCardResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCardResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'PaymentMethodCardResponse', 'createdAt'), - parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_cash.g.dart b/lib/src/model/payment_method_cash.g.dart deleted file mode 100644 index aa4b7f9..0000000 --- a/lib/src/model/payment_method_cash.g.dart +++ /dev/null @@ -1,250 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_cash.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodCash extends PaymentMethodCash { - @override - final String? reference; - @override - final String? agreement; - @override - final int? authCode; - @override - final String? cashierId; - @override - final String? storeName; - @override - final String? barcodeUrl; - @override - final String? store; - @override - final String? customerIpAddress; - @override - final String? serviceName; - @override - final int? expiresAt; - @override - final String? productType; - @override - final String? type; - @override - final String object; - - factory _$PaymentMethodCash( - [void Function(PaymentMethodCashBuilder)? updates]) => - (new PaymentMethodCashBuilder()..update(updates))._build(); - - _$PaymentMethodCash._( - {this.reference, - this.agreement, - this.authCode, - this.cashierId, - this.storeName, - this.barcodeUrl, - this.store, - this.customerIpAddress, - this.serviceName, - this.expiresAt, - this.productType, - this.type, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCash', 'object'); - } - - @override - PaymentMethodCash rebuild(void Function(PaymentMethodCashBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodCashBuilder toBuilder() => - new PaymentMethodCashBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodCash && - reference == other.reference && - agreement == other.agreement && - authCode == other.authCode && - cashierId == other.cashierId && - storeName == other.storeName && - barcodeUrl == other.barcodeUrl && - store == other.store && - customerIpAddress == other.customerIpAddress && - serviceName == other.serviceName && - expiresAt == other.expiresAt && - productType == other.productType && - type == other.type && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reference.hashCode); - _$hash = $jc(_$hash, agreement.hashCode); - _$hash = $jc(_$hash, authCode.hashCode); - _$hash = $jc(_$hash, cashierId.hashCode); - _$hash = $jc(_$hash, storeName.hashCode); - _$hash = $jc(_$hash, barcodeUrl.hashCode); - _$hash = $jc(_$hash, store.hashCode); - _$hash = $jc(_$hash, customerIpAddress.hashCode); - _$hash = $jc(_$hash, serviceName.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, productType.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodCash') - ..add('reference', reference) - ..add('agreement', agreement) - ..add('authCode', authCode) - ..add('cashierId', cashierId) - ..add('storeName', storeName) - ..add('barcodeUrl', barcodeUrl) - ..add('store', store) - ..add('customerIpAddress', customerIpAddress) - ..add('serviceName', serviceName) - ..add('expiresAt', expiresAt) - ..add('productType', productType) - ..add('type', type) - ..add('object', object)) - .toString(); - } -} - -class PaymentMethodCashBuilder - implements - Builder, - PaymentMethodBuilder { - _$PaymentMethodCash? _$v; - - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - String? _agreement; - String? get agreement => _$this._agreement; - set agreement(covariant String? agreement) => _$this._agreement = agreement; - - 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? _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; - - String? _store; - String? get store => _$this._store; - set store(covariant String? store) => _$this._store = store; - - String? _customerIpAddress; - String? get customerIpAddress => _$this._customerIpAddress; - set customerIpAddress(covariant String? customerIpAddress) => - _$this._customerIpAddress = customerIpAddress; - - String? _serviceName; - String? get serviceName => _$this._serviceName; - set serviceName(covariant String? serviceName) => - _$this._serviceName = serviceName; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _productType; - String? get productType => _$this._productType; - set productType(covariant String? productType) => - _$this._productType = productType; - - 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; - - PaymentMethodCashBuilder() { - PaymentMethodCash._defaults(this); - } - - PaymentMethodCashBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reference = $v.reference; - _agreement = $v.agreement; - _authCode = $v.authCode; - _cashierId = $v.cashierId; - _storeName = $v.storeName; - _barcodeUrl = $v.barcodeUrl; - _store = $v.store; - _customerIpAddress = $v.customerIpAddress; - _serviceName = $v.serviceName; - _expiresAt = $v.expiresAt; - _productType = $v.productType; - _type = $v.type; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodCash other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodCash; - } - - @override - void update(void Function(PaymentMethodCashBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodCash build() => _build(); - - _$PaymentMethodCash _build() { - final _$result = _$v ?? - new _$PaymentMethodCash._( - reference: reference, - agreement: agreement, - authCode: authCode, - cashierId: cashierId, - storeName: storeName, - barcodeUrl: barcodeUrl, - store: store, - customerIpAddress: customerIpAddress, - serviceName: serviceName, - expiresAt: expiresAt, - productType: productType, - type: type, - object: BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCash', 'object')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_cash_request.g.dart b/lib/src/model/payment_method_cash_request.g.dart deleted file mode 100644 index 30b0b74..0000000 --- a/lib/src/model/payment_method_cash_request.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_cash_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodCashRequest extends PaymentMethodCashRequest { - @override - final int? expiresAt; - @override - final String type; - - factory _$PaymentMethodCashRequest( - [void Function(PaymentMethodCashRequestBuilder)? updates]) => - (new PaymentMethodCashRequestBuilder()..update(updates))._build(); - - _$PaymentMethodCashRequest._({this.expiresAt, required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCashRequest', 'type'); - } - - @override - PaymentMethodCashRequest rebuild( - void Function(PaymentMethodCashRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodCashRequestBuilder toBuilder() => - new PaymentMethodCashRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodCashRequest && - expiresAt == other.expiresAt && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodCashRequest') - ..add('expiresAt', expiresAt) - ..add('type', type)) - .toString(); - } -} - -class PaymentMethodCashRequestBuilder - implements - Builder, - CustomerPaymentMethodRequestBuilder { - _$PaymentMethodCashRequest? _$v; - - 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); - } - - PaymentMethodCashRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _expiresAt = $v.expiresAt; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodCashRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodCashRequest; - } - - @override - void update(void Function(PaymentMethodCashRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodCashRequest build() => _build(); - - _$PaymentMethodCashRequest _build() { - final _$result = _$v ?? - new _$PaymentMethodCashRequest._( - expiresAt: expiresAt, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCashRequest', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_cash_response.g.dart b/lib/src/model/payment_method_cash_response.g.dart deleted file mode 100644 index 5e04d31..0000000 --- a/lib/src/model/payment_method_cash_response.g.dart +++ /dev/null @@ -1,221 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_cash_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { - @override - final String? reference; - @override - final String? provider; - @override - final String? barcodeUrl; - @override - final String? barcode; - @override - final int? expiresAt; - @override - final String type; - @override - final String id; - @override - final String object; - @override - final int createdAt; - @override - final String? parentId; - - factory _$PaymentMethodCashResponse( - [void Function(PaymentMethodCashResponseBuilder)? updates]) => - (new PaymentMethodCashResponseBuilder()..update(updates))._build(); - - _$PaymentMethodCashResponse._( - {this.reference, - this.provider, - this.barcodeUrl, - this.barcode, - this.expiresAt, - required this.type, - required this.id, - required this.object, - required this.createdAt, - this.parentId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCashResponse', 'type'); - BuiltValueNullFieldError.checkNotNull( - id, r'PaymentMethodCashResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCashResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'PaymentMethodCashResponse', 'createdAt'); - } - - @override - PaymentMethodCashResponse rebuild( - void Function(PaymentMethodCashResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodCashResponseBuilder toBuilder() => - new PaymentMethodCashResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodCashResponse && - reference == other.reference && - provider == other.provider && - barcodeUrl == other.barcodeUrl && - barcode == other.barcode && - expiresAt == other.expiresAt && - type == other.type && - id == other.id && - object == other.object && - createdAt == other.createdAt && - parentId == other.parentId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reference.hashCode); - _$hash = $jc(_$hash, provider.hashCode); - _$hash = $jc(_$hash, barcodeUrl.hashCode); - _$hash = $jc(_$hash, barcode.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodCashResponse') - ..add('reference', reference) - ..add('provider', provider) - ..add('barcodeUrl', barcodeUrl) - ..add('barcode', barcode) - ..add('expiresAt', expiresAt) - ..add('type', type) - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt) - ..add('parentId', parentId)) - .toString(); - } -} - -class PaymentMethodCashResponseBuilder - implements - Builder, - PaymentMethodResponseBuilder { - _$PaymentMethodCashResponse? _$v; - - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - 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? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - 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; - - PaymentMethodCashResponseBuilder() { - PaymentMethodCashResponse._defaults(this); - } - - PaymentMethodCashResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reference = $v.reference; - _provider = $v.provider; - _barcodeUrl = $v.barcodeUrl; - _barcode = $v.barcode; - _expiresAt = $v.expiresAt; - _type = $v.type; - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodCashResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodCashResponse; - } - - @override - void update(void Function(PaymentMethodCashResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodCashResponse build() => _build(); - - _$PaymentMethodCashResponse _build() { - final _$result = _$v ?? - new _$PaymentMethodCashResponse._( - reference: reference, - provider: provider, - barcodeUrl: barcodeUrl, - barcode: barcode, - expiresAt: expiresAt, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodCashResponse', 'type'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'PaymentMethodCashResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodCashResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'PaymentMethodCashResponse', 'createdAt'), - parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_general_request.g.dart b/lib/src/model/payment_method_general_request.g.dart deleted file mode 100644 index bc6b13e..0000000 --- a/lib/src/model/payment_method_general_request.g.dart +++ /dev/null @@ -1,190 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_general_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodGeneralRequest extends PaymentMethodGeneralRequest { - @override - final int? expiresAt; - @override - final int? monthlyInstallments; - @override - final String type; - @override - final String? tokenId; - @override - final String? paymentSourceId; - @override - final String? cvc; - @override - final String? contractId; - @override - final String? customerIpAddress; - - factory _$PaymentMethodGeneralRequest( - [void Function(PaymentMethodGeneralRequestBuilder)? updates]) => - (new PaymentMethodGeneralRequestBuilder()..update(updates))._build(); - - _$PaymentMethodGeneralRequest._( - {this.expiresAt, - this.monthlyInstallments, - required this.type, - this.tokenId, - this.paymentSourceId, - this.cvc, - this.contractId, - this.customerIpAddress}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodGeneralRequest', 'type'); - } - - @override - PaymentMethodGeneralRequest rebuild( - void Function(PaymentMethodGeneralRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodGeneralRequestBuilder toBuilder() => - new PaymentMethodGeneralRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodGeneralRequest && - expiresAt == other.expiresAt && - monthlyInstallments == other.monthlyInstallments && - type == other.type && - tokenId == other.tokenId && - paymentSourceId == other.paymentSourceId && - cvc == other.cvc && - contractId == other.contractId && - customerIpAddress == other.customerIpAddress; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, monthlyInstallments.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, tokenId.hashCode); - _$hash = $jc(_$hash, paymentSourceId.hashCode); - _$hash = $jc(_$hash, cvc.hashCode); - _$hash = $jc(_$hash, contractId.hashCode); - _$hash = $jc(_$hash, customerIpAddress.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodGeneralRequest') - ..add('expiresAt', expiresAt) - ..add('monthlyInstallments', monthlyInstallments) - ..add('type', type) - ..add('tokenId', tokenId) - ..add('paymentSourceId', paymentSourceId) - ..add('cvc', cvc) - ..add('contractId', contractId) - ..add('customerIpAddress', customerIpAddress)) - .toString(); - } -} - -class PaymentMethodGeneralRequestBuilder - implements - Builder { - _$PaymentMethodGeneralRequest? _$v; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - int? _monthlyInstallments; - int? get monthlyInstallments => _$this._monthlyInstallments; - set monthlyInstallments(int? monthlyInstallments) => - _$this._monthlyInstallments = monthlyInstallments; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - String? _tokenId; - String? get tokenId => _$this._tokenId; - set tokenId(String? tokenId) => _$this._tokenId = tokenId; - - String? _paymentSourceId; - String? get paymentSourceId => _$this._paymentSourceId; - set paymentSourceId(String? paymentSourceId) => - _$this._paymentSourceId = paymentSourceId; - - String? _cvc; - String? get cvc => _$this._cvc; - set cvc(String? cvc) => _$this._cvc = cvc; - - String? _contractId; - String? get contractId => _$this._contractId; - set contractId(String? contractId) => _$this._contractId = contractId; - - String? _customerIpAddress; - String? get customerIpAddress => _$this._customerIpAddress; - set customerIpAddress(String? customerIpAddress) => - _$this._customerIpAddress = customerIpAddress; - - PaymentMethodGeneralRequestBuilder() { - PaymentMethodGeneralRequest._defaults(this); - } - - PaymentMethodGeneralRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _expiresAt = $v.expiresAt; - _monthlyInstallments = $v.monthlyInstallments; - _type = $v.type; - _tokenId = $v.tokenId; - _paymentSourceId = $v.paymentSourceId; - _cvc = $v.cvc; - _contractId = $v.contractId; - _customerIpAddress = $v.customerIpAddress; - _$v = null; - } - return this; - } - - @override - void replace(PaymentMethodGeneralRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodGeneralRequest; - } - - @override - void update(void Function(PaymentMethodGeneralRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodGeneralRequest build() => _build(); - - _$PaymentMethodGeneralRequest _build() { - final _$result = _$v ?? - new _$PaymentMethodGeneralRequest._( - expiresAt: expiresAt, - monthlyInstallments: monthlyInstallments, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodGeneralRequest', 'type'), - tokenId: tokenId, - paymentSourceId: paymentSourceId, - cvc: cvc, - contractId: contractId, - customerIpAddress: customerIpAddress); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_response.g.dart b/lib/src/model/payment_method_response.g.dart deleted file mode 100644 index 2f2879d..0000000 --- a/lib/src/model/payment_method_response.g.dart +++ /dev/null @@ -1,178 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class PaymentMethodResponseBuilder { - void replace(PaymentMethodResponse other); - void update(void Function(PaymentMethodResponseBuilder) updates); - String? get type; - set type(String? type); - - 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); -} - -class _$$PaymentMethodResponse extends $PaymentMethodResponse { - @override - final String type; - @override - final String id; - @override - final String object; - @override - final int createdAt; - @override - final String? parentId; - - factory _$$PaymentMethodResponse( - [void Function($PaymentMethodResponseBuilder)? updates]) => - (new $PaymentMethodResponseBuilder()..update(updates))._build(); - - _$$PaymentMethodResponse._( - {required this.type, - required this.id, - required this.object, - required this.createdAt, - this.parentId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'$PaymentMethodResponse', 'type'); - BuiltValueNullFieldError.checkNotNull(id, r'$PaymentMethodResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'$PaymentMethodResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'$PaymentMethodResponse', 'createdAt'); - } - - @override - $PaymentMethodResponse rebuild( - void Function($PaymentMethodResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $PaymentMethodResponseBuilder toBuilder() => - new $PaymentMethodResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $PaymentMethodResponse && - type == other.type && - id == other.id && - object == other.object && - createdAt == other.createdAt && - parentId == other.parentId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$PaymentMethodResponse') - ..add('type', type) - ..add('id', id) - ..add('object', object) - ..add('createdAt', createdAt) - ..add('parentId', parentId)) - .toString(); - } -} - -class $PaymentMethodResponseBuilder - implements - Builder<$PaymentMethodResponse, $PaymentMethodResponseBuilder>, - PaymentMethodResponseBuilder { - _$$PaymentMethodResponse? _$v; - - String? _type; - String? get type => _$this._type; - set type(covariant String? type) => _$this._type = type; - - 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; - - $PaymentMethodResponseBuilder() { - $PaymentMethodResponse._defaults(this); - } - - $PaymentMethodResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _type = $v.type; - _id = $v.id; - _object = $v.object; - _createdAt = $v.createdAt; - _parentId = $v.parentId; - _$v = null; - } - return this; - } - - @override - void replace(covariant $PaymentMethodResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$PaymentMethodResponse; - } - - @override - void update(void Function($PaymentMethodResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $PaymentMethodResponse build() => _build(); - - _$$PaymentMethodResponse _build() { - final _$result = _$v ?? - new _$$PaymentMethodResponse._( - type: BuiltValueNullFieldError.checkNotNull( - type, r'$PaymentMethodResponse', 'type'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'$PaymentMethodResponse', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'$PaymentMethodResponse', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'$PaymentMethodResponse', 'createdAt'), - parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_spei_recurrent.g.dart b/lib/src/model/payment_method_spei_recurrent.g.dart deleted file mode 100644 index b66b7ae..0000000 --- a/lib/src/model/payment_method_spei_recurrent.g.dart +++ /dev/null @@ -1,184 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_spei_recurrent.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { - @override - final String? reference; - @override - final String? expiresAt; - @override - final String type; - @override - final String id; - @override - final String object; - @override - final int createdAt; - @override - final String? parentId; - - factory _$PaymentMethodSpeiRecurrent( - [void Function(PaymentMethodSpeiRecurrentBuilder)? updates]) => - (new PaymentMethodSpeiRecurrentBuilder()..update(updates))._build(); - - _$PaymentMethodSpeiRecurrent._( - {this.reference, - this.expiresAt, - required this.type, - required this.id, - required this.object, - required this.createdAt, - this.parentId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodSpeiRecurrent', 'type'); - BuiltValueNullFieldError.checkNotNull( - id, r'PaymentMethodSpeiRecurrent', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodSpeiRecurrent', 'object'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'PaymentMethodSpeiRecurrent', 'createdAt'); - } - - @override - PaymentMethodSpeiRecurrent rebuild( - void Function(PaymentMethodSpeiRecurrentBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodSpeiRecurrentBuilder toBuilder() => - new PaymentMethodSpeiRecurrentBuilder()..replace(this); - - @override - 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; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reference.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @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)) - .toString(); - } -} - -class PaymentMethodSpeiRecurrentBuilder - implements - Builder, - 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; - - 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; - - PaymentMethodSpeiRecurrentBuilder() { - PaymentMethodSpeiRecurrent._defaults(this); - } - - 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; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodSpeiRecurrent other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodSpeiRecurrent; - } - - @override - void update(void Function(PaymentMethodSpeiRecurrentBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodSpeiRecurrent build() => _build(); - - _$PaymentMethodSpeiRecurrent _build() { - final _$result = _$v ?? - new _$PaymentMethodSpeiRecurrent._( - reference: reference, - expiresAt: expiresAt, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodSpeiRecurrent', 'type'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'PaymentMethodSpeiRecurrent', 'id'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'PaymentMethodSpeiRecurrent', 'object'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'PaymentMethodSpeiRecurrent', 'createdAt'), - parentId: parentId); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_spei_request.g.dart b/lib/src/model/payment_method_spei_request.g.dart deleted file mode 100644 index e83b728..0000000 --- a/lib/src/model/payment_method_spei_request.g.dart +++ /dev/null @@ -1,113 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_spei_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodSpeiRequest extends PaymentMethodSpeiRequest { - @override - final int? expiresAt; - @override - final String type; - - factory _$PaymentMethodSpeiRequest( - [void Function(PaymentMethodSpeiRequestBuilder)? updates]) => - (new PaymentMethodSpeiRequestBuilder()..update(updates))._build(); - - _$PaymentMethodSpeiRequest._({this.expiresAt, required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodSpeiRequest', 'type'); - } - - @override - PaymentMethodSpeiRequest rebuild( - void Function(PaymentMethodSpeiRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodSpeiRequestBuilder toBuilder() => - new PaymentMethodSpeiRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodSpeiRequest && - expiresAt == other.expiresAt && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodSpeiRequest') - ..add('expiresAt', expiresAt) - ..add('type', type)) - .toString(); - } -} - -class PaymentMethodSpeiRequestBuilder - implements - Builder, - CustomerPaymentMethodRequestBuilder { - _$PaymentMethodSpeiRequest? _$v; - - 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); - } - - PaymentMethodSpeiRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _expiresAt = $v.expiresAt; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodSpeiRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodSpeiRequest; - } - - @override - void update(void Function(PaymentMethodSpeiRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodSpeiRequest build() => _build(); - - _$PaymentMethodSpeiRequest _build() { - final _$result = _$v ?? - new _$PaymentMethodSpeiRequest._( - expiresAt: expiresAt, - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodSpeiRequest', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_token_request.g.dart b/lib/src/model/payment_method_token_request.g.dart deleted file mode 100644 index 723d3ca..0000000 --- a/lib/src/model/payment_method_token_request.g.dart +++ /dev/null @@ -1,116 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payment_method_token_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PaymentMethodTokenRequest extends PaymentMethodTokenRequest { - @override - final String tokenId; - @override - final String type; - - factory _$PaymentMethodTokenRequest( - [void Function(PaymentMethodTokenRequestBuilder)? updates]) => - (new PaymentMethodTokenRequestBuilder()..update(updates))._build(); - - _$PaymentMethodTokenRequest._({required this.tokenId, required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - tokenId, r'PaymentMethodTokenRequest', 'tokenId'); - BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodTokenRequest', 'type'); - } - - @override - PaymentMethodTokenRequest rebuild( - void Function(PaymentMethodTokenRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaymentMethodTokenRequestBuilder toBuilder() => - new PaymentMethodTokenRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PaymentMethodTokenRequest && - tokenId == other.tokenId && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, tokenId.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PaymentMethodTokenRequest') - ..add('tokenId', tokenId) - ..add('type', type)) - .toString(); - } -} - -class PaymentMethodTokenRequestBuilder - implements - Builder, - CustomerPaymentMethodRequestBuilder { - _$PaymentMethodTokenRequest? _$v; - - 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; - - PaymentMethodTokenRequestBuilder() { - PaymentMethodTokenRequest._defaults(this); - } - - PaymentMethodTokenRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _tokenId = $v.tokenId; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(covariant PaymentMethodTokenRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PaymentMethodTokenRequest; - } - - @override - void update(void Function(PaymentMethodTokenRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PaymentMethodTokenRequest build() => _build(); - - _$PaymentMethodTokenRequest _build() { - final _$result = _$v ?? - new _$PaymentMethodTokenRequest._( - tokenId: BuiltValueNullFieldError.checkNotNull( - tokenId, r'PaymentMethodTokenRequest', 'tokenId'), - type: BuiltValueNullFieldError.checkNotNull( - type, r'PaymentMethodTokenRequest', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout.g.dart b/lib/src/model/payout.g.dart deleted file mode 100644 index beb190e..0000000 --- a/lib/src/model/payout.g.dart +++ /dev/null @@ -1,106 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$Payout extends Payout { - @override - final PayoutMethod payoutMethod; - - factory _$Payout([void Function(PayoutBuilder)? updates]) => - (new PayoutBuilder()..update(updates))._build(); - - _$Payout._({required this.payoutMethod}) : super._() { - BuiltValueNullFieldError.checkNotNull( - payoutMethod, r'Payout', 'payoutMethod'); - } - - @override - Payout rebuild(void Function(PayoutBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutBuilder toBuilder() => new PayoutBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Payout && payoutMethod == other.payoutMethod; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, payoutMethod.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Payout') - ..add('payoutMethod', payoutMethod)) - .toString(); - } -} - -class PayoutBuilder implements Builder { - _$Payout? _$v; - - PayoutMethodBuilder? _payoutMethod; - PayoutMethodBuilder get payoutMethod => - _$this._payoutMethod ??= new PayoutMethodBuilder(); - set payoutMethod(PayoutMethodBuilder? payoutMethod) => - _$this._payoutMethod = payoutMethod; - - PayoutBuilder() { - Payout._defaults(this); - } - - PayoutBuilder get _$this { - final $v = _$v; - if ($v != null) { - _payoutMethod = $v.payoutMethod.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(Payout other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Payout; - } - - @override - void update(void Function(PayoutBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Payout build() => _build(); - - _$Payout _build() { - _$Payout _$result; - try { - _$result = _$v ?? new _$Payout._(payoutMethod: payoutMethod.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'payoutMethod'; - payoutMethod.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'Payout', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_method.g.dart b/lib/src/model/payout_method.g.dart deleted file mode 100644 index 6f37e0d..0000000 --- a/lib/src/model/payout_method.g.dart +++ /dev/null @@ -1,93 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout_method.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PayoutMethod extends PayoutMethod { - @override - final String type; - - factory _$PayoutMethod([void Function(PayoutMethodBuilder)? updates]) => - (new PayoutMethodBuilder()..update(updates))._build(); - - _$PayoutMethod._({required this.type}) : super._() { - BuiltValueNullFieldError.checkNotNull(type, r'PayoutMethod', 'type'); - } - - @override - PayoutMethod rebuild(void Function(PayoutMethodBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutMethodBuilder toBuilder() => new PayoutMethodBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PayoutMethod && type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PayoutMethod')..add('type', type)) - .toString(); - } -} - -class PayoutMethodBuilder - implements Builder { - _$PayoutMethod? _$v; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - PayoutMethodBuilder() { - PayoutMethod._defaults(this); - } - - PayoutMethodBuilder get _$this { - final $v = _$v; - if ($v != null) { - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(PayoutMethod other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PayoutMethod; - } - - @override - void update(void Function(PayoutMethodBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PayoutMethod build() => _build(); - - _$PayoutMethod _build() { - final _$result = _$v ?? - new _$PayoutMethod._( - type: BuiltValueNullFieldError.checkNotNull( - type, r'PayoutMethod', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order.g.dart b/lib/src/model/payout_order.g.dart deleted file mode 100644 index 0f0eeb3..0000000 --- a/lib/src/model/payout_order.g.dart +++ /dev/null @@ -1,203 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout_order.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PayoutOrder extends PayoutOrder { - @override - final BuiltList allowedPayoutMethods; - @override - final int amount; - @override - final String currency; - @override - final CustomerInfoJustCustomerId customerInfo; - @override - final BuiltMap? metadata; - @override - final Payout payout; - @override - final String reason; - - factory _$PayoutOrder([void Function(PayoutOrderBuilder)? updates]) => - (new PayoutOrderBuilder()..update(updates))._build(); - - _$PayoutOrder._( - {required this.allowedPayoutMethods, - required this.amount, - required this.currency, - required this.customerInfo, - this.metadata, - required this.payout, - required this.reason}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - allowedPayoutMethods, r'PayoutOrder', 'allowedPayoutMethods'); - BuiltValueNullFieldError.checkNotNull(amount, r'PayoutOrder', 'amount'); - BuiltValueNullFieldError.checkNotNull(currency, r'PayoutOrder', 'currency'); - BuiltValueNullFieldError.checkNotNull( - customerInfo, r'PayoutOrder', 'customerInfo'); - BuiltValueNullFieldError.checkNotNull(payout, r'PayoutOrder', 'payout'); - BuiltValueNullFieldError.checkNotNull(reason, r'PayoutOrder', 'reason'); - } - - @override - PayoutOrder rebuild(void Function(PayoutOrderBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutOrderBuilder toBuilder() => new PayoutOrderBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PayoutOrder && - allowedPayoutMethods == other.allowedPayoutMethods && - amount == other.amount && - currency == other.currency && - customerInfo == other.customerInfo && - metadata == other.metadata && - payout == other.payout && - reason == other.reason; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPayoutMethods.hashCode); - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerInfo.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, payout.hashCode); - _$hash = $jc(_$hash, reason.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PayoutOrder') - ..add('allowedPayoutMethods', allowedPayoutMethods) - ..add('amount', amount) - ..add('currency', currency) - ..add('customerInfo', customerInfo) - ..add('metadata', metadata) - ..add('payout', payout) - ..add('reason', reason)) - .toString(); - } -} - -class PayoutOrderBuilder implements Builder { - _$PayoutOrder? _$v; - - ListBuilder? _allowedPayoutMethods; - ListBuilder get allowedPayoutMethods => - _$this._allowedPayoutMethods ??= new ListBuilder(); - set allowedPayoutMethods(ListBuilder? allowedPayoutMethods) => - _$this._allowedPayoutMethods = allowedPayoutMethods; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - CustomerInfoJustCustomerIdBuilder? _customerInfo; - CustomerInfoJustCustomerIdBuilder get customerInfo => - _$this._customerInfo ??= new CustomerInfoJustCustomerIdBuilder(); - set customerInfo(CustomerInfoJustCustomerIdBuilder? customerInfo) => - _$this._customerInfo = customerInfo; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - PayoutBuilder? _payout; - PayoutBuilder get payout => _$this._payout ??= new PayoutBuilder(); - set payout(PayoutBuilder? payout) => _$this._payout = payout; - - String? _reason; - String? get reason => _$this._reason; - set reason(String? reason) => _$this._reason = reason; - - PayoutOrderBuilder() { - PayoutOrder._defaults(this); - } - - PayoutOrderBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPayoutMethods = $v.allowedPayoutMethods.toBuilder(); - _amount = $v.amount; - _currency = $v.currency; - _customerInfo = $v.customerInfo.toBuilder(); - _metadata = $v.metadata?.toBuilder(); - _payout = $v.payout.toBuilder(); - _reason = $v.reason; - _$v = null; - } - return this; - } - - @override - void replace(PayoutOrder other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PayoutOrder; - } - - @override - void update(void Function(PayoutOrderBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PayoutOrder build() => _build(); - - _$PayoutOrder _build() { - _$PayoutOrder _$result; - try { - _$result = _$v ?? - new _$PayoutOrder._( - allowedPayoutMethods: allowedPayoutMethods.build(), - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'PayoutOrder', 'amount'), - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'PayoutOrder', 'currency'), - customerInfo: customerInfo.build(), - metadata: _metadata?.build(), - payout: payout.build(), - reason: BuiltValueNullFieldError.checkNotNull( - reason, r'PayoutOrder', 'reason')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPayoutMethods'; - allowedPayoutMethods.build(); - - _$failedField = 'customerInfo'; - customerInfo.build(); - _$failedField = 'metadata'; - _metadata?.build(); - _$failedField = 'payout'; - payout.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'PayoutOrder', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order_payouts_item.g.dart b/lib/src/model/payout_order_payouts_item.g.dart deleted file mode 100644 index 4697a69..0000000 --- a/lib/src/model/payout_order_payouts_item.g.dart +++ /dev/null @@ -1,197 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout_order_payouts_item.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PayoutOrderPayoutsItem extends PayoutOrderPayoutsItem { - @override - final int amount; - @override - final String currency; - @override - final int? expiresAt; - @override - final String id; - @override - final bool livemode; - @override - final String object; - @override - final String? payoutOrderId; - @override - final String? status; - - factory _$PayoutOrderPayoutsItem( - [void Function(PayoutOrderPayoutsItemBuilder)? updates]) => - (new PayoutOrderPayoutsItemBuilder()..update(updates))._build(); - - _$PayoutOrderPayoutsItem._( - {required this.amount, - required this.currency, - this.expiresAt, - required this.id, - required this.livemode, - required this.object, - this.payoutOrderId, - this.status}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'PayoutOrderPayoutsItem', 'amount'); - BuiltValueNullFieldError.checkNotNull( - currency, r'PayoutOrderPayoutsItem', 'currency'); - BuiltValueNullFieldError.checkNotNull(id, r'PayoutOrderPayoutsItem', 'id'); - BuiltValueNullFieldError.checkNotNull( - livemode, r'PayoutOrderPayoutsItem', 'livemode'); - BuiltValueNullFieldError.checkNotNull( - object, r'PayoutOrderPayoutsItem', 'object'); - } - - @override - PayoutOrderPayoutsItem rebuild( - void Function(PayoutOrderPayoutsItemBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutOrderPayoutsItemBuilder toBuilder() => - new PayoutOrderPayoutsItemBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PayoutOrderPayoutsItem && - amount == other.amount && - currency == other.currency && - expiresAt == other.expiresAt && - id == other.id && - livemode == other.livemode && - object == other.object && - payoutOrderId == other.payoutOrderId && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, payoutOrderId.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PayoutOrderPayoutsItem') - ..add('amount', amount) - ..add('currency', currency) - ..add('expiresAt', expiresAt) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('payoutOrderId', payoutOrderId) - ..add('status', status)) - .toString(); - } -} - -class PayoutOrderPayoutsItemBuilder - implements Builder { - _$PayoutOrderPayoutsItem? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _payoutOrderId; - String? get payoutOrderId => _$this._payoutOrderId; - set payoutOrderId(String? payoutOrderId) => - _$this._payoutOrderId = payoutOrderId; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - PayoutOrderPayoutsItemBuilder() { - PayoutOrderPayoutsItem._defaults(this); - } - - PayoutOrderPayoutsItemBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _currency = $v.currency; - _expiresAt = $v.expiresAt; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _payoutOrderId = $v.payoutOrderId; - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(PayoutOrderPayoutsItem other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PayoutOrderPayoutsItem; - } - - @override - void update(void Function(PayoutOrderPayoutsItemBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PayoutOrderPayoutsItem build() => _build(); - - _$PayoutOrderPayoutsItem _build() { - final _$result = _$v ?? - new _$PayoutOrderPayoutsItem._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'PayoutOrderPayoutsItem', 'amount'), - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'PayoutOrderPayoutsItem', 'currency'), - expiresAt: expiresAt, - id: BuiltValueNullFieldError.checkNotNull( - id, r'PayoutOrderPayoutsItem', 'id'), - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'PayoutOrderPayoutsItem', 'livemode'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'PayoutOrderPayoutsItem', 'object'), - payoutOrderId: payoutOrderId, - status: status); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order_response.g.dart b/lib/src/model/payout_order_response.g.dart deleted file mode 100644 index 4103f27..0000000 --- a/lib/src/model/payout_order_response.g.dart +++ /dev/null @@ -1,312 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout_order_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PayoutOrderResponse extends PayoutOrderResponse { - @override - final BuiltList allowedPayoutMethods; - @override - final int amount; - @override - final int createdAt; - @override - final String currency; - @override - final PayoutOrderResponseCustomerInfo customerInfo; - @override - final int? expiresAt; - @override - final String id; - @override - final bool livemode; - @override - final String object; - @override - final BuiltMap? metadata; - @override - final BuiltList payouts; - @override - final String reason; - @override - final String? status; - @override - final int updatedAt; - - factory _$PayoutOrderResponse( - [void Function(PayoutOrderResponseBuilder)? updates]) => - (new PayoutOrderResponseBuilder()..update(updates))._build(); - - _$PayoutOrderResponse._( - {required this.allowedPayoutMethods, - required this.amount, - required this.createdAt, - required this.currency, - required this.customerInfo, - this.expiresAt, - required this.id, - required this.livemode, - required this.object, - this.metadata, - required this.payouts, - required this.reason, - this.status, - required this.updatedAt}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - allowedPayoutMethods, r'PayoutOrderResponse', 'allowedPayoutMethods'); - BuiltValueNullFieldError.checkNotNull( - amount, r'PayoutOrderResponse', 'amount'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'PayoutOrderResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - currency, r'PayoutOrderResponse', 'currency'); - BuiltValueNullFieldError.checkNotNull( - customerInfo, r'PayoutOrderResponse', 'customerInfo'); - BuiltValueNullFieldError.checkNotNull(id, r'PayoutOrderResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - livemode, r'PayoutOrderResponse', 'livemode'); - BuiltValueNullFieldError.checkNotNull( - object, r'PayoutOrderResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - payouts, r'PayoutOrderResponse', 'payouts'); - BuiltValueNullFieldError.checkNotNull( - reason, r'PayoutOrderResponse', 'reason'); - BuiltValueNullFieldError.checkNotNull( - updatedAt, r'PayoutOrderResponse', 'updatedAt'); - } - - @override - PayoutOrderResponse rebuild( - void Function(PayoutOrderResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutOrderResponseBuilder toBuilder() => - new PayoutOrderResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PayoutOrderResponse && - allowedPayoutMethods == other.allowedPayoutMethods && - amount == other.amount && - createdAt == other.createdAt && - currency == other.currency && - customerInfo == other.customerInfo && - expiresAt == other.expiresAt && - id == other.id && - livemode == other.livemode && - object == other.object && - metadata == other.metadata && - payouts == other.payouts && - reason == other.reason && - status == other.status && - updatedAt == other.updatedAt; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPayoutMethods.hashCode); - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, customerInfo.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, payouts.hashCode); - _$hash = $jc(_$hash, reason.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, updatedAt.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PayoutOrderResponse') - ..add('allowedPayoutMethods', allowedPayoutMethods) - ..add('amount', amount) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('customerInfo', customerInfo) - ..add('expiresAt', expiresAt) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('metadata', metadata) - ..add('payouts', payouts) - ..add('reason', reason) - ..add('status', status) - ..add('updatedAt', updatedAt)) - .toString(); - } -} - -class PayoutOrderResponseBuilder - implements Builder { - _$PayoutOrderResponse? _$v; - - ListBuilder? _allowedPayoutMethods; - ListBuilder get allowedPayoutMethods => - _$this._allowedPayoutMethods ??= new ListBuilder(); - set allowedPayoutMethods(ListBuilder? allowedPayoutMethods) => - _$this._allowedPayoutMethods = allowedPayoutMethods; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - PayoutOrderResponseCustomerInfoBuilder? _customerInfo; - PayoutOrderResponseCustomerInfoBuilder get customerInfo => - _$this._customerInfo ??= new PayoutOrderResponseCustomerInfoBuilder(); - set customerInfo(PayoutOrderResponseCustomerInfoBuilder? customerInfo) => - _$this._customerInfo = customerInfo; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - ListBuilder? _payouts; - ListBuilder get payouts => - _$this._payouts ??= new ListBuilder(); - set payouts(ListBuilder? payouts) => - _$this._payouts = payouts; - - String? _reason; - String? get reason => _$this._reason; - set reason(String? reason) => _$this._reason = reason; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - int? _updatedAt; - int? get updatedAt => _$this._updatedAt; - set updatedAt(int? updatedAt) => _$this._updatedAt = updatedAt; - - PayoutOrderResponseBuilder() { - PayoutOrderResponse._defaults(this); - } - - PayoutOrderResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPayoutMethods = $v.allowedPayoutMethods.toBuilder(); - _amount = $v.amount; - _createdAt = $v.createdAt; - _currency = $v.currency; - _customerInfo = $v.customerInfo.toBuilder(); - _expiresAt = $v.expiresAt; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _metadata = $v.metadata?.toBuilder(); - _payouts = $v.payouts.toBuilder(); - _reason = $v.reason; - _status = $v.status; - _updatedAt = $v.updatedAt; - _$v = null; - } - return this; - } - - @override - void replace(PayoutOrderResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PayoutOrderResponse; - } - - @override - void update(void Function(PayoutOrderResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PayoutOrderResponse build() => _build(); - - _$PayoutOrderResponse _build() { - _$PayoutOrderResponse _$result; - try { - _$result = _$v ?? - new _$PayoutOrderResponse._( - allowedPayoutMethods: allowedPayoutMethods.build(), - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'PayoutOrderResponse', 'amount'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'PayoutOrderResponse', 'createdAt'), - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'PayoutOrderResponse', 'currency'), - customerInfo: customerInfo.build(), - expiresAt: expiresAt, - id: BuiltValueNullFieldError.checkNotNull( - id, r'PayoutOrderResponse', 'id'), - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'PayoutOrderResponse', 'livemode'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'PayoutOrderResponse', 'object'), - metadata: _metadata?.build(), - payouts: payouts.build(), - reason: BuiltValueNullFieldError.checkNotNull( - reason, r'PayoutOrderResponse', 'reason'), - status: status, - updatedAt: BuiltValueNullFieldError.checkNotNull( - updatedAt, r'PayoutOrderResponse', 'updatedAt')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPayoutMethods'; - allowedPayoutMethods.build(); - - _$failedField = 'customerInfo'; - customerInfo.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - _$failedField = 'payouts'; - payouts.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'PayoutOrderResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order_response_customer_info.g.dart b/lib/src/model/payout_order_response_customer_info.g.dart deleted file mode 100644 index 23b788c..0000000 --- a/lib/src/model/payout_order_response_customer_info.g.dart +++ /dev/null @@ -1,178 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout_order_response_customer_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PayoutOrderResponseCustomerInfo - extends PayoutOrderResponseCustomerInfo { - @override - final String id; - @override - final String? customerCustomReference; - @override - final String? name; - @override - final String? email; - @override - final String? phone; - @override - final bool? corporate; - @override - final String? object; - - factory _$PayoutOrderResponseCustomerInfo( - [void Function(PayoutOrderResponseCustomerInfoBuilder)? updates]) => - (new PayoutOrderResponseCustomerInfoBuilder()..update(updates))._build(); - - _$PayoutOrderResponseCustomerInfo._( - {required this.id, - this.customerCustomReference, - this.name, - this.email, - this.phone, - this.corporate, - this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - id, r'PayoutOrderResponseCustomerInfo', 'id'); - } - - @override - PayoutOrderResponseCustomerInfo rebuild( - void Function(PayoutOrderResponseCustomerInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutOrderResponseCustomerInfoBuilder toBuilder() => - new PayoutOrderResponseCustomerInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PayoutOrderResponseCustomerInfo && - id == other.id && - customerCustomReference == other.customerCustomReference && - name == other.name && - email == other.email && - phone == other.phone && - corporate == other.corporate && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, customerCustomReference.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PayoutOrderResponseCustomerInfo') - ..add('id', id) - ..add('customerCustomReference', customerCustomReference) - ..add('name', name) - ..add('email', email) - ..add('phone', phone) - ..add('corporate', corporate) - ..add('object', object)) - .toString(); - } -} - -class PayoutOrderResponseCustomerInfoBuilder - implements - Builder, - OrderCustomerInfoResponseBuilder { - _$PayoutOrderResponseCustomerInfo? _$v; - - String? _id; - String? get id => _$this._id; - set id(covariant String? id) => _$this._id = id; - - String? _customerCustomReference; - String? get customerCustomReference => _$this._customerCustomReference; - set customerCustomReference(covariant String? customerCustomReference) => - _$this._customerCustomReference = customerCustomReference; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(covariant bool? corporate) => _$this._corporate = corporate; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - PayoutOrderResponseCustomerInfoBuilder() { - PayoutOrderResponseCustomerInfo._defaults(this); - } - - PayoutOrderResponseCustomerInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _customerCustomReference = $v.customerCustomReference; - _name = $v.name; - _email = $v.email; - _phone = $v.phone; - _corporate = $v.corporate; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(covariant PayoutOrderResponseCustomerInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PayoutOrderResponseCustomerInfo; - } - - @override - void update(void Function(PayoutOrderResponseCustomerInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PayoutOrderResponseCustomerInfo build() => _build(); - - _$PayoutOrderResponseCustomerInfo _build() { - final _$result = _$v ?? - new _$PayoutOrderResponseCustomerInfo._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'PayoutOrderResponseCustomerInfo', 'id'), - customerCustomReference: customerCustomReference, - name: name, - email: email, - phone: phone, - corporate: corporate, - object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_orders_response.g.dart b/lib/src/model/payout_orders_response.g.dart deleted file mode 100644 index b096b2c..0000000 --- a/lib/src/model/payout_orders_response.g.dart +++ /dev/null @@ -1,173 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'payout_orders_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PayoutOrdersResponse extends PayoutOrdersResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$PayoutOrdersResponse( - [void Function(PayoutOrdersResponseBuilder)? updates]) => - (new PayoutOrdersResponseBuilder()..update(updates))._build(); - - _$PayoutOrdersResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'PayoutOrdersResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'PayoutOrdersResponse', 'object'); - } - - @override - PayoutOrdersResponse rebuild( - void Function(PayoutOrdersResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PayoutOrdersResponseBuilder toBuilder() => - new PayoutOrdersResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PayoutOrdersResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PayoutOrdersResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class PayoutOrdersResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$PayoutOrdersResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - PayoutOrdersResponseBuilder() { - PayoutOrdersResponse._defaults(this); - } - - PayoutOrdersResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant PayoutOrdersResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PayoutOrdersResponse; - } - - @override - void update(void Function(PayoutOrdersResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PayoutOrdersResponse build() => _build(); - - _$PayoutOrdersResponse _build() { - _$PayoutOrdersResponse _$result; - try { - _$result = _$v ?? - new _$PayoutOrdersResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'PayoutOrdersResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'PayoutOrdersResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'PayoutOrdersResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/plan_request.g.dart b/lib/src/model/plan_request.g.dart deleted file mode 100644 index b328fe9..0000000 --- a/lib/src/model/plan_request.g.dart +++ /dev/null @@ -1,257 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'plan_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const PlanRequestIntervalEnum _$planRequestIntervalEnum_week = - const PlanRequestIntervalEnum._('week'); -const PlanRequestIntervalEnum _$planRequestIntervalEnum_halfMonth = - const PlanRequestIntervalEnum._('halfMonth'); -const PlanRequestIntervalEnum _$planRequestIntervalEnum_month = - const PlanRequestIntervalEnum._('month'); -const PlanRequestIntervalEnum _$planRequestIntervalEnum_year = - const PlanRequestIntervalEnum._('year'); - -PlanRequestIntervalEnum _$planRequestIntervalEnumValueOf(String name) { - switch (name) { - case 'week': - return _$planRequestIntervalEnum_week; - case 'halfMonth': - return _$planRequestIntervalEnum_halfMonth; - case 'month': - return _$planRequestIntervalEnum_month; - case 'year': - return _$planRequestIntervalEnum_year; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$planRequestIntervalEnumValues = - new BuiltSet(const [ - _$planRequestIntervalEnum_week, - _$planRequestIntervalEnum_halfMonth, - _$planRequestIntervalEnum_month, - _$planRequestIntervalEnum_year, -]); - -Serializer _$planRequestIntervalEnumSerializer = - new _$PlanRequestIntervalEnumSerializer(); - -class _$PlanRequestIntervalEnumSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'week': 'week', - 'halfMonth': 'half_month', - 'month': 'month', - 'year': 'year', - }; - static const Map _fromWire = const { - 'week': 'week', - 'half_month': 'halfMonth', - 'month': 'month', - 'year': 'year', - }; - - @override - final Iterable types = const [PlanRequestIntervalEnum]; - @override - final String wireName = 'PlanRequestIntervalEnum'; - - @override - Object serialize(Serializers serializers, PlanRequestIntervalEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - PlanRequestIntervalEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PlanRequestIntervalEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$PlanRequest extends PlanRequest { - @override - final int amount; - @override - final String? currency; - @override - final int? expiryCount; - @override - final int frequency; - @override - final String? id; - @override - final PlanRequestIntervalEnum interval; - @override - final String name; - @override - final int? trialPeriodDays; - - factory _$PlanRequest([void Function(PlanRequestBuilder)? updates]) => - (new PlanRequestBuilder()..update(updates))._build(); - - _$PlanRequest._( - {required this.amount, - this.currency, - this.expiryCount, - required this.frequency, - this.id, - required this.interval, - required this.name, - this.trialPeriodDays}) - : super._() { - BuiltValueNullFieldError.checkNotNull(amount, r'PlanRequest', 'amount'); - BuiltValueNullFieldError.checkNotNull( - frequency, r'PlanRequest', 'frequency'); - BuiltValueNullFieldError.checkNotNull(interval, r'PlanRequest', 'interval'); - BuiltValueNullFieldError.checkNotNull(name, r'PlanRequest', 'name'); - } - - @override - PlanRequest rebuild(void Function(PlanRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PlanRequestBuilder toBuilder() => new PlanRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PlanRequest && - amount == other.amount && - currency == other.currency && - expiryCount == other.expiryCount && - frequency == other.frequency && - id == other.id && - interval == other.interval && - name == other.name && - trialPeriodDays == other.trialPeriodDays; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, expiryCount.hashCode); - _$hash = $jc(_$hash, frequency.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, interval.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, trialPeriodDays.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PlanRequest') - ..add('amount', amount) - ..add('currency', currency) - ..add('expiryCount', expiryCount) - ..add('frequency', frequency) - ..add('id', id) - ..add('interval', interval) - ..add('name', name) - ..add('trialPeriodDays', trialPeriodDays)) - .toString(); - } -} - -class PlanRequestBuilder implements Builder { - _$PlanRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - int? _expiryCount; - int? get expiryCount => _$this._expiryCount; - set expiryCount(int? expiryCount) => _$this._expiryCount = expiryCount; - - int? _frequency; - int? get frequency => _$this._frequency; - set frequency(int? frequency) => _$this._frequency = frequency; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - PlanRequestIntervalEnum? _interval; - PlanRequestIntervalEnum? get interval => _$this._interval; - set interval(PlanRequestIntervalEnum? interval) => - _$this._interval = interval; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - int? _trialPeriodDays; - int? get trialPeriodDays => _$this._trialPeriodDays; - set trialPeriodDays(int? trialPeriodDays) => - _$this._trialPeriodDays = trialPeriodDays; - - PlanRequestBuilder() { - PlanRequest._defaults(this); - } - - PlanRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _currency = $v.currency; - _expiryCount = $v.expiryCount; - _frequency = $v.frequency; - _id = $v.id; - _interval = $v.interval; - _name = $v.name; - _trialPeriodDays = $v.trialPeriodDays; - _$v = null; - } - return this; - } - - @override - void replace(PlanRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PlanRequest; - } - - @override - void update(void Function(PlanRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PlanRequest build() => _build(); - - _$PlanRequest _build() { - final _$result = _$v ?? - new _$PlanRequest._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'PlanRequest', 'amount'), - currency: currency, - expiryCount: expiryCount, - frequency: BuiltValueNullFieldError.checkNotNull( - frequency, r'PlanRequest', 'frequency'), - id: id, - interval: BuiltValueNullFieldError.checkNotNull( - interval, r'PlanRequest', 'interval'), - name: BuiltValueNullFieldError.checkNotNull( - name, r'PlanRequest', 'name'), - trialPeriodDays: trialPeriodDays); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/plan_response.g.dart b/lib/src/model/plan_response.g.dart deleted file mode 100644 index 666ebd6..0000000 --- a/lib/src/model/plan_response.g.dart +++ /dev/null @@ -1,215 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'plan_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PlanResponse extends PlanResponse { - @override - final int? amount; - @override - final int? createdAt; - @override - final String? currency; - @override - final int? expiryCount; - @override - final int? frequency; - @override - final String? id; - @override - final String? interval; - @override - final bool? livemode; - @override - final String? name; - @override - final String? object; - @override - final int? trialPeriodDays; - - factory _$PlanResponse([void Function(PlanResponseBuilder)? updates]) => - (new PlanResponseBuilder()..update(updates))._build(); - - _$PlanResponse._( - {this.amount, - this.createdAt, - this.currency, - this.expiryCount, - this.frequency, - this.id, - this.interval, - this.livemode, - this.name, - this.object, - this.trialPeriodDays}) - : super._(); - - @override - PlanResponse rebuild(void Function(PlanResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PlanResponseBuilder toBuilder() => new PlanResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PlanResponse && - amount == other.amount && - createdAt == other.createdAt && - currency == other.currency && - expiryCount == other.expiryCount && - frequency == other.frequency && - id == other.id && - interval == other.interval && - livemode == other.livemode && - name == other.name && - object == other.object && - trialPeriodDays == other.trialPeriodDays; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, expiryCount.hashCode); - _$hash = $jc(_$hash, frequency.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, interval.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, trialPeriodDays.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PlanResponse') - ..add('amount', amount) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('expiryCount', expiryCount) - ..add('frequency', frequency) - ..add('id', id) - ..add('interval', interval) - ..add('livemode', livemode) - ..add('name', name) - ..add('object', object) - ..add('trialPeriodDays', trialPeriodDays)) - .toString(); - } -} - -class PlanResponseBuilder - implements Builder { - _$PlanResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - int? _expiryCount; - int? get expiryCount => _$this._expiryCount; - set expiryCount(int? expiryCount) => _$this._expiryCount = expiryCount; - - int? _frequency; - int? get frequency => _$this._frequency; - set frequency(int? frequency) => _$this._frequency = frequency; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _interval; - String? get interval => _$this._interval; - set interval(String? interval) => _$this._interval = interval; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - int? _trialPeriodDays; - int? get trialPeriodDays => _$this._trialPeriodDays; - set trialPeriodDays(int? trialPeriodDays) => - _$this._trialPeriodDays = trialPeriodDays; - - PlanResponseBuilder() { - PlanResponse._defaults(this); - } - - PlanResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _createdAt = $v.createdAt; - _currency = $v.currency; - _expiryCount = $v.expiryCount; - _frequency = $v.frequency; - _id = $v.id; - _interval = $v.interval; - _livemode = $v.livemode; - _name = $v.name; - _object = $v.object; - _trialPeriodDays = $v.trialPeriodDays; - _$v = null; - } - return this; - } - - @override - void replace(PlanResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PlanResponse; - } - - @override - void update(void Function(PlanResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PlanResponse build() => _build(); - - _$PlanResponse _build() { - final _$result = _$v ?? - new _$PlanResponse._( - amount: amount, - createdAt: createdAt, - currency: currency, - expiryCount: expiryCount, - frequency: frequency, - id: id, - interval: interval, - livemode: livemode, - name: name, - object: object, - trialPeriodDays: trialPeriodDays); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/plan_update_request.g.dart b/lib/src/model/plan_update_request.g.dart deleted file mode 100644 index 79ac4d3..0000000 --- a/lib/src/model/plan_update_request.g.dart +++ /dev/null @@ -1,129 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'plan_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$PlanUpdateRequest extends PlanUpdateRequest { - @override - final int? amount; - @override - final String? currency; - @override - final int? expiryCount; - @override - final String? name; - - factory _$PlanUpdateRequest( - [void Function(PlanUpdateRequestBuilder)? updates]) => - (new PlanUpdateRequestBuilder()..update(updates))._build(); - - _$PlanUpdateRequest._( - {this.amount, this.currency, this.expiryCount, this.name}) - : super._(); - - @override - PlanUpdateRequest rebuild(void Function(PlanUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PlanUpdateRequestBuilder toBuilder() => - new PlanUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PlanUpdateRequest && - amount == other.amount && - currency == other.currency && - expiryCount == other.expiryCount && - name == other.name; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, expiryCount.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PlanUpdateRequest') - ..add('amount', amount) - ..add('currency', currency) - ..add('expiryCount', expiryCount) - ..add('name', name)) - .toString(); - } -} - -class PlanUpdateRequestBuilder - implements Builder { - _$PlanUpdateRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - int? _expiryCount; - int? get expiryCount => _$this._expiryCount; - set expiryCount(int? expiryCount) => _$this._expiryCount = expiryCount; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - PlanUpdateRequestBuilder() { - PlanUpdateRequest._defaults(this); - } - - PlanUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _currency = $v.currency; - _expiryCount = $v.expiryCount; - _name = $v.name; - _$v = null; - } - return this; - } - - @override - void replace(PlanUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PlanUpdateRequest; - } - - @override - void update(void Function(PlanUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PlanUpdateRequest build() => _build(); - - _$PlanUpdateRequest _build() { - final _$result = _$v ?? - new _$PlanUpdateRequest._( - amount: amount, - currency: currency, - expiryCount: expiryCount, - name: name); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/product.g.dart b/lib/src/model/product.g.dart deleted file mode 100644 index dbf911a..0000000 --- a/lib/src/model/product.g.dart +++ /dev/null @@ -1,252 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'product.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ProductBuilder { - void replace(Product other); - void update(void Function(ProductBuilder) updates); - MapBuilder get antifraudInfo; - set antifraudInfo(MapBuilder? antifraudInfo); - - String? get brand; - set brand(String? brand); - - String? get description; - set description(String? description); - - MapBuilder get metadata; - set metadata(MapBuilder? metadata); - - String? get name; - set name(String? name); - - int? get quantity; - set quantity(int? quantity); - - String? get sku; - set sku(String? sku); - - ListBuilder get tags; - set tags(ListBuilder? tags); - - int? get unitPrice; - set unitPrice(int? unitPrice); -} - -class _$$Product extends $Product { - @override - final BuiltMap? antifraudInfo; - @override - final String? brand; - @override - final String? description; - @override - final BuiltMap? metadata; - @override - final String name; - @override - final int quantity; - @override - final String? sku; - @override - final BuiltList? tags; - @override - final int unitPrice; - - factory _$$Product([void Function($ProductBuilder)? updates]) => - (new $ProductBuilder()..update(updates))._build(); - - _$$Product._( - {this.antifraudInfo, - this.brand, - this.description, - this.metadata, - required this.name, - required this.quantity, - this.sku, - this.tags, - required this.unitPrice}) - : super._() { - BuiltValueNullFieldError.checkNotNull(name, r'$Product', 'name'); - BuiltValueNullFieldError.checkNotNull(quantity, r'$Product', 'quantity'); - BuiltValueNullFieldError.checkNotNull(unitPrice, r'$Product', 'unitPrice'); - } - - @override - $Product rebuild(void Function($ProductBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ProductBuilder toBuilder() => new $ProductBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $Product && - antifraudInfo == other.antifraudInfo && - brand == other.brand && - description == other.description && - metadata == other.metadata && - name == other.name && - quantity == other.quantity && - sku == other.sku && - tags == other.tags && - unitPrice == other.unitPrice; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, brand.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, quantity.hashCode); - _$hash = $jc(_$hash, sku.hashCode); - _$hash = $jc(_$hash, tags.hashCode); - _$hash = $jc(_$hash, unitPrice.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$Product') - ..add('antifraudInfo', antifraudInfo) - ..add('brand', brand) - ..add('description', description) - ..add('metadata', metadata) - ..add('name', name) - ..add('quantity', quantity) - ..add('sku', sku) - ..add('tags', tags) - ..add('unitPrice', unitPrice)) - .toString(); - } -} - -class $ProductBuilder - implements Builder<$Product, $ProductBuilder>, ProductBuilder { - _$$Product? _$v; - - MapBuilder? _antifraudInfo; - MapBuilder get antifraudInfo => - _$this._antifraudInfo ??= new MapBuilder(); - set antifraudInfo(covariant MapBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - int? _quantity; - int? get quantity => _$this._quantity; - set quantity(covariant int? quantity) => _$this._quantity = quantity; - - String? _sku; - String? get sku => _$this._sku; - set sku(covariant String? sku) => _$this._sku = sku; - - ListBuilder? _tags; - ListBuilder get tags => _$this._tags ??= new ListBuilder(); - set tags(covariant ListBuilder? tags) => _$this._tags = tags; - - int? _unitPrice; - int? get unitPrice => _$this._unitPrice; - set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; - - $ProductBuilder() { - $Product._defaults(this); - } - - $ProductBuilder get _$this { - final $v = _$v; - if ($v != null) { - _antifraudInfo = $v.antifraudInfo?.toBuilder(); - _brand = $v.brand; - _description = $v.description; - _metadata = $v.metadata?.toBuilder(); - _name = $v.name; - _quantity = $v.quantity; - _sku = $v.sku; - _tags = $v.tags?.toBuilder(); - _unitPrice = $v.unitPrice; - _$v = null; - } - return this; - } - - @override - void replace(covariant $Product other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$Product; - } - - @override - void update(void Function($ProductBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $Product build() => _build(); - - _$$Product _build() { - _$$Product _$result; - try { - _$result = _$v ?? - new _$$Product._( - antifraudInfo: _antifraudInfo?.build(), - brand: brand, - description: description, - metadata: _metadata?.build(), - name: BuiltValueNullFieldError.checkNotNull( - name, r'$Product', 'name'), - quantity: BuiltValueNullFieldError.checkNotNull( - quantity, r'$Product', 'quantity'), - sku: sku, - tags: _tags?.build(), - unitPrice: BuiltValueNullFieldError.checkNotNull( - unitPrice, r'$Product', 'unitPrice')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'tags'; - _tags?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$Product', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/product_data_response.g.dart b/lib/src/model/product_data_response.g.dart deleted file mode 100644 index 3877e66..0000000 --- a/lib/src/model/product_data_response.g.dart +++ /dev/null @@ -1,264 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'product_data_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ProductDataResponse extends ProductDataResponse { - @override - final String? id; - @override - final String? parentId; - @override - final String? object; - @override - final BuiltMap? antifraudInfo; - @override - final String? brand; - @override - final String? description; - @override - final BuiltMap? metadata; - @override - final String name; - @override - final int quantity; - @override - final String? sku; - @override - final BuiltList? tags; - @override - final int unitPrice; - - factory _$ProductDataResponse( - [void Function(ProductDataResponseBuilder)? updates]) => - (new ProductDataResponseBuilder()..update(updates))._build(); - - _$ProductDataResponse._( - {this.id, - this.parentId, - this.object, - this.antifraudInfo, - this.brand, - this.description, - this.metadata, - required this.name, - required this.quantity, - this.sku, - this.tags, - required this.unitPrice}) - : super._() { - BuiltValueNullFieldError.checkNotNull(name, r'ProductDataResponse', 'name'); - BuiltValueNullFieldError.checkNotNull( - quantity, r'ProductDataResponse', 'quantity'); - BuiltValueNullFieldError.checkNotNull( - unitPrice, r'ProductDataResponse', 'unitPrice'); - } - - @override - ProductDataResponse rebuild( - void Function(ProductDataResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ProductDataResponseBuilder toBuilder() => - new ProductDataResponseBuilder()..replace(this); - - @override - 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 && - metadata == other.metadata && - name == other.name && - quantity == other.quantity && - sku == other.sku && - tags == other.tags && - unitPrice == other.unitPrice; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, brand.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, quantity.hashCode); - _$hash = $jc(_$hash, sku.hashCode); - _$hash = $jc(_$hash, tags.hashCode); - _$hash = $jc(_$hash, unitPrice.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @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) - ..add('metadata', metadata) - ..add('name', name) - ..add('quantity', quantity) - ..add('sku', sku) - ..add('tags', tags) - ..add('unitPrice', unitPrice)) - .toString(); - } -} - -class ProductDataResponseBuilder - implements - Builder, - 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(); - set antifraudInfo(covariant MapBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - int? _quantity; - int? get quantity => _$this._quantity; - set quantity(covariant int? quantity) => _$this._quantity = quantity; - - String? _sku; - String? get sku => _$this._sku; - set sku(covariant String? sku) => _$this._sku = sku; - - ListBuilder? _tags; - ListBuilder get tags => _$this._tags ??= new ListBuilder(); - set tags(covariant ListBuilder? tags) => _$this._tags = tags; - - int? _unitPrice; - int? get unitPrice => _$this._unitPrice; - set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; - - ProductDataResponseBuilder() { - ProductDataResponse._defaults(this); - } - - 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; - _metadata = $v.metadata?.toBuilder(); - _name = $v.name; - _quantity = $v.quantity; - _sku = $v.sku; - _tags = $v.tags?.toBuilder(); - _unitPrice = $v.unitPrice; - _$v = null; - } - return this; - } - - @override - void replace(covariant ProductDataResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ProductDataResponse; - } - - @override - void update(void Function(ProductDataResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ProductDataResponse build() => _build(); - - _$ProductDataResponse _build() { - _$ProductDataResponse _$result; - try { - _$result = _$v ?? - new _$ProductDataResponse._( - id: id, - parentId: parentId, - object: object, - antifraudInfo: _antifraudInfo?.build(), - brand: brand, - description: description, - metadata: _metadata?.build(), - name: BuiltValueNullFieldError.checkNotNull( - name, r'ProductDataResponse', 'name'), - quantity: BuiltValueNullFieldError.checkNotNull( - quantity, r'ProductDataResponse', 'quantity'), - sku: sku, - tags: _tags?.build(), - unitPrice: BuiltValueNullFieldError.checkNotNull( - unitPrice, r'ProductDataResponse', 'unitPrice')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'tags'; - _tags?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ProductDataResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/product_order_response.g.dart b/lib/src/model/product_order_response.g.dart deleted file mode 100644 index 5d2bfa5..0000000 --- a/lib/src/model/product_order_response.g.dart +++ /dev/null @@ -1,265 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'product_order_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ProductOrderResponse extends ProductOrderResponse { - @override - final String? id; - @override - final String? parentId; - @override - final String? object; - @override - final BuiltMap? antifraudInfo; - @override - final String? brand; - @override - final String? description; - @override - final BuiltMap? metadata; - @override - final String name; - @override - final int quantity; - @override - final String? sku; - @override - final BuiltList? tags; - @override - final int unitPrice; - - factory _$ProductOrderResponse( - [void Function(ProductOrderResponseBuilder)? updates]) => - (new ProductOrderResponseBuilder()..update(updates))._build(); - - _$ProductOrderResponse._( - {this.id, - this.parentId, - this.object, - this.antifraudInfo, - this.brand, - this.description, - this.metadata, - required this.name, - required this.quantity, - this.sku, - this.tags, - required this.unitPrice}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - name, r'ProductOrderResponse', 'name'); - BuiltValueNullFieldError.checkNotNull( - quantity, r'ProductOrderResponse', 'quantity'); - BuiltValueNullFieldError.checkNotNull( - unitPrice, r'ProductOrderResponse', 'unitPrice'); - } - - @override - ProductOrderResponse rebuild( - void Function(ProductOrderResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ProductOrderResponseBuilder toBuilder() => - new ProductOrderResponseBuilder()..replace(this); - - @override - 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 && - metadata == other.metadata && - name == other.name && - quantity == other.quantity && - sku == other.sku && - tags == other.tags && - unitPrice == other.unitPrice; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, brand.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, quantity.hashCode); - _$hash = $jc(_$hash, sku.hashCode); - _$hash = $jc(_$hash, tags.hashCode); - _$hash = $jc(_$hash, unitPrice.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @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) - ..add('metadata', metadata) - ..add('name', name) - ..add('quantity', quantity) - ..add('sku', sku) - ..add('tags', tags) - ..add('unitPrice', unitPrice)) - .toString(); - } -} - -class ProductOrderResponseBuilder - implements - Builder, - 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(); - set antifraudInfo(covariant MapBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - String? _brand; - String? get brand => _$this._brand; - set brand(covariant String? brand) => _$this._brand = brand; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _name; - String? get name => _$this._name; - set name(covariant String? name) => _$this._name = name; - - int? _quantity; - int? get quantity => _$this._quantity; - set quantity(covariant int? quantity) => _$this._quantity = quantity; - - String? _sku; - String? get sku => _$this._sku; - set sku(covariant String? sku) => _$this._sku = sku; - - ListBuilder? _tags; - ListBuilder get tags => _$this._tags ??= new ListBuilder(); - set tags(covariant ListBuilder? tags) => _$this._tags = tags; - - int? _unitPrice; - int? get unitPrice => _$this._unitPrice; - set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; - - ProductOrderResponseBuilder() { - ProductOrderResponse._defaults(this); - } - - 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; - _metadata = $v.metadata?.toBuilder(); - _name = $v.name; - _quantity = $v.quantity; - _sku = $v.sku; - _tags = $v.tags?.toBuilder(); - _unitPrice = $v.unitPrice; - _$v = null; - } - return this; - } - - @override - void replace(covariant ProductOrderResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ProductOrderResponse; - } - - @override - void update(void Function(ProductOrderResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ProductOrderResponse build() => _build(); - - _$ProductOrderResponse _build() { - _$ProductOrderResponse _$result; - try { - _$result = _$v ?? - new _$ProductOrderResponse._( - id: id, - parentId: parentId, - object: object, - antifraudInfo: _antifraudInfo?.build(), - brand: brand, - description: description, - metadata: _metadata?.build(), - name: BuiltValueNullFieldError.checkNotNull( - name, r'ProductOrderResponse', 'name'), - quantity: BuiltValueNullFieldError.checkNotNull( - quantity, r'ProductOrderResponse', 'quantity'), - sku: sku, - tags: _tags?.build(), - unitPrice: BuiltValueNullFieldError.checkNotNull( - unitPrice, r'ProductOrderResponse', 'unitPrice')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'tags'; - _tags?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ProductOrderResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/risk_rules_data.g.dart b/lib/src/model/risk_rules_data.g.dart deleted file mode 100644 index 771bac6..0000000 --- a/lib/src/model/risk_rules_data.g.dart +++ /dev/null @@ -1,166 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'risk_rules_data.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$RiskRulesData extends RiskRulesData { - @override - final String? id; - @override - final String? field; - @override - final String? createdAt; - @override - final String? value; - @override - final bool? isGlobal; - @override - final bool? isTest; - @override - final String? description; - - factory _$RiskRulesData([void Function(RiskRulesDataBuilder)? updates]) => - (new RiskRulesDataBuilder()..update(updates))._build(); - - _$RiskRulesData._( - {this.id, - this.field, - this.createdAt, - this.value, - this.isGlobal, - this.isTest, - this.description}) - : super._(); - - @override - RiskRulesData rebuild(void Function(RiskRulesDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RiskRulesDataBuilder toBuilder() => new RiskRulesDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RiskRulesData && - id == other.id && - field == other.field && - createdAt == other.createdAt && - value == other.value && - isGlobal == other.isGlobal && - isTest == other.isTest && - description == other.description; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, field.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, value.hashCode); - _$hash = $jc(_$hash, isGlobal.hashCode); - _$hash = $jc(_$hash, isTest.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RiskRulesData') - ..add('id', id) - ..add('field', field) - ..add('createdAt', createdAt) - ..add('value', value) - ..add('isGlobal', isGlobal) - ..add('isTest', isTest) - ..add('description', description)) - .toString(); - } -} - -class RiskRulesDataBuilder - implements Builder { - _$RiskRulesData? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _field; - String? get field => _$this._field; - set field(String? field) => _$this._field = field; - - String? _createdAt; - String? get createdAt => _$this._createdAt; - set createdAt(String? createdAt) => _$this._createdAt = createdAt; - - String? _value; - String? get value => _$this._value; - set value(String? value) => _$this._value = value; - - bool? _isGlobal; - bool? get isGlobal => _$this._isGlobal; - set isGlobal(bool? isGlobal) => _$this._isGlobal = isGlobal; - - bool? _isTest; - bool? get isTest => _$this._isTest; - set isTest(bool? isTest) => _$this._isTest = isTest; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - RiskRulesDataBuilder() { - RiskRulesData._defaults(this); - } - - RiskRulesDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _field = $v.field; - _createdAt = $v.createdAt; - _value = $v.value; - _isGlobal = $v.isGlobal; - _isTest = $v.isTest; - _description = $v.description; - _$v = null; - } - return this; - } - - @override - void replace(RiskRulesData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RiskRulesData; - } - - @override - void update(void Function(RiskRulesDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RiskRulesData build() => _build(); - - _$RiskRulesData _build() { - final _$result = _$v ?? - new _$RiskRulesData._( - id: id, - field: field, - createdAt: createdAt, - value: value, - isGlobal: isGlobal, - isTest: isTest, - description: description); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/risk_rules_list.g.dart b/lib/src/model/risk_rules_list.g.dart deleted file mode 100644 index 203ac25..0000000 --- a/lib/src/model/risk_rules_list.g.dart +++ /dev/null @@ -1,167 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'risk_rules_list.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$RiskRulesList extends RiskRulesList { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$RiskRulesList([void Function(RiskRulesListBuilder)? updates]) => - (new RiskRulesListBuilder()..update(updates))._build(); - - _$RiskRulesList._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull(hasMore, r'RiskRulesList', 'hasMore'); - BuiltValueNullFieldError.checkNotNull(object, r'RiskRulesList', 'object'); - } - - @override - RiskRulesList rebuild(void Function(RiskRulesListBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RiskRulesListBuilder toBuilder() => new RiskRulesListBuilder()..replace(this); - - @override - 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; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RiskRulesList') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class RiskRulesListBuilder - implements - Builder, - PageBuilder, - 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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - RiskRulesListBuilder() { - RiskRulesList._defaults(this); - } - - 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; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant RiskRulesList other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RiskRulesList; - } - - @override - void update(void Function(RiskRulesListBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RiskRulesList build() => _build(); - - _$RiskRulesList _build() { - _$RiskRulesList _$result; - 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')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'RiskRulesList', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/shipping_order_response.g.dart b/lib/src/model/shipping_order_response.g.dart deleted file mode 100644 index ef0440f..0000000 --- a/lib/src/model/shipping_order_response.g.dart +++ /dev/null @@ -1,203 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'shipping_order_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$ShippingOrderResponse extends ShippingOrderResponse { - @override - final String? id; - @override - final String? parentId; - @override - final String? object; - @override - final int amount; - @override - final String? carrier; - @override - final String? trackingNumber; - @override - final String? method; - @override - final BuiltMap? metadata; - - factory _$ShippingOrderResponse( - [void Function(ShippingOrderResponseBuilder)? updates]) => - (new ShippingOrderResponseBuilder()..update(updates))._build(); - - _$ShippingOrderResponse._( - {this.id, - this.parentId, - this.object, - required this.amount, - this.carrier, - this.trackingNumber, - this.method, - this.metadata}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'ShippingOrderResponse', 'amount'); - } - - @override - ShippingOrderResponse rebuild( - void Function(ShippingOrderResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ShippingOrderResponseBuilder toBuilder() => - new ShippingOrderResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ShippingOrderResponse && - id == other.id && - parentId == other.parentId && - object == other.object && - amount == other.amount && - carrier == other.carrier && - trackingNumber == other.trackingNumber && - method == other.method && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, carrier.hashCode); - _$hash = $jc(_$hash, trackingNumber.hashCode); - _$hash = $jc(_$hash, method.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ShippingOrderResponse') - ..add('id', id) - ..add('parentId', parentId) - ..add('object', object) - ..add('amount', amount) - ..add('carrier', carrier) - ..add('trackingNumber', trackingNumber) - ..add('method', method) - ..add('metadata', metadata)) - .toString(); - } -} - -class ShippingOrderResponseBuilder - implements - Builder, - ShippingRequestBuilder { - _$ShippingOrderResponse? _$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; - - String? _carrier; - String? get carrier => _$this._carrier; - set carrier(covariant String? carrier) => _$this._carrier = carrier; - - String? _trackingNumber; - String? get trackingNumber => _$this._trackingNumber; - set trackingNumber(covariant String? trackingNumber) => - _$this._trackingNumber = trackingNumber; - - String? _method; - String? get method => _$this._method; - set method(covariant String? method) => _$this._method = method; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - ShippingOrderResponseBuilder() { - ShippingOrderResponse._defaults(this); - } - - ShippingOrderResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _parentId = $v.parentId; - _object = $v.object; - _amount = $v.amount; - _carrier = $v.carrier; - _trackingNumber = $v.trackingNumber; - _method = $v.method; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant ShippingOrderResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ShippingOrderResponse; - } - - @override - void update(void Function(ShippingOrderResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ShippingOrderResponse build() => _build(); - - _$ShippingOrderResponse _build() { - _$ShippingOrderResponse _$result; - try { - _$result = _$v ?? - new _$ShippingOrderResponse._( - id: id, - parentId: parentId, - object: object, - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'ShippingOrderResponse', 'amount'), - carrier: carrier, - trackingNumber: trackingNumber, - method: method, - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'ShippingOrderResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/shipping_request.g.dart b/lib/src/model/shipping_request.g.dart deleted file mode 100644 index e1e041d..0000000 --- a/lib/src/model/shipping_request.g.dart +++ /dev/null @@ -1,185 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'shipping_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -abstract class ShippingRequestBuilder { - void replace(ShippingRequest other); - void update(void Function(ShippingRequestBuilder) updates); - int? get amount; - set amount(int? amount); - - String? get carrier; - set carrier(String? carrier); - - String? get trackingNumber; - set trackingNumber(String? trackingNumber); - - String? get method; - set method(String? method); - - MapBuilder get metadata; - set metadata(MapBuilder? metadata); -} - -class _$$ShippingRequest extends $ShippingRequest { - @override - final int amount; - @override - final String? carrier; - @override - final String? trackingNumber; - @override - final String? method; - @override - final BuiltMap? metadata; - - factory _$$ShippingRequest( - [void Function($ShippingRequestBuilder)? updates]) => - (new $ShippingRequestBuilder()..update(updates))._build(); - - _$$ShippingRequest._( - {required this.amount, - this.carrier, - this.trackingNumber, - this.method, - this.metadata}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'$ShippingRequest', 'amount'); - } - - @override - $ShippingRequest rebuild(void Function($ShippingRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - $ShippingRequestBuilder toBuilder() => - new $ShippingRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is $ShippingRequest && - amount == other.amount && - carrier == other.carrier && - trackingNumber == other.trackingNumber && - method == other.method && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, carrier.hashCode); - _$hash = $jc(_$hash, trackingNumber.hashCode); - _$hash = $jc(_$hash, method.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'$ShippingRequest') - ..add('amount', amount) - ..add('carrier', carrier) - ..add('trackingNumber', trackingNumber) - ..add('method', method) - ..add('metadata', metadata)) - .toString(); - } -} - -class $ShippingRequestBuilder - implements - Builder<$ShippingRequest, $ShippingRequestBuilder>, - ShippingRequestBuilder { - _$$ShippingRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(covariant int? amount) => _$this._amount = amount; - - String? _carrier; - String? get carrier => _$this._carrier; - set carrier(covariant String? carrier) => _$this._carrier = carrier; - - String? _trackingNumber; - String? get trackingNumber => _$this._trackingNumber; - set trackingNumber(covariant String? trackingNumber) => - _$this._trackingNumber = trackingNumber; - - String? _method; - String? get method => _$this._method; - set method(covariant String? method) => _$this._method = method; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - $ShippingRequestBuilder() { - $ShippingRequest._defaults(this); - } - - $ShippingRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _carrier = $v.carrier; - _trackingNumber = $v.trackingNumber; - _method = $v.method; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant $ShippingRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$$ShippingRequest; - } - - @override - void update(void Function($ShippingRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - $ShippingRequest build() => _build(); - - _$$ShippingRequest _build() { - _$$ShippingRequest _$result; - try { - _$result = _$v ?? - new _$$ShippingRequest._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'$ShippingRequest', 'amount'), - carrier: carrier, - trackingNumber: trackingNumber, - method: method, - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'$ShippingRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/sms_checkout_request.g.dart b/lib/src/model/sms_checkout_request.g.dart deleted file mode 100644 index 9130353..0000000 --- a/lib/src/model/sms_checkout_request.g.dart +++ /dev/null @@ -1,98 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'sms_checkout_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$SmsCheckoutRequest extends SmsCheckoutRequest { - @override - final String phonenumber; - - factory _$SmsCheckoutRequest( - [void Function(SmsCheckoutRequestBuilder)? updates]) => - (new SmsCheckoutRequestBuilder()..update(updates))._build(); - - _$SmsCheckoutRequest._({required this.phonenumber}) : super._() { - BuiltValueNullFieldError.checkNotNull( - phonenumber, r'SmsCheckoutRequest', 'phonenumber'); - } - - @override - SmsCheckoutRequest rebuild( - void Function(SmsCheckoutRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - SmsCheckoutRequestBuilder toBuilder() => - new SmsCheckoutRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is SmsCheckoutRequest && phonenumber == other.phonenumber; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, phonenumber.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'SmsCheckoutRequest') - ..add('phonenumber', phonenumber)) - .toString(); - } -} - -class SmsCheckoutRequestBuilder - implements Builder { - _$SmsCheckoutRequest? _$v; - - String? _phonenumber; - String? get phonenumber => _$this._phonenumber; - set phonenumber(String? phonenumber) => _$this._phonenumber = phonenumber; - - SmsCheckoutRequestBuilder() { - SmsCheckoutRequest._defaults(this); - } - - SmsCheckoutRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _phonenumber = $v.phonenumber; - _$v = null; - } - return this; - } - - @override - void replace(SmsCheckoutRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$SmsCheckoutRequest; - } - - @override - void update(void Function(SmsCheckoutRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - SmsCheckoutRequest build() => _build(); - - _$SmsCheckoutRequest _build() { - final _$result = _$v ?? - new _$SmsCheckoutRequest._( - phonenumber: BuiltValueNullFieldError.checkNotNull( - phonenumber, r'SmsCheckoutRequest', 'phonenumber')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_events_response.g.dart b/lib/src/model/subscription_events_response.g.dart deleted file mode 100644 index cc0db01..0000000 --- a/lib/src/model/subscription_events_response.g.dart +++ /dev/null @@ -1,172 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'subscription_events_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$SubscriptionEventsResponse extends SubscriptionEventsResponse { - @override - final BuiltList? data; - @override - final String? nextPageUrl; - @override - final String? previousPageUrl; - @override - final bool hasMore; - @override - final String object; - - factory _$SubscriptionEventsResponse( - [void Function(SubscriptionEventsResponseBuilder)? updates]) => - (new SubscriptionEventsResponseBuilder()..update(updates))._build(); - - _$SubscriptionEventsResponse._( - {this.data, - this.nextPageUrl, - this.previousPageUrl, - required this.hasMore, - required this.object}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - hasMore, r'SubscriptionEventsResponse', 'hasMore'); - BuiltValueNullFieldError.checkNotNull( - object, r'SubscriptionEventsResponse', 'object'); - } - - @override - SubscriptionEventsResponse rebuild( - void Function(SubscriptionEventsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - SubscriptionEventsResponseBuilder toBuilder() => - new SubscriptionEventsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is SubscriptionEventsResponse && - data == other.data && - nextPageUrl == other.nextPageUrl && - previousPageUrl == other.previousPageUrl && - hasMore == other.hasMore && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, nextPageUrl.hashCode); - _$hash = $jc(_$hash, previousPageUrl.hashCode); - _$hash = $jc(_$hash, hasMore.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'SubscriptionEventsResponse') - ..add('data', data) - ..add('nextPageUrl', nextPageUrl) - ..add('previousPageUrl', previousPageUrl) - ..add('hasMore', hasMore) - ..add('object', object)) - .toString(); - } -} - -class SubscriptionEventsResponseBuilder - implements - Builder, - PageBuilder, - PaginationBuilder { - _$SubscriptionEventsResponse? _$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) => - _$this._nextPageUrl = nextPageUrl; - - String? _previousPageUrl; - String? get previousPageUrl => _$this._previousPageUrl; - set previousPageUrl(covariant String? previousPageUrl) => - _$this._previousPageUrl = previousPageUrl; - - bool? _hasMore; - bool? get hasMore => _$this._hasMore; - set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; - - String? _object; - String? get object => _$this._object; - set object(covariant String? object) => _$this._object = object; - - SubscriptionEventsResponseBuilder() { - SubscriptionEventsResponse._defaults(this); - } - - SubscriptionEventsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _data = $v.data?.toBuilder(); - _nextPageUrl = $v.nextPageUrl; - _previousPageUrl = $v.previousPageUrl; - _hasMore = $v.hasMore; - _object = $v.object; - _$v = null; - } - return this; - } - - @override -// ignore: override_on_non_overriding_method - void replace(covariant SubscriptionEventsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$SubscriptionEventsResponse; - } - - @override - void update(void Function(SubscriptionEventsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - SubscriptionEventsResponse build() => _build(); - - _$SubscriptionEventsResponse _build() { - _$SubscriptionEventsResponse _$result; - try { - _$result = _$v ?? - new _$SubscriptionEventsResponse._( - data: _data?.build(), - nextPageUrl: nextPageUrl, - previousPageUrl: previousPageUrl, - hasMore: BuiltValueNullFieldError.checkNotNull( - hasMore, r'SubscriptionEventsResponse', 'hasMore'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'SubscriptionEventsResponse', 'object')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'data'; - _data?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'SubscriptionEventsResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_request.g.dart b/lib/src/model/subscription_request.g.dart deleted file mode 100644 index 9168792..0000000 --- a/lib/src/model/subscription_request.g.dart +++ /dev/null @@ -1,122 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'subscription_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$SubscriptionRequest extends SubscriptionRequest { - @override - final String planId; - @override - final String? cardId; - @override - final int? trialEnd; - - factory _$SubscriptionRequest( - [void Function(SubscriptionRequestBuilder)? updates]) => - (new SubscriptionRequestBuilder()..update(updates))._build(); - - _$SubscriptionRequest._({required this.planId, this.cardId, this.trialEnd}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - planId, r'SubscriptionRequest', 'planId'); - } - - @override - SubscriptionRequest rebuild( - void Function(SubscriptionRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - SubscriptionRequestBuilder toBuilder() => - new SubscriptionRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is SubscriptionRequest && - planId == other.planId && - cardId == other.cardId && - trialEnd == other.trialEnd; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, planId.hashCode); - _$hash = $jc(_$hash, cardId.hashCode); - _$hash = $jc(_$hash, trialEnd.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'SubscriptionRequest') - ..add('planId', planId) - ..add('cardId', cardId) - ..add('trialEnd', trialEnd)) - .toString(); - } -} - -class SubscriptionRequestBuilder - implements Builder { - _$SubscriptionRequest? _$v; - - String? _planId; - String? get planId => _$this._planId; - set planId(String? planId) => _$this._planId = planId; - - String? _cardId; - String? get cardId => _$this._cardId; - set cardId(String? cardId) => _$this._cardId = cardId; - - int? _trialEnd; - int? get trialEnd => _$this._trialEnd; - set trialEnd(int? trialEnd) => _$this._trialEnd = trialEnd; - - SubscriptionRequestBuilder() { - SubscriptionRequest._defaults(this); - } - - SubscriptionRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _planId = $v.planId; - _cardId = $v.cardId; - _trialEnd = $v.trialEnd; - _$v = null; - } - return this; - } - - @override - void replace(SubscriptionRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$SubscriptionRequest; - } - - @override - void update(void Function(SubscriptionRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - SubscriptionRequest build() => _build(); - - _$SubscriptionRequest _build() { - final _$result = _$v ?? - new _$SubscriptionRequest._( - planId: BuiltValueNullFieldError.checkNotNull( - planId, r'SubscriptionRequest', 'planId'), - cardId: cardId, - trialEnd: trialEnd); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_response.g.dart b/lib/src/model/subscription_response.g.dart deleted file mode 100644 index b464e20..0000000 --- a/lib/src/model/subscription_response.g.dart +++ /dev/null @@ -1,307 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'subscription_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$SubscriptionResponse extends SubscriptionResponse { - @override - final int? billingCycleStart; - @override - final int? billingCycleEnd; - @override - final int? canceledAt; - @override - final String? canceledReason; - @override - final String? cardId; - @override - final String? chargeId; - @override - final int? createdAt; - @override - final String? customerCustomReference; - @override - final String? customerId; - @override - final String? id; - @override - final String? lastBillingCycleOrderId; - @override - final String? object; - @override - final int? pausedAt; - @override - final String? planId; - @override - final String? status; - @override - final int? subscriptionStart; - @override - final int? trialStart; - @override - final int? trialEnd; - - factory _$SubscriptionResponse( - [void Function(SubscriptionResponseBuilder)? updates]) => - (new SubscriptionResponseBuilder()..update(updates))._build(); - - _$SubscriptionResponse._( - {this.billingCycleStart, - this.billingCycleEnd, - this.canceledAt, - this.canceledReason, - this.cardId, - this.chargeId, - this.createdAt, - this.customerCustomReference, - this.customerId, - this.id, - this.lastBillingCycleOrderId, - this.object, - this.pausedAt, - this.planId, - this.status, - this.subscriptionStart, - this.trialStart, - this.trialEnd}) - : super._(); - - @override - SubscriptionResponse rebuild( - void Function(SubscriptionResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - SubscriptionResponseBuilder toBuilder() => - new SubscriptionResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is SubscriptionResponse && - billingCycleStart == other.billingCycleStart && - billingCycleEnd == other.billingCycleEnd && - canceledAt == other.canceledAt && - canceledReason == other.canceledReason && - cardId == other.cardId && - chargeId == other.chargeId && - createdAt == other.createdAt && - customerCustomReference == other.customerCustomReference && - customerId == other.customerId && - id == other.id && - lastBillingCycleOrderId == other.lastBillingCycleOrderId && - object == other.object && - pausedAt == other.pausedAt && - planId == other.planId && - status == other.status && - subscriptionStart == other.subscriptionStart && - trialStart == other.trialStart && - trialEnd == other.trialEnd; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, billingCycleStart.hashCode); - _$hash = $jc(_$hash, billingCycleEnd.hashCode); - _$hash = $jc(_$hash, canceledAt.hashCode); - _$hash = $jc(_$hash, canceledReason.hashCode); - _$hash = $jc(_$hash, cardId.hashCode); - _$hash = $jc(_$hash, chargeId.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, customerCustomReference.hashCode); - _$hash = $jc(_$hash, customerId.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, lastBillingCycleOrderId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, pausedAt.hashCode); - _$hash = $jc(_$hash, planId.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, subscriptionStart.hashCode); - _$hash = $jc(_$hash, trialStart.hashCode); - _$hash = $jc(_$hash, trialEnd.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'SubscriptionResponse') - ..add('billingCycleStart', billingCycleStart) - ..add('billingCycleEnd', billingCycleEnd) - ..add('canceledAt', canceledAt) - ..add('canceledReason', canceledReason) - ..add('cardId', cardId) - ..add('chargeId', chargeId) - ..add('createdAt', createdAt) - ..add('customerCustomReference', customerCustomReference) - ..add('customerId', customerId) - ..add('id', id) - ..add('lastBillingCycleOrderId', lastBillingCycleOrderId) - ..add('object', object) - ..add('pausedAt', pausedAt) - ..add('planId', planId) - ..add('status', status) - ..add('subscriptionStart', subscriptionStart) - ..add('trialStart', trialStart) - ..add('trialEnd', trialEnd)) - .toString(); - } -} - -class SubscriptionResponseBuilder - implements Builder { - _$SubscriptionResponse? _$v; - - int? _billingCycleStart; - int? get billingCycleStart => _$this._billingCycleStart; - set billingCycleStart(int? billingCycleStart) => - _$this._billingCycleStart = billingCycleStart; - - int? _billingCycleEnd; - int? get billingCycleEnd => _$this._billingCycleEnd; - set billingCycleEnd(int? billingCycleEnd) => - _$this._billingCycleEnd = billingCycleEnd; - - int? _canceledAt; - int? get canceledAt => _$this._canceledAt; - set canceledAt(int? canceledAt) => _$this._canceledAt = canceledAt; - - String? _canceledReason; - String? get canceledReason => _$this._canceledReason; - set canceledReason(String? canceledReason) => - _$this._canceledReason = canceledReason; - - String? _cardId; - String? get cardId => _$this._cardId; - set cardId(String? cardId) => _$this._cardId = cardId; - - String? _chargeId; - String? get chargeId => _$this._chargeId; - set chargeId(String? chargeId) => _$this._chargeId = chargeId; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _customerCustomReference; - String? get customerCustomReference => _$this._customerCustomReference; - set customerCustomReference(String? customerCustomReference) => - _$this._customerCustomReference = customerCustomReference; - - String? _customerId; - String? get customerId => _$this._customerId; - set customerId(String? customerId) => _$this._customerId = customerId; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _lastBillingCycleOrderId; - String? get lastBillingCycleOrderId => _$this._lastBillingCycleOrderId; - set lastBillingCycleOrderId(String? lastBillingCycleOrderId) => - _$this._lastBillingCycleOrderId = lastBillingCycleOrderId; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - int? _pausedAt; - int? get pausedAt => _$this._pausedAt; - set pausedAt(int? pausedAt) => _$this._pausedAt = pausedAt; - - String? _planId; - String? get planId => _$this._planId; - set planId(String? planId) => _$this._planId = planId; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - int? _subscriptionStart; - int? get subscriptionStart => _$this._subscriptionStart; - set subscriptionStart(int? subscriptionStart) => - _$this._subscriptionStart = subscriptionStart; - - int? _trialStart; - int? get trialStart => _$this._trialStart; - set trialStart(int? trialStart) => _$this._trialStart = trialStart; - - int? _trialEnd; - int? get trialEnd => _$this._trialEnd; - set trialEnd(int? trialEnd) => _$this._trialEnd = trialEnd; - - SubscriptionResponseBuilder() { - SubscriptionResponse._defaults(this); - } - - SubscriptionResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _billingCycleStart = $v.billingCycleStart; - _billingCycleEnd = $v.billingCycleEnd; - _canceledAt = $v.canceledAt; - _canceledReason = $v.canceledReason; - _cardId = $v.cardId; - _chargeId = $v.chargeId; - _createdAt = $v.createdAt; - _customerCustomReference = $v.customerCustomReference; - _customerId = $v.customerId; - _id = $v.id; - _lastBillingCycleOrderId = $v.lastBillingCycleOrderId; - _object = $v.object; - _pausedAt = $v.pausedAt; - _planId = $v.planId; - _status = $v.status; - _subscriptionStart = $v.subscriptionStart; - _trialStart = $v.trialStart; - _trialEnd = $v.trialEnd; - _$v = null; - } - return this; - } - - @override - void replace(SubscriptionResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$SubscriptionResponse; - } - - @override - void update(void Function(SubscriptionResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - SubscriptionResponse build() => _build(); - - _$SubscriptionResponse _build() { - final _$result = _$v ?? - new _$SubscriptionResponse._( - billingCycleStart: billingCycleStart, - billingCycleEnd: billingCycleEnd, - canceledAt: canceledAt, - canceledReason: canceledReason, - cardId: cardId, - chargeId: chargeId, - createdAt: createdAt, - customerCustomReference: customerCustomReference, - customerId: customerId, - id: id, - lastBillingCycleOrderId: lastBillingCycleOrderId, - object: object, - pausedAt: pausedAt, - planId: planId, - status: status, - subscriptionStart: subscriptionStart, - trialStart: trialStart, - trialEnd: trialEnd); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_update_request.g.dart b/lib/src/model/subscription_update_request.g.dart deleted file mode 100644 index 7c5110a..0000000 --- a/lib/src/model/subscription_update_request.g.dart +++ /dev/null @@ -1,117 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'subscription_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$SubscriptionUpdateRequest extends SubscriptionUpdateRequest { - @override - final String? planId; - @override - final String? cardId; - @override - final int? trialEnd; - - factory _$SubscriptionUpdateRequest( - [void Function(SubscriptionUpdateRequestBuilder)? updates]) => - (new SubscriptionUpdateRequestBuilder()..update(updates))._build(); - - _$SubscriptionUpdateRequest._({this.planId, this.cardId, this.trialEnd}) - : super._(); - - @override - SubscriptionUpdateRequest rebuild( - void Function(SubscriptionUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - SubscriptionUpdateRequestBuilder toBuilder() => - new SubscriptionUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is SubscriptionUpdateRequest && - planId == other.planId && - cardId == other.cardId && - trialEnd == other.trialEnd; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, planId.hashCode); - _$hash = $jc(_$hash, cardId.hashCode); - _$hash = $jc(_$hash, trialEnd.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'SubscriptionUpdateRequest') - ..add('planId', planId) - ..add('cardId', cardId) - ..add('trialEnd', trialEnd)) - .toString(); - } -} - -class SubscriptionUpdateRequestBuilder - implements - Builder { - _$SubscriptionUpdateRequest? _$v; - - String? _planId; - String? get planId => _$this._planId; - set planId(String? planId) => _$this._planId = planId; - - String? _cardId; - String? get cardId => _$this._cardId; - set cardId(String? cardId) => _$this._cardId = cardId; - - int? _trialEnd; - int? get trialEnd => _$this._trialEnd; - set trialEnd(int? trialEnd) => _$this._trialEnd = trialEnd; - - SubscriptionUpdateRequestBuilder() { - SubscriptionUpdateRequest._defaults(this); - } - - SubscriptionUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _planId = $v.planId; - _cardId = $v.cardId; - _trialEnd = $v.trialEnd; - _$v = null; - } - return this; - } - - @override - void replace(SubscriptionUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$SubscriptionUpdateRequest; - } - - @override - void update(void Function(SubscriptionUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - SubscriptionUpdateRequest build() => _build(); - - _$SubscriptionUpdateRequest _build() { - final _$result = _$v ?? - new _$SubscriptionUpdateRequest._( - planId: planId, cardId: cardId, trialEnd: trialEnd); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token.g.dart b/lib/src/model/token.g.dart deleted file mode 100644 index 6d552eb..0000000 --- a/lib/src/model/token.g.dart +++ /dev/null @@ -1,114 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'token.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$Token extends Token { - @override - final TokenCard? card; - @override - final TokenCheckout? checkout; - - factory _$Token([void Function(TokenBuilder)? updates]) => - (new TokenBuilder()..update(updates))._build(); - - _$Token._({this.card, this.checkout}) : super._(); - - @override - Token rebuild(void Function(TokenBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TokenBuilder toBuilder() => new TokenBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Token && card == other.card && checkout == other.checkout; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, card.hashCode); - _$hash = $jc(_$hash, checkout.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Token') - ..add('card', card) - ..add('checkout', checkout)) - .toString(); - } -} - -class TokenBuilder implements Builder { - _$Token? _$v; - - TokenCardBuilder? _card; - TokenCardBuilder get card => _$this._card ??= new TokenCardBuilder(); - set card(TokenCardBuilder? card) => _$this._card = card; - - TokenCheckoutBuilder? _checkout; - TokenCheckoutBuilder get checkout => - _$this._checkout ??= new TokenCheckoutBuilder(); - set checkout(TokenCheckoutBuilder? checkout) => _$this._checkout = checkout; - - TokenBuilder() { - Token._defaults(this); - } - - TokenBuilder get _$this { - final $v = _$v; - if ($v != null) { - _card = $v.card?.toBuilder(); - _checkout = $v.checkout?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(Token other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Token; - } - - @override - void update(void Function(TokenBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Token build() => _build(); - - _$Token _build() { - _$Token _$result; - try { - _$result = _$v ?? - new _$Token._(card: _card?.build(), checkout: _checkout?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'card'; - _card?.build(); - _$failedField = 'checkout'; - _checkout?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'Token', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_card.g.dart b/lib/src/model/token_card.g.dart deleted file mode 100644 index 8702de3..0000000 --- a/lib/src/model/token_card.g.dart +++ /dev/null @@ -1,165 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'token_card.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TokenCard extends TokenCard { - @override - final String cvc; - @override - final String? deviceFingerprint; - @override - final String expMonth; - @override - final String expYear; - @override - final String name; - @override - final String number; - - factory _$TokenCard([void Function(TokenCardBuilder)? updates]) => - (new TokenCardBuilder()..update(updates))._build(); - - _$TokenCard._( - {required this.cvc, - this.deviceFingerprint, - required this.expMonth, - required this.expYear, - required this.name, - required this.number}) - : super._() { - BuiltValueNullFieldError.checkNotNull(cvc, r'TokenCard', 'cvc'); - BuiltValueNullFieldError.checkNotNull(expMonth, r'TokenCard', 'expMonth'); - BuiltValueNullFieldError.checkNotNull(expYear, r'TokenCard', 'expYear'); - BuiltValueNullFieldError.checkNotNull(name, r'TokenCard', 'name'); - BuiltValueNullFieldError.checkNotNull(number, r'TokenCard', 'number'); - } - - @override - TokenCard rebuild(void Function(TokenCardBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TokenCardBuilder toBuilder() => new TokenCardBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TokenCard && - cvc == other.cvc && - deviceFingerprint == other.deviceFingerprint && - expMonth == other.expMonth && - expYear == other.expYear && - name == other.name && - number == other.number; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, cvc.hashCode); - _$hash = $jc(_$hash, deviceFingerprint.hashCode); - _$hash = $jc(_$hash, expMonth.hashCode); - _$hash = $jc(_$hash, expYear.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, number.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TokenCard') - ..add('cvc', cvc) - ..add('deviceFingerprint', deviceFingerprint) - ..add('expMonth', expMonth) - ..add('expYear', expYear) - ..add('name', name) - ..add('number', number)) - .toString(); - } -} - -class TokenCardBuilder implements Builder { - _$TokenCard? _$v; - - String? _cvc; - String? get cvc => _$this._cvc; - set cvc(String? cvc) => _$this._cvc = cvc; - - String? _deviceFingerprint; - String? get deviceFingerprint => _$this._deviceFingerprint; - set deviceFingerprint(String? deviceFingerprint) => - _$this._deviceFingerprint = deviceFingerprint; - - String? _expMonth; - String? get expMonth => _$this._expMonth; - set expMonth(String? expMonth) => _$this._expMonth = expMonth; - - String? _expYear; - String? get expYear => _$this._expYear; - set expYear(String? expYear) => _$this._expYear = expYear; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _number; - String? get number => _$this._number; - set number(String? number) => _$this._number = number; - - TokenCardBuilder() { - TokenCard._defaults(this); - } - - TokenCardBuilder get _$this { - final $v = _$v; - if ($v != null) { - _cvc = $v.cvc; - _deviceFingerprint = $v.deviceFingerprint; - _expMonth = $v.expMonth; - _expYear = $v.expYear; - _name = $v.name; - _number = $v.number; - _$v = null; - } - return this; - } - - @override - void replace(TokenCard other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TokenCard; - } - - @override - void update(void Function(TokenCardBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TokenCard build() => _build(); - - _$TokenCard _build() { - final _$result = _$v ?? - new _$TokenCard._( - cvc: - BuiltValueNullFieldError.checkNotNull(cvc, r'TokenCard', 'cvc'), - deviceFingerprint: deviceFingerprint, - expMonth: BuiltValueNullFieldError.checkNotNull( - expMonth, r'TokenCard', 'expMonth'), - expYear: BuiltValueNullFieldError.checkNotNull( - expYear, r'TokenCard', 'expYear'), - name: BuiltValueNullFieldError.checkNotNull( - name, r'TokenCard', 'name'), - number: BuiltValueNullFieldError.checkNotNull( - number, r'TokenCard', 'number')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_checkout.g.dart b/lib/src/model/token_checkout.g.dart deleted file mode 100644 index d4619af..0000000 --- a/lib/src/model/token_checkout.g.dart +++ /dev/null @@ -1,91 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'token_checkout.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TokenCheckout extends TokenCheckout { - @override - final String? returnsControlOn; - - factory _$TokenCheckout([void Function(TokenCheckoutBuilder)? updates]) => - (new TokenCheckoutBuilder()..update(updates))._build(); - - _$TokenCheckout._({this.returnsControlOn}) : super._(); - - @override - TokenCheckout rebuild(void Function(TokenCheckoutBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TokenCheckoutBuilder toBuilder() => new TokenCheckoutBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TokenCheckout && returnsControlOn == other.returnsControlOn; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, returnsControlOn.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TokenCheckout') - ..add('returnsControlOn', returnsControlOn)) - .toString(); - } -} - -class TokenCheckoutBuilder - implements Builder { - _$TokenCheckout? _$v; - - String? _returnsControlOn; - String? get returnsControlOn => _$this._returnsControlOn; - set returnsControlOn(String? returnsControlOn) => - _$this._returnsControlOn = returnsControlOn; - - TokenCheckoutBuilder() { - TokenCheckout._defaults(this); - } - - TokenCheckoutBuilder get _$this { - final $v = _$v; - if ($v != null) { - _returnsControlOn = $v.returnsControlOn; - _$v = null; - } - return this; - } - - @override - void replace(TokenCheckout other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TokenCheckout; - } - - @override - void update(void Function(TokenCheckoutBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TokenCheckout build() => _build(); - - _$TokenCheckout _build() { - final _$result = - _$v ?? new _$TokenCheckout._(returnsControlOn: returnsControlOn); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_response.g.dart b/lib/src/model/token_response.g.dart deleted file mode 100644 index 626bacc..0000000 --- a/lib/src/model/token_response.g.dart +++ /dev/null @@ -1,167 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'token_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TokenResponse extends TokenResponse { - @override - final TokenResponseCheckout? checkout; - @override - final String id; - @override - final bool livemode; - @override - final String object; - @override - final bool used; - - factory _$TokenResponse([void Function(TokenResponseBuilder)? updates]) => - (new TokenResponseBuilder()..update(updates))._build(); - - _$TokenResponse._( - {this.checkout, - required this.id, - required this.livemode, - required this.object, - required this.used}) - : super._() { - BuiltValueNullFieldError.checkNotNull(id, r'TokenResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - livemode, r'TokenResponse', 'livemode'); - BuiltValueNullFieldError.checkNotNull(object, r'TokenResponse', 'object'); - BuiltValueNullFieldError.checkNotNull(used, r'TokenResponse', 'used'); - } - - @override - TokenResponse rebuild(void Function(TokenResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TokenResponseBuilder toBuilder() => new TokenResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TokenResponse && - checkout == other.checkout && - id == other.id && - livemode == other.livemode && - object == other.object && - used == other.used; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, checkout.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, used.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TokenResponse') - ..add('checkout', checkout) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('used', used)) - .toString(); - } -} - -class TokenResponseBuilder - implements Builder { - _$TokenResponse? _$v; - - TokenResponseCheckoutBuilder? _checkout; - TokenResponseCheckoutBuilder get checkout => - _$this._checkout ??= new TokenResponseCheckoutBuilder(); - set checkout(TokenResponseCheckoutBuilder? checkout) => - _$this._checkout = checkout; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - bool? _used; - bool? get used => _$this._used; - set used(bool? used) => _$this._used = used; - - TokenResponseBuilder() { - TokenResponse._defaults(this); - } - - TokenResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _checkout = $v.checkout?.toBuilder(); - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _used = $v.used; - _$v = null; - } - return this; - } - - @override - void replace(TokenResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TokenResponse; - } - - @override - void update(void Function(TokenResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TokenResponse build() => _build(); - - _$TokenResponse _build() { - _$TokenResponse _$result; - try { - _$result = _$v ?? - new _$TokenResponse._( - checkout: _checkout?.build(), - id: BuiltValueNullFieldError.checkNotNull( - id, r'TokenResponse', 'id'), - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'TokenResponse', 'livemode'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'TokenResponse', 'object'), - used: BuiltValueNullFieldError.checkNotNull( - used, r'TokenResponse', 'used')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'checkout'; - _checkout?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'TokenResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_response_checkout.g.dart b/lib/src/model/token_response_checkout.g.dart deleted file mode 100644 index 5ab0b41..0000000 --- a/lib/src/model/token_response_checkout.g.dart +++ /dev/null @@ -1,396 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'token_response_checkout.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TokenResponseCheckout extends TokenResponseCheckout { - @override - final BuiltList? allowedPaymentMethods; - @override - final bool? canNotExpire; - @override - final int? emailsSent; - @override - final BuiltList? excludeCardNetworks; - @override - final int? expiresAt; - @override - final String? failureUrl; - @override - final bool? force3dsFlow; - @override - final String? id; - @override - final bool? livemode; - @override - final BuiltMap? metadata; - @override - final bool? monthlyInstallmentsEnabled; - @override - final BuiltList? monthlyInstallmentsOptions; - @override - final String? name; - @override - final bool? needsShippingContact; - @override - final String? object; - @override - final bool? onDemandEnabled; - @override - final int? paidPaymentsCount; - @override - final bool? recurrent; - @override - final int? smsSent; - @override - final int? startsAt; - @override - final String? status; - @override - final String? successUrl; - @override - final String? type; - - factory _$TokenResponseCheckout( - [void Function(TokenResponseCheckoutBuilder)? updates]) => - (new TokenResponseCheckoutBuilder()..update(updates))._build(); - - _$TokenResponseCheckout._( - {this.allowedPaymentMethods, - this.canNotExpire, - this.emailsSent, - this.excludeCardNetworks, - this.expiresAt, - this.failureUrl, - this.force3dsFlow, - this.id, - this.livemode, - this.metadata, - this.monthlyInstallmentsEnabled, - this.monthlyInstallmentsOptions, - this.name, - this.needsShippingContact, - this.object, - this.onDemandEnabled, - this.paidPaymentsCount, - this.recurrent, - this.smsSent, - this.startsAt, - this.status, - this.successUrl, - this.type}) - : super._(); - - @override - TokenResponseCheckout rebuild( - void Function(TokenResponseCheckoutBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TokenResponseCheckoutBuilder toBuilder() => - new TokenResponseCheckoutBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TokenResponseCheckout && - allowedPaymentMethods == other.allowedPaymentMethods && - canNotExpire == other.canNotExpire && - emailsSent == other.emailsSent && - excludeCardNetworks == other.excludeCardNetworks && - expiresAt == other.expiresAt && - failureUrl == other.failureUrl && - force3dsFlow == other.force3dsFlow && - id == other.id && - livemode == other.livemode && - metadata == other.metadata && - monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && - monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && - name == other.name && - needsShippingContact == other.needsShippingContact && - object == other.object && - onDemandEnabled == other.onDemandEnabled && - paidPaymentsCount == other.paidPaymentsCount && - recurrent == other.recurrent && - smsSent == other.smsSent && - startsAt == other.startsAt && - status == other.status && - successUrl == other.successUrl && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); - _$hash = $jc(_$hash, canNotExpire.hashCode); - _$hash = $jc(_$hash, emailsSent.hashCode); - _$hash = $jc(_$hash, excludeCardNetworks.hashCode); - _$hash = $jc(_$hash, expiresAt.hashCode); - _$hash = $jc(_$hash, failureUrl.hashCode); - _$hash = $jc(_$hash, force3dsFlow.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); - _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, needsShippingContact.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, onDemandEnabled.hashCode); - _$hash = $jc(_$hash, paidPaymentsCount.hashCode); - _$hash = $jc(_$hash, recurrent.hashCode); - _$hash = $jc(_$hash, smsSent.hashCode); - _$hash = $jc(_$hash, startsAt.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, successUrl.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TokenResponseCheckout') - ..add('allowedPaymentMethods', allowedPaymentMethods) - ..add('canNotExpire', canNotExpire) - ..add('emailsSent', emailsSent) - ..add('excludeCardNetworks', excludeCardNetworks) - ..add('expiresAt', expiresAt) - ..add('failureUrl', failureUrl) - ..add('force3dsFlow', force3dsFlow) - ..add('id', id) - ..add('livemode', livemode) - ..add('metadata', metadata) - ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) - ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) - ..add('name', name) - ..add('needsShippingContact', needsShippingContact) - ..add('object', object) - ..add('onDemandEnabled', onDemandEnabled) - ..add('paidPaymentsCount', paidPaymentsCount) - ..add('recurrent', recurrent) - ..add('smsSent', smsSent) - ..add('startsAt', startsAt) - ..add('status', status) - ..add('successUrl', successUrl) - ..add('type', type)) - .toString(); - } -} - -class TokenResponseCheckoutBuilder - implements Builder { - _$TokenResponseCheckout? _$v; - - ListBuilder? _allowedPaymentMethods; - ListBuilder get allowedPaymentMethods => - _$this._allowedPaymentMethods ??= new ListBuilder(); - set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => - _$this._allowedPaymentMethods = allowedPaymentMethods; - - bool? _canNotExpire; - bool? get canNotExpire => _$this._canNotExpire; - set canNotExpire(bool? canNotExpire) => _$this._canNotExpire = canNotExpire; - - int? _emailsSent; - int? get emailsSent => _$this._emailsSent; - set emailsSent(int? emailsSent) => _$this._emailsSent = emailsSent; - - ListBuilder? _excludeCardNetworks; - ListBuilder get excludeCardNetworks => - _$this._excludeCardNetworks ??= new ListBuilder(); - set excludeCardNetworks(ListBuilder? excludeCardNetworks) => - _$this._excludeCardNetworks = excludeCardNetworks; - - int? _expiresAt; - int? get expiresAt => _$this._expiresAt; - set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; - - String? _failureUrl; - String? get failureUrl => _$this._failureUrl; - set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; - - bool? _force3dsFlow; - bool? get force3dsFlow => _$this._force3dsFlow; - set force3dsFlow(bool? force3dsFlow) => _$this._force3dsFlow = force3dsFlow; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - bool? _monthlyInstallmentsEnabled; - bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; - set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => - _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; - - ListBuilder? _monthlyInstallmentsOptions; - ListBuilder get monthlyInstallmentsOptions => - _$this._monthlyInstallmentsOptions ??= new ListBuilder(); - set monthlyInstallmentsOptions( - ListBuilder? monthlyInstallmentsOptions) => - _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - bool? _needsShippingContact; - bool? get needsShippingContact => _$this._needsShippingContact; - set needsShippingContact(bool? needsShippingContact) => - _$this._needsShippingContact = needsShippingContact; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - bool? _onDemandEnabled; - bool? get onDemandEnabled => _$this._onDemandEnabled; - set onDemandEnabled(bool? onDemandEnabled) => - _$this._onDemandEnabled = onDemandEnabled; - - int? _paidPaymentsCount; - int? get paidPaymentsCount => _$this._paidPaymentsCount; - set paidPaymentsCount(int? paidPaymentsCount) => - _$this._paidPaymentsCount = paidPaymentsCount; - - bool? _recurrent; - bool? get recurrent => _$this._recurrent; - set recurrent(bool? recurrent) => _$this._recurrent = recurrent; - - int? _smsSent; - int? get smsSent => _$this._smsSent; - set smsSent(int? smsSent) => _$this._smsSent = smsSent; - - int? _startsAt; - int? get startsAt => _$this._startsAt; - set startsAt(int? startsAt) => _$this._startsAt = startsAt; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - String? _successUrl; - String? get successUrl => _$this._successUrl; - set successUrl(String? successUrl) => _$this._successUrl = successUrl; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - TokenResponseCheckoutBuilder() { - TokenResponseCheckout._defaults(this); - } - - TokenResponseCheckoutBuilder get _$this { - final $v = _$v; - if ($v != null) { - _allowedPaymentMethods = $v.allowedPaymentMethods?.toBuilder(); - _canNotExpire = $v.canNotExpire; - _emailsSent = $v.emailsSent; - _excludeCardNetworks = $v.excludeCardNetworks?.toBuilder(); - _expiresAt = $v.expiresAt; - _failureUrl = $v.failureUrl; - _force3dsFlow = $v.force3dsFlow; - _id = $v.id; - _livemode = $v.livemode; - _metadata = $v.metadata?.toBuilder(); - _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; - _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); - _name = $v.name; - _needsShippingContact = $v.needsShippingContact; - _object = $v.object; - _onDemandEnabled = $v.onDemandEnabled; - _paidPaymentsCount = $v.paidPaymentsCount; - _recurrent = $v.recurrent; - _smsSent = $v.smsSent; - _startsAt = $v.startsAt; - _status = $v.status; - _successUrl = $v.successUrl; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(TokenResponseCheckout other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TokenResponseCheckout; - } - - @override - void update(void Function(TokenResponseCheckoutBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TokenResponseCheckout build() => _build(); - - _$TokenResponseCheckout _build() { - _$TokenResponseCheckout _$result; - try { - _$result = _$v ?? - new _$TokenResponseCheckout._( - allowedPaymentMethods: _allowedPaymentMethods?.build(), - canNotExpire: canNotExpire, - emailsSent: emailsSent, - excludeCardNetworks: _excludeCardNetworks?.build(), - expiresAt: expiresAt, - failureUrl: failureUrl, - force3dsFlow: force3dsFlow, - id: id, - livemode: livemode, - metadata: _metadata?.build(), - monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, - monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), - name: name, - needsShippingContact: needsShippingContact, - object: object, - onDemandEnabled: onDemandEnabled, - paidPaymentsCount: paidPaymentsCount, - recurrent: recurrent, - smsSent: smsSent, - startsAt: startsAt, - status: status, - successUrl: successUrl, - type: type); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'allowedPaymentMethods'; - _allowedPaymentMethods?.build(); - - _$failedField = 'excludeCardNetworks'; - _excludeCardNetworks?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'monthlyInstallmentsOptions'; - _monthlyInstallmentsOptions?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'TokenResponseCheckout', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transaction_response.g.dart b/lib/src/model/transaction_response.g.dart deleted file mode 100644 index 4ab34e8..0000000 --- a/lib/src/model/transaction_response.g.dart +++ /dev/null @@ -1,245 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'transaction_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TransactionResponse extends TransactionResponse { - @override - final int amount; - @override - final String charge; - @override - final int createdAt; - @override - final String currency; - @override - final int fee; - @override - final String id; - @override - final bool livemode; - @override - final int net; - @override - final String object; - @override - final String status; - @override - final String type; - - factory _$TransactionResponse( - [void Function(TransactionResponseBuilder)? updates]) => - (new TransactionResponseBuilder()..update(updates))._build(); - - _$TransactionResponse._( - {required this.amount, - required this.charge, - required this.createdAt, - required this.currency, - required this.fee, - required this.id, - required this.livemode, - required this.net, - required this.object, - required this.status, - required this.type}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - amount, r'TransactionResponse', 'amount'); - BuiltValueNullFieldError.checkNotNull( - charge, r'TransactionResponse', 'charge'); - BuiltValueNullFieldError.checkNotNull( - createdAt, r'TransactionResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - currency, r'TransactionResponse', 'currency'); - BuiltValueNullFieldError.checkNotNull(fee, r'TransactionResponse', 'fee'); - BuiltValueNullFieldError.checkNotNull(id, r'TransactionResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - livemode, r'TransactionResponse', 'livemode'); - BuiltValueNullFieldError.checkNotNull(net, r'TransactionResponse', 'net'); - BuiltValueNullFieldError.checkNotNull( - object, r'TransactionResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - status, r'TransactionResponse', 'status'); - BuiltValueNullFieldError.checkNotNull(type, r'TransactionResponse', 'type'); - } - - @override - TransactionResponse rebuild( - void Function(TransactionResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TransactionResponseBuilder toBuilder() => - new TransactionResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TransactionResponse && - amount == other.amount && - charge == other.charge && - createdAt == other.createdAt && - currency == other.currency && - fee == other.fee && - id == other.id && - livemode == other.livemode && - net == other.net && - object == other.object && - status == other.status && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, charge.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, fee.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, net.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TransactionResponse') - ..add('amount', amount) - ..add('charge', charge) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('fee', fee) - ..add('id', id) - ..add('livemode', livemode) - ..add('net', net) - ..add('object', object) - ..add('status', status) - ..add('type', type)) - .toString(); - } -} - -class TransactionResponseBuilder - implements Builder { - _$TransactionResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _charge; - String? get charge => _$this._charge; - set charge(String? charge) => _$this._charge = charge; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - int? _fee; - int? get fee => _$this._fee; - set fee(int? fee) => _$this._fee = fee; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - int? _net; - int? get net => _$this._net; - set net(int? net) => _$this._net = net; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - TransactionResponseBuilder() { - TransactionResponse._defaults(this); - } - - TransactionResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _charge = $v.charge; - _createdAt = $v.createdAt; - _currency = $v.currency; - _fee = $v.fee; - _id = $v.id; - _livemode = $v.livemode; - _net = $v.net; - _object = $v.object; - _status = $v.status; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(TransactionResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TransactionResponse; - } - - @override - void update(void Function(TransactionResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TransactionResponse build() => _build(); - - _$TransactionResponse _build() { - final _$result = _$v ?? - new _$TransactionResponse._( - amount: BuiltValueNullFieldError.checkNotNull( - amount, r'TransactionResponse', 'amount'), - charge: BuiltValueNullFieldError.checkNotNull( - charge, r'TransactionResponse', 'charge'), - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'TransactionResponse', 'createdAt'), - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'TransactionResponse', 'currency'), - fee: BuiltValueNullFieldError.checkNotNull( - fee, r'TransactionResponse', 'fee'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'TransactionResponse', 'id'), - livemode: BuiltValueNullFieldError.checkNotNull( - livemode, r'TransactionResponse', 'livemode'), - net: BuiltValueNullFieldError.checkNotNull( - net, r'TransactionResponse', 'net'), - object: BuiltValueNullFieldError.checkNotNull( - object, r'TransactionResponse', 'object'), - status: BuiltValueNullFieldError.checkNotNull(status, r'TransactionResponse', 'status'), - type: BuiltValueNullFieldError.checkNotNull(type, r'TransactionResponse', 'type')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfer_destination_response.g.dart b/lib/src/model/transfer_destination_response.g.dart deleted file mode 100644 index eddaa7c..0000000 --- a/lib/src/model/transfer_destination_response.g.dart +++ /dev/null @@ -1,185 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'transfer_destination_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TransferDestinationResponse extends TransferDestinationResponse { - @override - final String? accountHolder; - @override - final String? accountNumber; - @override - final String? bank; - @override - final int? createdAt; - @override - final String? id; - @override - final String? object; - @override - final String? payeeId; - @override - final String? type; - - factory _$TransferDestinationResponse( - [void Function(TransferDestinationResponseBuilder)? updates]) => - (new TransferDestinationResponseBuilder()..update(updates))._build(); - - _$TransferDestinationResponse._( - {this.accountHolder, - this.accountNumber, - this.bank, - this.createdAt, - this.id, - this.object, - this.payeeId, - this.type}) - : super._(); - - @override - TransferDestinationResponse rebuild( - void Function(TransferDestinationResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TransferDestinationResponseBuilder toBuilder() => - new TransferDestinationResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TransferDestinationResponse && - accountHolder == other.accountHolder && - accountNumber == other.accountNumber && - bank == other.bank && - createdAt == other.createdAt && - id == other.id && - object == other.object && - payeeId == other.payeeId && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, accountHolder.hashCode); - _$hash = $jc(_$hash, accountNumber.hashCode); - _$hash = $jc(_$hash, bank.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, payeeId.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TransferDestinationResponse') - ..add('accountHolder', accountHolder) - ..add('accountNumber', accountNumber) - ..add('bank', bank) - ..add('createdAt', createdAt) - ..add('id', id) - ..add('object', object) - ..add('payeeId', payeeId) - ..add('type', type)) - .toString(); - } -} - -class TransferDestinationResponseBuilder - implements - Builder { - _$TransferDestinationResponse? _$v; - - String? _accountHolder; - String? get accountHolder => _$this._accountHolder; - set accountHolder(String? accountHolder) => - _$this._accountHolder = accountHolder; - - String? _accountNumber; - String? get accountNumber => _$this._accountNumber; - set accountNumber(String? accountNumber) => - _$this._accountNumber = accountNumber; - - String? _bank; - String? get bank => _$this._bank; - set bank(String? bank) => _$this._bank = bank; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _payeeId; - String? get payeeId => _$this._payeeId; - set payeeId(String? payeeId) => _$this._payeeId = payeeId; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - TransferDestinationResponseBuilder() { - TransferDestinationResponse._defaults(this); - } - - TransferDestinationResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _accountHolder = $v.accountHolder; - _accountNumber = $v.accountNumber; - _bank = $v.bank; - _createdAt = $v.createdAt; - _id = $v.id; - _object = $v.object; - _payeeId = $v.payeeId; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(TransferDestinationResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TransferDestinationResponse; - } - - @override - void update(void Function(TransferDestinationResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TransferDestinationResponse build() => _build(); - - _$TransferDestinationResponse _build() { - final _$result = _$v ?? - new _$TransferDestinationResponse._( - accountHolder: accountHolder, - accountNumber: accountNumber, - bank: bank, - createdAt: createdAt, - id: id, - object: object, - payeeId: payeeId, - type: type); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfer_method_response.g.dart b/lib/src/model/transfer_method_response.g.dart deleted file mode 100644 index 85897c6..0000000 --- a/lib/src/model/transfer_method_response.g.dart +++ /dev/null @@ -1,183 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'transfer_method_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TransferMethodResponse extends TransferMethodResponse { - @override - final String? accountHolder; - @override - final String? accountNumber; - @override - final String? bank; - @override - final int? createdAt; - @override - final String? id; - @override - final String? object; - @override - final String? payeeId; - @override - final String? type; - - factory _$TransferMethodResponse( - [void Function(TransferMethodResponseBuilder)? updates]) => - (new TransferMethodResponseBuilder()..update(updates))._build(); - - _$TransferMethodResponse._( - {this.accountHolder, - this.accountNumber, - this.bank, - this.createdAt, - this.id, - this.object, - this.payeeId, - this.type}) - : super._(); - - @override - TransferMethodResponse rebuild( - void Function(TransferMethodResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TransferMethodResponseBuilder toBuilder() => - new TransferMethodResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TransferMethodResponse && - accountHolder == other.accountHolder && - accountNumber == other.accountNumber && - bank == other.bank && - createdAt == other.createdAt && - id == other.id && - object == other.object && - payeeId == other.payeeId && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, accountHolder.hashCode); - _$hash = $jc(_$hash, accountNumber.hashCode); - _$hash = $jc(_$hash, bank.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, payeeId.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TransferMethodResponse') - ..add('accountHolder', accountHolder) - ..add('accountNumber', accountNumber) - ..add('bank', bank) - ..add('createdAt', createdAt) - ..add('id', id) - ..add('object', object) - ..add('payeeId', payeeId) - ..add('type', type)) - .toString(); - } -} - -class TransferMethodResponseBuilder - implements Builder { - _$TransferMethodResponse? _$v; - - String? _accountHolder; - String? get accountHolder => _$this._accountHolder; - set accountHolder(String? accountHolder) => - _$this._accountHolder = accountHolder; - - String? _accountNumber; - String? get accountNumber => _$this._accountNumber; - set accountNumber(String? accountNumber) => - _$this._accountNumber = accountNumber; - - String? _bank; - String? get bank => _$this._bank; - set bank(String? bank) => _$this._bank = bank; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _payeeId; - String? get payeeId => _$this._payeeId; - set payeeId(String? payeeId) => _$this._payeeId = payeeId; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - TransferMethodResponseBuilder() { - TransferMethodResponse._defaults(this); - } - - TransferMethodResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _accountHolder = $v.accountHolder; - _accountNumber = $v.accountNumber; - _bank = $v.bank; - _createdAt = $v.createdAt; - _id = $v.id; - _object = $v.object; - _payeeId = $v.payeeId; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(TransferMethodResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TransferMethodResponse; - } - - @override - void update(void Function(TransferMethodResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TransferMethodResponse build() => _build(); - - _$TransferMethodResponse _build() { - final _$result = _$v ?? - new _$TransferMethodResponse._( - accountHolder: accountHolder, - accountNumber: accountNumber, - bank: bank, - createdAt: createdAt, - id: id, - object: object, - payeeId: payeeId, - type: type); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfer_response.g.dart b/lib/src/model/transfer_response.g.dart deleted file mode 100644 index 1f0a2ba..0000000 --- a/lib/src/model/transfer_response.g.dart +++ /dev/null @@ -1,221 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'transfer_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TransferResponse extends TransferResponse { - @override - final int? amount; - @override - final int? createdAt; - @override - final String? currency; - @override - final String? id; - @override - final bool? livemode; - @override - final TransferDestinationResponse? destination; - @override - final String? object; - @override - final String? statementDescription; - @override - final String? statementReference; - @override - final String? status; - - factory _$TransferResponse( - [void Function(TransferResponseBuilder)? updates]) => - (new TransferResponseBuilder()..update(updates))._build(); - - _$TransferResponse._( - {this.amount, - this.createdAt, - this.currency, - this.id, - this.livemode, - this.destination, - this.object, - this.statementDescription, - this.statementReference, - this.status}) - : super._(); - - @override - TransferResponse rebuild(void Function(TransferResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TransferResponseBuilder toBuilder() => - new TransferResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TransferResponse && - amount == other.amount && - createdAt == other.createdAt && - currency == other.currency && - id == other.id && - livemode == other.livemode && - destination == other.destination && - object == other.object && - statementDescription == other.statementDescription && - statementReference == other.statementReference && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, destination.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, statementDescription.hashCode); - _$hash = $jc(_$hash, statementReference.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TransferResponse') - ..add('amount', amount) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('id', id) - ..add('livemode', livemode) - ..add('destination', destination) - ..add('object', object) - ..add('statementDescription', statementDescription) - ..add('statementReference', statementReference) - ..add('status', status)) - .toString(); - } -} - -class TransferResponseBuilder - implements Builder { - _$TransferResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - TransferDestinationResponseBuilder? _destination; - TransferDestinationResponseBuilder get destination => - _$this._destination ??= new TransferDestinationResponseBuilder(); - set destination(TransferDestinationResponseBuilder? destination) => - _$this._destination = destination; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _statementDescription; - String? get statementDescription => _$this._statementDescription; - set statementDescription(String? statementDescription) => - _$this._statementDescription = statementDescription; - - String? _statementReference; - String? get statementReference => _$this._statementReference; - set statementReference(String? statementReference) => - _$this._statementReference = statementReference; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - TransferResponseBuilder() { - TransferResponse._defaults(this); - } - - TransferResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _createdAt = $v.createdAt; - _currency = $v.currency; - _id = $v.id; - _livemode = $v.livemode; - _destination = $v.destination?.toBuilder(); - _object = $v.object; - _statementDescription = $v.statementDescription; - _statementReference = $v.statementReference; - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(TransferResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TransferResponse; - } - - @override - void update(void Function(TransferResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TransferResponse build() => _build(); - - _$TransferResponse _build() { - _$TransferResponse _$result; - try { - _$result = _$v ?? - new _$TransferResponse._( - amount: amount, - createdAt: createdAt, - currency: currency, - id: id, - livemode: livemode, - destination: _destination?.build(), - object: object, - statementDescription: statementDescription, - statementReference: statementReference, - status: status); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'destination'; - _destination?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'TransferResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfers_response.g.dart b/lib/src/model/transfers_response.g.dart deleted file mode 100644 index ddf0e6d..0000000 --- a/lib/src/model/transfers_response.g.dart +++ /dev/null @@ -1,220 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'transfers_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$TransfersResponse extends TransfersResponse { - @override - final int? amount; - @override - final int? createdAt; - @override - final String? currency; - @override - final String? id; - @override - final bool? livemode; - @override - final TransferMethodResponse? method; - @override - final String? object; - @override - final String? statementDescription; - @override - final String? statementReference; - @override - final String? status; - - factory _$TransfersResponse( - [void Function(TransfersResponseBuilder)? updates]) => - (new TransfersResponseBuilder()..update(updates))._build(); - - _$TransfersResponse._( - {this.amount, - this.createdAt, - this.currency, - this.id, - this.livemode, - this.method, - this.object, - this.statementDescription, - this.statementReference, - this.status}) - : super._(); - - @override - TransfersResponse rebuild(void Function(TransfersResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TransfersResponseBuilder toBuilder() => - new TransfersResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TransfersResponse && - amount == other.amount && - createdAt == other.createdAt && - currency == other.currency && - id == other.id && - livemode == other.livemode && - method == other.method && - object == other.object && - statementDescription == other.statementDescription && - statementReference == other.statementReference && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, method.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, statementDescription.hashCode); - _$hash = $jc(_$hash, statementReference.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TransfersResponse') - ..add('amount', amount) - ..add('createdAt', createdAt) - ..add('currency', currency) - ..add('id', id) - ..add('livemode', livemode) - ..add('method', method) - ..add('object', object) - ..add('statementDescription', statementDescription) - ..add('statementReference', statementReference) - ..add('status', status)) - .toString(); - } -} - -class TransfersResponseBuilder - implements Builder { - _$TransfersResponse? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _currency; - String? get currency => _$this._currency; - set currency(String? currency) => _$this._currency = currency; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - TransferMethodResponseBuilder? _method; - TransferMethodResponseBuilder get method => - _$this._method ??= new TransferMethodResponseBuilder(); - set method(TransferMethodResponseBuilder? method) => _$this._method = method; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _statementDescription; - String? get statementDescription => _$this._statementDescription; - set statementDescription(String? statementDescription) => - _$this._statementDescription = statementDescription; - - String? _statementReference; - String? get statementReference => _$this._statementReference; - set statementReference(String? statementReference) => - _$this._statementReference = statementReference; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - TransfersResponseBuilder() { - TransfersResponse._defaults(this); - } - - TransfersResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _createdAt = $v.createdAt; - _currency = $v.currency; - _id = $v.id; - _livemode = $v.livemode; - _method = $v.method?.toBuilder(); - _object = $v.object; - _statementDescription = $v.statementDescription; - _statementReference = $v.statementReference; - _status = $v.status; - _$v = null; - } - return this; - } - - @override - void replace(TransfersResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TransfersResponse; - } - - @override - void update(void Function(TransfersResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TransfersResponse build() => _build(); - - _$TransfersResponse _build() { - _$TransfersResponse _$result; - try { - _$result = _$v ?? - new _$TransfersResponse._( - amount: amount, - createdAt: createdAt, - currency: currency, - id: id, - livemode: livemode, - method: _method?.build(), - object: object, - statementDescription: statementDescription, - statementReference: statementReference, - status: status); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'method'; - _method?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'TransfersResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer.g.dart b/lib/src/model/update_customer.g.dart deleted file mode 100644 index 64e80b7..0000000 --- a/lib/src/model/update_customer.g.dart +++ /dev/null @@ -1,320 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_customer.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateCustomer extends UpdateCustomer { - @override - final UpdateCustomerAntifraudInfo? antifraudInfo; - @override - final String? dateOfBirth; - @override - final String? defaultPaymentSourceId; - @override - final String? email; - @override - final String? name; - @override - final String? phone; - @override - final String? planId; - @override - final String? defaultShippingContactId; - @override - final bool? corporate; - @override - final String? customReference; - @override - final BuiltList? fiscalEntities; - @override - final BuiltMap? metadata; - @override - final String? nationalId; - @override - final BuiltList? paymentSources; - @override - final BuiltList? shippingContacts; - @override - final SubscriptionRequest? subscription; - - factory _$UpdateCustomer([void Function(UpdateCustomerBuilder)? updates]) => - (new UpdateCustomerBuilder()..update(updates))._build(); - - _$UpdateCustomer._( - {this.antifraudInfo, - this.dateOfBirth, - this.defaultPaymentSourceId, - this.email, - this.name, - this.phone, - this.planId, - this.defaultShippingContactId, - this.corporate, - this.customReference, - this.fiscalEntities, - this.metadata, - this.nationalId, - this.paymentSources, - this.shippingContacts, - this.subscription}) - : super._(); - - @override - UpdateCustomer rebuild(void Function(UpdateCustomerBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateCustomerBuilder toBuilder() => - new UpdateCustomerBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateCustomer && - antifraudInfo == other.antifraudInfo && - dateOfBirth == other.dateOfBirth && - defaultPaymentSourceId == other.defaultPaymentSourceId && - email == other.email && - name == other.name && - phone == other.phone && - planId == other.planId && - defaultShippingContactId == other.defaultShippingContactId && - corporate == other.corporate && - customReference == other.customReference && - fiscalEntities == other.fiscalEntities && - metadata == other.metadata && - nationalId == other.nationalId && - paymentSources == other.paymentSources && - shippingContacts == other.shippingContacts && - subscription == other.subscription; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, dateOfBirth.hashCode); - _$hash = $jc(_$hash, defaultPaymentSourceId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, planId.hashCode); - _$hash = $jc(_$hash, defaultShippingContactId.hashCode); - _$hash = $jc(_$hash, corporate.hashCode); - _$hash = $jc(_$hash, customReference.hashCode); - _$hash = $jc(_$hash, fiscalEntities.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, nationalId.hashCode); - _$hash = $jc(_$hash, paymentSources.hashCode); - _$hash = $jc(_$hash, shippingContacts.hashCode); - _$hash = $jc(_$hash, subscription.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateCustomer') - ..add('antifraudInfo', antifraudInfo) - ..add('dateOfBirth', dateOfBirth) - ..add('defaultPaymentSourceId', defaultPaymentSourceId) - ..add('email', email) - ..add('name', name) - ..add('phone', phone) - ..add('planId', planId) - ..add('defaultShippingContactId', defaultShippingContactId) - ..add('corporate', corporate) - ..add('customReference', customReference) - ..add('fiscalEntities', fiscalEntities) - ..add('metadata', metadata) - ..add('nationalId', nationalId) - ..add('paymentSources', paymentSources) - ..add('shippingContacts', shippingContacts) - ..add('subscription', subscription)) - .toString(); - } -} - -class UpdateCustomerBuilder - implements Builder { - _$UpdateCustomer? _$v; - - UpdateCustomerAntifraudInfoBuilder? _antifraudInfo; - UpdateCustomerAntifraudInfoBuilder get antifraudInfo => - _$this._antifraudInfo ??= new UpdateCustomerAntifraudInfoBuilder(); - set antifraudInfo(UpdateCustomerAntifraudInfoBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - String? _dateOfBirth; - String? get dateOfBirth => _$this._dateOfBirth; - set dateOfBirth(String? dateOfBirth) => _$this._dateOfBirth = dateOfBirth; - - String? _defaultPaymentSourceId; - String? get defaultPaymentSourceId => _$this._defaultPaymentSourceId; - set defaultPaymentSourceId(String? defaultPaymentSourceId) => - _$this._defaultPaymentSourceId = defaultPaymentSourceId; - - String? _email; - String? get email => _$this._email; - set email(String? email) => _$this._email = email; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _phone; - String? get phone => _$this._phone; - set phone(String? phone) => _$this._phone = phone; - - String? _planId; - String? get planId => _$this._planId; - set planId(String? planId) => _$this._planId = planId; - - String? _defaultShippingContactId; - String? get defaultShippingContactId => _$this._defaultShippingContactId; - set defaultShippingContactId(String? defaultShippingContactId) => - _$this._defaultShippingContactId = defaultShippingContactId; - - bool? _corporate; - bool? get corporate => _$this._corporate; - set corporate(bool? corporate) => _$this._corporate = corporate; - - String? _customReference; - String? get customReference => _$this._customReference; - set customReference(String? customReference) => - _$this._customReference = customReference; - - ListBuilder? _fiscalEntities; - ListBuilder get fiscalEntities => - _$this._fiscalEntities ??= - new ListBuilder(); - set fiscalEntities( - ListBuilder? fiscalEntities) => - _$this._fiscalEntities = fiscalEntities; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _nationalId; - String? get nationalId => _$this._nationalId; - set nationalId(String? nationalId) => _$this._nationalId = nationalId; - - ListBuilder? _paymentSources; - ListBuilder get paymentSources => - _$this._paymentSources ??= - new ListBuilder(); - set paymentSources( - ListBuilder? paymentSources) => - _$this._paymentSources = paymentSources; - - ListBuilder? _shippingContacts; - ListBuilder get shippingContacts => - _$this._shippingContacts ??= new ListBuilder(); - set shippingContacts( - ListBuilder? shippingContacts) => - _$this._shippingContacts = shippingContacts; - - SubscriptionRequestBuilder? _subscription; - SubscriptionRequestBuilder get subscription => - _$this._subscription ??= new SubscriptionRequestBuilder(); - set subscription(SubscriptionRequestBuilder? subscription) => - _$this._subscription = subscription; - - UpdateCustomerBuilder() { - UpdateCustomer._defaults(this); - } - - UpdateCustomerBuilder get _$this { - final $v = _$v; - if ($v != null) { - _antifraudInfo = $v.antifraudInfo?.toBuilder(); - _dateOfBirth = $v.dateOfBirth; - _defaultPaymentSourceId = $v.defaultPaymentSourceId; - _email = $v.email; - _name = $v.name; - _phone = $v.phone; - _planId = $v.planId; - _defaultShippingContactId = $v.defaultShippingContactId; - _corporate = $v.corporate; - _customReference = $v.customReference; - _fiscalEntities = $v.fiscalEntities?.toBuilder(); - _metadata = $v.metadata?.toBuilder(); - _nationalId = $v.nationalId; - _paymentSources = $v.paymentSources?.toBuilder(); - _shippingContacts = $v.shippingContacts?.toBuilder(); - _subscription = $v.subscription?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(UpdateCustomer other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateCustomer; - } - - @override - void update(void Function(UpdateCustomerBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateCustomer build() => _build(); - - _$UpdateCustomer _build() { - _$UpdateCustomer _$result; - try { - _$result = _$v ?? - new _$UpdateCustomer._( - antifraudInfo: _antifraudInfo?.build(), - dateOfBirth: dateOfBirth, - defaultPaymentSourceId: defaultPaymentSourceId, - email: email, - name: name, - phone: phone, - planId: planId, - defaultShippingContactId: defaultShippingContactId, - corporate: corporate, - customReference: customReference, - fiscalEntities: _fiscalEntities?.build(), - metadata: _metadata?.build(), - nationalId: nationalId, - paymentSources: _paymentSources?.build(), - shippingContacts: _shippingContacts?.build(), - subscription: _subscription?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'fiscalEntities'; - _fiscalEntities?.build(); - _$failedField = 'metadata'; - _metadata?.build(); - - _$failedField = 'paymentSources'; - _paymentSources?.build(); - _$failedField = 'shippingContacts'; - _shippingContacts?.build(); - _$failedField = 'subscription'; - _subscription?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'UpdateCustomer', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer_antifraud_info.g.dart b/lib/src/model/update_customer_antifraud_info.g.dart deleted file mode 100644 index 9a977b7..0000000 --- a/lib/src/model/update_customer_antifraud_info.g.dart +++ /dev/null @@ -1,109 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_customer_antifraud_info.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateCustomerAntifraudInfo extends UpdateCustomerAntifraudInfo { - @override - final int? accountCreatedAt; - @override - final int? firstPaidAt; - - factory _$UpdateCustomerAntifraudInfo( - [void Function(UpdateCustomerAntifraudInfoBuilder)? updates]) => - (new UpdateCustomerAntifraudInfoBuilder()..update(updates))._build(); - - _$UpdateCustomerAntifraudInfo._({this.accountCreatedAt, this.firstPaidAt}) - : super._(); - - @override - UpdateCustomerAntifraudInfo rebuild( - void Function(UpdateCustomerAntifraudInfoBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateCustomerAntifraudInfoBuilder toBuilder() => - new UpdateCustomerAntifraudInfoBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateCustomerAntifraudInfo && - accountCreatedAt == other.accountCreatedAt && - firstPaidAt == other.firstPaidAt; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, accountCreatedAt.hashCode); - _$hash = $jc(_$hash, firstPaidAt.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateCustomerAntifraudInfo') - ..add('accountCreatedAt', accountCreatedAt) - ..add('firstPaidAt', firstPaidAt)) - .toString(); - } -} - -class UpdateCustomerAntifraudInfoBuilder - implements - Builder { - _$UpdateCustomerAntifraudInfo? _$v; - - int? _accountCreatedAt; - int? get accountCreatedAt => _$this._accountCreatedAt; - set accountCreatedAt(int? accountCreatedAt) => - _$this._accountCreatedAt = accountCreatedAt; - - int? _firstPaidAt; - int? get firstPaidAt => _$this._firstPaidAt; - set firstPaidAt(int? firstPaidAt) => _$this._firstPaidAt = firstPaidAt; - - UpdateCustomerAntifraudInfoBuilder() { - UpdateCustomerAntifraudInfo._defaults(this); - } - - UpdateCustomerAntifraudInfoBuilder get _$this { - final $v = _$v; - if ($v != null) { - _accountCreatedAt = $v.accountCreatedAt; - _firstPaidAt = $v.firstPaidAt; - _$v = null; - } - return this; - } - - @override - void replace(UpdateCustomerAntifraudInfo other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateCustomerAntifraudInfo; - } - - @override - void update(void Function(UpdateCustomerAntifraudInfoBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateCustomerAntifraudInfo build() => _build(); - - _$UpdateCustomerAntifraudInfo _build() { - final _$result = _$v ?? - new _$UpdateCustomerAntifraudInfo._( - accountCreatedAt: accountCreatedAt, firstPaidAt: firstPaidAt); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer_fiscal_entities_response.g.dart b/lib/src/model/update_customer_fiscal_entities_response.g.dart deleted file mode 100644 index 70ad0c6..0000000 --- a/lib/src/model/update_customer_fiscal_entities_response.g.dart +++ /dev/null @@ -1,259 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_customer_fiscal_entities_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateCustomerFiscalEntitiesResponse - extends UpdateCustomerFiscalEntitiesResponse { - @override - final int createdAt; - @override - final bool? default_; - @override - final String id; - @override - final String? parentId; - @override - final String object; - @override - final CustomerAddress address; - @override - final String? taxId; - @override - final String? email; - @override - final String? phone; - @override - final BuiltMap? metadata; - @override - final String? companyName; - - factory _$UpdateCustomerFiscalEntitiesResponse( - [void Function(UpdateCustomerFiscalEntitiesResponseBuilder)? - updates]) => - (new UpdateCustomerFiscalEntitiesResponseBuilder()..update(updates)) - ._build(); - - _$UpdateCustomerFiscalEntitiesResponse._( - {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}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - createdAt, r'UpdateCustomerFiscalEntitiesResponse', 'createdAt'); - BuiltValueNullFieldError.checkNotNull( - id, r'UpdateCustomerFiscalEntitiesResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - object, r'UpdateCustomerFiscalEntitiesResponse', 'object'); - BuiltValueNullFieldError.checkNotNull( - address, r'UpdateCustomerFiscalEntitiesResponse', 'address'); - } - - @override - UpdateCustomerFiscalEntitiesResponse rebuild( - void Function(UpdateCustomerFiscalEntitiesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateCustomerFiscalEntitiesResponseBuilder toBuilder() => - new UpdateCustomerFiscalEntitiesResponseBuilder()..replace(this); - - @override - 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; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, default_.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, address.hashCode); - _$hash = $jc(_$hash, taxId.hashCode); - _$hash = $jc(_$hash, email.hashCode); - _$hash = $jc(_$hash, phone.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jc(_$hash, companyName.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @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)) - .toString(); - } -} - -class UpdateCustomerFiscalEntitiesResponseBuilder - implements - Builder, - CustomerFiscalEntitiesRequestBuilder { - _$UpdateCustomerFiscalEntitiesResponse? _$v; - - 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; - String? get taxId => _$this._taxId; - set taxId(covariant String? taxId) => _$this._taxId = taxId; - - String? _email; - String? get email => _$this._email; - set email(covariant String? email) => _$this._email = email; - - String? _phone; - String? get phone => _$this._phone; - set phone(covariant String? phone) => _$this._phone = phone; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - String? _companyName; - String? get companyName => _$this._companyName; - set companyName(covariant String? companyName) => - _$this._companyName = companyName; - - UpdateCustomerFiscalEntitiesResponseBuilder() { - UpdateCustomerFiscalEntitiesResponse._defaults(this); - } - - 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; - _$v = null; - } - return this; - } - - @override - void replace(covariant UpdateCustomerFiscalEntitiesResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateCustomerFiscalEntitiesResponse; - } - - @override - void update( - void Function(UpdateCustomerFiscalEntitiesResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateCustomerFiscalEntitiesResponse build() => _build(); - - _$UpdateCustomerFiscalEntitiesResponse _build() { - _$UpdateCustomerFiscalEntitiesResponse _$result; - 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); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'address'; - address.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'UpdateCustomerFiscalEntitiesResponse', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer_payment_methods_response.g.dart b/lib/src/model/update_customer_payment_methods_response.g.dart deleted file mode 100644 index 206ce39..0000000 --- a/lib/src/model/update_customer_payment_methods_response.g.dart +++ /dev/null @@ -1,105 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_customer_payment_methods_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateCustomerPaymentMethodsResponse - extends UpdateCustomerPaymentMethodsResponse { - @override - final OneOf oneOf; - - factory _$UpdateCustomerPaymentMethodsResponse( - [void Function(UpdateCustomerPaymentMethodsResponseBuilder)? - updates]) => - (new UpdateCustomerPaymentMethodsResponseBuilder()..update(updates)) - ._build(); - - _$UpdateCustomerPaymentMethodsResponse._({required this.oneOf}) : super._() { - BuiltValueNullFieldError.checkNotNull( - oneOf, r'UpdateCustomerPaymentMethodsResponse', 'oneOf'); - } - - @override - UpdateCustomerPaymentMethodsResponse rebuild( - void Function(UpdateCustomerPaymentMethodsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateCustomerPaymentMethodsResponseBuilder toBuilder() => - new UpdateCustomerPaymentMethodsResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateCustomerPaymentMethodsResponse && - oneOf == other.oneOf; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, oneOf.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateCustomerPaymentMethodsResponse') - ..add('oneOf', oneOf)) - .toString(); - } -} - -class UpdateCustomerPaymentMethodsResponseBuilder - implements - Builder { - _$UpdateCustomerPaymentMethodsResponse? _$v; - - OneOf? _oneOf; - OneOf? get oneOf => _$this._oneOf; - set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; - - UpdateCustomerPaymentMethodsResponseBuilder() { - UpdateCustomerPaymentMethodsResponse._defaults(this); - } - - UpdateCustomerPaymentMethodsResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _oneOf = $v.oneOf; - _$v = null; - } - return this; - } - - @override - void replace(UpdateCustomerPaymentMethodsResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateCustomerPaymentMethodsResponse; - } - - @override - void update( - void Function(UpdateCustomerPaymentMethodsResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateCustomerPaymentMethodsResponse build() => _build(); - - _$UpdateCustomerPaymentMethodsResponse _build() { - final _$result = _$v ?? - new _$UpdateCustomerPaymentMethodsResponse._( - oneOf: BuiltValueNullFieldError.checkNotNull( - oneOf, r'UpdateCustomerPaymentMethodsResponse', 'oneOf')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_order_discount_lines_request.g.dart b/lib/src/model/update_order_discount_lines_request.g.dart deleted file mode 100644 index 0c1867a..0000000 --- a/lib/src/model/update_order_discount_lines_request.g.dart +++ /dev/null @@ -1,119 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_order_discount_lines_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateOrderDiscountLinesRequest - extends UpdateOrderDiscountLinesRequest { - @override - final int? amount; - @override - final String? code; - @override - final String? type; - - factory _$UpdateOrderDiscountLinesRequest( - [void Function(UpdateOrderDiscountLinesRequestBuilder)? updates]) => - (new UpdateOrderDiscountLinesRequestBuilder()..update(updates))._build(); - - _$UpdateOrderDiscountLinesRequest._({this.amount, this.code, this.type}) - : super._(); - - @override - UpdateOrderDiscountLinesRequest rebuild( - void Function(UpdateOrderDiscountLinesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateOrderDiscountLinesRequestBuilder toBuilder() => - new UpdateOrderDiscountLinesRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateOrderDiscountLinesRequest && - amount == other.amount && - code == other.code && - type == other.type; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, code.hashCode); - _$hash = $jc(_$hash, type.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateOrderDiscountLinesRequest') - ..add('amount', amount) - ..add('code', code) - ..add('type', type)) - .toString(); - } -} - -class UpdateOrderDiscountLinesRequestBuilder - implements - Builder { - _$UpdateOrderDiscountLinesRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _code; - String? get code => _$this._code; - set code(String? code) => _$this._code = code; - - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; - - UpdateOrderDiscountLinesRequestBuilder() { - UpdateOrderDiscountLinesRequest._defaults(this); - } - - UpdateOrderDiscountLinesRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _code = $v.code; - _type = $v.type; - _$v = null; - } - return this; - } - - @override - void replace(UpdateOrderDiscountLinesRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateOrderDiscountLinesRequest; - } - - @override - void update(void Function(UpdateOrderDiscountLinesRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateOrderDiscountLinesRequest build() => _build(); - - _$UpdateOrderDiscountLinesRequest _build() { - final _$result = _$v ?? - new _$UpdateOrderDiscountLinesRequest._( - amount: amount, code: code, type: type); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_order_tax_request.g.dart b/lib/src/model/update_order_tax_request.g.dart deleted file mode 100644 index d35e32b..0000000 --- a/lib/src/model/update_order_tax_request.g.dart +++ /dev/null @@ -1,133 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_order_tax_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateOrderTaxRequest extends UpdateOrderTaxRequest { - @override - final int? amount; - @override - final String? description; - @override - final BuiltMap? metadata; - - factory _$UpdateOrderTaxRequest( - [void Function(UpdateOrderTaxRequestBuilder)? updates]) => - (new UpdateOrderTaxRequestBuilder()..update(updates))._build(); - - _$UpdateOrderTaxRequest._({this.amount, this.description, this.metadata}) - : super._(); - - @override - UpdateOrderTaxRequest rebuild( - void Function(UpdateOrderTaxRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateOrderTaxRequestBuilder toBuilder() => - new UpdateOrderTaxRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateOrderTaxRequest && - amount == other.amount && - description == other.description && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateOrderTaxRequest') - ..add('amount', amount) - ..add('description', description) - ..add('metadata', metadata)) - .toString(); - } -} - -class UpdateOrderTaxRequestBuilder - implements Builder { - _$UpdateOrderTaxRequest? _$v; - - int? _amount; - int? get amount => _$this._amount; - set amount(int? amount) => _$this._amount = amount; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - UpdateOrderTaxRequestBuilder() { - UpdateOrderTaxRequest._defaults(this); - } - - UpdateOrderTaxRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _amount = $v.amount; - _description = $v.description; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(UpdateOrderTaxRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateOrderTaxRequest; - } - - @override - void update(void Function(UpdateOrderTaxRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateOrderTaxRequest build() => _build(); - - _$UpdateOrderTaxRequest _build() { - _$UpdateOrderTaxRequest _$result; - try { - _$result = _$v ?? - new _$UpdateOrderTaxRequest._( - amount: amount, - description: description, - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'UpdateOrderTaxRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_order_tax_response.g.dart b/lib/src/model/update_order_tax_response.g.dart deleted file mode 100644 index 476d983..0000000 --- a/lib/src/model/update_order_tax_response.g.dart +++ /dev/null @@ -1,184 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_order_tax_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateOrderTaxResponse extends UpdateOrderTaxResponse { - @override - final String id; - @override - final String? parentId; - @override - final String? object; - @override - final int amount; - @override - final String description; - @override - final BuiltMap? metadata; - - factory _$UpdateOrderTaxResponse( - [void Function(UpdateOrderTaxResponseBuilder)? updates]) => - (new UpdateOrderTaxResponseBuilder()..update(updates))._build(); - - _$UpdateOrderTaxResponse._( - {required this.id, - this.parentId, - this.object, - required this.amount, - required this.description, - this.metadata}) - : super._() { - BuiltValueNullFieldError.checkNotNull(id, r'UpdateOrderTaxResponse', 'id'); - BuiltValueNullFieldError.checkNotNull( - amount, r'UpdateOrderTaxResponse', 'amount'); - BuiltValueNullFieldError.checkNotNull( - description, r'UpdateOrderTaxResponse', 'description'); - } - - @override - UpdateOrderTaxResponse rebuild( - void Function(UpdateOrderTaxResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateOrderTaxResponseBuilder toBuilder() => - new UpdateOrderTaxResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateOrderTaxResponse && - id == other.id && - parentId == other.parentId && - object == other.object && - amount == other.amount && - description == other.description && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, parentId.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, amount.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateOrderTaxResponse') - ..add('id', id) - ..add('parentId', parentId) - ..add('object', object) - ..add('amount', amount) - ..add('description', description) - ..add('metadata', metadata)) - .toString(); - } -} - -class UpdateOrderTaxResponseBuilder - implements - Builder, - 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; - - String? _description; - String? get description => _$this._description; - set description(covariant String? description) => - _$this._description = description; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(covariant MapBuilder? metadata) => - _$this._metadata = metadata; - - UpdateOrderTaxResponseBuilder() { - UpdateOrderTaxResponse._defaults(this); - } - - 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(); - _$v = null; - } - return this; - } - - @override - void replace(covariant UpdateOrderTaxResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateOrderTaxResponse; - } - - @override - void update(void Function(UpdateOrderTaxResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateOrderTaxResponse build() => _build(); - - _$UpdateOrderTaxResponse _build() { - _$UpdateOrderTaxResponse _$result; - 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()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'UpdateOrderTaxResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_payment_methods.g.dart b/lib/src/model/update_payment_methods.g.dart deleted file mode 100644 index 115ed63..0000000 --- a/lib/src/model/update_payment_methods.g.dart +++ /dev/null @@ -1,92 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_payment_methods.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdatePaymentMethods extends UpdatePaymentMethods { - @override - final String? name; - - factory _$UpdatePaymentMethods( - [void Function(UpdatePaymentMethodsBuilder)? updates]) => - (new UpdatePaymentMethodsBuilder()..update(updates))._build(); - - _$UpdatePaymentMethods._({this.name}) : super._(); - - @override - UpdatePaymentMethods rebuild( - void Function(UpdatePaymentMethodsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdatePaymentMethodsBuilder toBuilder() => - new UpdatePaymentMethodsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdatePaymentMethods && name == other.name; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdatePaymentMethods') - ..add('name', name)) - .toString(); - } -} - -class UpdatePaymentMethodsBuilder - implements Builder { - _$UpdatePaymentMethods? _$v; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - UpdatePaymentMethodsBuilder() { - UpdatePaymentMethods._defaults(this); - } - - UpdatePaymentMethodsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _name = $v.name; - _$v = null; - } - return this; - } - - @override - void replace(UpdatePaymentMethods other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdatePaymentMethods; - } - - @override - void update(void Function(UpdatePaymentMethodsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdatePaymentMethods build() => _build(); - - _$UpdatePaymentMethods _build() { - final _$result = _$v ?? new _$UpdatePaymentMethods._(name: name); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_product.g.dart b/lib/src/model/update_product.g.dart deleted file mode 100644 index 8b14b11..0000000 --- a/lib/src/model/update_product.g.dart +++ /dev/null @@ -1,213 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_product.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$UpdateProduct extends UpdateProduct { - @override - final BuiltMap? antifraudInfo; - @override - final String? description; - @override - final String? sku; - @override - final String? name; - @override - final int? unitPrice; - @override - final int? quantity; - @override - final BuiltList? tags; - @override - final String? brand; - @override - final BuiltMap? metadata; - - factory _$UpdateProduct([void Function(UpdateProductBuilder)? updates]) => - (new UpdateProductBuilder()..update(updates))._build(); - - _$UpdateProduct._( - {this.antifraudInfo, - this.description, - this.sku, - this.name, - this.unitPrice, - this.quantity, - this.tags, - this.brand, - this.metadata}) - : super._(); - - @override - UpdateProduct rebuild(void Function(UpdateProductBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UpdateProductBuilder toBuilder() => new UpdateProductBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UpdateProduct && - antifraudInfo == other.antifraudInfo && - description == other.description && - sku == other.sku && - name == other.name && - unitPrice == other.unitPrice && - quantity == other.quantity && - tags == other.tags && - brand == other.brand && - metadata == other.metadata; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, antifraudInfo.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jc(_$hash, sku.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, unitPrice.hashCode); - _$hash = $jc(_$hash, quantity.hashCode); - _$hash = $jc(_$hash, tags.hashCode); - _$hash = $jc(_$hash, brand.hashCode); - _$hash = $jc(_$hash, metadata.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UpdateProduct') - ..add('antifraudInfo', antifraudInfo) - ..add('description', description) - ..add('sku', sku) - ..add('name', name) - ..add('unitPrice', unitPrice) - ..add('quantity', quantity) - ..add('tags', tags) - ..add('brand', brand) - ..add('metadata', metadata)) - .toString(); - } -} - -class UpdateProductBuilder - implements Builder { - _$UpdateProduct? _$v; - - MapBuilder? _antifraudInfo; - MapBuilder get antifraudInfo => - _$this._antifraudInfo ??= new MapBuilder(); - set antifraudInfo(MapBuilder? antifraudInfo) => - _$this._antifraudInfo = antifraudInfo; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - String? _sku; - String? get sku => _$this._sku; - set sku(String? sku) => _$this._sku = sku; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - int? _unitPrice; - int? get unitPrice => _$this._unitPrice; - set unitPrice(int? unitPrice) => _$this._unitPrice = unitPrice; - - int? _quantity; - int? get quantity => _$this._quantity; - set quantity(int? quantity) => _$this._quantity = quantity; - - ListBuilder? _tags; - ListBuilder get tags => _$this._tags ??= new ListBuilder(); - set tags(ListBuilder? tags) => _$this._tags = tags; - - String? _brand; - String? get brand => _$this._brand; - set brand(String? brand) => _$this._brand = brand; - - MapBuilder? _metadata; - MapBuilder get metadata => - _$this._metadata ??= new MapBuilder(); - set metadata(MapBuilder? metadata) => - _$this._metadata = metadata; - - UpdateProductBuilder() { - UpdateProduct._defaults(this); - } - - UpdateProductBuilder get _$this { - final $v = _$v; - if ($v != null) { - _antifraudInfo = $v.antifraudInfo?.toBuilder(); - _description = $v.description; - _sku = $v.sku; - _name = $v.name; - _unitPrice = $v.unitPrice; - _quantity = $v.quantity; - _tags = $v.tags?.toBuilder(); - _brand = $v.brand; - _metadata = $v.metadata?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(UpdateProduct other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UpdateProduct; - } - - @override - void update(void Function(UpdateProductBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UpdateProduct build() => _build(); - - _$UpdateProduct _build() { - _$UpdateProduct _$result; - try { - _$result = _$v ?? - new _$UpdateProduct._( - antifraudInfo: _antifraudInfo?.build(), - description: description, - sku: sku, - name: name, - unitPrice: unitPrice, - quantity: quantity, - tags: _tags?.build(), - brand: brand, - metadata: _metadata?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'antifraudInfo'; - _antifraudInfo?.build(); - - _$failedField = 'tags'; - _tags?.build(); - - _$failedField = 'metadata'; - _metadata?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'UpdateProduct', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_create_response.g.dart b/lib/src/model/webhook_key_create_response.g.dart deleted file mode 100644 index d116b3d..0000000 --- a/lib/src/model/webhook_key_create_response.g.dart +++ /dev/null @@ -1,158 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_key_create_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookKeyCreateResponse extends WebhookKeyCreateResponse { - @override - final bool? active; - @override - final int? createdAt; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - @override - final String? publicKey; - - factory _$WebhookKeyCreateResponse( - [void Function(WebhookKeyCreateResponseBuilder)? updates]) => - (new WebhookKeyCreateResponseBuilder()..update(updates))._build(); - - _$WebhookKeyCreateResponse._( - {this.active, - this.createdAt, - this.id, - this.livemode, - this.object, - this.publicKey}) - : super._(); - - @override - WebhookKeyCreateResponse rebuild( - void Function(WebhookKeyCreateResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookKeyCreateResponseBuilder toBuilder() => - new WebhookKeyCreateResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookKeyCreateResponse && - active == other.active && - createdAt == other.createdAt && - id == other.id && - livemode == other.livemode && - object == other.object && - publicKey == other.publicKey; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, publicKey.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookKeyCreateResponse') - ..add('active', active) - ..add('createdAt', createdAt) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('publicKey', publicKey)) - .toString(); - } -} - -class WebhookKeyCreateResponseBuilder - implements - Builder { - _$WebhookKeyCreateResponse? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - String? _publicKey; - String? get publicKey => _$this._publicKey; - set publicKey(String? publicKey) => _$this._publicKey = publicKey; - - WebhookKeyCreateResponseBuilder() { - WebhookKeyCreateResponse._defaults(this); - } - - WebhookKeyCreateResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _createdAt = $v.createdAt; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _publicKey = $v.publicKey; - _$v = null; - } - return this; - } - - @override - void replace(WebhookKeyCreateResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookKeyCreateResponse; - } - - @override - void update(void Function(WebhookKeyCreateResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookKeyCreateResponse build() => _build(); - - _$WebhookKeyCreateResponse _build() { - final _$result = _$v ?? - new _$WebhookKeyCreateResponse._( - active: active, - createdAt: createdAt, - id: id, - livemode: livemode, - object: object, - publicKey: publicKey); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_delete_response.g.dart b/lib/src/model/webhook_key_delete_response.g.dart deleted file mode 100644 index b26d7f9..0000000 --- a/lib/src/model/webhook_key_delete_response.g.dart +++ /dev/null @@ -1,158 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_key_delete_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookKeyDeleteResponse extends WebhookKeyDeleteResponse { - @override - final bool? active; - @override - final int? createdAt; - @override - final bool? deleted; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - - factory _$WebhookKeyDeleteResponse( - [void Function(WebhookKeyDeleteResponseBuilder)? updates]) => - (new WebhookKeyDeleteResponseBuilder()..update(updates))._build(); - - _$WebhookKeyDeleteResponse._( - {this.active, - this.createdAt, - this.deleted, - this.id, - this.livemode, - this.object}) - : super._(); - - @override - WebhookKeyDeleteResponse rebuild( - void Function(WebhookKeyDeleteResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookKeyDeleteResponseBuilder toBuilder() => - new WebhookKeyDeleteResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookKeyDeleteResponse && - active == other.active && - createdAt == other.createdAt && - deleted == other.deleted && - id == other.id && - livemode == other.livemode && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookKeyDeleteResponse') - ..add('active', active) - ..add('createdAt', createdAt) - ..add('deleted', deleted) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object)) - .toString(); - } -} - -class WebhookKeyDeleteResponseBuilder - implements - Builder { - _$WebhookKeyDeleteResponse? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(bool? deleted) => _$this._deleted = deleted; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - WebhookKeyDeleteResponseBuilder() { - WebhookKeyDeleteResponse._defaults(this); - } - - WebhookKeyDeleteResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _createdAt = $v.createdAt; - _deleted = $v.deleted; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(WebhookKeyDeleteResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookKeyDeleteResponse; - } - - @override - void update(void Function(WebhookKeyDeleteResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookKeyDeleteResponse build() => _build(); - - _$WebhookKeyDeleteResponse _build() { - final _$result = _$v ?? - new _$WebhookKeyDeleteResponse._( - active: active, - createdAt: createdAt, - deleted: deleted, - id: id, - livemode: livemode, - object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_request.g.dart b/lib/src/model/webhook_key_request.g.dart deleted file mode 100644 index 4e20279..0000000 --- a/lib/src/model/webhook_key_request.g.dart +++ /dev/null @@ -1,91 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_key_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookKeyRequest extends WebhookKeyRequest { - @override - final bool? active; - - factory _$WebhookKeyRequest( - [void Function(WebhookKeyRequestBuilder)? updates]) => - (new WebhookKeyRequestBuilder()..update(updates))._build(); - - _$WebhookKeyRequest._({this.active}) : super._(); - - @override - WebhookKeyRequest rebuild(void Function(WebhookKeyRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookKeyRequestBuilder toBuilder() => - new WebhookKeyRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookKeyRequest && active == other.active; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookKeyRequest') - ..add('active', active)) - .toString(); - } -} - -class WebhookKeyRequestBuilder - implements Builder { - _$WebhookKeyRequest? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(bool? active) => _$this._active = active; - - WebhookKeyRequestBuilder() { - WebhookKeyRequest._defaults(this); - } - - WebhookKeyRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _$v = null; - } - return this; - } - - @override - void replace(WebhookKeyRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookKeyRequest; - } - - @override - void update(void Function(WebhookKeyRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookKeyRequest build() => _build(); - - _$WebhookKeyRequest _build() { - final _$result = _$v ?? new _$WebhookKeyRequest._(active: active); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_response.g.dart b/lib/src/model/webhook_key_response.g.dart deleted file mode 100644 index 2ba38c0..0000000 --- a/lib/src/model/webhook_key_response.g.dart +++ /dev/null @@ -1,170 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_key_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookKeyResponse extends WebhookKeyResponse { - @override - final String? id; - @override - final bool? active; - @override - final int? createdAt; - @override - final int? deactivatedAt; - @override - final String? publicKey; - @override - final bool? livemode; - @override - final String? object; - - factory _$WebhookKeyResponse( - [void Function(WebhookKeyResponseBuilder)? updates]) => - (new WebhookKeyResponseBuilder()..update(updates))._build(); - - _$WebhookKeyResponse._( - {this.id, - this.active, - this.createdAt, - this.deactivatedAt, - this.publicKey, - this.livemode, - this.object}) - : super._(); - - @override - WebhookKeyResponse rebuild( - void Function(WebhookKeyResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookKeyResponseBuilder toBuilder() => - new WebhookKeyResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookKeyResponse && - id == other.id && - active == other.active && - createdAt == other.createdAt && - deactivatedAt == other.deactivatedAt && - publicKey == other.publicKey && - livemode == other.livemode && - object == other.object; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jc(_$hash, createdAt.hashCode); - _$hash = $jc(_$hash, deactivatedAt.hashCode); - _$hash = $jc(_$hash, publicKey.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookKeyResponse') - ..add('id', id) - ..add('active', active) - ..add('createdAt', createdAt) - ..add('deactivatedAt', deactivatedAt) - ..add('publicKey', publicKey) - ..add('livemode', livemode) - ..add('object', object)) - .toString(); - } -} - -class WebhookKeyResponseBuilder - implements Builder { - _$WebhookKeyResponse? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _active; - bool? get active => _$this._active; - set active(bool? active) => _$this._active = active; - - int? _createdAt; - int? get createdAt => _$this._createdAt; - set createdAt(int? createdAt) => _$this._createdAt = createdAt; - - int? _deactivatedAt; - int? get deactivatedAt => _$this._deactivatedAt; - set deactivatedAt(int? deactivatedAt) => - _$this._deactivatedAt = deactivatedAt; - - String? _publicKey; - String? get publicKey => _$this._publicKey; - set publicKey(String? publicKey) => _$this._publicKey = publicKey; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - WebhookKeyResponseBuilder() { - WebhookKeyResponse._defaults(this); - } - - WebhookKeyResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _active = $v.active; - _createdAt = $v.createdAt; - _deactivatedAt = $v.deactivatedAt; - _publicKey = $v.publicKey; - _livemode = $v.livemode; - _object = $v.object; - _$v = null; - } - return this; - } - - @override - void replace(WebhookKeyResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookKeyResponse; - } - - @override - void update(void Function(WebhookKeyResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookKeyResponse build() => _build(); - - _$WebhookKeyResponse _build() { - final _$result = _$v ?? - new _$WebhookKeyResponse._( - id: id, - active: active, - createdAt: createdAt, - deactivatedAt: deactivatedAt, - publicKey: publicKey, - livemode: livemode, - object: object); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_update_request.g.dart b/lib/src/model/webhook_key_update_request.g.dart deleted file mode 100644 index d416267..0000000 --- a/lib/src/model/webhook_key_update_request.g.dart +++ /dev/null @@ -1,93 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_key_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookKeyUpdateRequest extends WebhookKeyUpdateRequest { - @override - final bool? active; - - factory _$WebhookKeyUpdateRequest( - [void Function(WebhookKeyUpdateRequestBuilder)? updates]) => - (new WebhookKeyUpdateRequestBuilder()..update(updates))._build(); - - _$WebhookKeyUpdateRequest._({this.active}) : super._(); - - @override - WebhookKeyUpdateRequest rebuild( - void Function(WebhookKeyUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookKeyUpdateRequestBuilder toBuilder() => - new WebhookKeyUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookKeyUpdateRequest && active == other.active; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, active.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookKeyUpdateRequest') - ..add('active', active)) - .toString(); - } -} - -class WebhookKeyUpdateRequestBuilder - implements - Builder { - _$WebhookKeyUpdateRequest? _$v; - - bool? _active; - bool? get active => _$this._active; - set active(bool? active) => _$this._active = active; - - WebhookKeyUpdateRequestBuilder() { - WebhookKeyUpdateRequest._defaults(this); - } - - WebhookKeyUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _active = $v.active; - _$v = null; - } - return this; - } - - @override - void replace(WebhookKeyUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookKeyUpdateRequest; - } - - @override - void update(void Function(WebhookKeyUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookKeyUpdateRequest build() => _build(); - - _$WebhookKeyUpdateRequest _build() { - final _$result = _$v ?? new _$WebhookKeyUpdateRequest._(active: active); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_log.g.dart b/lib/src/model/webhook_log.g.dart deleted file mode 100644 index 80def71..0000000 --- a/lib/src/model/webhook_log.g.dart +++ /dev/null @@ -1,183 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_log.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookLog extends WebhookLog { - @override - final int? failedAttempts; - @override - final String? id; - @override - final int? lastAttemptedAt; - @override - final int? lastHttpResponseStatus; - @override - final String? object; - @override - final BuiltMap? responseData; - @override - final String? url; - - factory _$WebhookLog([void Function(WebhookLogBuilder)? updates]) => - (new WebhookLogBuilder()..update(updates))._build(); - - _$WebhookLog._( - {this.failedAttempts, - this.id, - this.lastAttemptedAt, - this.lastHttpResponseStatus, - this.object, - this.responseData, - this.url}) - : super._(); - - @override - WebhookLog rebuild(void Function(WebhookLogBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookLogBuilder toBuilder() => new WebhookLogBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookLog && - failedAttempts == other.failedAttempts && - id == other.id && - lastAttemptedAt == other.lastAttemptedAt && - lastHttpResponseStatus == other.lastHttpResponseStatus && - object == other.object && - responseData == other.responseData && - url == other.url; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, failedAttempts.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, lastAttemptedAt.hashCode); - _$hash = $jc(_$hash, lastHttpResponseStatus.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, responseData.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookLog') - ..add('failedAttempts', failedAttempts) - ..add('id', id) - ..add('lastAttemptedAt', lastAttemptedAt) - ..add('lastHttpResponseStatus', lastHttpResponseStatus) - ..add('object', object) - ..add('responseData', responseData) - ..add('url', url)) - .toString(); - } -} - -class WebhookLogBuilder implements Builder { - _$WebhookLog? _$v; - - int? _failedAttempts; - int? get failedAttempts => _$this._failedAttempts; - set failedAttempts(int? failedAttempts) => - _$this._failedAttempts = failedAttempts; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - int? _lastAttemptedAt; - int? get lastAttemptedAt => _$this._lastAttemptedAt; - set lastAttemptedAt(int? lastAttemptedAt) => - _$this._lastAttemptedAt = lastAttemptedAt; - - int? _lastHttpResponseStatus; - int? get lastHttpResponseStatus => _$this._lastHttpResponseStatus; - set lastHttpResponseStatus(int? lastHttpResponseStatus) => - _$this._lastHttpResponseStatus = lastHttpResponseStatus; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - MapBuilder? _responseData; - MapBuilder get responseData => - _$this._responseData ??= new MapBuilder(); - set responseData(MapBuilder? responseData) => - _$this._responseData = responseData; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - WebhookLogBuilder() { - WebhookLog._defaults(this); - } - - WebhookLogBuilder get _$this { - final $v = _$v; - if ($v != null) { - _failedAttempts = $v.failedAttempts; - _id = $v.id; - _lastAttemptedAt = $v.lastAttemptedAt; - _lastHttpResponseStatus = $v.lastHttpResponseStatus; - _object = $v.object; - _responseData = $v.responseData?.toBuilder(); - _url = $v.url; - _$v = null; - } - return this; - } - - @override - void replace(WebhookLog other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookLog; - } - - @override - void update(void Function(WebhookLogBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookLog build() => _build(); - - _$WebhookLog _build() { - _$WebhookLog _$result; - try { - _$result = _$v ?? - new _$WebhookLog._( - failedAttempts: failedAttempts, - id: id, - lastAttemptedAt: lastAttemptedAt, - lastHttpResponseStatus: lastHttpResponseStatus, - object: object, - responseData: _responseData?.build(), - url: url); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'responseData'; - _responseData?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'WebhookLog', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_request.g.dart b/lib/src/model/webhook_request.g.dart deleted file mode 100644 index 408c99d..0000000 --- a/lib/src/model/webhook_request.g.dart +++ /dev/null @@ -1,111 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookRequest extends WebhookRequest { - @override - final String url; - @override - final bool synchronous; - - factory _$WebhookRequest([void Function(WebhookRequestBuilder)? updates]) => - (new WebhookRequestBuilder()..update(updates))._build(); - - _$WebhookRequest._({required this.url, required this.synchronous}) - : super._() { - BuiltValueNullFieldError.checkNotNull(url, r'WebhookRequest', 'url'); - BuiltValueNullFieldError.checkNotNull( - synchronous, r'WebhookRequest', 'synchronous'); - } - - @override - WebhookRequest rebuild(void Function(WebhookRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookRequestBuilder toBuilder() => - new WebhookRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookRequest && - url == other.url && - synchronous == other.synchronous; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jc(_$hash, synchronous.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookRequest') - ..add('url', url) - ..add('synchronous', synchronous)) - .toString(); - } -} - -class WebhookRequestBuilder - implements Builder { - _$WebhookRequest? _$v; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - bool? _synchronous; - bool? get synchronous => _$this._synchronous; - set synchronous(bool? synchronous) => _$this._synchronous = synchronous; - - WebhookRequestBuilder() { - WebhookRequest._defaults(this); - } - - WebhookRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _url = $v.url; - _synchronous = $v.synchronous; - _$v = null; - } - return this; - } - - @override - void replace(WebhookRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookRequest; - } - - @override - void update(void Function(WebhookRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookRequest build() => _build(); - - _$WebhookRequest _build() { - final _$result = _$v ?? - new _$WebhookRequest._( - url: BuiltValueNullFieldError.checkNotNull( - url, r'WebhookRequest', 'url'), - synchronous: BuiltValueNullFieldError.checkNotNull( - synchronous, r'WebhookRequest', 'synchronous')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_response.g.dart b/lib/src/model/webhook_response.g.dart deleted file mode 100644 index 354d817..0000000 --- a/lib/src/model/webhook_response.g.dart +++ /dev/null @@ -1,220 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookResponse extends WebhookResponse { - @override - final bool? deleted; - @override - final bool? developmentEnabled; - @override - final String? id; - @override - final bool? livemode; - @override - final String? object; - @override - final bool? productionEnabled; - @override - final String? status; - @override - final BuiltList? subscribedEvents; - @override - final bool? synchronous; - @override - final String? url; - - factory _$WebhookResponse([void Function(WebhookResponseBuilder)? updates]) => - (new WebhookResponseBuilder()..update(updates))._build(); - - _$WebhookResponse._( - {this.deleted, - this.developmentEnabled, - this.id, - this.livemode, - this.object, - this.productionEnabled, - this.status, - this.subscribedEvents, - this.synchronous, - this.url}) - : super._(); - - @override - WebhookResponse rebuild(void Function(WebhookResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookResponseBuilder toBuilder() => - new WebhookResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookResponse && - deleted == other.deleted && - developmentEnabled == other.developmentEnabled && - id == other.id && - livemode == other.livemode && - object == other.object && - productionEnabled == other.productionEnabled && - status == other.status && - subscribedEvents == other.subscribedEvents && - synchronous == other.synchronous && - url == other.url; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, deleted.hashCode); - _$hash = $jc(_$hash, developmentEnabled.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, livemode.hashCode); - _$hash = $jc(_$hash, object.hashCode); - _$hash = $jc(_$hash, productionEnabled.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jc(_$hash, subscribedEvents.hashCode); - _$hash = $jc(_$hash, synchronous.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookResponse') - ..add('deleted', deleted) - ..add('developmentEnabled', developmentEnabled) - ..add('id', id) - ..add('livemode', livemode) - ..add('object', object) - ..add('productionEnabled', productionEnabled) - ..add('status', status) - ..add('subscribedEvents', subscribedEvents) - ..add('synchronous', synchronous) - ..add('url', url)) - .toString(); - } -} - -class WebhookResponseBuilder - implements Builder { - _$WebhookResponse? _$v; - - bool? _deleted; - bool? get deleted => _$this._deleted; - set deleted(bool? deleted) => _$this._deleted = deleted; - - bool? _developmentEnabled; - bool? get developmentEnabled => _$this._developmentEnabled; - set developmentEnabled(bool? developmentEnabled) => - _$this._developmentEnabled = developmentEnabled; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - bool? _livemode; - bool? get livemode => _$this._livemode; - set livemode(bool? livemode) => _$this._livemode = livemode; - - String? _object; - String? get object => _$this._object; - set object(String? object) => _$this._object = object; - - bool? _productionEnabled; - bool? get productionEnabled => _$this._productionEnabled; - set productionEnabled(bool? productionEnabled) => - _$this._productionEnabled = productionEnabled; - - String? _status; - String? get status => _$this._status; - set status(String? status) => _$this._status = status; - - ListBuilder? _subscribedEvents; - ListBuilder get subscribedEvents => - _$this._subscribedEvents ??= new ListBuilder(); - set subscribedEvents(ListBuilder? subscribedEvents) => - _$this._subscribedEvents = subscribedEvents; - - bool? _synchronous; - bool? get synchronous => _$this._synchronous; - set synchronous(bool? synchronous) => _$this._synchronous = synchronous; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - WebhookResponseBuilder() { - WebhookResponse._defaults(this); - } - - WebhookResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _deleted = $v.deleted; - _developmentEnabled = $v.developmentEnabled; - _id = $v.id; - _livemode = $v.livemode; - _object = $v.object; - _productionEnabled = $v.productionEnabled; - _status = $v.status; - _subscribedEvents = $v.subscribedEvents?.toBuilder(); - _synchronous = $v.synchronous; - _url = $v.url; - _$v = null; - } - return this; - } - - @override - void replace(WebhookResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookResponse; - } - - @override - void update(void Function(WebhookResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookResponse build() => _build(); - - _$WebhookResponse _build() { - _$WebhookResponse _$result; - try { - _$result = _$v ?? - new _$WebhookResponse._( - deleted: deleted, - developmentEnabled: developmentEnabled, - id: id, - livemode: livemode, - object: object, - productionEnabled: productionEnabled, - status: status, - subscribedEvents: _subscribedEvents?.build(), - synchronous: synchronous, - url: url); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'subscribedEvents'; - _subscribedEvents?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'WebhookResponse', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_update_request.g.dart b/lib/src/model/webhook_update_request.g.dart deleted file mode 100644 index 85fb19c..0000000 --- a/lib/src/model/webhook_update_request.g.dart +++ /dev/null @@ -1,135 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'webhook_update_request.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WebhookUpdateRequest extends WebhookUpdateRequest { - @override - final String url; - @override - final bool? synchronous; - @override - final BuiltList? events; - - factory _$WebhookUpdateRequest( - [void Function(WebhookUpdateRequestBuilder)? updates]) => - (new WebhookUpdateRequestBuilder()..update(updates))._build(); - - _$WebhookUpdateRequest._({required this.url, this.synchronous, this.events}) - : super._() { - BuiltValueNullFieldError.checkNotNull(url, r'WebhookUpdateRequest', 'url'); - } - - @override - WebhookUpdateRequest rebuild( - void Function(WebhookUpdateRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WebhookUpdateRequestBuilder toBuilder() => - new WebhookUpdateRequestBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WebhookUpdateRequest && - url == other.url && - synchronous == other.synchronous && - events == other.events; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jc(_$hash, synchronous.hashCode); - _$hash = $jc(_$hash, events.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WebhookUpdateRequest') - ..add('url', url) - ..add('synchronous', synchronous) - ..add('events', events)) - .toString(); - } -} - -class WebhookUpdateRequestBuilder - implements Builder { - _$WebhookUpdateRequest? _$v; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - bool? _synchronous; - bool? get synchronous => _$this._synchronous; - set synchronous(bool? synchronous) => _$this._synchronous = synchronous; - - ListBuilder? _events; - ListBuilder get events => - _$this._events ??= new ListBuilder(); - set events(ListBuilder? events) => _$this._events = events; - - WebhookUpdateRequestBuilder() { - WebhookUpdateRequest._defaults(this); - } - - WebhookUpdateRequestBuilder get _$this { - final $v = _$v; - if ($v != null) { - _url = $v.url; - _synchronous = $v.synchronous; - _events = $v.events?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(WebhookUpdateRequest other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WebhookUpdateRequest; - } - - @override - void update(void Function(WebhookUpdateRequestBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WebhookUpdateRequest build() => _build(); - - _$WebhookUpdateRequest _build() { - _$WebhookUpdateRequest _$result; - try { - _$result = _$v ?? - new _$WebhookUpdateRequest._( - url: BuiltValueNullFieldError.checkNotNull( - url, r'WebhookUpdateRequest', 'url'), - synchronous: synchronous, - events: _events?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'events'; - _events?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'WebhookUpdateRequest', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/whitelistlist_rule_response.g.dart b/lib/src/model/whitelistlist_rule_response.g.dart deleted file mode 100644 index a155d21..0000000 --- a/lib/src/model/whitelistlist_rule_response.g.dart +++ /dev/null @@ -1,128 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'whitelistlist_rule_response.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$WhitelistlistRuleResponse extends WhitelistlistRuleResponse { - @override - final String? id; - @override - final String? field; - @override - final String? value; - @override - final String? description; - - factory _$WhitelistlistRuleResponse( - [void Function(WhitelistlistRuleResponseBuilder)? updates]) => - (new WhitelistlistRuleResponseBuilder()..update(updates))._build(); - - _$WhitelistlistRuleResponse._( - {this.id, this.field, this.value, this.description}) - : super._(); - - @override - WhitelistlistRuleResponse rebuild( - void Function(WhitelistlistRuleResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - WhitelistlistRuleResponseBuilder toBuilder() => - new WhitelistlistRuleResponseBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is WhitelistlistRuleResponse && - id == other.id && - field == other.field && - value == other.value && - description == other.description; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, field.hashCode); - _$hash = $jc(_$hash, value.hashCode); - _$hash = $jc(_$hash, description.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'WhitelistlistRuleResponse') - ..add('id', id) - ..add('field', field) - ..add('value', value) - ..add('description', description)) - .toString(); - } -} - -class WhitelistlistRuleResponseBuilder - implements - Builder { - _$WhitelistlistRuleResponse? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _field; - String? get field => _$this._field; - set field(String? field) => _$this._field = field; - - String? _value; - String? get value => _$this._value; - set value(String? value) => _$this._value = value; - - String? _description; - String? get description => _$this._description; - set description(String? description) => _$this._description = description; - - WhitelistlistRuleResponseBuilder() { - WhitelistlistRuleResponse._defaults(this); - } - - WhitelistlistRuleResponseBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _field = $v.field; - _value = $v.value; - _description = $v.description; - _$v = null; - } - return this; - } - - @override - void replace(WhitelistlistRuleResponse other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$WhitelistlistRuleResponse; - } - - @override - void update(void Function(WhitelistlistRuleResponseBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - WhitelistlistRuleResponse build() => _build(); - - _$WhitelistlistRuleResponse _build() { - final _$result = _$v ?? - new _$WhitelistlistRuleResponse._( - id: id, field: field, value: value, description: description); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/serializers.g.dart b/lib/src/serializers.g.dart deleted file mode 100644 index e9cda0a..0000000 --- a/lib/src/serializers.g.dart +++ /dev/null @@ -1,716 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'serializers.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -Serializers _$serializers = (new Serializers().toBuilder() - ..add($ApiKeyResponse.serializer) - ..add($ApiKeyResponseOnDelete.serializer) - ..add($ChargeResponse.serializer) - ..add($CustomerFiscalEntitiesRequest.serializer) - ..add($CustomerInfoJustCustomerIdResponse.serializer) - ..add($CustomerPaymentMethodRequest.serializer) - ..add($CustomerShippingContacts.serializer) - ..add($CustomerShippingContactsResponse.serializer) - ..add($Details.serializer) - ..add($DiscountLinesResponse.serializer) - ..add($FiscalEntityAddress.serializer) - ..add($OrderCustomerInfoResponse.serializer) - ..add($OrderDiscountLinesRequest.serializer) - ..add($OrderTaxRequest.serializer) - ..add($OrdersResponse.serializer) - ..add($Page.serializer) - ..add($Pagination.serializer) - ..add($PaymentMethod.serializer) - ..add($PaymentMethodResponse.serializer) - ..add($Product.serializer) - ..add($ShippingRequest.serializer) - ..add(ApiKeyCreateResponse.serializer) - ..add(ApiKeyRequest.serializer) - ..add(ApiKeyUpdateRequest.serializer) - ..add(BalanceCommonField.serializer) - ..add(BalanceResponse.serializer) - ..add(BlacklistRuleResponse.serializer) - ..add(ChargeOrderResponse.serializer) - ..add(ChargeOrderResponsePaymentMethod.serializer) - ..add(ChargeRequest.serializer) - ..add(ChargeRequestPaymentMethod.serializer) - ..add(ChargeResponseChannel.serializer) - ..add(ChargeResponsePaymentMethod.serializer) - ..add(ChargeResponseRefunds.serializer) - ..add(ChargeResponseRefundsData.serializer) - ..add(ChargeUpdateRequest.serializer) - ..add(ChargesDataResponse.serializer) - ..add(ChargesOrderResponse.serializer) - ..add(ChargesOrderResponseAllOfData.serializer) - ..add(Checkout.serializer) - ..add(CheckoutOrderTemplate.serializer) - ..add(CheckoutOrderTemplateCustomerInfo.serializer) - ..add(CheckoutRequest.serializer) - ..add(CheckoutResponse.serializer) - ..add(CheckoutsResponse.serializer) - ..add(CompanyFiscalInfoAddressResponse.serializer) - ..add(CompanyFiscalInfoAddressResponseObjectEnum.serializer) - ..add(CompanyFiscalInfoResponse.serializer) - ..add(CompanyFiscalInfoResponseObjectEnum.serializer) - ..add(CompanyPayoutDestinationResponse.serializer) - ..add(CompanyPayoutDestinationResponseObjectEnum.serializer) - ..add(CompanyPayoutDestinationResponseTypeEnum.serializer) - ..add(CompanyResponse.serializer) - ..add(CompanyResponseObjectEnum.serializer) - ..add(CreateCustomerFiscalEntitiesResponse.serializer) - ..add(CreateCustomerPaymentMethodsRequest.serializer) - ..add(CreateCustomerPaymentMethodsResponse.serializer) - ..add(CreateRiskRulesData.serializer) - ..add(Customer.serializer) - ..add(CustomerAddress.serializer) - ..add(CustomerAntifraudInfo.serializer) - ..add(CustomerAntifraudInfoResponse.serializer) - ..add(CustomerFiscalEntitiesDataResponse.serializer) - ..add(CustomerFiscalEntitiesResponse.serializer) - ..add(CustomerInfo.serializer) - ..add(CustomerInfoJustCustomerId.serializer) - ..add(CustomerPaymentMethodsData.serializer) - ..add(CustomerPaymentMethodsRequest.serializer) - ..add(CustomerPaymentMethodsResponse.serializer) - ..add(CustomerResponse.serializer) - ..add(CustomerResponseShippingContacts.serializer) - ..add(CustomerShippingContactsAddress.serializer) - ..add(CustomerShippingContactsDataResponse.serializer) - ..add(CustomerShippingContactsResponseAddress.serializer) - ..add(CustomerUpdateFiscalEntitiesRequest.serializer) - ..add(CustomerUpdateShippingContacts.serializer) - ..add(CustomersResponse.serializer) - ..add(DeleteApiKeysResponse.serializer) - ..add(DeletedBlacklistRuleResponse.serializer) - ..add(DeletedWhitelistRuleResponse.serializer) - ..add(DetailsError.serializer) - ..add(DiscountLinesDataResponse.serializer) - ..add(EmailCheckoutRequest.serializer) - ..add(Error.serializer) - ..add(EventResponse.serializer) - ..add(EventTypes.serializer) - ..add(EventsResendResponse.serializer) - ..add(GetApiKeysResponse.serializer) - ..add(GetChargesResponse.serializer) - ..add(GetCompaniesResponse.serializer) - ..add(GetCustomerPaymentMethodDataResponse.serializer) - ..add(GetEventsResponse.serializer) - ..add(GetOrderDiscountLinesResponse.serializer) - ..add(GetOrdersResponse.serializer) - ..add(GetPaymentMethodResponse.serializer) - ..add(GetPlansResponse.serializer) - ..add(GetTransactionsResponse.serializer) - ..add(GetTransfersResponse.serializer) - ..add(GetWebhookKeysResponse.serializer) - ..add(GetWebhooksResponse.serializer) - ..add(LogResponse.serializer) - ..add(LogsResponse.serializer) - ..add(LogsResponseData.serializer) - ..add(OrderCaptureRequest.serializer) - ..add(OrderFiscalEntityAddressResponse.serializer) - ..add(OrderFiscalEntityRequest.serializer) - ..add(OrderFiscalEntityResponse.serializer) - ..add(OrderNextActionResponse.serializer) - ..add(OrderNextActionResponseRedirectToUrl.serializer) - ..add(OrderRefundRequest.serializer) - ..add(OrderRequest.serializer) - ..add(OrderRequestCustomerInfo.serializer) - ..add(OrderResponse.serializer) - ..add(OrderResponseCharges.serializer) - ..add(OrderResponseCheckout.serializer) - ..add(OrderResponseCustomerInfo.serializer) - ..add(OrderResponseDiscountLines.serializer) - ..add(OrderResponseProducts.serializer) - ..add(OrderResponseShippingContact.serializer) - ..add(OrderUpdateFiscalEntityRequest.serializer) - ..add(OrderUpdateRequest.serializer) - ..add(OrderUpdateRequestCustomerInfo.serializer) - ..add(PaymentMethodBankTransfer.serializer) - ..add(PaymentMethodCard.serializer) - ..add(PaymentMethodCardRequest.serializer) - ..add(PaymentMethodCardResponse.serializer) - ..add(PaymentMethodCash.serializer) - ..add(PaymentMethodCashRequest.serializer) - ..add(PaymentMethodCashResponse.serializer) - ..add(PaymentMethodGeneralRequest.serializer) - ..add(PaymentMethodSpeiRecurrent.serializer) - ..add(PaymentMethodSpeiRequest.serializer) - ..add(PaymentMethodTokenRequest.serializer) - ..add(Payout.serializer) - ..add(PayoutMethod.serializer) - ..add(PayoutOrder.serializer) - ..add(PayoutOrderPayoutsItem.serializer) - ..add(PayoutOrderResponse.serializer) - ..add(PayoutOrderResponseCustomerInfo.serializer) - ..add(PayoutOrdersResponse.serializer) - ..add(PlanRequest.serializer) - ..add(PlanRequestIntervalEnum.serializer) - ..add(PlanResponse.serializer) - ..add(PlanUpdateRequest.serializer) - ..add(ProductDataResponse.serializer) - ..add(ProductOrderResponse.serializer) - ..add(RiskRulesData.serializer) - ..add(RiskRulesList.serializer) - ..add(ShippingOrderResponse.serializer) - ..add(SmsCheckoutRequest.serializer) - ..add(SubscriptionEventsResponse.serializer) - ..add(SubscriptionRequest.serializer) - ..add(SubscriptionResponse.serializer) - ..add(SubscriptionUpdateRequest.serializer) - ..add(Token.serializer) - ..add(TokenCard.serializer) - ..add(TokenCheckout.serializer) - ..add(TokenResponse.serializer) - ..add(TokenResponseCheckout.serializer) - ..add(TransactionResponse.serializer) - ..add(TransferDestinationResponse.serializer) - ..add(TransferMethodResponse.serializer) - ..add(TransferResponse.serializer) - ..add(TransfersResponse.serializer) - ..add(UpdateCustomer.serializer) - ..add(UpdateCustomerAntifraudInfo.serializer) - ..add(UpdateCustomerFiscalEntitiesResponse.serializer) - ..add(UpdateCustomerPaymentMethodsResponse.serializer) - ..add(UpdateOrderDiscountLinesRequest.serializer) - ..add(UpdateOrderTaxRequest.serializer) - ..add(UpdateOrderTaxResponse.serializer) - ..add(UpdatePaymentMethods.serializer) - ..add(UpdateProduct.serializer) - ..add(WebhookKeyCreateResponse.serializer) - ..add(WebhookKeyDeleteResponse.serializer) - ..add(WebhookKeyRequest.serializer) - ..add(WebhookKeyResponse.serializer) - ..add(WebhookKeyUpdateRequest.serializer) - ..add(WebhookLog.serializer) - ..add(WebhookRequest.serializer) - ..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(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(BalanceCommonField)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ChargeRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(OrderDiscountLinesRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(Product)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ShippingRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(OrderTaxRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ChargeRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(OrderDiscountLinesRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(Product)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ShippingRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(OrderTaxRequest)]), - () => new ListBuilder()) - ..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(ChargesOrderResponseAllOfData)]), - () => 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(CustomerFiscalEntitiesDataResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerFiscalEntitiesRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerPaymentMethodsRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerShippingContacts)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerFiscalEntitiesRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerPaymentMethodsRequest)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(CustomerShippingContacts)]), - () => 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(CustomerShippingContactsDataResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(DetailsError)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(DetailsError)]), - () => 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()) - ..addBuilderFactory( - const FullType(BuiltList, - const [const FullType(GetCustomerPaymentMethodDataResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(JsonObject)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(LogsResponseData)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(OrderResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(OrderResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(PayoutOrderResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(PlanResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(Product)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..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(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(JsonObject)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(int)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(JsonObject)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(int)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(int)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(int)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(int)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltList, const [const FullType(PayoutOrderPayoutsItem)]), - () => 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(WebhookKeyResponse)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(WebhookResponse)]), - () => 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)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(WebhookLog)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType.nullable(JsonObject) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder())) - .build(); - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint From 12e4501b1a012ea8af3eacf51c03033dff19e51b Mon Sep 17 00:00:00 2001 From: Franklin Date: Wed, 18 Dec 2024 11:56:16 -0500 Subject: [PATCH 2/2] feat: Add generated code for ApiKeyCreateResponse, ApiKeyRequest, and ApiKeyResponse This commit adds the generated code for three classes: `ApiKeyCreateResponse`, `ApiKeyRequest`, and `ApiKeyResponse`. These classes are used in the API key functionality of the application. The generated code includes getters, setters, constructors, and other necessary methods for these classes. The changes include: - Added the generated code for `ApiKeyCreateResponse` - Added the generated code for `ApiKeyRequest` - Added the generated code for `ApiKeyResponse` --- lib/src/model/api_key_create_response.g.dart | 234 ++++++ lib/src/model/api_key_request.g.dart | 106 +++ lib/src/model/api_key_response.g.dart | 256 +++++++ .../model/api_key_response_on_delete.g.dart | 227 ++++++ lib/src/model/api_key_update_request.g.dart | 104 +++ lib/src/model/balance_common_field.g.dart | 104 +++ lib/src/model/balance_response.g.dart | 255 +++++++ lib/src/model/blacklist_rule_response.g.dart | 126 +++ lib/src/model/charge_order_response.g.dart | 340 +++++++++ ...harge_order_response_payment_method.g.dart | 101 +++ lib/src/model/charge_request.g.dart | 134 ++++ .../charge_request_payment_method.g.dart | 99 +++ lib/src/model/charge_response.g.dart | 391 ++++++++++ lib/src/model/charge_response_channel.g.dart | 132 ++++ .../charge_response_payment_method.g.dart | 100 +++ lib/src/model/charge_response_refunds.g.dart | 173 +++++ .../model/charge_response_refunds_data.g.dart | 183 +++++ lib/src/model/charge_update_request.g.dart | 93 +++ lib/src/model/charges_data_response.g.dart | 335 ++++++++ lib/src/model/charges_order_response.g.dart | 143 ++++ .../charges_order_response_all_of_data.g.dart | 336 ++++++++ lib/src/model/checkout.g.dart | 268 +++++++ lib/src/model/checkout_order_template.g.dart | 162 ++++ ...eckout_order_template_customer_info.g.dart | 103 +++ lib/src/model/checkout_request.g.dart | 243 ++++++ lib/src/model/checkout_response.g.dart | 430 +++++++++++ lib/src/model/checkouts_response.g.dart | 172 +++++ ...ompany_fiscal_info_address_response.g.dart | 254 +++++++ .../model/company_fiscal_info_response.g.dart | 243 ++++++ ...company_payout_destination_response.g.dart | 273 +++++++ lib/src/model/company_response.g.dart | 249 ++++++ ...e_customer_fiscal_entities_response.g.dart | 259 +++++++ ...te_customer_payment_methods_request.g.dart | 104 +++ ...e_customer_payment_methods_response.g.dart | 105 +++ lib/src/model/create_risk_rules_data.g.dart | 129 ++++ lib/src/model/customer.g.dart | 326 ++++++++ lib/src/model/customer_address.g.dart | 189 +++++ lib/src/model/customer_antifraud_info.g.dart | 107 +++ .../customer_antifraud_info_response.g.dart | 109 +++ ...tomer_fiscal_entities_data_response.g.dart | 257 +++++++ .../customer_fiscal_entities_request.g.dart | 206 +++++ .../customer_fiscal_entities_response.g.dart | 144 ++++ lib/src/model/customer_info.g.dart | 149 ++++ .../customer_info_just_customer_id.g.dart | 100 +++ ...omer_info_just_customer_id_response.g.dart | 109 +++ .../customer_payment_method_request.g.dart | 108 +++ .../customer_payment_methods_data.g.dart | 99 +++ .../customer_payment_methods_request.g.dart | 100 +++ .../customer_payment_methods_response.g.dart | 174 +++++ lib/src/model/customer_response.g.dart | 383 ++++++++++ ...customer_response_shipping_contacts.g.dart | 145 ++++ .../model/customer_shipping_contacts.g.dart | 235 ++++++ .../customer_shipping_contacts_address.g.dart | 172 +++++ ...mer_shipping_contacts_data_response.g.dart | 259 +++++++ ...customer_shipping_contacts_response.g.dart | 282 +++++++ ..._shipping_contacts_response_address.g.dart | 189 +++++ ...omer_update_fiscal_entities_request.g.dart | 184 +++++ .../customer_update_shipping_contacts.g.dart | 187 +++++ lib/src/model/customers_response.g.dart | 172 +++++ lib/src/model/delete_api_keys_response.g.dart | 196 +++++ .../deleted_blacklist_rule_response.g.dart | 129 ++++ .../deleted_whitelist_rule_response.g.dart | 129 ++++ lib/src/model/details.g.dart | 110 +++ lib/src/model/details_error.g.dart | 126 +++ .../model/discount_lines_data_response.g.dart | 178 +++++ lib/src/model/discount_lines_response.g.dart | 200 +++++ lib/src/model/email_checkout_request.g.dart | 98 +++ lib/src/model/error.g.dart | 139 ++++ lib/src/model/event_response.g.dart | 198 +++++ lib/src/model/event_types.g.dart | 95 +++ lib/src/model/events_resend_response.g.dart | 175 +++++ lib/src/model/fiscal_entity_address.g.dart | 214 ++++++ lib/src/model/get_api_keys_response.g.dart | 172 +++++ lib/src/model/get_charges_response.g.dart | 172 +++++ lib/src/model/get_companies_response.g.dart | 172 +++++ ...stomer_payment_method_data_response.g.dart | 105 +++ lib/src/model/get_events_response.g.dart | 171 +++++ .../get_order_discount_lines_response.g.dart | 174 +++++ lib/src/model/get_orders_response.g.dart | 173 +++++ .../model/get_payment_method_response.g.dart | 173 +++++ lib/src/model/get_plans_response.g.dart | 171 +++++ .../model/get_transactions_response.g.dart | 173 +++++ lib/src/model/get_transfers_response.g.dart | 173 +++++ .../model/get_webhook_keys_response.g.dart | 173 +++++ lib/src/model/get_webhooks_response.g.dart | 172 +++++ lib/src/model/log_response.g.dart | 360 +++++++++ lib/src/model/logs_response.g.dart | 157 ++++ lib/src/model/logs_response_data.g.dart | 355 +++++++++ lib/src/model/order_capture_request.g.dart | 98 +++ .../model/order_customer_info_response.g.dart | 182 +++++ .../model/order_discount_lines_request.g.dart | 144 ++++ ...rder_fiscal_entity_address_response.g.dart | 205 +++++ .../model/order_fiscal_entity_request.g.dart | 177 +++++ .../model/order_fiscal_entity_response.g.dart | 226 ++++++ .../model/order_next_action_response.g.dart | 123 +++ ...ext_action_response_redirect_to_url.g.dart | 112 +++ lib/src/model/order_refund_request.g.dart | 126 +++ lib/src/model/order_request.g.dart | 332 ++++++++ .../model/order_request_customer_info.g.dart | 99 +++ lib/src/model/order_response.g.dart | 392 ++++++++++ lib/src/model/order_response_charges.g.dart | 142 ++++ lib/src/model/order_response_checkout.g.dart | 459 +++++++++++ .../model/order_response_customer_info.g.dart | 175 +++++ .../order_response_discount_lines.g.dart | 143 ++++ lib/src/model/order_response_products.g.dart | 173 +++++ .../order_response_shipping_contact.g.dart | 242 ++++++ lib/src/model/order_tax_request.g.dart | 156 ++++ .../order_update_fiscal_entity_request.g.dart | 178 +++++ lib/src/model/order_update_request.g.dart | 277 +++++++ .../order_update_request_customer_info.g.dart | 100 +++ lib/src/model/orders_response.g.dart | 114 +++ lib/src/model/page.g.dart | 113 +++ lib/src/model/pagination.g.dart | 118 +++ lib/src/model/payment_method.g.dart | 119 +++ .../model/payment_method_bank_transfer.g.dart | 347 +++++++++ lib/src/model/payment_method_card.g.dart | 276 +++++++ .../model/payment_method_card_request.g.dart | 191 +++++ .../model/payment_method_card_response.g.dart | 282 +++++++ lib/src/model/payment_method_cash.g.dart | 250 ++++++ .../model/payment_method_cash_request.g.dart | 113 +++ .../model/payment_method_cash_response.g.dart | 221 ++++++ .../payment_method_general_request.g.dart | 190 +++++ lib/src/model/payment_method_response.g.dart | 178 +++++ .../payment_method_spei_recurrent.g.dart | 184 +++++ .../model/payment_method_spei_request.g.dart | 113 +++ .../model/payment_method_token_request.g.dart | 116 +++ lib/src/model/payout.g.dart | 106 +++ lib/src/model/payout_method.g.dart | 93 +++ lib/src/model/payout_order.g.dart | 203 +++++ .../model/payout_order_payouts_item.g.dart | 197 +++++ lib/src/model/payout_order_response.g.dart | 312 ++++++++ ...payout_order_response_customer_info.g.dart | 178 +++++ lib/src/model/payout_orders_response.g.dart | 173 +++++ lib/src/model/plan_request.g.dart | 257 +++++++ lib/src/model/plan_response.g.dart | 215 ++++++ lib/src/model/plan_update_request.g.dart | 129 ++++ lib/src/model/product.g.dart | 252 ++++++ lib/src/model/product_data_response.g.dart | 264 +++++++ lib/src/model/product_order_response.g.dart | 265 +++++++ lib/src/model/risk_rules_data.g.dart | 166 ++++ lib/src/model/risk_rules_list.g.dart | 167 ++++ lib/src/model/shipping_order_response.g.dart | 203 +++++ lib/src/model/shipping_request.g.dart | 185 +++++ lib/src/model/sms_checkout_request.g.dart | 98 +++ .../model/subscription_events_response.g.dart | 172 +++++ lib/src/model/subscription_request.g.dart | 122 +++ lib/src/model/subscription_response.g.dart | 307 ++++++++ .../model/subscription_update_request.g.dart | 117 +++ lib/src/model/token.g.dart | 114 +++ lib/src/model/token_card.g.dart | 165 ++++ lib/src/model/token_checkout.g.dart | 91 +++ lib/src/model/token_response.g.dart | 167 ++++ lib/src/model/token_response_checkout.g.dart | 396 ++++++++++ lib/src/model/transaction_response.g.dart | 245 ++++++ .../transfer_destination_response.g.dart | 185 +++++ lib/src/model/transfer_method_response.g.dart | 183 +++++ lib/src/model/transfer_response.g.dart | 221 ++++++ lib/src/model/transfers_response.g.dart | 220 ++++++ lib/src/model/update_customer.g.dart | 320 ++++++++ .../update_customer_antifraud_info.g.dart | 109 +++ ...e_customer_fiscal_entities_response.g.dart | 259 +++++++ ...e_customer_payment_methods_response.g.dart | 105 +++ ...update_order_discount_lines_request.g.dart | 119 +++ lib/src/model/update_order_tax_request.g.dart | 133 ++++ .../model/update_order_tax_response.g.dart | 184 +++++ lib/src/model/update_payment_methods.g.dart | 92 +++ lib/src/model/update_product.g.dart | 213 ++++++ .../model/webhook_key_create_response.g.dart | 158 ++++ .../model/webhook_key_delete_response.g.dart | 158 ++++ lib/src/model/webhook_key_request.g.dart | 91 +++ lib/src/model/webhook_key_response.g.dart | 170 +++++ .../model/webhook_key_update_request.g.dart | 93 +++ lib/src/model/webhook_log.g.dart | 183 +++++ lib/src/model/webhook_request.g.dart | 111 +++ lib/src/model/webhook_response.g.dart | 220 ++++++ lib/src/model/webhook_update_request.g.dart | 135 ++++ .../model/whitelistlist_rule_response.g.dart | 128 ++++ lib/src/serializers.g.dart | 716 ++++++++++++++++++ 178 files changed, 33435 insertions(+) create mode 100644 lib/src/model/api_key_create_response.g.dart create mode 100644 lib/src/model/api_key_request.g.dart create mode 100644 lib/src/model/api_key_response.g.dart create mode 100644 lib/src/model/api_key_response_on_delete.g.dart create mode 100644 lib/src/model/api_key_update_request.g.dart create mode 100644 lib/src/model/balance_common_field.g.dart create mode 100644 lib/src/model/balance_response.g.dart create mode 100644 lib/src/model/blacklist_rule_response.g.dart create mode 100644 lib/src/model/charge_order_response.g.dart create mode 100644 lib/src/model/charge_order_response_payment_method.g.dart create mode 100644 lib/src/model/charge_request.g.dart create mode 100644 lib/src/model/charge_request_payment_method.g.dart create mode 100644 lib/src/model/charge_response.g.dart create mode 100644 lib/src/model/charge_response_channel.g.dart create mode 100644 lib/src/model/charge_response_payment_method.g.dart create mode 100644 lib/src/model/charge_response_refunds.g.dart create mode 100644 lib/src/model/charge_response_refunds_data.g.dart create mode 100644 lib/src/model/charge_update_request.g.dart create mode 100644 lib/src/model/charges_data_response.g.dart create mode 100644 lib/src/model/charges_order_response.g.dart create mode 100644 lib/src/model/charges_order_response_all_of_data.g.dart create mode 100644 lib/src/model/checkout.g.dart create mode 100644 lib/src/model/checkout_order_template.g.dart create mode 100644 lib/src/model/checkout_order_template_customer_info.g.dart create mode 100644 lib/src/model/checkout_request.g.dart create mode 100644 lib/src/model/checkout_response.g.dart create mode 100644 lib/src/model/checkouts_response.g.dart create mode 100644 lib/src/model/company_fiscal_info_address_response.g.dart create mode 100644 lib/src/model/company_fiscal_info_response.g.dart create mode 100644 lib/src/model/company_payout_destination_response.g.dart create mode 100644 lib/src/model/company_response.g.dart create mode 100644 lib/src/model/create_customer_fiscal_entities_response.g.dart create mode 100644 lib/src/model/create_customer_payment_methods_request.g.dart create mode 100644 lib/src/model/create_customer_payment_methods_response.g.dart create mode 100644 lib/src/model/create_risk_rules_data.g.dart create mode 100644 lib/src/model/customer.g.dart create mode 100644 lib/src/model/customer_address.g.dart create mode 100644 lib/src/model/customer_antifraud_info.g.dart create mode 100644 lib/src/model/customer_antifraud_info_response.g.dart create mode 100644 lib/src/model/customer_fiscal_entities_data_response.g.dart create mode 100644 lib/src/model/customer_fiscal_entities_request.g.dart create mode 100644 lib/src/model/customer_fiscal_entities_response.g.dart create mode 100644 lib/src/model/customer_info.g.dart create mode 100644 lib/src/model/customer_info_just_customer_id.g.dart create mode 100644 lib/src/model/customer_info_just_customer_id_response.g.dart create mode 100644 lib/src/model/customer_payment_method_request.g.dart create mode 100644 lib/src/model/customer_payment_methods_data.g.dart create mode 100644 lib/src/model/customer_payment_methods_request.g.dart create mode 100644 lib/src/model/customer_payment_methods_response.g.dart create mode 100644 lib/src/model/customer_response.g.dart create mode 100644 lib/src/model/customer_response_shipping_contacts.g.dart create mode 100644 lib/src/model/customer_shipping_contacts.g.dart create mode 100644 lib/src/model/customer_shipping_contacts_address.g.dart create mode 100644 lib/src/model/customer_shipping_contacts_data_response.g.dart create mode 100644 lib/src/model/customer_shipping_contacts_response.g.dart create mode 100644 lib/src/model/customer_shipping_contacts_response_address.g.dart create mode 100644 lib/src/model/customer_update_fiscal_entities_request.g.dart create mode 100644 lib/src/model/customer_update_shipping_contacts.g.dart create mode 100644 lib/src/model/customers_response.g.dart create mode 100644 lib/src/model/delete_api_keys_response.g.dart create mode 100644 lib/src/model/deleted_blacklist_rule_response.g.dart create mode 100644 lib/src/model/deleted_whitelist_rule_response.g.dart create mode 100644 lib/src/model/details.g.dart create mode 100644 lib/src/model/details_error.g.dart create mode 100644 lib/src/model/discount_lines_data_response.g.dart create mode 100644 lib/src/model/discount_lines_response.g.dart create mode 100644 lib/src/model/email_checkout_request.g.dart create mode 100644 lib/src/model/error.g.dart create mode 100644 lib/src/model/event_response.g.dart create mode 100644 lib/src/model/event_types.g.dart create mode 100644 lib/src/model/events_resend_response.g.dart create mode 100644 lib/src/model/fiscal_entity_address.g.dart create mode 100644 lib/src/model/get_api_keys_response.g.dart create mode 100644 lib/src/model/get_charges_response.g.dart create mode 100644 lib/src/model/get_companies_response.g.dart create mode 100644 lib/src/model/get_customer_payment_method_data_response.g.dart create mode 100644 lib/src/model/get_events_response.g.dart create mode 100644 lib/src/model/get_order_discount_lines_response.g.dart create mode 100644 lib/src/model/get_orders_response.g.dart create mode 100644 lib/src/model/get_payment_method_response.g.dart create mode 100644 lib/src/model/get_plans_response.g.dart create mode 100644 lib/src/model/get_transactions_response.g.dart create mode 100644 lib/src/model/get_transfers_response.g.dart create mode 100644 lib/src/model/get_webhook_keys_response.g.dart create mode 100644 lib/src/model/get_webhooks_response.g.dart create mode 100644 lib/src/model/log_response.g.dart create mode 100644 lib/src/model/logs_response.g.dart create mode 100644 lib/src/model/logs_response_data.g.dart create mode 100644 lib/src/model/order_capture_request.g.dart create mode 100644 lib/src/model/order_customer_info_response.g.dart create mode 100644 lib/src/model/order_discount_lines_request.g.dart create mode 100644 lib/src/model/order_fiscal_entity_address_response.g.dart create mode 100644 lib/src/model/order_fiscal_entity_request.g.dart create mode 100644 lib/src/model/order_fiscal_entity_response.g.dart create mode 100644 lib/src/model/order_next_action_response.g.dart create mode 100644 lib/src/model/order_next_action_response_redirect_to_url.g.dart create mode 100644 lib/src/model/order_refund_request.g.dart create mode 100644 lib/src/model/order_request.g.dart create mode 100644 lib/src/model/order_request_customer_info.g.dart create mode 100644 lib/src/model/order_response.g.dart create mode 100644 lib/src/model/order_response_charges.g.dart create mode 100644 lib/src/model/order_response_checkout.g.dart create mode 100644 lib/src/model/order_response_customer_info.g.dart create mode 100644 lib/src/model/order_response_discount_lines.g.dart create mode 100644 lib/src/model/order_response_products.g.dart create mode 100644 lib/src/model/order_response_shipping_contact.g.dart create mode 100644 lib/src/model/order_tax_request.g.dart create mode 100644 lib/src/model/order_update_fiscal_entity_request.g.dart create mode 100644 lib/src/model/order_update_request.g.dart create mode 100644 lib/src/model/order_update_request_customer_info.g.dart create mode 100644 lib/src/model/orders_response.g.dart create mode 100644 lib/src/model/page.g.dart create mode 100644 lib/src/model/pagination.g.dart create mode 100644 lib/src/model/payment_method.g.dart create mode 100644 lib/src/model/payment_method_bank_transfer.g.dart create mode 100644 lib/src/model/payment_method_card.g.dart create mode 100644 lib/src/model/payment_method_card_request.g.dart create mode 100644 lib/src/model/payment_method_card_response.g.dart create mode 100644 lib/src/model/payment_method_cash.g.dart create mode 100644 lib/src/model/payment_method_cash_request.g.dart create mode 100644 lib/src/model/payment_method_cash_response.g.dart create mode 100644 lib/src/model/payment_method_general_request.g.dart create mode 100644 lib/src/model/payment_method_response.g.dart create mode 100644 lib/src/model/payment_method_spei_recurrent.g.dart create mode 100644 lib/src/model/payment_method_spei_request.g.dart create mode 100644 lib/src/model/payment_method_token_request.g.dart create mode 100644 lib/src/model/payout.g.dart create mode 100644 lib/src/model/payout_method.g.dart create mode 100644 lib/src/model/payout_order.g.dart create mode 100644 lib/src/model/payout_order_payouts_item.g.dart create mode 100644 lib/src/model/payout_order_response.g.dart create mode 100644 lib/src/model/payout_order_response_customer_info.g.dart create mode 100644 lib/src/model/payout_orders_response.g.dart create mode 100644 lib/src/model/plan_request.g.dart create mode 100644 lib/src/model/plan_response.g.dart create mode 100644 lib/src/model/plan_update_request.g.dart create mode 100644 lib/src/model/product.g.dart create mode 100644 lib/src/model/product_data_response.g.dart create mode 100644 lib/src/model/product_order_response.g.dart create mode 100644 lib/src/model/risk_rules_data.g.dart create mode 100644 lib/src/model/risk_rules_list.g.dart create mode 100644 lib/src/model/shipping_order_response.g.dart create mode 100644 lib/src/model/shipping_request.g.dart create mode 100644 lib/src/model/sms_checkout_request.g.dart create mode 100644 lib/src/model/subscription_events_response.g.dart create mode 100644 lib/src/model/subscription_request.g.dart create mode 100644 lib/src/model/subscription_response.g.dart create mode 100644 lib/src/model/subscription_update_request.g.dart create mode 100644 lib/src/model/token.g.dart create mode 100644 lib/src/model/token_card.g.dart create mode 100644 lib/src/model/token_checkout.g.dart create mode 100644 lib/src/model/token_response.g.dart create mode 100644 lib/src/model/token_response_checkout.g.dart create mode 100644 lib/src/model/transaction_response.g.dart create mode 100644 lib/src/model/transfer_destination_response.g.dart create mode 100644 lib/src/model/transfer_method_response.g.dart create mode 100644 lib/src/model/transfer_response.g.dart create mode 100644 lib/src/model/transfers_response.g.dart create mode 100644 lib/src/model/update_customer.g.dart create mode 100644 lib/src/model/update_customer_antifraud_info.g.dart create mode 100644 lib/src/model/update_customer_fiscal_entities_response.g.dart create mode 100644 lib/src/model/update_customer_payment_methods_response.g.dart create mode 100644 lib/src/model/update_order_discount_lines_request.g.dart create mode 100644 lib/src/model/update_order_tax_request.g.dart create mode 100644 lib/src/model/update_order_tax_response.g.dart create mode 100644 lib/src/model/update_payment_methods.g.dart create mode 100644 lib/src/model/update_product.g.dart create mode 100644 lib/src/model/webhook_key_create_response.g.dart create mode 100644 lib/src/model/webhook_key_delete_response.g.dart create mode 100644 lib/src/model/webhook_key_request.g.dart create mode 100644 lib/src/model/webhook_key_response.g.dart create mode 100644 lib/src/model/webhook_key_update_request.g.dart create mode 100644 lib/src/model/webhook_log.g.dart create mode 100644 lib/src/model/webhook_request.g.dart create mode 100644 lib/src/model/webhook_response.g.dart create mode 100644 lib/src/model/webhook_update_request.g.dart create mode 100644 lib/src/model/whitelistlist_rule_response.g.dart create mode 100644 lib/src/serializers.g.dart diff --git a/lib/src/model/api_key_create_response.g.dart b/lib/src/model/api_key_create_response.g.dart new file mode 100644 index 0000000..250d64f --- /dev/null +++ b/lib/src/model/api_key_create_response.g.dart @@ -0,0 +1,234 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'api_key_create_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ApiKeyCreateResponse extends ApiKeyCreateResponse { + @override + final String? authenticationToken; + @override + final bool? active; + @override + final int? createdAt; + @override + final int? updatedAt; + @override + final int? deactivatedAt; + @override + final String? description; + @override + final String? id; + @override + final bool? livemode; + @override + final bool? deleted; + @override + final String? object; + @override + final String? prefix; + @override + final String? role; + + factory _$ApiKeyCreateResponse( + [void Function(ApiKeyCreateResponseBuilder)? updates]) => + (new ApiKeyCreateResponseBuilder()..update(updates))._build(); + + _$ApiKeyCreateResponse._( + {this.authenticationToken, + this.active, + this.createdAt, + this.updatedAt, + this.deactivatedAt, + this.description, + this.id, + this.livemode, + this.deleted, + this.object, + this.prefix, + this.role}) + : super._(); + + @override + ApiKeyCreateResponse rebuild( + void Function(ApiKeyCreateResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ApiKeyCreateResponseBuilder toBuilder() => + new ApiKeyCreateResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ApiKeyCreateResponse && + authenticationToken == other.authenticationToken && + active == other.active && + createdAt == other.createdAt && + updatedAt == other.updatedAt && + deactivatedAt == other.deactivatedAt && + description == other.description && + id == other.id && + livemode == other.livemode && + deleted == other.deleted && + object == other.object && + prefix == other.prefix && + role == other.role; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, authenticationToken.hashCode); + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jc(_$hash, deactivatedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, prefix.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ApiKeyCreateResponse') + ..add('authenticationToken', authenticationToken) + ..add('active', active) + ..add('createdAt', createdAt) + ..add('updatedAt', updatedAt) + ..add('deactivatedAt', deactivatedAt) + ..add('description', description) + ..add('id', id) + ..add('livemode', livemode) + ..add('deleted', deleted) + ..add('object', object) + ..add('prefix', prefix) + ..add('role', role)) + .toString(); + } +} + +class ApiKeyCreateResponseBuilder + implements + Builder, + ApiKeyResponseBuilder { + _$ApiKeyCreateResponse? _$v; + + String? _authenticationToken; + String? get authenticationToken => _$this._authenticationToken; + set authenticationToken(covariant String? authenticationToken) => + _$this._authenticationToken = authenticationToken; + + bool? _active; + bool? get active => _$this._active; + set active(covariant bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + int? _updatedAt; + int? get updatedAt => _$this._updatedAt; + set updatedAt(covariant int? updatedAt) => _$this._updatedAt = updatedAt; + + int? _deactivatedAt; + int? get deactivatedAt => _$this._deactivatedAt; + set deactivatedAt(covariant int? deactivatedAt) => + _$this._deactivatedAt = deactivatedAt; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + String? _prefix; + String? get prefix => _$this._prefix; + set prefix(covariant String? prefix) => _$this._prefix = prefix; + + String? _role; + String? get role => _$this._role; + set role(covariant String? role) => _$this._role = role; + + ApiKeyCreateResponseBuilder() { + ApiKeyCreateResponse._defaults(this); + } + + ApiKeyCreateResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _authenticationToken = $v.authenticationToken; + _active = $v.active; + _createdAt = $v.createdAt; + _updatedAt = $v.updatedAt; + _deactivatedAt = $v.deactivatedAt; + _description = $v.description; + _id = $v.id; + _livemode = $v.livemode; + _deleted = $v.deleted; + _object = $v.object; + _prefix = $v.prefix; + _role = $v.role; + _$v = null; + } + return this; + } + + @override + void replace(covariant ApiKeyCreateResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ApiKeyCreateResponse; + } + + @override + void update(void Function(ApiKeyCreateResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ApiKeyCreateResponse build() => _build(); + + _$ApiKeyCreateResponse _build() { + final _$result = _$v ?? + new _$ApiKeyCreateResponse._( + authenticationToken: authenticationToken, + active: active, + createdAt: createdAt, + updatedAt: updatedAt, + deactivatedAt: deactivatedAt, + description: description, + id: id, + livemode: livemode, + deleted: deleted, + object: object, + prefix: prefix, + role: role); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_request.g.dart b/lib/src/model/api_key_request.g.dart new file mode 100644 index 0000000..a8ff645 --- /dev/null +++ b/lib/src/model/api_key_request.g.dart @@ -0,0 +1,106 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'api_key_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ApiKeyRequest extends ApiKeyRequest { + @override + final String? description; + @override + final String role; + + factory _$ApiKeyRequest([void Function(ApiKeyRequestBuilder)? updates]) => + (new ApiKeyRequestBuilder()..update(updates))._build(); + + _$ApiKeyRequest._({this.description, required this.role}) : super._() { + BuiltValueNullFieldError.checkNotNull(role, r'ApiKeyRequest', 'role'); + } + + @override + ApiKeyRequest rebuild(void Function(ApiKeyRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ApiKeyRequestBuilder toBuilder() => new ApiKeyRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ApiKeyRequest && + description == other.description && + role == other.role; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ApiKeyRequest') + ..add('description', description) + ..add('role', role)) + .toString(); + } +} + +class ApiKeyRequestBuilder + implements Builder { + _$ApiKeyRequest? _$v; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _role; + String? get role => _$this._role; + set role(String? role) => _$this._role = role; + + ApiKeyRequestBuilder() { + ApiKeyRequest._defaults(this); + } + + ApiKeyRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _description = $v.description; + _role = $v.role; + _$v = null; + } + return this; + } + + @override + void replace(ApiKeyRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ApiKeyRequest; + } + + @override + void update(void Function(ApiKeyRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ApiKeyRequest build() => _build(); + + _$ApiKeyRequest _build() { + final _$result = _$v ?? + new _$ApiKeyRequest._( + description: description, + role: BuiltValueNullFieldError.checkNotNull( + role, r'ApiKeyRequest', 'role')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_response.g.dart b/lib/src/model/api_key_response.g.dart new file mode 100644 index 0000000..907a507 --- /dev/null +++ b/lib/src/model/api_key_response.g.dart @@ -0,0 +1,256 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'api_key_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class ApiKeyResponseBuilder { + void replace(ApiKeyResponse other); + void update(void Function(ApiKeyResponseBuilder) updates); + bool? get active; + set active(bool? active); + + int? get createdAt; + set createdAt(int? createdAt); + + int? get updatedAt; + set updatedAt(int? updatedAt); + + int? get deactivatedAt; + set deactivatedAt(int? deactivatedAt); + + String? get description; + set description(String? description); + + String? get id; + set id(String? id); + + bool? get livemode; + set livemode(bool? livemode); + + bool? get deleted; + set deleted(bool? deleted); + + String? get object; + set object(String? object); + + String? get prefix; + set prefix(String? prefix); + + String? get role; + set role(String? role); +} + +class _$$ApiKeyResponse extends $ApiKeyResponse { + @override + final bool? active; + @override + final int? createdAt; + @override + final int? updatedAt; + @override + final int? deactivatedAt; + @override + final String? description; + @override + final String? id; + @override + final bool? livemode; + @override + final bool? deleted; + @override + final String? object; + @override + final String? prefix; + @override + final String? role; + + factory _$$ApiKeyResponse([void Function($ApiKeyResponseBuilder)? updates]) => + (new $ApiKeyResponseBuilder()..update(updates))._build(); + + _$$ApiKeyResponse._( + {this.active, + this.createdAt, + this.updatedAt, + this.deactivatedAt, + this.description, + this.id, + this.livemode, + this.deleted, + this.object, + this.prefix, + this.role}) + : super._(); + + @override + $ApiKeyResponse rebuild(void Function($ApiKeyResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $ApiKeyResponseBuilder toBuilder() => + new $ApiKeyResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $ApiKeyResponse && + active == other.active && + createdAt == other.createdAt && + updatedAt == other.updatedAt && + deactivatedAt == other.deactivatedAt && + description == other.description && + id == other.id && + livemode == other.livemode && + deleted == other.deleted && + object == other.object && + prefix == other.prefix && + role == other.role; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jc(_$hash, deactivatedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, prefix.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$ApiKeyResponse') + ..add('active', active) + ..add('createdAt', createdAt) + ..add('updatedAt', updatedAt) + ..add('deactivatedAt', deactivatedAt) + ..add('description', description) + ..add('id', id) + ..add('livemode', livemode) + ..add('deleted', deleted) + ..add('object', object) + ..add('prefix', prefix) + ..add('role', role)) + .toString(); + } +} + +class $ApiKeyResponseBuilder + implements + Builder<$ApiKeyResponse, $ApiKeyResponseBuilder>, + ApiKeyResponseBuilder { + _$$ApiKeyResponse? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(covariant bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + int? _updatedAt; + int? get updatedAt => _$this._updatedAt; + set updatedAt(covariant int? updatedAt) => _$this._updatedAt = updatedAt; + + int? _deactivatedAt; + int? get deactivatedAt => _$this._deactivatedAt; + set deactivatedAt(covariant int? deactivatedAt) => + _$this._deactivatedAt = deactivatedAt; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + String? _prefix; + String? get prefix => _$this._prefix; + set prefix(covariant String? prefix) => _$this._prefix = prefix; + + String? _role; + String? get role => _$this._role; + set role(covariant String? role) => _$this._role = role; + + $ApiKeyResponseBuilder() { + $ApiKeyResponse._defaults(this); + } + + $ApiKeyResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _createdAt = $v.createdAt; + _updatedAt = $v.updatedAt; + _deactivatedAt = $v.deactivatedAt; + _description = $v.description; + _id = $v.id; + _livemode = $v.livemode; + _deleted = $v.deleted; + _object = $v.object; + _prefix = $v.prefix; + _role = $v.role; + _$v = null; + } + return this; + } + + @override + void replace(covariant $ApiKeyResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$ApiKeyResponse; + } + + @override + void update(void Function($ApiKeyResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $ApiKeyResponse build() => _build(); + + _$$ApiKeyResponse _build() { + final _$result = _$v ?? + new _$$ApiKeyResponse._( + active: active, + createdAt: createdAt, + updatedAt: updatedAt, + deactivatedAt: deactivatedAt, + description: description, + id: id, + livemode: livemode, + deleted: deleted, + object: object, + prefix: prefix, + role: role); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_response_on_delete.g.dart b/lib/src/model/api_key_response_on_delete.g.dart new file mode 100644 index 0000000..95de50d --- /dev/null +++ b/lib/src/model/api_key_response_on_delete.g.dart @@ -0,0 +1,227 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'api_key_response_on_delete.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class ApiKeyResponseOnDeleteBuilder { + void replace(ApiKeyResponseOnDelete other); + void update(void Function(ApiKeyResponseOnDeleteBuilder) updates); + bool? get active; + set active(bool? active); + + int? get createdAt; + set createdAt(int? createdAt); + + String? get description; + set description(String? description); + + bool? get livemode; + set livemode(bool? livemode); + + String? get prefix; + set prefix(String? prefix); + + String? get id; + set id(String? id); + + String? get object; + set object(String? object); + + bool? get deleted; + set deleted(bool? deleted); + + String? get role; + set role(String? role); +} + +class _$$ApiKeyResponseOnDelete extends $ApiKeyResponseOnDelete { + @override + final bool? active; + @override + final int? createdAt; + @override + final String? description; + @override + final bool? livemode; + @override + final String? prefix; + @override + final String? id; + @override + final String? object; + @override + final bool? deleted; + @override + final String? role; + + factory _$$ApiKeyResponseOnDelete( + [void Function($ApiKeyResponseOnDeleteBuilder)? updates]) => + (new $ApiKeyResponseOnDeleteBuilder()..update(updates))._build(); + + _$$ApiKeyResponseOnDelete._( + {this.active, + this.createdAt, + this.description, + this.livemode, + this.prefix, + this.id, + this.object, + this.deleted, + this.role}) + : super._(); + + @override + $ApiKeyResponseOnDelete rebuild( + void Function($ApiKeyResponseOnDeleteBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $ApiKeyResponseOnDeleteBuilder toBuilder() => + new $ApiKeyResponseOnDeleteBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $ApiKeyResponseOnDelete && + active == other.active && + createdAt == other.createdAt && + description == other.description && + livemode == other.livemode && + prefix == other.prefix && + id == other.id && + object == other.object && + deleted == other.deleted && + role == other.role; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, prefix.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$ApiKeyResponseOnDelete') + ..add('active', active) + ..add('createdAt', createdAt) + ..add('description', description) + ..add('livemode', livemode) + ..add('prefix', prefix) + ..add('id', id) + ..add('object', object) + ..add('deleted', deleted) + ..add('role', role)) + .toString(); + } +} + +class $ApiKeyResponseOnDeleteBuilder + implements + Builder<$ApiKeyResponseOnDelete, $ApiKeyResponseOnDeleteBuilder>, + ApiKeyResponseOnDeleteBuilder { + _$$ApiKeyResponseOnDelete? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(covariant bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + String? _prefix; + String? get prefix => _$this._prefix; + set prefix(covariant String? prefix) => _$this._prefix = prefix; + + 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; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + String? _role; + String? get role => _$this._role; + set role(covariant String? role) => _$this._role = role; + + $ApiKeyResponseOnDeleteBuilder() { + $ApiKeyResponseOnDelete._defaults(this); + } + + $ApiKeyResponseOnDeleteBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _createdAt = $v.createdAt; + _description = $v.description; + _livemode = $v.livemode; + _prefix = $v.prefix; + _id = $v.id; + _object = $v.object; + _deleted = $v.deleted; + _role = $v.role; + _$v = null; + } + return this; + } + + @override + void replace(covariant $ApiKeyResponseOnDelete other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$ApiKeyResponseOnDelete; + } + + @override + void update(void Function($ApiKeyResponseOnDeleteBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $ApiKeyResponseOnDelete build() => _build(); + + _$$ApiKeyResponseOnDelete _build() { + final _$result = _$v ?? + new _$$ApiKeyResponseOnDelete._( + active: active, + createdAt: createdAt, + description: description, + livemode: livemode, + prefix: prefix, + id: id, + object: object, + deleted: deleted, + role: role); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/api_key_update_request.g.dart b/lib/src/model/api_key_update_request.g.dart new file mode 100644 index 0000000..e976aa6 --- /dev/null +++ b/lib/src/model/api_key_update_request.g.dart @@ -0,0 +1,104 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'api_key_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ApiKeyUpdateRequest extends ApiKeyUpdateRequest { + @override + final bool? active; + @override + final String? description; + + factory _$ApiKeyUpdateRequest( + [void Function(ApiKeyUpdateRequestBuilder)? updates]) => + (new ApiKeyUpdateRequestBuilder()..update(updates))._build(); + + _$ApiKeyUpdateRequest._({this.active, this.description}) : super._(); + + @override + ApiKeyUpdateRequest rebuild( + void Function(ApiKeyUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ApiKeyUpdateRequestBuilder toBuilder() => + new ApiKeyUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ApiKeyUpdateRequest && + active == other.active && + description == other.description; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ApiKeyUpdateRequest') + ..add('active', active) + ..add('description', description)) + .toString(); + } +} + +class ApiKeyUpdateRequestBuilder + implements Builder { + _$ApiKeyUpdateRequest? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + ApiKeyUpdateRequestBuilder() { + ApiKeyUpdateRequest._defaults(this); + } + + ApiKeyUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _description = $v.description; + _$v = null; + } + return this; + } + + @override + void replace(ApiKeyUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ApiKeyUpdateRequest; + } + + @override + void update(void Function(ApiKeyUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ApiKeyUpdateRequest build() => _build(); + + _$ApiKeyUpdateRequest _build() { + final _$result = _$v ?? + new _$ApiKeyUpdateRequest._(active: active, description: description); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/balance_common_field.g.dart b/lib/src/model/balance_common_field.g.dart new file mode 100644 index 0000000..1376a37 --- /dev/null +++ b/lib/src/model/balance_common_field.g.dart @@ -0,0 +1,104 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'balance_common_field.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$BalanceCommonField extends BalanceCommonField { + @override + final int? amount; + @override + final String? currency; + + factory _$BalanceCommonField( + [void Function(BalanceCommonFieldBuilder)? updates]) => + (new BalanceCommonFieldBuilder()..update(updates))._build(); + + _$BalanceCommonField._({this.amount, this.currency}) : super._(); + + @override + BalanceCommonField rebuild( + void Function(BalanceCommonFieldBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + BalanceCommonFieldBuilder toBuilder() => + new BalanceCommonFieldBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is BalanceCommonField && + amount == other.amount && + currency == other.currency; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'BalanceCommonField') + ..add('amount', amount) + ..add('currency', currency)) + .toString(); + } +} + +class BalanceCommonFieldBuilder + implements Builder { + _$BalanceCommonField? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + BalanceCommonFieldBuilder() { + BalanceCommonField._defaults(this); + } + + BalanceCommonFieldBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _currency = $v.currency; + _$v = null; + } + return this; + } + + @override + void replace(BalanceCommonField other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$BalanceCommonField; + } + + @override + void update(void Function(BalanceCommonFieldBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + BalanceCommonField build() => _build(); + + _$BalanceCommonField _build() { + final _$result = + _$v ?? new _$BalanceCommonField._(amount: amount, currency: currency); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/balance_response.g.dart b/lib/src/model/balance_response.g.dart new file mode 100644 index 0000000..02b98a1 --- /dev/null +++ b/lib/src/model/balance_response.g.dart @@ -0,0 +1,255 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'balance_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$BalanceResponse extends BalanceResponse { + @override + final BuiltList? available; + @override + final BuiltList? cashoutRetentionAmount; + @override + final BuiltList? conektaRetention; + @override + final BuiltList? gateway; + @override + final BuiltList? pending; + @override + final BuiltList? retained; + @override + final BuiltList? retentionAmount; + @override + final JsonObject? targetCollateralAmount; + @override + final BuiltList? targetRetentionAmount; + @override + final BuiltList? temporarilyRetained; + + factory _$BalanceResponse([void Function(BalanceResponseBuilder)? updates]) => + (new BalanceResponseBuilder()..update(updates))._build(); + + _$BalanceResponse._( + {this.available, + this.cashoutRetentionAmount, + this.conektaRetention, + this.gateway, + this.pending, + this.retained, + this.retentionAmount, + this.targetCollateralAmount, + this.targetRetentionAmount, + this.temporarilyRetained}) + : super._(); + + @override + BalanceResponse rebuild(void Function(BalanceResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + BalanceResponseBuilder toBuilder() => + new BalanceResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is BalanceResponse && + available == other.available && + cashoutRetentionAmount == other.cashoutRetentionAmount && + conektaRetention == other.conektaRetention && + gateway == other.gateway && + pending == other.pending && + retained == other.retained && + retentionAmount == other.retentionAmount && + targetCollateralAmount == other.targetCollateralAmount && + targetRetentionAmount == other.targetRetentionAmount && + temporarilyRetained == other.temporarilyRetained; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, available.hashCode); + _$hash = $jc(_$hash, cashoutRetentionAmount.hashCode); + _$hash = $jc(_$hash, conektaRetention.hashCode); + _$hash = $jc(_$hash, gateway.hashCode); + _$hash = $jc(_$hash, pending.hashCode); + _$hash = $jc(_$hash, retained.hashCode); + _$hash = $jc(_$hash, retentionAmount.hashCode); + _$hash = $jc(_$hash, targetCollateralAmount.hashCode); + _$hash = $jc(_$hash, targetRetentionAmount.hashCode); + _$hash = $jc(_$hash, temporarilyRetained.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'BalanceResponse') + ..add('available', available) + ..add('cashoutRetentionAmount', cashoutRetentionAmount) + ..add('conektaRetention', conektaRetention) + ..add('gateway', gateway) + ..add('pending', pending) + ..add('retained', retained) + ..add('retentionAmount', retentionAmount) + ..add('targetCollateralAmount', targetCollateralAmount) + ..add('targetRetentionAmount', targetRetentionAmount) + ..add('temporarilyRetained', temporarilyRetained)) + .toString(); + } +} + +class BalanceResponseBuilder + implements Builder { + _$BalanceResponse? _$v; + + ListBuilder? _available; + ListBuilder get available => + _$this._available ??= new ListBuilder(); + set available(ListBuilder? available) => + _$this._available = available; + + ListBuilder? _cashoutRetentionAmount; + ListBuilder get cashoutRetentionAmount => + _$this._cashoutRetentionAmount ??= new ListBuilder(); + set cashoutRetentionAmount( + ListBuilder? cashoutRetentionAmount) => + _$this._cashoutRetentionAmount = cashoutRetentionAmount; + + ListBuilder? _conektaRetention; + ListBuilder get conektaRetention => + _$this._conektaRetention ??= new ListBuilder(); + set conektaRetention(ListBuilder? conektaRetention) => + _$this._conektaRetention = conektaRetention; + + ListBuilder? _gateway; + ListBuilder get gateway => + _$this._gateway ??= new ListBuilder(); + set gateway(ListBuilder? gateway) => + _$this._gateway = gateway; + + ListBuilder? _pending; + ListBuilder get pending => + _$this._pending ??= new ListBuilder(); + set pending(ListBuilder? pending) => + _$this._pending = pending; + + ListBuilder? _retained; + ListBuilder get retained => + _$this._retained ??= new ListBuilder(); + set retained(ListBuilder? retained) => + _$this._retained = retained; + + ListBuilder? _retentionAmount; + ListBuilder get retentionAmount => + _$this._retentionAmount ??= new ListBuilder(); + set retentionAmount(ListBuilder? retentionAmount) => + _$this._retentionAmount = retentionAmount; + + JsonObject? _targetCollateralAmount; + JsonObject? get targetCollateralAmount => _$this._targetCollateralAmount; + set targetCollateralAmount(JsonObject? targetCollateralAmount) => + _$this._targetCollateralAmount = targetCollateralAmount; + + ListBuilder? _targetRetentionAmount; + ListBuilder get targetRetentionAmount => + _$this._targetRetentionAmount ??= new ListBuilder(); + set targetRetentionAmount( + ListBuilder? targetRetentionAmount) => + _$this._targetRetentionAmount = targetRetentionAmount; + + ListBuilder? _temporarilyRetained; + ListBuilder get temporarilyRetained => + _$this._temporarilyRetained ??= new ListBuilder(); + set temporarilyRetained( + ListBuilder? temporarilyRetained) => + _$this._temporarilyRetained = temporarilyRetained; + + BalanceResponseBuilder() { + BalanceResponse._defaults(this); + } + + BalanceResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _available = $v.available?.toBuilder(); + _cashoutRetentionAmount = $v.cashoutRetentionAmount?.toBuilder(); + _conektaRetention = $v.conektaRetention?.toBuilder(); + _gateway = $v.gateway?.toBuilder(); + _pending = $v.pending?.toBuilder(); + _retained = $v.retained?.toBuilder(); + _retentionAmount = $v.retentionAmount?.toBuilder(); + _targetCollateralAmount = $v.targetCollateralAmount; + _targetRetentionAmount = $v.targetRetentionAmount?.toBuilder(); + _temporarilyRetained = $v.temporarilyRetained?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(BalanceResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$BalanceResponse; + } + + @override + void update(void Function(BalanceResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + BalanceResponse build() => _build(); + + _$BalanceResponse _build() { + _$BalanceResponse _$result; + try { + _$result = _$v ?? + new _$BalanceResponse._( + available: _available?.build(), + cashoutRetentionAmount: _cashoutRetentionAmount?.build(), + conektaRetention: _conektaRetention?.build(), + gateway: _gateway?.build(), + pending: _pending?.build(), + retained: _retained?.build(), + retentionAmount: _retentionAmount?.build(), + targetCollateralAmount: targetCollateralAmount, + targetRetentionAmount: _targetRetentionAmount?.build(), + temporarilyRetained: _temporarilyRetained?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'available'; + _available?.build(); + _$failedField = 'cashoutRetentionAmount'; + _cashoutRetentionAmount?.build(); + _$failedField = 'conektaRetention'; + _conektaRetention?.build(); + _$failedField = 'gateway'; + _gateway?.build(); + _$failedField = 'pending'; + _pending?.build(); + _$failedField = 'retained'; + _retained?.build(); + _$failedField = 'retentionAmount'; + _retentionAmount?.build(); + + _$failedField = 'targetRetentionAmount'; + _targetRetentionAmount?.build(); + _$failedField = 'temporarilyRetained'; + _temporarilyRetained?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'BalanceResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/blacklist_rule_response.g.dart b/lib/src/model/blacklist_rule_response.g.dart new file mode 100644 index 0000000..dedda83 --- /dev/null +++ b/lib/src/model/blacklist_rule_response.g.dart @@ -0,0 +1,126 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'blacklist_rule_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$BlacklistRuleResponse extends BlacklistRuleResponse { + @override + final String? id; + @override + final String? field; + @override + final String? value; + @override + final String? description; + + factory _$BlacklistRuleResponse( + [void Function(BlacklistRuleResponseBuilder)? updates]) => + (new BlacklistRuleResponseBuilder()..update(updates))._build(); + + _$BlacklistRuleResponse._({this.id, this.field, this.value, this.description}) + : super._(); + + @override + BlacklistRuleResponse rebuild( + void Function(BlacklistRuleResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + BlacklistRuleResponseBuilder toBuilder() => + new BlacklistRuleResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is BlacklistRuleResponse && + id == other.id && + field == other.field && + value == other.value && + description == other.description; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, field.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'BlacklistRuleResponse') + ..add('id', id) + ..add('field', field) + ..add('value', value) + ..add('description', description)) + .toString(); + } +} + +class BlacklistRuleResponseBuilder + implements Builder { + _$BlacklistRuleResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _field; + String? get field => _$this._field; + set field(String? field) => _$this._field = field; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + BlacklistRuleResponseBuilder() { + BlacklistRuleResponse._defaults(this); + } + + BlacklistRuleResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _field = $v.field; + _value = $v.value; + _description = $v.description; + _$v = null; + } + return this; + } + + @override + void replace(BlacklistRuleResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$BlacklistRuleResponse; + } + + @override + void update(void Function(BlacklistRuleResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + BlacklistRuleResponse build() => _build(); + + _$BlacklistRuleResponse _build() { + final _$result = _$v ?? + new _$BlacklistRuleResponse._( + id: id, field: field, value: value, description: description); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_order_response.g.dart b/lib/src/model/charge_order_response.g.dart new file mode 100644 index 0000000..17850ca --- /dev/null +++ b/lib/src/model/charge_order_response.g.dart @@ -0,0 +1,340 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_order_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeOrderResponse extends ChargeOrderResponse { + @override + final int? amount; + @override + final ChargeResponseChannel? channel; + @override + final int? createdAt; + @override + final String? currency; + @override + final String? customerId; + @override + final String? description; + @override + final String? deviceFingerprint; + @override + final String? failureCode; + @override + final String? failureMessage; + @override + final String? id; + @override + final bool? livemode; + @override + final int? monthlyInstallments; + @override + final String? object; + @override + final String? orderId; + @override + final int? paidAt; + @override + final ChargeOrderResponsePaymentMethod? paymentMethod; + @override + final String? referenceId; + @override + final BuiltList? refunds; + @override + final String? status; + + factory _$ChargeOrderResponse( + [void Function(ChargeOrderResponseBuilder)? updates]) => + (new ChargeOrderResponseBuilder()..update(updates))._build(); + + _$ChargeOrderResponse._( + {this.amount, + this.channel, + this.createdAt, + this.currency, + this.customerId, + this.description, + this.deviceFingerprint, + this.failureCode, + this.failureMessage, + this.id, + this.livemode, + this.monthlyInstallments, + this.object, + this.orderId, + this.paidAt, + this.paymentMethod, + this.referenceId, + this.refunds, + this.status}) + : super._(); + + @override + ChargeOrderResponse rebuild( + void Function(ChargeOrderResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeOrderResponseBuilder toBuilder() => + new ChargeOrderResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeOrderResponse && + amount == other.amount && + channel == other.channel && + createdAt == other.createdAt && + currency == other.currency && + customerId == other.customerId && + description == other.description && + deviceFingerprint == other.deviceFingerprint && + failureCode == other.failureCode && + failureMessage == other.failureMessage && + id == other.id && + livemode == other.livemode && + monthlyInstallments == other.monthlyInstallments && + object == other.object && + orderId == other.orderId && + paidAt == other.paidAt && + paymentMethod == other.paymentMethod && + referenceId == other.referenceId && + refunds == other.refunds && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, deviceFingerprint.hashCode); + _$hash = $jc(_$hash, failureCode.hashCode); + _$hash = $jc(_$hash, failureMessage.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, monthlyInstallments.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, orderId.hashCode); + _$hash = $jc(_$hash, paidAt.hashCode); + _$hash = $jc(_$hash, paymentMethod.hashCode); + _$hash = $jc(_$hash, referenceId.hashCode); + _$hash = $jc(_$hash, refunds.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeOrderResponse') + ..add('amount', amount) + ..add('channel', channel) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('customerId', customerId) + ..add('description', description) + ..add('deviceFingerprint', deviceFingerprint) + ..add('failureCode', failureCode) + ..add('failureMessage', failureMessage) + ..add('id', id) + ..add('livemode', livemode) + ..add('monthlyInstallments', monthlyInstallments) + ..add('object', object) + ..add('orderId', orderId) + ..add('paidAt', paidAt) + ..add('paymentMethod', paymentMethod) + ..add('referenceId', referenceId) + ..add('refunds', refunds) + ..add('status', status)) + .toString(); + } +} + +class ChargeOrderResponseBuilder + implements Builder { + _$ChargeOrderResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + ChargeResponseChannelBuilder? _channel; + ChargeResponseChannelBuilder get channel => + _$this._channel ??= new ChargeResponseChannelBuilder(); + set channel(ChargeResponseChannelBuilder? channel) => + _$this._channel = channel; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(String? customerId) => _$this._customerId = customerId; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _deviceFingerprint; + String? get deviceFingerprint => _$this._deviceFingerprint; + set deviceFingerprint(String? deviceFingerprint) => + _$this._deviceFingerprint = deviceFingerprint; + + String? _failureCode; + String? get failureCode => _$this._failureCode; + set failureCode(String? failureCode) => _$this._failureCode = failureCode; + + String? _failureMessage; + String? get failureMessage => _$this._failureMessage; + set failureMessage(String? failureMessage) => + _$this._failureMessage = failureMessage; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + int? _monthlyInstallments; + int? get monthlyInstallments => _$this._monthlyInstallments; + set monthlyInstallments(int? monthlyInstallments) => + _$this._monthlyInstallments = monthlyInstallments; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _orderId; + String? get orderId => _$this._orderId; + set orderId(String? orderId) => _$this._orderId = orderId; + + int? _paidAt; + int? get paidAt => _$this._paidAt; + set paidAt(int? paidAt) => _$this._paidAt = paidAt; + + ChargeOrderResponsePaymentMethodBuilder? _paymentMethod; + ChargeOrderResponsePaymentMethodBuilder get paymentMethod => + _$this._paymentMethod ??= new ChargeOrderResponsePaymentMethodBuilder(); + set paymentMethod(ChargeOrderResponsePaymentMethodBuilder? paymentMethod) => + _$this._paymentMethod = paymentMethod; + + String? _referenceId; + String? get referenceId => _$this._referenceId; + set referenceId(String? referenceId) => _$this._referenceId = referenceId; + + ListBuilder? _refunds; + ListBuilder get refunds => + _$this._refunds ??= new ListBuilder(); + set refunds(ListBuilder? refunds) => _$this._refunds = refunds; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + ChargeOrderResponseBuilder() { + ChargeOrderResponse._defaults(this); + } + + ChargeOrderResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _channel = $v.channel?.toBuilder(); + _createdAt = $v.createdAt; + _currency = $v.currency; + _customerId = $v.customerId; + _description = $v.description; + _deviceFingerprint = $v.deviceFingerprint; + _failureCode = $v.failureCode; + _failureMessage = $v.failureMessage; + _id = $v.id; + _livemode = $v.livemode; + _monthlyInstallments = $v.monthlyInstallments; + _object = $v.object; + _orderId = $v.orderId; + _paidAt = $v.paidAt; + _paymentMethod = $v.paymentMethod?.toBuilder(); + _referenceId = $v.referenceId; + _refunds = $v.refunds?.toBuilder(); + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(ChargeOrderResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeOrderResponse; + } + + @override + void update(void Function(ChargeOrderResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeOrderResponse build() => _build(); + + _$ChargeOrderResponse _build() { + _$ChargeOrderResponse _$result; + try { + _$result = _$v ?? + new _$ChargeOrderResponse._( + amount: amount, + channel: _channel?.build(), + createdAt: createdAt, + currency: currency, + customerId: customerId, + description: description, + deviceFingerprint: deviceFingerprint, + failureCode: failureCode, + failureMessage: failureMessage, + id: id, + livemode: livemode, + monthlyInstallments: monthlyInstallments, + object: object, + orderId: orderId, + paidAt: paidAt, + paymentMethod: _paymentMethod?.build(), + referenceId: referenceId, + refunds: _refunds?.build(), + status: status); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'channel'; + _channel?.build(); + + _$failedField = 'paymentMethod'; + _paymentMethod?.build(); + + _$failedField = 'refunds'; + _refunds?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ChargeOrderResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_order_response_payment_method.g.dart b/lib/src/model/charge_order_response_payment_method.g.dart new file mode 100644 index 0000000..a1cffa7 --- /dev/null +++ b/lib/src/model/charge_order_response_payment_method.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_order_response_payment_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeOrderResponsePaymentMethod + extends ChargeOrderResponsePaymentMethod { + @override + final OneOf oneOf; + + factory _$ChargeOrderResponsePaymentMethod( + [void Function(ChargeOrderResponsePaymentMethodBuilder)? updates]) => + (new ChargeOrderResponsePaymentMethodBuilder()..update(updates))._build(); + + _$ChargeOrderResponsePaymentMethod._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'ChargeOrderResponsePaymentMethod', 'oneOf'); + } + + @override + ChargeOrderResponsePaymentMethod rebuild( + void Function(ChargeOrderResponsePaymentMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeOrderResponsePaymentMethodBuilder toBuilder() => + new ChargeOrderResponsePaymentMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeOrderResponsePaymentMethod && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeOrderResponsePaymentMethod') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class ChargeOrderResponsePaymentMethodBuilder + implements + Builder { + _$ChargeOrderResponsePaymentMethod? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + ChargeOrderResponsePaymentMethodBuilder() { + ChargeOrderResponsePaymentMethod._defaults(this); + } + + ChargeOrderResponsePaymentMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(ChargeOrderResponsePaymentMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeOrderResponsePaymentMethod; + } + + @override + void update(void Function(ChargeOrderResponsePaymentMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeOrderResponsePaymentMethod build() => _build(); + + _$ChargeOrderResponsePaymentMethod _build() { + final _$result = _$v ?? + new _$ChargeOrderResponsePaymentMethod._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'ChargeOrderResponsePaymentMethod', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_request.g.dart b/lib/src/model/charge_request.g.dart new file mode 100644 index 0000000..04f0e34 --- /dev/null +++ b/lib/src/model/charge_request.g.dart @@ -0,0 +1,134 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeRequest extends ChargeRequest { + @override + final int? amount; + @override + final ChargeRequestPaymentMethod paymentMethod; + @override + final String? referenceId; + + factory _$ChargeRequest([void Function(ChargeRequestBuilder)? updates]) => + (new ChargeRequestBuilder()..update(updates))._build(); + + _$ChargeRequest._( + {this.amount, required this.paymentMethod, this.referenceId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + paymentMethod, r'ChargeRequest', 'paymentMethod'); + } + + @override + ChargeRequest rebuild(void Function(ChargeRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeRequestBuilder toBuilder() => new ChargeRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeRequest && + amount == other.amount && + paymentMethod == other.paymentMethod && + referenceId == other.referenceId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, paymentMethod.hashCode); + _$hash = $jc(_$hash, referenceId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeRequest') + ..add('amount', amount) + ..add('paymentMethod', paymentMethod) + ..add('referenceId', referenceId)) + .toString(); + } +} + +class ChargeRequestBuilder + implements Builder { + _$ChargeRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + ChargeRequestPaymentMethodBuilder? _paymentMethod; + ChargeRequestPaymentMethodBuilder get paymentMethod => + _$this._paymentMethod ??= new ChargeRequestPaymentMethodBuilder(); + set paymentMethod(ChargeRequestPaymentMethodBuilder? paymentMethod) => + _$this._paymentMethod = paymentMethod; + + String? _referenceId; + String? get referenceId => _$this._referenceId; + set referenceId(String? referenceId) => _$this._referenceId = referenceId; + + ChargeRequestBuilder() { + ChargeRequest._defaults(this); + } + + ChargeRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _paymentMethod = $v.paymentMethod.toBuilder(); + _referenceId = $v.referenceId; + _$v = null; + } + return this; + } + + @override + void replace(ChargeRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeRequest; + } + + @override + void update(void Function(ChargeRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeRequest build() => _build(); + + _$ChargeRequest _build() { + _$ChargeRequest _$result; + try { + _$result = _$v ?? + new _$ChargeRequest._( + amount: amount, + paymentMethod: paymentMethod.build(), + referenceId: referenceId); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'paymentMethod'; + paymentMethod.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ChargeRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_request_payment_method.g.dart b/lib/src/model/charge_request_payment_method.g.dart new file mode 100644 index 0000000..e363277 --- /dev/null +++ b/lib/src/model/charge_request_payment_method.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_request_payment_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeRequestPaymentMethod extends ChargeRequestPaymentMethod { + @override + final OneOf oneOf; + + factory _$ChargeRequestPaymentMethod( + [void Function(ChargeRequestPaymentMethodBuilder)? updates]) => + (new ChargeRequestPaymentMethodBuilder()..update(updates))._build(); + + _$ChargeRequestPaymentMethod._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'ChargeRequestPaymentMethod', 'oneOf'); + } + + @override + ChargeRequestPaymentMethod rebuild( + void Function(ChargeRequestPaymentMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeRequestPaymentMethodBuilder toBuilder() => + new ChargeRequestPaymentMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeRequestPaymentMethod && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeRequestPaymentMethod') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class ChargeRequestPaymentMethodBuilder + implements + Builder { + _$ChargeRequestPaymentMethod? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + ChargeRequestPaymentMethodBuilder() { + ChargeRequestPaymentMethod._defaults(this); + } + + ChargeRequestPaymentMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(ChargeRequestPaymentMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeRequestPaymentMethod; + } + + @override + void update(void Function(ChargeRequestPaymentMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeRequestPaymentMethod build() => _build(); + + _$ChargeRequestPaymentMethod _build() { + final _$result = _$v ?? + new _$ChargeRequestPaymentMethod._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'ChargeRequestPaymentMethod', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response.g.dart b/lib/src/model/charge_response.g.dart new file mode 100644 index 0000000..e896ac3 --- /dev/null +++ b/lib/src/model/charge_response.g.dart @@ -0,0 +1,391 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class ChargeResponseBuilder { + void replace(ChargeResponse other); + void update(void Function(ChargeResponseBuilder) updates); + int? get amount; + set amount(int? amount); + + ChargeResponseChannelBuilder get channel; + set channel(ChargeResponseChannelBuilder? channel); + + int? get createdAt; + set createdAt(int? createdAt); + + String? get currency; + set currency(String? currency); + + String? get customerId; + set customerId(String? customerId); + + String? get description; + set description(String? description); + + String? get deviceFingerprint; + set deviceFingerprint(String? deviceFingerprint); + + String? get failureCode; + set failureCode(String? failureCode); + + String? get failureMessage; + set failureMessage(String? failureMessage); + + String? get id; + set id(String? id); + + bool? get livemode; + set livemode(bool? livemode); + + String? get object; + set object(String? object); + + String? get orderId; + set orderId(String? orderId); + + int? get paidAt; + set paidAt(int? paidAt); + + ChargeResponsePaymentMethodBuilder get paymentMethod; + set paymentMethod(ChargeResponsePaymentMethodBuilder? paymentMethod); + + String? get referenceId; + set referenceId(String? referenceId); + + ChargeResponseRefundsBuilder get refunds; + set refunds(ChargeResponseRefundsBuilder? refunds); + + String? get status; + set status(String? status); +} + +class _$$ChargeResponse extends $ChargeResponse { + @override + final int? amount; + @override + final ChargeResponseChannel? channel; + @override + final int? createdAt; + @override + final String? currency; + @override + final String? customerId; + @override + final String? description; + @override + final String? deviceFingerprint; + @override + final String? failureCode; + @override + final String? failureMessage; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + @override + final String? orderId; + @override + final int? paidAt; + @override + final ChargeResponsePaymentMethod? paymentMethod; + @override + final String? referenceId; + @override + final ChargeResponseRefunds? refunds; + @override + final String? status; + + factory _$$ChargeResponse([void Function($ChargeResponseBuilder)? updates]) => + (new $ChargeResponseBuilder()..update(updates))._build(); + + _$$ChargeResponse._( + {this.amount, + this.channel, + this.createdAt, + this.currency, + this.customerId, + this.description, + this.deviceFingerprint, + this.failureCode, + this.failureMessage, + this.id, + this.livemode, + this.object, + this.orderId, + this.paidAt, + this.paymentMethod, + this.referenceId, + this.refunds, + this.status}) + : super._(); + + @override + $ChargeResponse rebuild(void Function($ChargeResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $ChargeResponseBuilder toBuilder() => + new $ChargeResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $ChargeResponse && + amount == other.amount && + channel == other.channel && + createdAt == other.createdAt && + currency == other.currency && + customerId == other.customerId && + description == other.description && + deviceFingerprint == other.deviceFingerprint && + failureCode == other.failureCode && + failureMessage == other.failureMessage && + id == other.id && + livemode == other.livemode && + object == other.object && + orderId == other.orderId && + paidAt == other.paidAt && + paymentMethod == other.paymentMethod && + referenceId == other.referenceId && + refunds == other.refunds && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, deviceFingerprint.hashCode); + _$hash = $jc(_$hash, failureCode.hashCode); + _$hash = $jc(_$hash, failureMessage.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, orderId.hashCode); + _$hash = $jc(_$hash, paidAt.hashCode); + _$hash = $jc(_$hash, paymentMethod.hashCode); + _$hash = $jc(_$hash, referenceId.hashCode); + _$hash = $jc(_$hash, refunds.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$ChargeResponse') + ..add('amount', amount) + ..add('channel', channel) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('customerId', customerId) + ..add('description', description) + ..add('deviceFingerprint', deviceFingerprint) + ..add('failureCode', failureCode) + ..add('failureMessage', failureMessage) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('orderId', orderId) + ..add('paidAt', paidAt) + ..add('paymentMethod', paymentMethod) + ..add('referenceId', referenceId) + ..add('refunds', refunds) + ..add('status', status)) + .toString(); + } +} + +class $ChargeResponseBuilder + implements + Builder<$ChargeResponse, $ChargeResponseBuilder>, + ChargeResponseBuilder { + _$$ChargeResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(covariant int? amount) => _$this._amount = amount; + + ChargeResponseChannelBuilder? _channel; + ChargeResponseChannelBuilder get channel => + _$this._channel ??= new ChargeResponseChannelBuilder(); + set channel(covariant ChargeResponseChannelBuilder? channel) => + _$this._channel = channel; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(covariant String? currency) => _$this._currency = currency; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(covariant String? customerId) => + _$this._customerId = customerId; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + String? _deviceFingerprint; + String? get deviceFingerprint => _$this._deviceFingerprint; + set deviceFingerprint(covariant String? deviceFingerprint) => + _$this._deviceFingerprint = deviceFingerprint; + + String? _failureCode; + String? get failureCode => _$this._failureCode; + set failureCode(covariant String? failureCode) => + _$this._failureCode = failureCode; + + String? _failureMessage; + String? get failureMessage => _$this._failureMessage; + set failureMessage(covariant String? failureMessage) => + _$this._failureMessage = failureMessage; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + String? _orderId; + String? get orderId => _$this._orderId; + set orderId(covariant String? orderId) => _$this._orderId = orderId; + + int? _paidAt; + int? get paidAt => _$this._paidAt; + set paidAt(covariant int? paidAt) => _$this._paidAt = paidAt; + + ChargeResponsePaymentMethodBuilder? _paymentMethod; + ChargeResponsePaymentMethodBuilder get paymentMethod => + _$this._paymentMethod ??= new ChargeResponsePaymentMethodBuilder(); + set paymentMethod( + covariant ChargeResponsePaymentMethodBuilder? paymentMethod) => + _$this._paymentMethod = paymentMethod; + + String? _referenceId; + String? get referenceId => _$this._referenceId; + set referenceId(covariant String? referenceId) => + _$this._referenceId = referenceId; + + ChargeResponseRefundsBuilder? _refunds; + ChargeResponseRefundsBuilder get refunds => + _$this._refunds ??= new ChargeResponseRefundsBuilder(); + set refunds(covariant ChargeResponseRefundsBuilder? refunds) => + _$this._refunds = refunds; + + String? _status; + String? get status => _$this._status; + set status(covariant String? status) => _$this._status = status; + + $ChargeResponseBuilder() { + $ChargeResponse._defaults(this); + } + + $ChargeResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _channel = $v.channel?.toBuilder(); + _createdAt = $v.createdAt; + _currency = $v.currency; + _customerId = $v.customerId; + _description = $v.description; + _deviceFingerprint = $v.deviceFingerprint; + _failureCode = $v.failureCode; + _failureMessage = $v.failureMessage; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _orderId = $v.orderId; + _paidAt = $v.paidAt; + _paymentMethod = $v.paymentMethod?.toBuilder(); + _referenceId = $v.referenceId; + _refunds = $v.refunds?.toBuilder(); + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(covariant $ChargeResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$ChargeResponse; + } + + @override + void update(void Function($ChargeResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $ChargeResponse build() => _build(); + + _$$ChargeResponse _build() { + _$$ChargeResponse _$result; + try { + _$result = _$v ?? + new _$$ChargeResponse._( + amount: amount, + channel: _channel?.build(), + createdAt: createdAt, + currency: currency, + customerId: customerId, + description: description, + deviceFingerprint: deviceFingerprint, + failureCode: failureCode, + failureMessage: failureMessage, + id: id, + livemode: livemode, + object: object, + orderId: orderId, + paidAt: paidAt, + paymentMethod: _paymentMethod?.build(), + referenceId: referenceId, + refunds: _refunds?.build(), + status: status); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'channel'; + _channel?.build(); + + _$failedField = 'paymentMethod'; + _paymentMethod?.build(); + + _$failedField = 'refunds'; + _refunds?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$ChargeResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_channel.g.dart b/lib/src/model/charge_response_channel.g.dart new file mode 100644 index 0000000..89ea5bd --- /dev/null +++ b/lib/src/model/charge_response_channel.g.dart @@ -0,0 +1,132 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_response_channel.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeResponseChannel extends ChargeResponseChannel { + @override + final String? segment; + @override + final String? checkoutRequestId; + @override + final String? checkoutRequestType; + @override + final String? id; + + factory _$ChargeResponseChannel( + [void Function(ChargeResponseChannelBuilder)? updates]) => + (new ChargeResponseChannelBuilder()..update(updates))._build(); + + _$ChargeResponseChannel._( + {this.segment, this.checkoutRequestId, this.checkoutRequestType, this.id}) + : super._(); + + @override + ChargeResponseChannel rebuild( + void Function(ChargeResponseChannelBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeResponseChannelBuilder toBuilder() => + new ChargeResponseChannelBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeResponseChannel && + segment == other.segment && + checkoutRequestId == other.checkoutRequestId && + checkoutRequestType == other.checkoutRequestType && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, segment.hashCode); + _$hash = $jc(_$hash, checkoutRequestId.hashCode); + _$hash = $jc(_$hash, checkoutRequestType.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeResponseChannel') + ..add('segment', segment) + ..add('checkoutRequestId', checkoutRequestId) + ..add('checkoutRequestType', checkoutRequestType) + ..add('id', id)) + .toString(); + } +} + +class ChargeResponseChannelBuilder + implements Builder { + _$ChargeResponseChannel? _$v; + + String? _segment; + String? get segment => _$this._segment; + set segment(String? segment) => _$this._segment = segment; + + String? _checkoutRequestId; + String? get checkoutRequestId => _$this._checkoutRequestId; + set checkoutRequestId(String? checkoutRequestId) => + _$this._checkoutRequestId = checkoutRequestId; + + String? _checkoutRequestType; + String? get checkoutRequestType => _$this._checkoutRequestType; + set checkoutRequestType(String? checkoutRequestType) => + _$this._checkoutRequestType = checkoutRequestType; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + ChargeResponseChannelBuilder() { + ChargeResponseChannel._defaults(this); + } + + ChargeResponseChannelBuilder get _$this { + final $v = _$v; + if ($v != null) { + _segment = $v.segment; + _checkoutRequestId = $v.checkoutRequestId; + _checkoutRequestType = $v.checkoutRequestType; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(ChargeResponseChannel other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeResponseChannel; + } + + @override + void update(void Function(ChargeResponseChannelBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeResponseChannel build() => _build(); + + _$ChargeResponseChannel _build() { + final _$result = _$v ?? + new _$ChargeResponseChannel._( + segment: segment, + checkoutRequestId: checkoutRequestId, + checkoutRequestType: checkoutRequestType, + id: id); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_payment_method.g.dart b/lib/src/model/charge_response_payment_method.g.dart new file mode 100644 index 0000000..aa064e9 --- /dev/null +++ b/lib/src/model/charge_response_payment_method.g.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_response_payment_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeResponsePaymentMethod extends ChargeResponsePaymentMethod { + @override + final OneOf oneOf; + + factory _$ChargeResponsePaymentMethod( + [void Function(ChargeResponsePaymentMethodBuilder)? updates]) => + (new ChargeResponsePaymentMethodBuilder()..update(updates))._build(); + + _$ChargeResponsePaymentMethod._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'ChargeResponsePaymentMethod', 'oneOf'); + } + + @override + ChargeResponsePaymentMethod rebuild( + void Function(ChargeResponsePaymentMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeResponsePaymentMethodBuilder toBuilder() => + new ChargeResponsePaymentMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeResponsePaymentMethod && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeResponsePaymentMethod') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class ChargeResponsePaymentMethodBuilder + implements + Builder { + _$ChargeResponsePaymentMethod? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + ChargeResponsePaymentMethodBuilder() { + ChargeResponsePaymentMethod._defaults(this); + } + + ChargeResponsePaymentMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(ChargeResponsePaymentMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeResponsePaymentMethod; + } + + @override + void update(void Function(ChargeResponsePaymentMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeResponsePaymentMethod build() => _build(); + + _$ChargeResponsePaymentMethod _build() { + final _$result = _$v ?? + new _$ChargeResponsePaymentMethod._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'ChargeResponsePaymentMethod', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_refunds.g.dart b/lib/src/model/charge_response_refunds.g.dart new file mode 100644 index 0000000..b945e45 --- /dev/null +++ b/lib/src/model/charge_response_refunds.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_response_refunds.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeResponseRefunds extends ChargeResponseRefunds { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$ChargeResponseRefunds( + [void Function(ChargeResponseRefundsBuilder)? updates]) => + (new ChargeResponseRefundsBuilder()..update(updates))._build(); + + _$ChargeResponseRefunds._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'ChargeResponseRefunds', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'ChargeResponseRefunds', 'object'); + } + + @override + ChargeResponseRefunds rebuild( + void Function(ChargeResponseRefundsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeResponseRefundsBuilder toBuilder() => + new ChargeResponseRefundsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeResponseRefunds && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeResponseRefunds') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class ChargeResponseRefundsBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$ChargeResponseRefunds? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + ChargeResponseRefundsBuilder() { + ChargeResponseRefunds._defaults(this); + } + + ChargeResponseRefundsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant ChargeResponseRefunds other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeResponseRefunds; + } + + @override + void update(void Function(ChargeResponseRefundsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeResponseRefunds build() => _build(); + + _$ChargeResponseRefunds _build() { + _$ChargeResponseRefunds _$result; + try { + _$result = _$v ?? + new _$ChargeResponseRefunds._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'ChargeResponseRefunds', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'ChargeResponseRefunds', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ChargeResponseRefunds', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_response_refunds_data.g.dart b/lib/src/model/charge_response_refunds_data.g.dart new file mode 100644 index 0000000..c034141 --- /dev/null +++ b/lib/src/model/charge_response_refunds_data.g.dart @@ -0,0 +1,183 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_response_refunds_data.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeResponseRefundsData extends ChargeResponseRefundsData { + @override + final int amount; + @override + final String? authCode; + @override + final int createdAt; + @override + final int? expiresAt; + @override + final String id; + @override + final String object; + @override + final String? status; + + factory _$ChargeResponseRefundsData( + [void Function(ChargeResponseRefundsDataBuilder)? updates]) => + (new ChargeResponseRefundsDataBuilder()..update(updates))._build(); + + _$ChargeResponseRefundsData._( + {required this.amount, + this.authCode, + required this.createdAt, + this.expiresAt, + required this.id, + required this.object, + this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'ChargeResponseRefundsData', 'amount'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'ChargeResponseRefundsData', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'ChargeResponseRefundsData', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'ChargeResponseRefundsData', 'object'); + } + + @override + ChargeResponseRefundsData rebuild( + void Function(ChargeResponseRefundsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeResponseRefundsDataBuilder toBuilder() => + new ChargeResponseRefundsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeResponseRefundsData && + amount == other.amount && + authCode == other.authCode && + createdAt == other.createdAt && + expiresAt == other.expiresAt && + id == other.id && + object == other.object && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, authCode.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeResponseRefundsData') + ..add('amount', amount) + ..add('authCode', authCode) + ..add('createdAt', createdAt) + ..add('expiresAt', expiresAt) + ..add('id', id) + ..add('object', object) + ..add('status', status)) + .toString(); + } +} + +class ChargeResponseRefundsDataBuilder + implements + Builder { + _$ChargeResponseRefundsData? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _authCode; + String? get authCode => _$this._authCode; + set authCode(String? authCode) => _$this._authCode = authCode; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + ChargeResponseRefundsDataBuilder() { + ChargeResponseRefundsData._defaults(this); + } + + ChargeResponseRefundsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _authCode = $v.authCode; + _createdAt = $v.createdAt; + _expiresAt = $v.expiresAt; + _id = $v.id; + _object = $v.object; + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(ChargeResponseRefundsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeResponseRefundsData; + } + + @override + void update(void Function(ChargeResponseRefundsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeResponseRefundsData build() => _build(); + + _$ChargeResponseRefundsData _build() { + final _$result = _$v ?? + new _$ChargeResponseRefundsData._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'ChargeResponseRefundsData', 'amount'), + authCode: authCode, + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'ChargeResponseRefundsData', 'createdAt'), + expiresAt: expiresAt, + id: BuiltValueNullFieldError.checkNotNull( + id, r'ChargeResponseRefundsData', 'id'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'ChargeResponseRefundsData', 'object'), + status: status); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charge_update_request.g.dart b/lib/src/model/charge_update_request.g.dart new file mode 100644 index 0000000..6e52117 --- /dev/null +++ b/lib/src/model/charge_update_request.g.dart @@ -0,0 +1,93 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charge_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargeUpdateRequest extends ChargeUpdateRequest { + @override + final String? referenceId; + + factory _$ChargeUpdateRequest( + [void Function(ChargeUpdateRequestBuilder)? updates]) => + (new ChargeUpdateRequestBuilder()..update(updates))._build(); + + _$ChargeUpdateRequest._({this.referenceId}) : super._(); + + @override + ChargeUpdateRequest rebuild( + void Function(ChargeUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargeUpdateRequestBuilder toBuilder() => + new ChargeUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargeUpdateRequest && referenceId == other.referenceId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, referenceId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargeUpdateRequest') + ..add('referenceId', referenceId)) + .toString(); + } +} + +class ChargeUpdateRequestBuilder + implements Builder { + _$ChargeUpdateRequest? _$v; + + String? _referenceId; + String? get referenceId => _$this._referenceId; + set referenceId(String? referenceId) => _$this._referenceId = referenceId; + + ChargeUpdateRequestBuilder() { + ChargeUpdateRequest._defaults(this); + } + + ChargeUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _referenceId = $v.referenceId; + _$v = null; + } + return this; + } + + @override + void replace(ChargeUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargeUpdateRequest; + } + + @override + void update(void Function(ChargeUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargeUpdateRequest build() => _build(); + + _$ChargeUpdateRequest _build() { + final _$result = + _$v ?? new _$ChargeUpdateRequest._(referenceId: referenceId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charges_data_response.g.dart b/lib/src/model/charges_data_response.g.dart new file mode 100644 index 0000000..dde6f02 --- /dev/null +++ b/lib/src/model/charges_data_response.g.dart @@ -0,0 +1,335 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charges_data_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargesDataResponse extends ChargesDataResponse { + @override + final int? amount; + @override + final ChargeResponseChannel? channel; + @override + final int? createdAt; + @override + final String? currency; + @override + final String? customerId; + @override + final String? description; + @override + final String? deviceFingerprint; + @override + final String? failureCode; + @override + final String? failureMessage; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + @override + final String? orderId; + @override + final int? paidAt; + @override + final ChargeResponsePaymentMethod? paymentMethod; + @override + final String? referenceId; + @override + final ChargeResponseRefunds? refunds; + @override + final String? status; + + factory _$ChargesDataResponse( + [void Function(ChargesDataResponseBuilder)? updates]) => + (new ChargesDataResponseBuilder()..update(updates))._build(); + + _$ChargesDataResponse._( + {this.amount, + this.channel, + this.createdAt, + this.currency, + this.customerId, + this.description, + this.deviceFingerprint, + this.failureCode, + this.failureMessage, + this.id, + this.livemode, + this.object, + this.orderId, + this.paidAt, + this.paymentMethod, + this.referenceId, + this.refunds, + this.status}) + : super._(); + + @override + ChargesDataResponse rebuild( + void Function(ChargesDataResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargesDataResponseBuilder toBuilder() => + new ChargesDataResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargesDataResponse && + amount == other.amount && + channel == other.channel && + createdAt == other.createdAt && + currency == other.currency && + customerId == other.customerId && + description == other.description && + deviceFingerprint == other.deviceFingerprint && + failureCode == other.failureCode && + failureMessage == other.failureMessage && + id == other.id && + livemode == other.livemode && + object == other.object && + orderId == other.orderId && + paidAt == other.paidAt && + paymentMethod == other.paymentMethod && + referenceId == other.referenceId && + refunds == other.refunds && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, deviceFingerprint.hashCode); + _$hash = $jc(_$hash, failureCode.hashCode); + _$hash = $jc(_$hash, failureMessage.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, orderId.hashCode); + _$hash = $jc(_$hash, paidAt.hashCode); + _$hash = $jc(_$hash, paymentMethod.hashCode); + _$hash = $jc(_$hash, referenceId.hashCode); + _$hash = $jc(_$hash, refunds.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargesDataResponse') + ..add('amount', amount) + ..add('channel', channel) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('customerId', customerId) + ..add('description', description) + ..add('deviceFingerprint', deviceFingerprint) + ..add('failureCode', failureCode) + ..add('failureMessage', failureMessage) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('orderId', orderId) + ..add('paidAt', paidAt) + ..add('paymentMethod', paymentMethod) + ..add('referenceId', referenceId) + ..add('refunds', refunds) + ..add('status', status)) + .toString(); + } +} + +class ChargesDataResponseBuilder + implements + Builder, + ChargeResponseBuilder { + _$ChargesDataResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(covariant int? amount) => _$this._amount = amount; + + ChargeResponseChannelBuilder? _channel; + ChargeResponseChannelBuilder get channel => + _$this._channel ??= new ChargeResponseChannelBuilder(); + set channel(covariant ChargeResponseChannelBuilder? channel) => + _$this._channel = channel; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(covariant String? currency) => _$this._currency = currency; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(covariant String? customerId) => + _$this._customerId = customerId; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + String? _deviceFingerprint; + String? get deviceFingerprint => _$this._deviceFingerprint; + set deviceFingerprint(covariant String? deviceFingerprint) => + _$this._deviceFingerprint = deviceFingerprint; + + String? _failureCode; + String? get failureCode => _$this._failureCode; + set failureCode(covariant String? failureCode) => + _$this._failureCode = failureCode; + + String? _failureMessage; + String? get failureMessage => _$this._failureMessage; + set failureMessage(covariant String? failureMessage) => + _$this._failureMessage = failureMessage; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + String? _orderId; + String? get orderId => _$this._orderId; + set orderId(covariant String? orderId) => _$this._orderId = orderId; + + int? _paidAt; + int? get paidAt => _$this._paidAt; + set paidAt(covariant int? paidAt) => _$this._paidAt = paidAt; + + ChargeResponsePaymentMethodBuilder? _paymentMethod; + ChargeResponsePaymentMethodBuilder get paymentMethod => + _$this._paymentMethod ??= new ChargeResponsePaymentMethodBuilder(); + set paymentMethod( + covariant ChargeResponsePaymentMethodBuilder? paymentMethod) => + _$this._paymentMethod = paymentMethod; + + String? _referenceId; + String? get referenceId => _$this._referenceId; + set referenceId(covariant String? referenceId) => + _$this._referenceId = referenceId; + + ChargeResponseRefundsBuilder? _refunds; + ChargeResponseRefundsBuilder get refunds => + _$this._refunds ??= new ChargeResponseRefundsBuilder(); + set refunds(covariant ChargeResponseRefundsBuilder? refunds) => + _$this._refunds = refunds; + + String? _status; + String? get status => _$this._status; + set status(covariant String? status) => _$this._status = status; + + ChargesDataResponseBuilder() { + ChargesDataResponse._defaults(this); + } + + ChargesDataResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _channel = $v.channel?.toBuilder(); + _createdAt = $v.createdAt; + _currency = $v.currency; + _customerId = $v.customerId; + _description = $v.description; + _deviceFingerprint = $v.deviceFingerprint; + _failureCode = $v.failureCode; + _failureMessage = $v.failureMessage; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _orderId = $v.orderId; + _paidAt = $v.paidAt; + _paymentMethod = $v.paymentMethod?.toBuilder(); + _referenceId = $v.referenceId; + _refunds = $v.refunds?.toBuilder(); + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(covariant ChargesDataResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargesDataResponse; + } + + @override + void update(void Function(ChargesDataResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargesDataResponse build() => _build(); + + _$ChargesDataResponse _build() { + _$ChargesDataResponse _$result; + try { + _$result = _$v ?? + new _$ChargesDataResponse._( + amount: amount, + channel: _channel?.build(), + createdAt: createdAt, + currency: currency, + customerId: customerId, + description: description, + deviceFingerprint: deviceFingerprint, + failureCode: failureCode, + failureMessage: failureMessage, + id: id, + livemode: livemode, + object: object, + orderId: orderId, + paidAt: paidAt, + paymentMethod: _paymentMethod?.build(), + referenceId: referenceId, + refunds: _refunds?.build(), + status: status); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'channel'; + _channel?.build(); + + _$failedField = 'paymentMethod'; + _paymentMethod?.build(); + + _$failedField = 'refunds'; + _refunds?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ChargesDataResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charges_order_response.g.dart b/lib/src/model/charges_order_response.g.dart new file mode 100644 index 0000000..38e48d9 --- /dev/null +++ b/lib/src/model/charges_order_response.g.dart @@ -0,0 +1,143 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charges_order_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargesOrderResponse extends ChargesOrderResponse { + @override + final BuiltList? data; + @override + final bool hasMore; + @override + final String object; + + factory _$ChargesOrderResponse( + [void Function(ChargesOrderResponseBuilder)? updates]) => + (new ChargesOrderResponseBuilder()..update(updates))._build(); + + _$ChargesOrderResponse._( + {this.data, required this.hasMore, required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'ChargesOrderResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'ChargesOrderResponse', 'object'); + } + + @override + ChargesOrderResponse rebuild( + void Function(ChargesOrderResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargesOrderResponseBuilder toBuilder() => + new ChargesOrderResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargesOrderResponse && + data == other.data && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargesOrderResponse') + ..add('data', data) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class ChargesOrderResponseBuilder + implements + Builder, + PaginationBuilder { + _$ChargesOrderResponse? _$v; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => + _$this._data = data; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + ChargesOrderResponseBuilder() { + ChargesOrderResponse._defaults(this); + } + + ChargesOrderResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant ChargesOrderResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargesOrderResponse; + } + + @override + void update(void Function(ChargesOrderResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargesOrderResponse build() => _build(); + + _$ChargesOrderResponse _build() { + _$ChargesOrderResponse _$result; + try { + _$result = _$v ?? + new _$ChargesOrderResponse._( + data: _data?.build(), + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'ChargesOrderResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'ChargesOrderResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ChargesOrderResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/charges_order_response_all_of_data.g.dart b/lib/src/model/charges_order_response_all_of_data.g.dart new file mode 100644 index 0000000..078ca01 --- /dev/null +++ b/lib/src/model/charges_order_response_all_of_data.g.dart @@ -0,0 +1,336 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'charges_order_response_all_of_data.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ChargesOrderResponseAllOfData extends ChargesOrderResponseAllOfData { + @override + final int? amount; + @override + final ChargeResponseChannel? channel; + @override + final int? createdAt; + @override + final String? currency; + @override + final String? customerId; + @override + final String? description; + @override + final String? deviceFingerprint; + @override + final String? failureCode; + @override + final String? failureMessage; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + @override + final String? orderId; + @override + final int? paidAt; + @override + final ChargeResponsePaymentMethod? paymentMethod; + @override + final String? referenceId; + @override + final ChargeResponseRefunds? refunds; + @override + final String? status; + + factory _$ChargesOrderResponseAllOfData( + [void Function(ChargesOrderResponseAllOfDataBuilder)? updates]) => + (new ChargesOrderResponseAllOfDataBuilder()..update(updates))._build(); + + _$ChargesOrderResponseAllOfData._( + {this.amount, + this.channel, + this.createdAt, + this.currency, + this.customerId, + this.description, + this.deviceFingerprint, + this.failureCode, + this.failureMessage, + this.id, + this.livemode, + this.object, + this.orderId, + this.paidAt, + this.paymentMethod, + this.referenceId, + this.refunds, + this.status}) + : super._(); + + @override + ChargesOrderResponseAllOfData rebuild( + void Function(ChargesOrderResponseAllOfDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ChargesOrderResponseAllOfDataBuilder toBuilder() => + new ChargesOrderResponseAllOfDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ChargesOrderResponseAllOfData && + amount == other.amount && + channel == other.channel && + createdAt == other.createdAt && + currency == other.currency && + customerId == other.customerId && + description == other.description && + deviceFingerprint == other.deviceFingerprint && + failureCode == other.failureCode && + failureMessage == other.failureMessage && + id == other.id && + livemode == other.livemode && + object == other.object && + orderId == other.orderId && + paidAt == other.paidAt && + paymentMethod == other.paymentMethod && + referenceId == other.referenceId && + refunds == other.refunds && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, deviceFingerprint.hashCode); + _$hash = $jc(_$hash, failureCode.hashCode); + _$hash = $jc(_$hash, failureMessage.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, orderId.hashCode); + _$hash = $jc(_$hash, paidAt.hashCode); + _$hash = $jc(_$hash, paymentMethod.hashCode); + _$hash = $jc(_$hash, referenceId.hashCode); + _$hash = $jc(_$hash, refunds.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ChargesOrderResponseAllOfData') + ..add('amount', amount) + ..add('channel', channel) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('customerId', customerId) + ..add('description', description) + ..add('deviceFingerprint', deviceFingerprint) + ..add('failureCode', failureCode) + ..add('failureMessage', failureMessage) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('orderId', orderId) + ..add('paidAt', paidAt) + ..add('paymentMethod', paymentMethod) + ..add('referenceId', referenceId) + ..add('refunds', refunds) + ..add('status', status)) + .toString(); + } +} + +class ChargesOrderResponseAllOfDataBuilder + implements + Builder, + ChargeResponseBuilder { + _$ChargesOrderResponseAllOfData? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(covariant int? amount) => _$this._amount = amount; + + ChargeResponseChannelBuilder? _channel; + ChargeResponseChannelBuilder get channel => + _$this._channel ??= new ChargeResponseChannelBuilder(); + set channel(covariant ChargeResponseChannelBuilder? channel) => + _$this._channel = channel; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(covariant String? currency) => _$this._currency = currency; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(covariant String? customerId) => + _$this._customerId = customerId; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + String? _deviceFingerprint; + String? get deviceFingerprint => _$this._deviceFingerprint; + set deviceFingerprint(covariant String? deviceFingerprint) => + _$this._deviceFingerprint = deviceFingerprint; + + String? _failureCode; + String? get failureCode => _$this._failureCode; + set failureCode(covariant String? failureCode) => + _$this._failureCode = failureCode; + + String? _failureMessage; + String? get failureMessage => _$this._failureMessage; + set failureMessage(covariant String? failureMessage) => + _$this._failureMessage = failureMessage; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + String? _orderId; + String? get orderId => _$this._orderId; + set orderId(covariant String? orderId) => _$this._orderId = orderId; + + int? _paidAt; + int? get paidAt => _$this._paidAt; + set paidAt(covariant int? paidAt) => _$this._paidAt = paidAt; + + ChargeResponsePaymentMethodBuilder? _paymentMethod; + ChargeResponsePaymentMethodBuilder get paymentMethod => + _$this._paymentMethod ??= new ChargeResponsePaymentMethodBuilder(); + set paymentMethod( + covariant ChargeResponsePaymentMethodBuilder? paymentMethod) => + _$this._paymentMethod = paymentMethod; + + String? _referenceId; + String? get referenceId => _$this._referenceId; + set referenceId(covariant String? referenceId) => + _$this._referenceId = referenceId; + + ChargeResponseRefundsBuilder? _refunds; + ChargeResponseRefundsBuilder get refunds => + _$this._refunds ??= new ChargeResponseRefundsBuilder(); + set refunds(covariant ChargeResponseRefundsBuilder? refunds) => + _$this._refunds = refunds; + + String? _status; + String? get status => _$this._status; + set status(covariant String? status) => _$this._status = status; + + ChargesOrderResponseAllOfDataBuilder() { + ChargesOrderResponseAllOfData._defaults(this); + } + + ChargesOrderResponseAllOfDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _channel = $v.channel?.toBuilder(); + _createdAt = $v.createdAt; + _currency = $v.currency; + _customerId = $v.customerId; + _description = $v.description; + _deviceFingerprint = $v.deviceFingerprint; + _failureCode = $v.failureCode; + _failureMessage = $v.failureMessage; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _orderId = $v.orderId; + _paidAt = $v.paidAt; + _paymentMethod = $v.paymentMethod?.toBuilder(); + _referenceId = $v.referenceId; + _refunds = $v.refunds?.toBuilder(); + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(covariant ChargesOrderResponseAllOfData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ChargesOrderResponseAllOfData; + } + + @override + void update(void Function(ChargesOrderResponseAllOfDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ChargesOrderResponseAllOfData build() => _build(); + + _$ChargesOrderResponseAllOfData _build() { + _$ChargesOrderResponseAllOfData _$result; + try { + _$result = _$v ?? + new _$ChargesOrderResponseAllOfData._( + amount: amount, + channel: _channel?.build(), + createdAt: createdAt, + currency: currency, + customerId: customerId, + description: description, + deviceFingerprint: deviceFingerprint, + failureCode: failureCode, + failureMessage: failureMessage, + id: id, + livemode: livemode, + object: object, + orderId: orderId, + paidAt: paidAt, + paymentMethod: _paymentMethod?.build(), + referenceId: referenceId, + refunds: _refunds?.build(), + status: status); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'channel'; + _channel?.build(); + + _$failedField = 'paymentMethod'; + _paymentMethod?.build(); + + _$failedField = 'refunds'; + _refunds?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ChargesOrderResponseAllOfData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout.g.dart b/lib/src/model/checkout.g.dart new file mode 100644 index 0000000..4442cef --- /dev/null +++ b/lib/src/model/checkout.g.dart @@ -0,0 +1,268 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'checkout.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$Checkout extends Checkout { + @override + final BuiltList allowedPaymentMethods; + @override + final int expiresAt; + @override + final bool? monthlyInstallmentsEnabled; + @override + final BuiltList? monthlyInstallmentsOptions; + @override + final String? threeDsMode; + @override + final String name; + @override + final bool? needsShippingContact; + @override + final bool? onDemandEnabled; + @override + final CheckoutOrderTemplate orderTemplate; + @override + final int? paymentsLimitCount; + @override + final bool recurrent; + @override + final String type; + + factory _$Checkout([void Function(CheckoutBuilder)? updates]) => + (new CheckoutBuilder()..update(updates))._build(); + + _$Checkout._( + {required this.allowedPaymentMethods, + required this.expiresAt, + this.monthlyInstallmentsEnabled, + this.monthlyInstallmentsOptions, + this.threeDsMode, + required this.name, + this.needsShippingContact, + this.onDemandEnabled, + required this.orderTemplate, + this.paymentsLimitCount, + required this.recurrent, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + allowedPaymentMethods, r'Checkout', 'allowedPaymentMethods'); + BuiltValueNullFieldError.checkNotNull(expiresAt, r'Checkout', 'expiresAt'); + BuiltValueNullFieldError.checkNotNull(name, r'Checkout', 'name'); + BuiltValueNullFieldError.checkNotNull( + orderTemplate, r'Checkout', 'orderTemplate'); + BuiltValueNullFieldError.checkNotNull(recurrent, r'Checkout', 'recurrent'); + BuiltValueNullFieldError.checkNotNull(type, r'Checkout', 'type'); + } + + @override + Checkout rebuild(void Function(CheckoutBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CheckoutBuilder toBuilder() => new CheckoutBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is Checkout && + allowedPaymentMethods == other.allowedPaymentMethods && + expiresAt == other.expiresAt && + monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && + monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && + threeDsMode == other.threeDsMode && + name == other.name && + needsShippingContact == other.needsShippingContact && + onDemandEnabled == other.onDemandEnabled && + orderTemplate == other.orderTemplate && + paymentsLimitCount == other.paymentsLimitCount && + recurrent == other.recurrent && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); + _$hash = $jc(_$hash, threeDsMode.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, needsShippingContact.hashCode); + _$hash = $jc(_$hash, onDemandEnabled.hashCode); + _$hash = $jc(_$hash, orderTemplate.hashCode); + _$hash = $jc(_$hash, paymentsLimitCount.hashCode); + _$hash = $jc(_$hash, recurrent.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'Checkout') + ..add('allowedPaymentMethods', allowedPaymentMethods) + ..add('expiresAt', expiresAt) + ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) + ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) + ..add('threeDsMode', threeDsMode) + ..add('name', name) + ..add('needsShippingContact', needsShippingContact) + ..add('onDemandEnabled', onDemandEnabled) + ..add('orderTemplate', orderTemplate) + ..add('paymentsLimitCount', paymentsLimitCount) + ..add('recurrent', recurrent) + ..add('type', type)) + .toString(); + } +} + +class CheckoutBuilder implements Builder { + _$Checkout? _$v; + + ListBuilder? _allowedPaymentMethods; + ListBuilder get allowedPaymentMethods => + _$this._allowedPaymentMethods ??= new ListBuilder(); + set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => + _$this._allowedPaymentMethods = allowedPaymentMethods; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + bool? _monthlyInstallmentsEnabled; + bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; + set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => + _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; + + ListBuilder? _monthlyInstallmentsOptions; + ListBuilder get monthlyInstallmentsOptions => + _$this._monthlyInstallmentsOptions ??= new ListBuilder(); + set monthlyInstallmentsOptions( + ListBuilder? monthlyInstallmentsOptions) => + _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; + + String? _threeDsMode; + String? get threeDsMode => _$this._threeDsMode; + set threeDsMode(String? threeDsMode) => _$this._threeDsMode = threeDsMode; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _needsShippingContact; + bool? get needsShippingContact => _$this._needsShippingContact; + set needsShippingContact(bool? needsShippingContact) => + _$this._needsShippingContact = needsShippingContact; + + bool? _onDemandEnabled; + bool? get onDemandEnabled => _$this._onDemandEnabled; + set onDemandEnabled(bool? onDemandEnabled) => + _$this._onDemandEnabled = onDemandEnabled; + + CheckoutOrderTemplateBuilder? _orderTemplate; + CheckoutOrderTemplateBuilder get orderTemplate => + _$this._orderTemplate ??= new CheckoutOrderTemplateBuilder(); + set orderTemplate(CheckoutOrderTemplateBuilder? orderTemplate) => + _$this._orderTemplate = orderTemplate; + + int? _paymentsLimitCount; + int? get paymentsLimitCount => _$this._paymentsLimitCount; + set paymentsLimitCount(int? paymentsLimitCount) => + _$this._paymentsLimitCount = paymentsLimitCount; + + bool? _recurrent; + bool? get recurrent => _$this._recurrent; + set recurrent(bool? recurrent) => _$this._recurrent = recurrent; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + CheckoutBuilder() { + Checkout._defaults(this); + } + + CheckoutBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPaymentMethods = $v.allowedPaymentMethods.toBuilder(); + _expiresAt = $v.expiresAt; + _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; + _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); + _threeDsMode = $v.threeDsMode; + _name = $v.name; + _needsShippingContact = $v.needsShippingContact; + _onDemandEnabled = $v.onDemandEnabled; + _orderTemplate = $v.orderTemplate.toBuilder(); + _paymentsLimitCount = $v.paymentsLimitCount; + _recurrent = $v.recurrent; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(Checkout other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$Checkout; + } + + @override + void update(void Function(CheckoutBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + Checkout build() => _build(); + + _$Checkout _build() { + _$Checkout _$result; + try { + _$result = _$v ?? + new _$Checkout._( + allowedPaymentMethods: allowedPaymentMethods.build(), + expiresAt: BuiltValueNullFieldError.checkNotNull( + expiresAt, r'Checkout', 'expiresAt'), + monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, + monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), + threeDsMode: threeDsMode, + name: BuiltValueNullFieldError.checkNotNull( + name, r'Checkout', 'name'), + needsShippingContact: needsShippingContact, + onDemandEnabled: onDemandEnabled, + orderTemplate: orderTemplate.build(), + paymentsLimitCount: paymentsLimitCount, + recurrent: BuiltValueNullFieldError.checkNotNull( + recurrent, r'Checkout', 'recurrent'), + type: BuiltValueNullFieldError.checkNotNull( + type, r'Checkout', 'type')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPaymentMethods'; + allowedPaymentMethods.build(); + + _$failedField = 'monthlyInstallmentsOptions'; + _monthlyInstallmentsOptions?.build(); + + _$failedField = 'orderTemplate'; + orderTemplate.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'Checkout', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_order_template.g.dart b/lib/src/model/checkout_order_template.g.dart new file mode 100644 index 0000000..5dd4dcf --- /dev/null +++ b/lib/src/model/checkout_order_template.g.dart @@ -0,0 +1,162 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'checkout_order_template.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CheckoutOrderTemplate extends CheckoutOrderTemplate { + @override + final String currency; + @override + final CheckoutOrderTemplateCustomerInfo? customerInfo; + @override + final BuiltList lineItems; + @override + final BuiltMap? metadata; + + factory _$CheckoutOrderTemplate( + [void Function(CheckoutOrderTemplateBuilder)? updates]) => + (new CheckoutOrderTemplateBuilder()..update(updates))._build(); + + _$CheckoutOrderTemplate._( + {required this.currency, + this.customerInfo, + required this.lineItems, + this.metadata}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + currency, r'CheckoutOrderTemplate', 'currency'); + BuiltValueNullFieldError.checkNotNull( + lineItems, r'CheckoutOrderTemplate', 'lineItems'); + } + + @override + CheckoutOrderTemplate rebuild( + void Function(CheckoutOrderTemplateBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CheckoutOrderTemplateBuilder toBuilder() => + new CheckoutOrderTemplateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CheckoutOrderTemplate && + currency == other.currency && + customerInfo == other.customerInfo && + lineItems == other.lineItems && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerInfo.hashCode); + _$hash = $jc(_$hash, lineItems.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CheckoutOrderTemplate') + ..add('currency', currency) + ..add('customerInfo', customerInfo) + ..add('lineItems', lineItems) + ..add('metadata', metadata)) + .toString(); + } +} + +class CheckoutOrderTemplateBuilder + implements Builder { + _$CheckoutOrderTemplate? _$v; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + CheckoutOrderTemplateCustomerInfoBuilder? _customerInfo; + CheckoutOrderTemplateCustomerInfoBuilder get customerInfo => + _$this._customerInfo ??= new CheckoutOrderTemplateCustomerInfoBuilder(); + set customerInfo(CheckoutOrderTemplateCustomerInfoBuilder? customerInfo) => + _$this._customerInfo = customerInfo; + + ListBuilder? _lineItems; + ListBuilder get lineItems => + _$this._lineItems ??= new ListBuilder(); + set lineItems(ListBuilder? lineItems) => + _$this._lineItems = lineItems; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + CheckoutOrderTemplateBuilder() { + CheckoutOrderTemplate._defaults(this); + } + + CheckoutOrderTemplateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _currency = $v.currency; + _customerInfo = $v.customerInfo?.toBuilder(); + _lineItems = $v.lineItems.toBuilder(); + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(CheckoutOrderTemplate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CheckoutOrderTemplate; + } + + @override + void update(void Function(CheckoutOrderTemplateBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CheckoutOrderTemplate build() => _build(); + + _$CheckoutOrderTemplate _build() { + _$CheckoutOrderTemplate _$result; + try { + _$result = _$v ?? + new _$CheckoutOrderTemplate._( + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'CheckoutOrderTemplate', 'currency'), + customerInfo: _customerInfo?.build(), + lineItems: lineItems.build(), + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'customerInfo'; + _customerInfo?.build(); + _$failedField = 'lineItems'; + lineItems.build(); + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CheckoutOrderTemplate', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_order_template_customer_info.g.dart b/lib/src/model/checkout_order_template_customer_info.g.dart new file mode 100644 index 0000000..5450719 --- /dev/null +++ b/lib/src/model/checkout_order_template_customer_info.g.dart @@ -0,0 +1,103 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'checkout_order_template_customer_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CheckoutOrderTemplateCustomerInfo + extends CheckoutOrderTemplateCustomerInfo { + @override + final OneOf oneOf; + + factory _$CheckoutOrderTemplateCustomerInfo( + [void Function(CheckoutOrderTemplateCustomerInfoBuilder)? updates]) => + (new CheckoutOrderTemplateCustomerInfoBuilder()..update(updates)) + ._build(); + + _$CheckoutOrderTemplateCustomerInfo._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'CheckoutOrderTemplateCustomerInfo', 'oneOf'); + } + + @override + CheckoutOrderTemplateCustomerInfo rebuild( + void Function(CheckoutOrderTemplateCustomerInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CheckoutOrderTemplateCustomerInfoBuilder toBuilder() => + new CheckoutOrderTemplateCustomerInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CheckoutOrderTemplateCustomerInfo && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CheckoutOrderTemplateCustomerInfo') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class CheckoutOrderTemplateCustomerInfoBuilder + implements + Builder { + _$CheckoutOrderTemplateCustomerInfo? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + CheckoutOrderTemplateCustomerInfoBuilder() { + CheckoutOrderTemplateCustomerInfo._defaults(this); + } + + CheckoutOrderTemplateCustomerInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(CheckoutOrderTemplateCustomerInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CheckoutOrderTemplateCustomerInfo; + } + + @override + void update( + void Function(CheckoutOrderTemplateCustomerInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CheckoutOrderTemplateCustomerInfo build() => _build(); + + _$CheckoutOrderTemplateCustomerInfo _build() { + final _$result = _$v ?? + new _$CheckoutOrderTemplateCustomerInfo._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'CheckoutOrderTemplateCustomerInfo', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_request.g.dart b/lib/src/model/checkout_request.g.dart new file mode 100644 index 0000000..c83c738 --- /dev/null +++ b/lib/src/model/checkout_request.g.dart @@ -0,0 +1,243 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'checkout_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CheckoutRequest extends CheckoutRequest { + @override + final BuiltList allowedPaymentMethods; + @override + final int? expiresAt; + @override + final String? failureUrl; + @override + final bool? monthlyInstallmentsEnabled; + @override + final BuiltList? monthlyInstallmentsOptions; + @override + final int? maxFailedRetries; + @override + final String? name; + @override + final bool? onDemandEnabled; + @override + final int? redirectionTime; + @override + final String? successUrl; + @override + final String? type; + + factory _$CheckoutRequest([void Function(CheckoutRequestBuilder)? updates]) => + (new CheckoutRequestBuilder()..update(updates))._build(); + + _$CheckoutRequest._( + {required this.allowedPaymentMethods, + this.expiresAt, + this.failureUrl, + this.monthlyInstallmentsEnabled, + this.monthlyInstallmentsOptions, + this.maxFailedRetries, + this.name, + this.onDemandEnabled, + this.redirectionTime, + this.successUrl, + this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + allowedPaymentMethods, r'CheckoutRequest', 'allowedPaymentMethods'); + } + + @override + CheckoutRequest rebuild(void Function(CheckoutRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CheckoutRequestBuilder toBuilder() => + new CheckoutRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CheckoutRequest && + allowedPaymentMethods == other.allowedPaymentMethods && + expiresAt == other.expiresAt && + failureUrl == other.failureUrl && + monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && + monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && + maxFailedRetries == other.maxFailedRetries && + name == other.name && + onDemandEnabled == other.onDemandEnabled && + redirectionTime == other.redirectionTime && + successUrl == other.successUrl && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, failureUrl.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); + _$hash = $jc(_$hash, maxFailedRetries.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, onDemandEnabled.hashCode); + _$hash = $jc(_$hash, redirectionTime.hashCode); + _$hash = $jc(_$hash, successUrl.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CheckoutRequest') + ..add('allowedPaymentMethods', allowedPaymentMethods) + ..add('expiresAt', expiresAt) + ..add('failureUrl', failureUrl) + ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) + ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) + ..add('maxFailedRetries', maxFailedRetries) + ..add('name', name) + ..add('onDemandEnabled', onDemandEnabled) + ..add('redirectionTime', redirectionTime) + ..add('successUrl', successUrl) + ..add('type', type)) + .toString(); + } +} + +class CheckoutRequestBuilder + implements Builder { + _$CheckoutRequest? _$v; + + ListBuilder? _allowedPaymentMethods; + ListBuilder get allowedPaymentMethods => + _$this._allowedPaymentMethods ??= new ListBuilder(); + set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => + _$this._allowedPaymentMethods = allowedPaymentMethods; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _failureUrl; + String? get failureUrl => _$this._failureUrl; + set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; + + bool? _monthlyInstallmentsEnabled; + bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; + set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => + _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; + + ListBuilder? _monthlyInstallmentsOptions; + ListBuilder get monthlyInstallmentsOptions => + _$this._monthlyInstallmentsOptions ??= new ListBuilder(); + set monthlyInstallmentsOptions( + ListBuilder? monthlyInstallmentsOptions) => + _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; + + int? _maxFailedRetries; + int? get maxFailedRetries => _$this._maxFailedRetries; + set maxFailedRetries(int? maxFailedRetries) => + _$this._maxFailedRetries = maxFailedRetries; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _onDemandEnabled; + bool? get onDemandEnabled => _$this._onDemandEnabled; + set onDemandEnabled(bool? onDemandEnabled) => + _$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; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + CheckoutRequestBuilder() { + CheckoutRequest._defaults(this); + } + + CheckoutRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPaymentMethods = $v.allowedPaymentMethods.toBuilder(); + _expiresAt = $v.expiresAt; + _failureUrl = $v.failureUrl; + _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; + _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); + _maxFailedRetries = $v.maxFailedRetries; + _name = $v.name; + _onDemandEnabled = $v.onDemandEnabled; + _redirectionTime = $v.redirectionTime; + _successUrl = $v.successUrl; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(CheckoutRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CheckoutRequest; + } + + @override + void update(void Function(CheckoutRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CheckoutRequest build() => _build(); + + _$CheckoutRequest _build() { + _$CheckoutRequest _$result; + try { + _$result = _$v ?? + new _$CheckoutRequest._( + allowedPaymentMethods: allowedPaymentMethods.build(), + expiresAt: expiresAt, + failureUrl: failureUrl, + monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, + monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), + maxFailedRetries: maxFailedRetries, + name: name, + onDemandEnabled: onDemandEnabled, + redirectionTime: redirectionTime, + successUrl: successUrl, + type: type); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPaymentMethods'; + allowedPaymentMethods.build(); + + _$failedField = 'monthlyInstallmentsOptions'; + _monthlyInstallmentsOptions?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CheckoutRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkout_response.g.dart b/lib/src/model/checkout_response.g.dart new file mode 100644 index 0000000..335a68a --- /dev/null +++ b/lib/src/model/checkout_response.g.dart @@ -0,0 +1,430 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'checkout_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CheckoutResponse extends CheckoutResponse { + @override + final BuiltList? allowedPaymentMethods; + @override + final bool? canNotExpire; + @override + final int? emailsSent; + @override + final BuiltList? excludeCardNetworks; + @override + final int? expiresAt; + @override + final String? failureUrl; + @override + final bool? force3dsFlow; + @override + final String id; + @override + final bool livemode; + @override + final BuiltMap? metadata; + @override + final bool? monthlyInstallmentsEnabled; + @override + final BuiltList? monthlyInstallmentsOptions; + @override + final String name; + @override + final bool? needsShippingContact; + @override + final String object; + @override + final int? paidPaymentsCount; + @override + final int? paymentsLimitCount; + @override + final bool? recurrent; + @override + final String? slug; + @override + final int? smsSent; + @override + final int? startsAt; + @override + final String? status; + @override + final String? successUrl; + @override + final String? type; + @override + final String? url; + + factory _$CheckoutResponse( + [void Function(CheckoutResponseBuilder)? updates]) => + (new CheckoutResponseBuilder()..update(updates))._build(); + + _$CheckoutResponse._( + {this.allowedPaymentMethods, + this.canNotExpire, + this.emailsSent, + this.excludeCardNetworks, + this.expiresAt, + this.failureUrl, + this.force3dsFlow, + required this.id, + required this.livemode, + this.metadata, + this.monthlyInstallmentsEnabled, + this.monthlyInstallmentsOptions, + required this.name, + this.needsShippingContact, + required this.object, + this.paidPaymentsCount, + this.paymentsLimitCount, + this.recurrent, + this.slug, + this.smsSent, + this.startsAt, + this.status, + this.successUrl, + this.type, + this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'CheckoutResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + livemode, r'CheckoutResponse', 'livemode'); + BuiltValueNullFieldError.checkNotNull(name, r'CheckoutResponse', 'name'); + BuiltValueNullFieldError.checkNotNull( + object, r'CheckoutResponse', 'object'); + } + + @override + CheckoutResponse rebuild(void Function(CheckoutResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CheckoutResponseBuilder toBuilder() => + new CheckoutResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CheckoutResponse && + allowedPaymentMethods == other.allowedPaymentMethods && + canNotExpire == other.canNotExpire && + emailsSent == other.emailsSent && + excludeCardNetworks == other.excludeCardNetworks && + expiresAt == other.expiresAt && + failureUrl == other.failureUrl && + force3dsFlow == other.force3dsFlow && + id == other.id && + livemode == other.livemode && + metadata == other.metadata && + monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && + monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && + name == other.name && + needsShippingContact == other.needsShippingContact && + object == other.object && + paidPaymentsCount == other.paidPaymentsCount && + paymentsLimitCount == other.paymentsLimitCount && + recurrent == other.recurrent && + slug == other.slug && + smsSent == other.smsSent && + startsAt == other.startsAt && + status == other.status && + successUrl == other.successUrl && + type == other.type && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); + _$hash = $jc(_$hash, canNotExpire.hashCode); + _$hash = $jc(_$hash, emailsSent.hashCode); + _$hash = $jc(_$hash, excludeCardNetworks.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, failureUrl.hashCode); + _$hash = $jc(_$hash, force3dsFlow.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, needsShippingContact.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, paidPaymentsCount.hashCode); + _$hash = $jc(_$hash, paymentsLimitCount.hashCode); + _$hash = $jc(_$hash, recurrent.hashCode); + _$hash = $jc(_$hash, slug.hashCode); + _$hash = $jc(_$hash, smsSent.hashCode); + _$hash = $jc(_$hash, startsAt.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, successUrl.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CheckoutResponse') + ..add('allowedPaymentMethods', allowedPaymentMethods) + ..add('canNotExpire', canNotExpire) + ..add('emailsSent', emailsSent) + ..add('excludeCardNetworks', excludeCardNetworks) + ..add('expiresAt', expiresAt) + ..add('failureUrl', failureUrl) + ..add('force3dsFlow', force3dsFlow) + ..add('id', id) + ..add('livemode', livemode) + ..add('metadata', metadata) + ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) + ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) + ..add('name', name) + ..add('needsShippingContact', needsShippingContact) + ..add('object', object) + ..add('paidPaymentsCount', paidPaymentsCount) + ..add('paymentsLimitCount', paymentsLimitCount) + ..add('recurrent', recurrent) + ..add('slug', slug) + ..add('smsSent', smsSent) + ..add('startsAt', startsAt) + ..add('status', status) + ..add('successUrl', successUrl) + ..add('type', type) + ..add('url', url)) + .toString(); + } +} + +class CheckoutResponseBuilder + implements Builder { + _$CheckoutResponse? _$v; + + ListBuilder? _allowedPaymentMethods; + ListBuilder get allowedPaymentMethods => + _$this._allowedPaymentMethods ??= new ListBuilder(); + set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => + _$this._allowedPaymentMethods = allowedPaymentMethods; + + bool? _canNotExpire; + bool? get canNotExpire => _$this._canNotExpire; + set canNotExpire(bool? canNotExpire) => _$this._canNotExpire = canNotExpire; + + int? _emailsSent; + int? get emailsSent => _$this._emailsSent; + set emailsSent(int? emailsSent) => _$this._emailsSent = emailsSent; + + ListBuilder? _excludeCardNetworks; + ListBuilder get excludeCardNetworks => + _$this._excludeCardNetworks ??= new ListBuilder(); + set excludeCardNetworks(ListBuilder? excludeCardNetworks) => + _$this._excludeCardNetworks = excludeCardNetworks; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _failureUrl; + String? get failureUrl => _$this._failureUrl; + set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; + + bool? _force3dsFlow; + bool? get force3dsFlow => _$this._force3dsFlow; + set force3dsFlow(bool? force3dsFlow) => _$this._force3dsFlow = force3dsFlow; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + bool? _monthlyInstallmentsEnabled; + bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; + set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => + _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; + + ListBuilder? _monthlyInstallmentsOptions; + ListBuilder get monthlyInstallmentsOptions => + _$this._monthlyInstallmentsOptions ??= new ListBuilder(); + set monthlyInstallmentsOptions( + ListBuilder? monthlyInstallmentsOptions) => + _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _needsShippingContact; + bool? get needsShippingContact => _$this._needsShippingContact; + set needsShippingContact(bool? needsShippingContact) => + _$this._needsShippingContact = needsShippingContact; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + int? _paidPaymentsCount; + int? get paidPaymentsCount => _$this._paidPaymentsCount; + set paidPaymentsCount(int? paidPaymentsCount) => + _$this._paidPaymentsCount = paidPaymentsCount; + + int? _paymentsLimitCount; + int? get paymentsLimitCount => _$this._paymentsLimitCount; + set paymentsLimitCount(int? paymentsLimitCount) => + _$this._paymentsLimitCount = paymentsLimitCount; + + bool? _recurrent; + bool? get recurrent => _$this._recurrent; + set recurrent(bool? recurrent) => _$this._recurrent = recurrent; + + String? _slug; + String? get slug => _$this._slug; + set slug(String? slug) => _$this._slug = slug; + + int? _smsSent; + int? get smsSent => _$this._smsSent; + set smsSent(int? smsSent) => _$this._smsSent = smsSent; + + int? _startsAt; + int? get startsAt => _$this._startsAt; + set startsAt(int? startsAt) => _$this._startsAt = startsAt; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + String? _successUrl; + String? get successUrl => _$this._successUrl; + set successUrl(String? successUrl) => _$this._successUrl = successUrl; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + CheckoutResponseBuilder() { + CheckoutResponse._defaults(this); + } + + CheckoutResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPaymentMethods = $v.allowedPaymentMethods?.toBuilder(); + _canNotExpire = $v.canNotExpire; + _emailsSent = $v.emailsSent; + _excludeCardNetworks = $v.excludeCardNetworks?.toBuilder(); + _expiresAt = $v.expiresAt; + _failureUrl = $v.failureUrl; + _force3dsFlow = $v.force3dsFlow; + _id = $v.id; + _livemode = $v.livemode; + _metadata = $v.metadata?.toBuilder(); + _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; + _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); + _name = $v.name; + _needsShippingContact = $v.needsShippingContact; + _object = $v.object; + _paidPaymentsCount = $v.paidPaymentsCount; + _paymentsLimitCount = $v.paymentsLimitCount; + _recurrent = $v.recurrent; + _slug = $v.slug; + _smsSent = $v.smsSent; + _startsAt = $v.startsAt; + _status = $v.status; + _successUrl = $v.successUrl; + _type = $v.type; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(CheckoutResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CheckoutResponse; + } + + @override + void update(void Function(CheckoutResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CheckoutResponse build() => _build(); + + _$CheckoutResponse _build() { + _$CheckoutResponse _$result; + try { + _$result = _$v ?? + new _$CheckoutResponse._( + allowedPaymentMethods: _allowedPaymentMethods?.build(), + canNotExpire: canNotExpire, + emailsSent: emailsSent, + excludeCardNetworks: _excludeCardNetworks?.build(), + expiresAt: expiresAt, + failureUrl: failureUrl, + force3dsFlow: force3dsFlow, + id: BuiltValueNullFieldError.checkNotNull( + id, r'CheckoutResponse', 'id'), + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'CheckoutResponse', 'livemode'), + metadata: _metadata?.build(), + monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, + monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, r'CheckoutResponse', 'name'), + needsShippingContact: needsShippingContact, + object: BuiltValueNullFieldError.checkNotNull( + object, r'CheckoutResponse', 'object'), + paidPaymentsCount: paidPaymentsCount, + paymentsLimitCount: paymentsLimitCount, + recurrent: recurrent, + slug: slug, + smsSent: smsSent, + startsAt: startsAt, + status: status, + successUrl: successUrl, + type: type, + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPaymentMethods'; + _allowedPaymentMethods?.build(); + + _$failedField = 'excludeCardNetworks'; + _excludeCardNetworks?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'monthlyInstallmentsOptions'; + _monthlyInstallmentsOptions?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CheckoutResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/checkouts_response.g.dart b/lib/src/model/checkouts_response.g.dart new file mode 100644 index 0000000..bcce14a --- /dev/null +++ b/lib/src/model/checkouts_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'checkouts_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CheckoutsResponse extends CheckoutsResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$CheckoutsResponse( + [void Function(CheckoutsResponseBuilder)? updates]) => + (new CheckoutsResponseBuilder()..update(updates))._build(); + + _$CheckoutsResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'CheckoutsResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'CheckoutsResponse', 'object'); + } + + @override + CheckoutsResponse rebuild(void Function(CheckoutsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CheckoutsResponseBuilder toBuilder() => + new CheckoutsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CheckoutsResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CheckoutsResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class CheckoutsResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$CheckoutsResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + CheckoutsResponseBuilder() { + CheckoutsResponse._defaults(this); + } + + CheckoutsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant CheckoutsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CheckoutsResponse; + } + + @override + void update(void Function(CheckoutsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CheckoutsResponse build() => _build(); + + _$CheckoutsResponse _build() { + _$CheckoutsResponse _$result; + try { + _$result = _$v ?? + new _$CheckoutsResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'CheckoutsResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CheckoutsResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CheckoutsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_fiscal_info_address_response.g.dart b/lib/src/model/company_fiscal_info_address_response.g.dart new file mode 100644 index 0000000..4ec8170 --- /dev/null +++ b/lib/src/model/company_fiscal_info_address_response.g.dart @@ -0,0 +1,254 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'company_fiscal_info_address_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const CompanyFiscalInfoAddressResponseObjectEnum + _$companyFiscalInfoAddressResponseObjectEnum_address = + const CompanyFiscalInfoAddressResponseObjectEnum._('address'); + +CompanyFiscalInfoAddressResponseObjectEnum + _$companyFiscalInfoAddressResponseObjectEnumValueOf(String name) { + switch (name) { + case 'address': + return _$companyFiscalInfoAddressResponseObjectEnum_address; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$companyFiscalInfoAddressResponseObjectEnumValues = + new BuiltSet(const < + CompanyFiscalInfoAddressResponseObjectEnum>[ + _$companyFiscalInfoAddressResponseObjectEnum_address, +]); + +Serializer + _$companyFiscalInfoAddressResponseObjectEnumSerializer = + new _$CompanyFiscalInfoAddressResponseObjectEnumSerializer(); + +class _$CompanyFiscalInfoAddressResponseObjectEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'address': 'address', + }; + static const Map _fromWire = const { + 'address': 'address', + }; + + @override + final Iterable types = const [ + CompanyFiscalInfoAddressResponseObjectEnum + ]; + @override + final String wireName = 'CompanyFiscalInfoAddressResponseObjectEnum'; + + @override + Object serialize(Serializers serializers, + CompanyFiscalInfoAddressResponseObjectEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CompanyFiscalInfoAddressResponseObjectEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CompanyFiscalInfoAddressResponseObjectEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CompanyFiscalInfoAddressResponse + extends CompanyFiscalInfoAddressResponse { + @override + final CompanyFiscalInfoAddressResponseObjectEnum? object; + @override + final String? street1; + @override + final String? street2; + @override + final String? city; + @override + final String? state; + @override + final String? country; + @override + final String? postalCode; + @override + final String? externalNumber; + @override + final String? internalNumber; + + factory _$CompanyFiscalInfoAddressResponse( + [void Function(CompanyFiscalInfoAddressResponseBuilder)? updates]) => + (new CompanyFiscalInfoAddressResponseBuilder()..update(updates))._build(); + + _$CompanyFiscalInfoAddressResponse._( + {this.object, + this.street1, + this.street2, + this.city, + this.state, + this.country, + this.postalCode, + this.externalNumber, + this.internalNumber}) + : super._(); + + @override + CompanyFiscalInfoAddressResponse rebuild( + void Function(CompanyFiscalInfoAddressResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CompanyFiscalInfoAddressResponseBuilder toBuilder() => + new CompanyFiscalInfoAddressResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CompanyFiscalInfoAddressResponse && + object == other.object && + street1 == other.street1 && + street2 == other.street2 && + city == other.city && + state == other.state && + country == other.country && + postalCode == other.postalCode && + externalNumber == other.externalNumber && + internalNumber == other.internalNumber; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, street1.hashCode); + _$hash = $jc(_$hash, street2.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, postalCode.hashCode); + _$hash = $jc(_$hash, externalNumber.hashCode); + _$hash = $jc(_$hash, internalNumber.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CompanyFiscalInfoAddressResponse') + ..add('object', object) + ..add('street1', street1) + ..add('street2', street2) + ..add('city', city) + ..add('state', state) + ..add('country', country) + ..add('postalCode', postalCode) + ..add('externalNumber', externalNumber) + ..add('internalNumber', internalNumber)) + .toString(); + } +} + +class CompanyFiscalInfoAddressResponseBuilder + implements + Builder { + _$CompanyFiscalInfoAddressResponse? _$v; + + CompanyFiscalInfoAddressResponseObjectEnum? _object; + CompanyFiscalInfoAddressResponseObjectEnum? get object => _$this._object; + set object(CompanyFiscalInfoAddressResponseObjectEnum? object) => + _$this._object = object; + + String? _street1; + String? get street1 => _$this._street1; + set street1(String? street1) => _$this._street1 = street1; + + String? _street2; + String? get street2 => _$this._street2; + set street2(String? street2) => _$this._street2 = street2; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _state; + String? get state => _$this._state; + set state(String? state) => _$this._state = state; + + String? _country; + String? get country => _$this._country; + set country(String? country) => _$this._country = country; + + String? _postalCode; + String? get postalCode => _$this._postalCode; + set postalCode(String? postalCode) => _$this._postalCode = postalCode; + + String? _externalNumber; + String? get externalNumber => _$this._externalNumber; + set externalNumber(String? externalNumber) => + _$this._externalNumber = externalNumber; + + String? _internalNumber; + String? get internalNumber => _$this._internalNumber; + set internalNumber(String? internalNumber) => + _$this._internalNumber = internalNumber; + + CompanyFiscalInfoAddressResponseBuilder() { + CompanyFiscalInfoAddressResponse._defaults(this); + } + + CompanyFiscalInfoAddressResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _object = $v.object; + _street1 = $v.street1; + _street2 = $v.street2; + _city = $v.city; + _state = $v.state; + _country = $v.country; + _postalCode = $v.postalCode; + _externalNumber = $v.externalNumber; + _internalNumber = $v.internalNumber; + _$v = null; + } + return this; + } + + @override + void replace(CompanyFiscalInfoAddressResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CompanyFiscalInfoAddressResponse; + } + + @override + void update(void Function(CompanyFiscalInfoAddressResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CompanyFiscalInfoAddressResponse build() => _build(); + + _$CompanyFiscalInfoAddressResponse _build() { + final _$result = _$v ?? + new _$CompanyFiscalInfoAddressResponse._( + object: object, + street1: street1, + street2: street2, + city: city, + state: state, + country: country, + postalCode: postalCode, + externalNumber: externalNumber, + internalNumber: internalNumber); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_fiscal_info_response.g.dart b/lib/src/model/company_fiscal_info_response.g.dart new file mode 100644 index 0000000..1859508 --- /dev/null +++ b/lib/src/model/company_fiscal_info_response.g.dart @@ -0,0 +1,243 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'company_fiscal_info_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const CompanyFiscalInfoResponseObjectEnum + _$companyFiscalInfoResponseObjectEnum_fiscalInfo = + const CompanyFiscalInfoResponseObjectEnum._('fiscalInfo'); + +CompanyFiscalInfoResponseObjectEnum + _$companyFiscalInfoResponseObjectEnumValueOf(String name) { + switch (name) { + case 'fiscalInfo': + return _$companyFiscalInfoResponseObjectEnum_fiscalInfo; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$companyFiscalInfoResponseObjectEnumValues = + new BuiltSet(const < + CompanyFiscalInfoResponseObjectEnum>[ + _$companyFiscalInfoResponseObjectEnum_fiscalInfo, +]); + +Serializer + _$companyFiscalInfoResponseObjectEnumSerializer = + new _$CompanyFiscalInfoResponseObjectEnumSerializer(); + +class _$CompanyFiscalInfoResponseObjectEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'fiscalInfo': 'fiscal_info', + }; + static const Map _fromWire = const { + 'fiscal_info': 'fiscalInfo', + }; + + @override + final Iterable types = const [ + CompanyFiscalInfoResponseObjectEnum + ]; + @override + final String wireName = 'CompanyFiscalInfoResponseObjectEnum'; + + @override + Object serialize( + Serializers serializers, CompanyFiscalInfoResponseObjectEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CompanyFiscalInfoResponseObjectEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CompanyFiscalInfoResponseObjectEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CompanyFiscalInfoResponse extends CompanyFiscalInfoResponse { + @override + final CompanyFiscalInfoResponseObjectEnum? object; + @override + final String? taxId; + @override + final String? legalEntityName; + @override + final String? businessType; + @override + final String? phone; + @override + final String? physicalPersonBusinessType; + @override + final CompanyFiscalInfoAddressResponse? address; + + factory _$CompanyFiscalInfoResponse( + [void Function(CompanyFiscalInfoResponseBuilder)? updates]) => + (new CompanyFiscalInfoResponseBuilder()..update(updates))._build(); + + _$CompanyFiscalInfoResponse._( + {this.object, + this.taxId, + this.legalEntityName, + this.businessType, + this.phone, + this.physicalPersonBusinessType, + this.address}) + : super._(); + + @override + CompanyFiscalInfoResponse rebuild( + void Function(CompanyFiscalInfoResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CompanyFiscalInfoResponseBuilder toBuilder() => + new CompanyFiscalInfoResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CompanyFiscalInfoResponse && + object == other.object && + taxId == other.taxId && + legalEntityName == other.legalEntityName && + businessType == other.businessType && + phone == other.phone && + physicalPersonBusinessType == other.physicalPersonBusinessType && + address == other.address; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, legalEntityName.hashCode); + _$hash = $jc(_$hash, businessType.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, physicalPersonBusinessType.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CompanyFiscalInfoResponse') + ..add('object', object) + ..add('taxId', taxId) + ..add('legalEntityName', legalEntityName) + ..add('businessType', businessType) + ..add('phone', phone) + ..add('physicalPersonBusinessType', physicalPersonBusinessType) + ..add('address', address)) + .toString(); + } +} + +class CompanyFiscalInfoResponseBuilder + implements + Builder { + _$CompanyFiscalInfoResponse? _$v; + + CompanyFiscalInfoResponseObjectEnum? _object; + CompanyFiscalInfoResponseObjectEnum? get object => _$this._object; + set object(CompanyFiscalInfoResponseObjectEnum? object) => + _$this._object = object; + + String? _taxId; + String? get taxId => _$this._taxId; + set taxId(String? taxId) => _$this._taxId = taxId; + + String? _legalEntityName; + String? get legalEntityName => _$this._legalEntityName; + set legalEntityName(String? legalEntityName) => + _$this._legalEntityName = legalEntityName; + + String? _businessType; + String? get businessType => _$this._businessType; + set businessType(String? businessType) => _$this._businessType = businessType; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _physicalPersonBusinessType; + String? get physicalPersonBusinessType => _$this._physicalPersonBusinessType; + set physicalPersonBusinessType(String? physicalPersonBusinessType) => + _$this._physicalPersonBusinessType = physicalPersonBusinessType; + + CompanyFiscalInfoAddressResponseBuilder? _address; + CompanyFiscalInfoAddressResponseBuilder get address => + _$this._address ??= new CompanyFiscalInfoAddressResponseBuilder(); + set address(CompanyFiscalInfoAddressResponseBuilder? address) => + _$this._address = address; + + CompanyFiscalInfoResponseBuilder() { + CompanyFiscalInfoResponse._defaults(this); + } + + CompanyFiscalInfoResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _object = $v.object; + _taxId = $v.taxId; + _legalEntityName = $v.legalEntityName; + _businessType = $v.businessType; + _phone = $v.phone; + _physicalPersonBusinessType = $v.physicalPersonBusinessType; + _address = $v.address?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(CompanyFiscalInfoResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CompanyFiscalInfoResponse; + } + + @override + void update(void Function(CompanyFiscalInfoResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CompanyFiscalInfoResponse build() => _build(); + + _$CompanyFiscalInfoResponse _build() { + _$CompanyFiscalInfoResponse _$result; + try { + _$result = _$v ?? + new _$CompanyFiscalInfoResponse._( + object: object, + taxId: taxId, + legalEntityName: legalEntityName, + businessType: businessType, + phone: phone, + physicalPersonBusinessType: physicalPersonBusinessType, + address: _address?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + _address?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CompanyFiscalInfoResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_payout_destination_response.g.dart b/lib/src/model/company_payout_destination_response.g.dart new file mode 100644 index 0000000..82f233e --- /dev/null +++ b/lib/src/model/company_payout_destination_response.g.dart @@ -0,0 +1,273 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'company_payout_destination_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const CompanyPayoutDestinationResponseObjectEnum + _$companyPayoutDestinationResponseObjectEnum_payoutDestination = + const CompanyPayoutDestinationResponseObjectEnum._('payoutDestination'); + +CompanyPayoutDestinationResponseObjectEnum + _$companyPayoutDestinationResponseObjectEnumValueOf(String name) { + switch (name) { + case 'payoutDestination': + return _$companyPayoutDestinationResponseObjectEnum_payoutDestination; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$companyPayoutDestinationResponseObjectEnumValues = + new BuiltSet(const < + CompanyPayoutDestinationResponseObjectEnum>[ + _$companyPayoutDestinationResponseObjectEnum_payoutDestination, +]); + +const CompanyPayoutDestinationResponseTypeEnum + _$companyPayoutDestinationResponseTypeEnum_bankAccount = + const CompanyPayoutDestinationResponseTypeEnum._('bankAccount'); + +CompanyPayoutDestinationResponseTypeEnum + _$companyPayoutDestinationResponseTypeEnumValueOf(String name) { + switch (name) { + case 'bankAccount': + return _$companyPayoutDestinationResponseTypeEnum_bankAccount; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$companyPayoutDestinationResponseTypeEnumValues = + new BuiltSet(const < + CompanyPayoutDestinationResponseTypeEnum>[ + _$companyPayoutDestinationResponseTypeEnum_bankAccount, +]); + +Serializer + _$companyPayoutDestinationResponseObjectEnumSerializer = + new _$CompanyPayoutDestinationResponseObjectEnumSerializer(); +Serializer + _$companyPayoutDestinationResponseTypeEnumSerializer = + new _$CompanyPayoutDestinationResponseTypeEnumSerializer(); + +class _$CompanyPayoutDestinationResponseObjectEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'payoutDestination': 'payout_destination', + }; + static const Map _fromWire = const { + 'payout_destination': 'payoutDestination', + }; + + @override + final Iterable types = const [ + CompanyPayoutDestinationResponseObjectEnum + ]; + @override + final String wireName = 'CompanyPayoutDestinationResponseObjectEnum'; + + @override + Object serialize(Serializers serializers, + CompanyPayoutDestinationResponseObjectEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CompanyPayoutDestinationResponseObjectEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CompanyPayoutDestinationResponseObjectEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CompanyPayoutDestinationResponseTypeEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'bankAccount': 'bank_account', + }; + static const Map _fromWire = const { + 'bank_account': 'bankAccount', + }; + + @override + final Iterable types = const [ + CompanyPayoutDestinationResponseTypeEnum + ]; + @override + final String wireName = 'CompanyPayoutDestinationResponseTypeEnum'; + + @override + Object serialize(Serializers serializers, + CompanyPayoutDestinationResponseTypeEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CompanyPayoutDestinationResponseTypeEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CompanyPayoutDestinationResponseTypeEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CompanyPayoutDestinationResponse + extends CompanyPayoutDestinationResponse { + @override + final CompanyPayoutDestinationResponseObjectEnum? object; + @override + final String? currency; + @override + final String? accountHolderName; + @override + final String? bank; + @override + final CompanyPayoutDestinationResponseTypeEnum? type; + @override + final String? accountNumber; + + factory _$CompanyPayoutDestinationResponse( + [void Function(CompanyPayoutDestinationResponseBuilder)? updates]) => + (new CompanyPayoutDestinationResponseBuilder()..update(updates))._build(); + + _$CompanyPayoutDestinationResponse._( + {this.object, + this.currency, + this.accountHolderName, + this.bank, + this.type, + this.accountNumber}) + : super._(); + + @override + CompanyPayoutDestinationResponse rebuild( + void Function(CompanyPayoutDestinationResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CompanyPayoutDestinationResponseBuilder toBuilder() => + new CompanyPayoutDestinationResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CompanyPayoutDestinationResponse && + object == other.object && + currency == other.currency && + accountHolderName == other.accountHolderName && + bank == other.bank && + type == other.type && + accountNumber == other.accountNumber; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, accountHolderName.hashCode); + _$hash = $jc(_$hash, bank.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, accountNumber.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CompanyPayoutDestinationResponse') + ..add('object', object) + ..add('currency', currency) + ..add('accountHolderName', accountHolderName) + ..add('bank', bank) + ..add('type', type) + ..add('accountNumber', accountNumber)) + .toString(); + } +} + +class CompanyPayoutDestinationResponseBuilder + implements + Builder { + _$CompanyPayoutDestinationResponse? _$v; + + CompanyPayoutDestinationResponseObjectEnum? _object; + CompanyPayoutDestinationResponseObjectEnum? get object => _$this._object; + set object(CompanyPayoutDestinationResponseObjectEnum? object) => + _$this._object = object; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + String? _accountHolderName; + String? get accountHolderName => _$this._accountHolderName; + set accountHolderName(String? accountHolderName) => + _$this._accountHolderName = accountHolderName; + + String? _bank; + String? get bank => _$this._bank; + set bank(String? bank) => _$this._bank = bank; + + CompanyPayoutDestinationResponseTypeEnum? _type; + CompanyPayoutDestinationResponseTypeEnum? get type => _$this._type; + set type(CompanyPayoutDestinationResponseTypeEnum? type) => + _$this._type = type; + + String? _accountNumber; + String? get accountNumber => _$this._accountNumber; + set accountNumber(String? accountNumber) => + _$this._accountNumber = accountNumber; + + CompanyPayoutDestinationResponseBuilder() { + CompanyPayoutDestinationResponse._defaults(this); + } + + CompanyPayoutDestinationResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _object = $v.object; + _currency = $v.currency; + _accountHolderName = $v.accountHolderName; + _bank = $v.bank; + _type = $v.type; + _accountNumber = $v.accountNumber; + _$v = null; + } + return this; + } + + @override + void replace(CompanyPayoutDestinationResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CompanyPayoutDestinationResponse; + } + + @override + void update(void Function(CompanyPayoutDestinationResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CompanyPayoutDestinationResponse build() => _build(); + + _$CompanyPayoutDestinationResponse _build() { + final _$result = _$v ?? + new _$CompanyPayoutDestinationResponse._( + object: object, + currency: currency, + accountHolderName: accountHolderName, + bank: bank, + type: type, + accountNumber: accountNumber); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/company_response.g.dart b/lib/src/model/company_response.g.dart new file mode 100644 index 0000000..a1914d9 --- /dev/null +++ b/lib/src/model/company_response.g.dart @@ -0,0 +1,249 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'company_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const CompanyResponseObjectEnum _$companyResponseObjectEnum_company = + const CompanyResponseObjectEnum._('company'); + +CompanyResponseObjectEnum _$companyResponseObjectEnumValueOf(String name) { + switch (name) { + case 'company': + return _$companyResponseObjectEnum_company; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$companyResponseObjectEnumValues = + new BuiltSet(const [ + _$companyResponseObjectEnum_company, +]); + +Serializer _$companyResponseObjectEnumSerializer = + new _$CompanyResponseObjectEnumSerializer(); + +class _$CompanyResponseObjectEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'company': 'company', + }; + static const Map _fromWire = const { + 'company': 'company', + }; + + @override + final Iterable types = const [CompanyResponseObjectEnum]; + @override + final String wireName = 'CompanyResponseObjectEnum'; + + @override + Object serialize(Serializers serializers, CompanyResponseObjectEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CompanyResponseObjectEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CompanyResponseObjectEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CompanyResponse extends CompanyResponse { + @override + final String? id; + @override + final int? createdAt; + @override + final String? name; + @override + final CompanyResponseObjectEnum? object; + @override + final String? parentCompanyId; + @override + final bool? useParentFiscalData; + @override + final CompanyPayoutDestinationResponse? payoutDestination; + @override + final CompanyFiscalInfoResponse? fiscalInfo; + + factory _$CompanyResponse([void Function(CompanyResponseBuilder)? updates]) => + (new CompanyResponseBuilder()..update(updates))._build(); + + _$CompanyResponse._( + {this.id, + this.createdAt, + this.name, + this.object, + this.parentCompanyId, + this.useParentFiscalData, + this.payoutDestination, + this.fiscalInfo}) + : super._(); + + @override + CompanyResponse rebuild(void Function(CompanyResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CompanyResponseBuilder toBuilder() => + new CompanyResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CompanyResponse && + id == other.id && + createdAt == other.createdAt && + name == other.name && + object == other.object && + parentCompanyId == other.parentCompanyId && + useParentFiscalData == other.useParentFiscalData && + payoutDestination == other.payoutDestination && + fiscalInfo == other.fiscalInfo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, parentCompanyId.hashCode); + _$hash = $jc(_$hash, useParentFiscalData.hashCode); + _$hash = $jc(_$hash, payoutDestination.hashCode); + _$hash = $jc(_$hash, fiscalInfo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CompanyResponse') + ..add('id', id) + ..add('createdAt', createdAt) + ..add('name', name) + ..add('object', object) + ..add('parentCompanyId', parentCompanyId) + ..add('useParentFiscalData', useParentFiscalData) + ..add('payoutDestination', payoutDestination) + ..add('fiscalInfo', fiscalInfo)) + .toString(); + } +} + +class CompanyResponseBuilder + implements Builder { + _$CompanyResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + CompanyResponseObjectEnum? _object; + CompanyResponseObjectEnum? get object => _$this._object; + set object(CompanyResponseObjectEnum? object) => _$this._object = object; + + String? _parentCompanyId; + String? get parentCompanyId => _$this._parentCompanyId; + set parentCompanyId(String? parentCompanyId) => + _$this._parentCompanyId = parentCompanyId; + + bool? _useParentFiscalData; + bool? get useParentFiscalData => _$this._useParentFiscalData; + set useParentFiscalData(bool? useParentFiscalData) => + _$this._useParentFiscalData = useParentFiscalData; + + CompanyPayoutDestinationResponseBuilder? _payoutDestination; + CompanyPayoutDestinationResponseBuilder get payoutDestination => + _$this._payoutDestination ??= + new CompanyPayoutDestinationResponseBuilder(); + set payoutDestination( + CompanyPayoutDestinationResponseBuilder? payoutDestination) => + _$this._payoutDestination = payoutDestination; + + CompanyFiscalInfoResponseBuilder? _fiscalInfo; + CompanyFiscalInfoResponseBuilder get fiscalInfo => + _$this._fiscalInfo ??= new CompanyFiscalInfoResponseBuilder(); + set fiscalInfo(CompanyFiscalInfoResponseBuilder? fiscalInfo) => + _$this._fiscalInfo = fiscalInfo; + + CompanyResponseBuilder() { + CompanyResponse._defaults(this); + } + + CompanyResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _createdAt = $v.createdAt; + _name = $v.name; + _object = $v.object; + _parentCompanyId = $v.parentCompanyId; + _useParentFiscalData = $v.useParentFiscalData; + _payoutDestination = $v.payoutDestination?.toBuilder(); + _fiscalInfo = $v.fiscalInfo?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(CompanyResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CompanyResponse; + } + + @override + void update(void Function(CompanyResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CompanyResponse build() => _build(); + + _$CompanyResponse _build() { + _$CompanyResponse _$result; + try { + _$result = _$v ?? + new _$CompanyResponse._( + id: id, + createdAt: createdAt, + name: name, + object: object, + parentCompanyId: parentCompanyId, + useParentFiscalData: useParentFiscalData, + payoutDestination: _payoutDestination?.build(), + fiscalInfo: _fiscalInfo?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'payoutDestination'; + _payoutDestination?.build(); + _$failedField = 'fiscalInfo'; + _fiscalInfo?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CompanyResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_customer_fiscal_entities_response.g.dart b/lib/src/model/create_customer_fiscal_entities_response.g.dart new file mode 100644 index 0000000..b6b859e --- /dev/null +++ b/lib/src/model/create_customer_fiscal_entities_response.g.dart @@ -0,0 +1,259 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_customer_fiscal_entities_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CreateCustomerFiscalEntitiesResponse + extends CreateCustomerFiscalEntitiesResponse { + @override + final int createdAt; + @override + final bool? default_; + @override + final String id; + @override + final String? parentId; + @override + final String object; + @override + final CustomerAddress address; + @override + final String? taxId; + @override + final String? email; + @override + final String? phone; + @override + final BuiltMap? metadata; + @override + final String? companyName; + + factory _$CreateCustomerFiscalEntitiesResponse( + [void Function(CreateCustomerFiscalEntitiesResponseBuilder)? + updates]) => + (new CreateCustomerFiscalEntitiesResponseBuilder()..update(updates)) + ._build(); + + _$CreateCustomerFiscalEntitiesResponse._( + {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}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'CreateCustomerFiscalEntitiesResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'CreateCustomerFiscalEntitiesResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'CreateCustomerFiscalEntitiesResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + address, r'CreateCustomerFiscalEntitiesResponse', 'address'); + } + + @override + CreateCustomerFiscalEntitiesResponse rebuild( + void Function(CreateCustomerFiscalEntitiesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateCustomerFiscalEntitiesResponseBuilder toBuilder() => + new CreateCustomerFiscalEntitiesResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateCustomerFiscalEntitiesResponse && + 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; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, companyName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateCustomerFiscalEntitiesResponse') + ..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)) + .toString(); + } +} + +class CreateCustomerFiscalEntitiesResponseBuilder + implements + Builder, + CustomerFiscalEntitiesRequestBuilder { + _$CreateCustomerFiscalEntitiesResponse? _$v; + + 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; + String? get taxId => _$this._taxId; + set taxId(covariant String? taxId) => _$this._taxId = taxId; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _companyName; + String? get companyName => _$this._companyName; + set companyName(covariant String? companyName) => + _$this._companyName = companyName; + + CreateCustomerFiscalEntitiesResponseBuilder() { + CreateCustomerFiscalEntitiesResponse._defaults(this); + } + + CreateCustomerFiscalEntitiesResponseBuilder 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; + _$v = null; + } + return this; + } + + @override + void replace(covariant CreateCustomerFiscalEntitiesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateCustomerFiscalEntitiesResponse; + } + + @override + void update( + void Function(CreateCustomerFiscalEntitiesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateCustomerFiscalEntitiesResponse build() => _build(); + + _$CreateCustomerFiscalEntitiesResponse _build() { + _$CreateCustomerFiscalEntitiesResponse _$result; + 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'), + address: address.build(), + taxId: taxId, + email: email, + phone: phone, + metadata: _metadata?.build(), + companyName: companyName); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CreateCustomerFiscalEntitiesResponse', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_customer_payment_methods_request.g.dart b/lib/src/model/create_customer_payment_methods_request.g.dart new file mode 100644 index 0000000..cb725a3 --- /dev/null +++ b/lib/src/model/create_customer_payment_methods_request.g.dart @@ -0,0 +1,104 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_customer_payment_methods_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CreateCustomerPaymentMethodsRequest + extends CreateCustomerPaymentMethodsRequest { + @override + final OneOf oneOf; + + factory _$CreateCustomerPaymentMethodsRequest( + [void Function(CreateCustomerPaymentMethodsRequestBuilder)? + updates]) => + (new CreateCustomerPaymentMethodsRequestBuilder()..update(updates)) + ._build(); + + _$CreateCustomerPaymentMethodsRequest._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'CreateCustomerPaymentMethodsRequest', 'oneOf'); + } + + @override + CreateCustomerPaymentMethodsRequest rebuild( + void Function(CreateCustomerPaymentMethodsRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateCustomerPaymentMethodsRequestBuilder toBuilder() => + new CreateCustomerPaymentMethodsRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateCustomerPaymentMethodsRequest && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateCustomerPaymentMethodsRequest') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class CreateCustomerPaymentMethodsRequestBuilder + implements + Builder { + _$CreateCustomerPaymentMethodsRequest? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + CreateCustomerPaymentMethodsRequestBuilder() { + CreateCustomerPaymentMethodsRequest._defaults(this); + } + + CreateCustomerPaymentMethodsRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(CreateCustomerPaymentMethodsRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateCustomerPaymentMethodsRequest; + } + + @override + void update( + void Function(CreateCustomerPaymentMethodsRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateCustomerPaymentMethodsRequest build() => _build(); + + _$CreateCustomerPaymentMethodsRequest _build() { + final _$result = _$v ?? + new _$CreateCustomerPaymentMethodsRequest._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'CreateCustomerPaymentMethodsRequest', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_customer_payment_methods_response.g.dart b/lib/src/model/create_customer_payment_methods_response.g.dart new file mode 100644 index 0000000..e6c84f6 --- /dev/null +++ b/lib/src/model/create_customer_payment_methods_response.g.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_customer_payment_methods_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CreateCustomerPaymentMethodsResponse + extends CreateCustomerPaymentMethodsResponse { + @override + final OneOf oneOf; + + factory _$CreateCustomerPaymentMethodsResponse( + [void Function(CreateCustomerPaymentMethodsResponseBuilder)? + updates]) => + (new CreateCustomerPaymentMethodsResponseBuilder()..update(updates)) + ._build(); + + _$CreateCustomerPaymentMethodsResponse._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'CreateCustomerPaymentMethodsResponse', 'oneOf'); + } + + @override + CreateCustomerPaymentMethodsResponse rebuild( + void Function(CreateCustomerPaymentMethodsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateCustomerPaymentMethodsResponseBuilder toBuilder() => + new CreateCustomerPaymentMethodsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateCustomerPaymentMethodsResponse && + oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateCustomerPaymentMethodsResponse') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class CreateCustomerPaymentMethodsResponseBuilder + implements + Builder { + _$CreateCustomerPaymentMethodsResponse? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + CreateCustomerPaymentMethodsResponseBuilder() { + CreateCustomerPaymentMethodsResponse._defaults(this); + } + + CreateCustomerPaymentMethodsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(CreateCustomerPaymentMethodsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateCustomerPaymentMethodsResponse; + } + + @override + void update( + void Function(CreateCustomerPaymentMethodsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateCustomerPaymentMethodsResponse build() => _build(); + + _$CreateCustomerPaymentMethodsResponse _build() { + final _$result = _$v ?? + new _$CreateCustomerPaymentMethodsResponse._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'CreateCustomerPaymentMethodsResponse', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/create_risk_rules_data.g.dart b/lib/src/model/create_risk_rules_data.g.dart new file mode 100644 index 0000000..964acef --- /dev/null +++ b/lib/src/model/create_risk_rules_data.g.dart @@ -0,0 +1,129 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_risk_rules_data.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CreateRiskRulesData extends CreateRiskRulesData { + @override + final String description; + @override + final String field; + @override + final String value; + + factory _$CreateRiskRulesData( + [void Function(CreateRiskRulesDataBuilder)? updates]) => + (new CreateRiskRulesDataBuilder()..update(updates))._build(); + + _$CreateRiskRulesData._( + {required this.description, required this.field, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + description, r'CreateRiskRulesData', 'description'); + BuiltValueNullFieldError.checkNotNull( + field, r'CreateRiskRulesData', 'field'); + BuiltValueNullFieldError.checkNotNull( + value, r'CreateRiskRulesData', 'value'); + } + + @override + CreateRiskRulesData rebuild( + void Function(CreateRiskRulesDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateRiskRulesDataBuilder toBuilder() => + new CreateRiskRulesDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateRiskRulesData && + description == other.description && + field == other.field && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, field.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateRiskRulesData') + ..add('description', description) + ..add('field', field) + ..add('value', value)) + .toString(); + } +} + +class CreateRiskRulesDataBuilder + implements Builder { + _$CreateRiskRulesData? _$v; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _field; + String? get field => _$this._field; + set field(String? field) => _$this._field = field; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + CreateRiskRulesDataBuilder() { + CreateRiskRulesData._defaults(this); + } + + CreateRiskRulesDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _description = $v.description; + _field = $v.field; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(CreateRiskRulesData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateRiskRulesData; + } + + @override + void update(void Function(CreateRiskRulesDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateRiskRulesData build() => _build(); + + _$CreateRiskRulesData _build() { + final _$result = _$v ?? + new _$CreateRiskRulesData._( + description: BuiltValueNullFieldError.checkNotNull( + description, r'CreateRiskRulesData', 'description'), + field: BuiltValueNullFieldError.checkNotNull( + field, r'CreateRiskRulesData', 'field'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'CreateRiskRulesData', 'value')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer.g.dart b/lib/src/model/customer.g.dart new file mode 100644 index 0000000..8fe9a36 --- /dev/null +++ b/lib/src/model/customer.g.dart @@ -0,0 +1,326 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$Customer extends Customer { + @override + final CustomerAntifraudInfo? antifraudInfo; + @override + final bool? corporate; + @override + final String? customReference; + @override + final String? dateOfBirth; + @override + final String email; + @override + final String? defaultPaymentSourceId; + @override + final String? defaultShippingContactId; + @override + final BuiltList? fiscalEntities; + @override + final BuiltMap? metadata; + @override + final String name; + @override + final String? nationalId; + @override + final BuiltList? paymentSources; + @override + final String phone; + @override + final String? planId; + @override + final BuiltList? shippingContacts; + @override + final SubscriptionRequest? subscription; + + factory _$Customer([void Function(CustomerBuilder)? updates]) => + (new CustomerBuilder()..update(updates))._build(); + + _$Customer._( + {this.antifraudInfo, + this.corporate, + this.customReference, + this.dateOfBirth, + required this.email, + this.defaultPaymentSourceId, + this.defaultShippingContactId, + this.fiscalEntities, + this.metadata, + required this.name, + this.nationalId, + this.paymentSources, + required this.phone, + this.planId, + this.shippingContacts, + this.subscription}) + : super._() { + BuiltValueNullFieldError.checkNotNull(email, r'Customer', 'email'); + BuiltValueNullFieldError.checkNotNull(name, r'Customer', 'name'); + BuiltValueNullFieldError.checkNotNull(phone, r'Customer', 'phone'); + } + + @override + Customer rebuild(void Function(CustomerBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerBuilder toBuilder() => new CustomerBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is Customer && + antifraudInfo == other.antifraudInfo && + corporate == other.corporate && + customReference == other.customReference && + dateOfBirth == other.dateOfBirth && + email == other.email && + defaultPaymentSourceId == other.defaultPaymentSourceId && + defaultShippingContactId == other.defaultShippingContactId && + fiscalEntities == other.fiscalEntities && + metadata == other.metadata && + name == other.name && + nationalId == other.nationalId && + paymentSources == other.paymentSources && + phone == other.phone && + planId == other.planId && + shippingContacts == other.shippingContacts && + subscription == other.subscription; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, customReference.hashCode); + _$hash = $jc(_$hash, dateOfBirth.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, defaultPaymentSourceId.hashCode); + _$hash = $jc(_$hash, defaultShippingContactId.hashCode); + _$hash = $jc(_$hash, fiscalEntities.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, nationalId.hashCode); + _$hash = $jc(_$hash, paymentSources.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, planId.hashCode); + _$hash = $jc(_$hash, shippingContacts.hashCode); + _$hash = $jc(_$hash, subscription.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'Customer') + ..add('antifraudInfo', antifraudInfo) + ..add('corporate', corporate) + ..add('customReference', customReference) + ..add('dateOfBirth', dateOfBirth) + ..add('email', email) + ..add('defaultPaymentSourceId', defaultPaymentSourceId) + ..add('defaultShippingContactId', defaultShippingContactId) + ..add('fiscalEntities', fiscalEntities) + ..add('metadata', metadata) + ..add('name', name) + ..add('nationalId', nationalId) + ..add('paymentSources', paymentSources) + ..add('phone', phone) + ..add('planId', planId) + ..add('shippingContacts', shippingContacts) + ..add('subscription', subscription)) + .toString(); + } +} + +class CustomerBuilder implements Builder { + _$Customer? _$v; + + CustomerAntifraudInfoBuilder? _antifraudInfo; + CustomerAntifraudInfoBuilder get antifraudInfo => + _$this._antifraudInfo ??= new CustomerAntifraudInfoBuilder(); + set antifraudInfo(CustomerAntifraudInfoBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(bool? corporate) => _$this._corporate = corporate; + + String? _customReference; + String? get customReference => _$this._customReference; + set customReference(String? customReference) => + _$this._customReference = customReference; + + String? _dateOfBirth; + String? get dateOfBirth => _$this._dateOfBirth; + set dateOfBirth(String? dateOfBirth) => _$this._dateOfBirth = dateOfBirth; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _defaultPaymentSourceId; + String? get defaultPaymentSourceId => _$this._defaultPaymentSourceId; + set defaultPaymentSourceId(String? defaultPaymentSourceId) => + _$this._defaultPaymentSourceId = defaultPaymentSourceId; + + String? _defaultShippingContactId; + String? get defaultShippingContactId => _$this._defaultShippingContactId; + set defaultShippingContactId(String? defaultShippingContactId) => + _$this._defaultShippingContactId = defaultShippingContactId; + + ListBuilder? _fiscalEntities; + ListBuilder get fiscalEntities => + _$this._fiscalEntities ??= + new ListBuilder(); + set fiscalEntities( + ListBuilder? fiscalEntities) => + _$this._fiscalEntities = fiscalEntities; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _nationalId; + String? get nationalId => _$this._nationalId; + set nationalId(String? nationalId) => _$this._nationalId = nationalId; + + ListBuilder? _paymentSources; + ListBuilder get paymentSources => + _$this._paymentSources ??= + new ListBuilder(); + set paymentSources( + ListBuilder? paymentSources) => + _$this._paymentSources = paymentSources; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _planId; + String? get planId => _$this._planId; + set planId(String? planId) => _$this._planId = planId; + + ListBuilder? _shippingContacts; + ListBuilder get shippingContacts => + _$this._shippingContacts ??= new ListBuilder(); + set shippingContacts( + ListBuilder? shippingContacts) => + _$this._shippingContacts = shippingContacts; + + SubscriptionRequestBuilder? _subscription; + SubscriptionRequestBuilder get subscription => + _$this._subscription ??= new SubscriptionRequestBuilder(); + set subscription(SubscriptionRequestBuilder? subscription) => + _$this._subscription = subscription; + + CustomerBuilder() { + Customer._defaults(this); + } + + CustomerBuilder get _$this { + final $v = _$v; + if ($v != null) { + _antifraudInfo = $v.antifraudInfo?.toBuilder(); + _corporate = $v.corporate; + _customReference = $v.customReference; + _dateOfBirth = $v.dateOfBirth; + _email = $v.email; + _defaultPaymentSourceId = $v.defaultPaymentSourceId; + _defaultShippingContactId = $v.defaultShippingContactId; + _fiscalEntities = $v.fiscalEntities?.toBuilder(); + _metadata = $v.metadata?.toBuilder(); + _name = $v.name; + _nationalId = $v.nationalId; + _paymentSources = $v.paymentSources?.toBuilder(); + _phone = $v.phone; + _planId = $v.planId; + _shippingContacts = $v.shippingContacts?.toBuilder(); + _subscription = $v.subscription?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(Customer other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$Customer; + } + + @override + void update(void Function(CustomerBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + Customer build() => _build(); + + _$Customer _build() { + _$Customer _$result; + try { + _$result = _$v ?? + new _$Customer._( + antifraudInfo: _antifraudInfo?.build(), + corporate: corporate, + customReference: customReference, + dateOfBirth: dateOfBirth, + email: BuiltValueNullFieldError.checkNotNull( + email, r'Customer', 'email'), + defaultPaymentSourceId: defaultPaymentSourceId, + defaultShippingContactId: defaultShippingContactId, + fiscalEntities: _fiscalEntities?.build(), + metadata: _metadata?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, r'Customer', 'name'), + nationalId: nationalId, + paymentSources: _paymentSources?.build(), + phone: BuiltValueNullFieldError.checkNotNull( + phone, r'Customer', 'phone'), + planId: planId, + shippingContacts: _shippingContacts?.build(), + subscription: _subscription?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'fiscalEntities'; + _fiscalEntities?.build(); + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'paymentSources'; + _paymentSources?.build(); + + _$failedField = 'shippingContacts'; + _shippingContacts?.build(); + _$failedField = 'subscription'; + _subscription?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'Customer', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_address.g.dart b/lib/src/model/customer_address.g.dart new file mode 100644 index 0000000..1223c18 --- /dev/null +++ b/lib/src/model/customer_address.g.dart @@ -0,0 +1,189 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_address.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerAddress extends CustomerAddress { + @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 _$CustomerAddress([void Function(CustomerAddressBuilder)? updates]) => + (new CustomerAddressBuilder()..update(updates))._build(); + + _$CustomerAddress._( + {required this.street1, + this.street2, + required this.postalCode, + required this.city, + this.state, + this.country, + this.residential, + this.externalNumber}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + street1, r'CustomerAddress', 'street1'); + BuiltValueNullFieldError.checkNotNull( + postalCode, r'CustomerAddress', 'postalCode'); + BuiltValueNullFieldError.checkNotNull(city, r'CustomerAddress', 'city'); + } + + @override + CustomerAddress rebuild(void Function(CustomerAddressBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerAddressBuilder toBuilder() => + new CustomerAddressBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerAddress && + 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 { + var _$hash = 0; + _$hash = $jc(_$hash, street1.hashCode); + _$hash = $jc(_$hash, street2.hashCode); + _$hash = $jc(_$hash, postalCode.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, residential.hashCode); + _$hash = $jc(_$hash, externalNumber.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerAddress') + ..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 CustomerAddressBuilder + implements Builder { + _$CustomerAddress? _$v; + + String? _street1; + String? get street1 => _$this._street1; + set street1(String? street1) => _$this._street1 = street1; + + String? _street2; + String? get street2 => _$this._street2; + set street2(String? street2) => _$this._street2 = street2; + + String? _postalCode; + String? get postalCode => _$this._postalCode; + set postalCode(String? postalCode) => _$this._postalCode = postalCode; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _state; + String? get state => _$this._state; + set state(String? state) => _$this._state = state; + + String? _country; + String? get country => _$this._country; + set country(String? country) => _$this._country = country; + + bool? _residential; + bool? get residential => _$this._residential; + set residential(bool? residential) => _$this._residential = residential; + + String? _externalNumber; + String? get externalNumber => _$this._externalNumber; + set externalNumber(String? externalNumber) => + _$this._externalNumber = externalNumber; + + CustomerAddressBuilder() { + CustomerAddress._defaults(this); + } + + CustomerAddressBuilder 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(CustomerAddress other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerAddress; + } + + @override + void update(void Function(CustomerAddressBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerAddress build() => _build(); + + _$CustomerAddress _build() { + final _$result = _$v ?? + new _$CustomerAddress._( + street1: BuiltValueNullFieldError.checkNotNull( + street1, r'CustomerAddress', 'street1'), + street2: street2, + postalCode: BuiltValueNullFieldError.checkNotNull( + postalCode, r'CustomerAddress', 'postalCode'), + city: BuiltValueNullFieldError.checkNotNull( + city, r'CustomerAddress', 'city'), + state: state, + country: country, + residential: residential, + externalNumber: externalNumber); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_antifraud_info.g.dart b/lib/src/model/customer_antifraud_info.g.dart new file mode 100644 index 0000000..602271c --- /dev/null +++ b/lib/src/model/customer_antifraud_info.g.dart @@ -0,0 +1,107 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_antifraud_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerAntifraudInfo extends CustomerAntifraudInfo { + @override + final int? accountCreatedAt; + @override + final int? firstPaidAt; + + factory _$CustomerAntifraudInfo( + [void Function(CustomerAntifraudInfoBuilder)? updates]) => + (new CustomerAntifraudInfoBuilder()..update(updates))._build(); + + _$CustomerAntifraudInfo._({this.accountCreatedAt, this.firstPaidAt}) + : super._(); + + @override + CustomerAntifraudInfo rebuild( + void Function(CustomerAntifraudInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerAntifraudInfoBuilder toBuilder() => + new CustomerAntifraudInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerAntifraudInfo && + accountCreatedAt == other.accountCreatedAt && + firstPaidAt == other.firstPaidAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, accountCreatedAt.hashCode); + _$hash = $jc(_$hash, firstPaidAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerAntifraudInfo') + ..add('accountCreatedAt', accountCreatedAt) + ..add('firstPaidAt', firstPaidAt)) + .toString(); + } +} + +class CustomerAntifraudInfoBuilder + implements Builder { + _$CustomerAntifraudInfo? _$v; + + int? _accountCreatedAt; + int? get accountCreatedAt => _$this._accountCreatedAt; + set accountCreatedAt(int? accountCreatedAt) => + _$this._accountCreatedAt = accountCreatedAt; + + int? _firstPaidAt; + int? get firstPaidAt => _$this._firstPaidAt; + set firstPaidAt(int? firstPaidAt) => _$this._firstPaidAt = firstPaidAt; + + CustomerAntifraudInfoBuilder() { + CustomerAntifraudInfo._defaults(this); + } + + CustomerAntifraudInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _accountCreatedAt = $v.accountCreatedAt; + _firstPaidAt = $v.firstPaidAt; + _$v = null; + } + return this; + } + + @override + void replace(CustomerAntifraudInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerAntifraudInfo; + } + + @override + void update(void Function(CustomerAntifraudInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerAntifraudInfo build() => _build(); + + _$CustomerAntifraudInfo _build() { + final _$result = _$v ?? + new _$CustomerAntifraudInfo._( + accountCreatedAt: accountCreatedAt, firstPaidAt: firstPaidAt); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_antifraud_info_response.g.dart b/lib/src/model/customer_antifraud_info_response.g.dart new file mode 100644 index 0000000..0ced70c --- /dev/null +++ b/lib/src/model/customer_antifraud_info_response.g.dart @@ -0,0 +1,109 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_antifraud_info_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerAntifraudInfoResponse extends CustomerAntifraudInfoResponse { + @override + final int? firstPaidAt; + @override + final int? accountCreatedAt; + + factory _$CustomerAntifraudInfoResponse( + [void Function(CustomerAntifraudInfoResponseBuilder)? updates]) => + (new CustomerAntifraudInfoResponseBuilder()..update(updates))._build(); + + _$CustomerAntifraudInfoResponse._({this.firstPaidAt, this.accountCreatedAt}) + : super._(); + + @override + CustomerAntifraudInfoResponse rebuild( + void Function(CustomerAntifraudInfoResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerAntifraudInfoResponseBuilder toBuilder() => + new CustomerAntifraudInfoResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerAntifraudInfoResponse && + firstPaidAt == other.firstPaidAt && + accountCreatedAt == other.accountCreatedAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, firstPaidAt.hashCode); + _$hash = $jc(_$hash, accountCreatedAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerAntifraudInfoResponse') + ..add('firstPaidAt', firstPaidAt) + ..add('accountCreatedAt', accountCreatedAt)) + .toString(); + } +} + +class CustomerAntifraudInfoResponseBuilder + implements + Builder { + _$CustomerAntifraudInfoResponse? _$v; + + int? _firstPaidAt; + int? get firstPaidAt => _$this._firstPaidAt; + set firstPaidAt(int? firstPaidAt) => _$this._firstPaidAt = firstPaidAt; + + int? _accountCreatedAt; + int? get accountCreatedAt => _$this._accountCreatedAt; + set accountCreatedAt(int? accountCreatedAt) => + _$this._accountCreatedAt = accountCreatedAt; + + CustomerAntifraudInfoResponseBuilder() { + CustomerAntifraudInfoResponse._defaults(this); + } + + CustomerAntifraudInfoResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _firstPaidAt = $v.firstPaidAt; + _accountCreatedAt = $v.accountCreatedAt; + _$v = null; + } + return this; + } + + @override + void replace(CustomerAntifraudInfoResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerAntifraudInfoResponse; + } + + @override + void update(void Function(CustomerAntifraudInfoResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerAntifraudInfoResponse build() => _build(); + + _$CustomerAntifraudInfoResponse _build() { + final _$result = _$v ?? + new _$CustomerAntifraudInfoResponse._( + firstPaidAt: firstPaidAt, accountCreatedAt: accountCreatedAt); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_fiscal_entities_data_response.g.dart b/lib/src/model/customer_fiscal_entities_data_response.g.dart new file mode 100644 index 0000000..e2cfc07 --- /dev/null +++ b/lib/src/model/customer_fiscal_entities_data_response.g.dart @@ -0,0 +1,257 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_fiscal_entities_data_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerFiscalEntitiesDataResponse + extends CustomerFiscalEntitiesDataResponse { + @override + final int createdAt; + @override + final bool? default_; + @override + final String id; + @override + final String? parentId; + @override + final String object; + @override + final CustomerAddress address; + @override + final String? taxId; + @override + final String? email; + @override + final String? phone; + @override + final BuiltMap? metadata; + @override + final String? companyName; + + factory _$CustomerFiscalEntitiesDataResponse( + [void Function(CustomerFiscalEntitiesDataResponseBuilder)? + updates]) => + (new CustomerFiscalEntitiesDataResponseBuilder()..update(updates)) + ._build(); + + _$CustomerFiscalEntitiesDataResponse._( + {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}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'CustomerFiscalEntitiesDataResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'CustomerFiscalEntitiesDataResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomerFiscalEntitiesDataResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + address, r'CustomerFiscalEntitiesDataResponse', 'address'); + } + + @override + CustomerFiscalEntitiesDataResponse rebuild( + void Function(CustomerFiscalEntitiesDataResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerFiscalEntitiesDataResponseBuilder toBuilder() => + new CustomerFiscalEntitiesDataResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerFiscalEntitiesDataResponse && + 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; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, companyName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerFiscalEntitiesDataResponse') + ..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)) + .toString(); + } +} + +class CustomerFiscalEntitiesDataResponseBuilder + implements + Builder, + CustomerFiscalEntitiesRequestBuilder { + _$CustomerFiscalEntitiesDataResponse? _$v; + + 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; + String? get taxId => _$this._taxId; + set taxId(covariant String? taxId) => _$this._taxId = taxId; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _companyName; + String? get companyName => _$this._companyName; + set companyName(covariant String? companyName) => + _$this._companyName = companyName; + + CustomerFiscalEntitiesDataResponseBuilder() { + CustomerFiscalEntitiesDataResponse._defaults(this); + } + + CustomerFiscalEntitiesDataResponseBuilder 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; + _$v = null; + } + return this; + } + + @override + void replace(covariant CustomerFiscalEntitiesDataResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerFiscalEntitiesDataResponse; + } + + @override + void update( + void Function(CustomerFiscalEntitiesDataResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerFiscalEntitiesDataResponse build() => _build(); + + _$CustomerFiscalEntitiesDataResponse _build() { + _$CustomerFiscalEntitiesDataResponse _$result; + 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'), + address: address.build(), + taxId: taxId, + email: email, + phone: phone, + metadata: _metadata?.build(), + companyName: companyName); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerFiscalEntitiesDataResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_fiscal_entities_request.g.dart b/lib/src/model/customer_fiscal_entities_request.g.dart new file mode 100644 index 0000000..c3e6c3b --- /dev/null +++ b/lib/src/model/customer_fiscal_entities_request.g.dart @@ -0,0 +1,206 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_fiscal_entities_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class CustomerFiscalEntitiesRequestBuilder { + void replace(CustomerFiscalEntitiesRequest other); + void update(void Function(CustomerFiscalEntitiesRequestBuilder) updates); + CustomerAddressBuilder get address; + set address(CustomerAddressBuilder? address); + + String? get taxId; + set taxId(String? taxId); + + String? get email; + set email(String? email); + + String? get phone; + set phone(String? phone); + + MapBuilder get metadata; + set metadata(MapBuilder? metadata); + + String? get companyName; + set companyName(String? companyName); +} + +class _$$CustomerFiscalEntitiesRequest extends $CustomerFiscalEntitiesRequest { + @override + final CustomerAddress address; + @override + final String? taxId; + @override + final String? email; + @override + final String? phone; + @override + final BuiltMap? metadata; + @override + final String? companyName; + + factory _$$CustomerFiscalEntitiesRequest( + [void Function($CustomerFiscalEntitiesRequestBuilder)? updates]) => + (new $CustomerFiscalEntitiesRequestBuilder()..update(updates))._build(); + + _$$CustomerFiscalEntitiesRequest._( + {required this.address, + this.taxId, + this.email, + this.phone, + this.metadata, + this.companyName}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + address, r'$CustomerFiscalEntitiesRequest', 'address'); + } + + @override + $CustomerFiscalEntitiesRequest rebuild( + void Function($CustomerFiscalEntitiesRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $CustomerFiscalEntitiesRequestBuilder toBuilder() => + new $CustomerFiscalEntitiesRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $CustomerFiscalEntitiesRequest && + address == other.address && + taxId == other.taxId && + email == other.email && + phone == other.phone && + metadata == other.metadata && + companyName == other.companyName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, companyName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$CustomerFiscalEntitiesRequest') + ..add('address', address) + ..add('taxId', taxId) + ..add('email', email) + ..add('phone', phone) + ..add('metadata', metadata) + ..add('companyName', companyName)) + .toString(); + } +} + +class $CustomerFiscalEntitiesRequestBuilder + implements + Builder<$CustomerFiscalEntitiesRequest, + $CustomerFiscalEntitiesRequestBuilder>, + CustomerFiscalEntitiesRequestBuilder { + _$$CustomerFiscalEntitiesRequest? _$v; + + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(covariant CustomerAddressBuilder? address) => + _$this._address = address; + + String? _taxId; + String? get taxId => _$this._taxId; + set taxId(covariant String? taxId) => _$this._taxId = taxId; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _companyName; + String? get companyName => _$this._companyName; + set companyName(covariant String? companyName) => + _$this._companyName = companyName; + + $CustomerFiscalEntitiesRequestBuilder() { + $CustomerFiscalEntitiesRequest._defaults(this); + } + + $CustomerFiscalEntitiesRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _address = $v.address.toBuilder(); + _taxId = $v.taxId; + _email = $v.email; + _phone = $v.phone; + _metadata = $v.metadata?.toBuilder(); + _companyName = $v.companyName; + _$v = null; + } + return this; + } + + @override + void replace(covariant $CustomerFiscalEntitiesRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$CustomerFiscalEntitiesRequest; + } + + @override + void update(void Function($CustomerFiscalEntitiesRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $CustomerFiscalEntitiesRequest build() => _build(); + + _$$CustomerFiscalEntitiesRequest _build() { + _$$CustomerFiscalEntitiesRequest _$result; + try { + _$result = _$v ?? + new _$$CustomerFiscalEntitiesRequest._( + address: address.build(), + taxId: taxId, + email: email, + phone: phone, + metadata: _metadata?.build(), + companyName: companyName); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$CustomerFiscalEntitiesRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_fiscal_entities_response.g.dart b/lib/src/model/customer_fiscal_entities_response.g.dart new file mode 100644 index 0000000..610ee5f --- /dev/null +++ b/lib/src/model/customer_fiscal_entities_response.g.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_fiscal_entities_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerFiscalEntitiesResponse extends CustomerFiscalEntitiesResponse { + @override + final BuiltList? data; + @override + final bool hasMore; + @override + final String object; + + factory _$CustomerFiscalEntitiesResponse( + [void Function(CustomerFiscalEntitiesResponseBuilder)? updates]) => + (new CustomerFiscalEntitiesResponseBuilder()..update(updates))._build(); + + _$CustomerFiscalEntitiesResponse._( + {this.data, required this.hasMore, required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomerFiscalEntitiesResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomerFiscalEntitiesResponse', 'object'); + } + + @override + CustomerFiscalEntitiesResponse rebuild( + void Function(CustomerFiscalEntitiesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerFiscalEntitiesResponseBuilder toBuilder() => + new CustomerFiscalEntitiesResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerFiscalEntitiesResponse && + data == other.data && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerFiscalEntitiesResponse') + ..add('data', data) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class CustomerFiscalEntitiesResponseBuilder + implements + Builder, + PaginationBuilder { + _$CustomerFiscalEntitiesResponse? _$v; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => + _$this._data = data; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + CustomerFiscalEntitiesResponseBuilder() { + CustomerFiscalEntitiesResponse._defaults(this); + } + + CustomerFiscalEntitiesResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant CustomerFiscalEntitiesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerFiscalEntitiesResponse; + } + + @override + void update(void Function(CustomerFiscalEntitiesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerFiscalEntitiesResponse build() => _build(); + + _$CustomerFiscalEntitiesResponse _build() { + _$CustomerFiscalEntitiesResponse _$result; + try { + _$result = _$v ?? + new _$CustomerFiscalEntitiesResponse._( + data: _data?.build(), + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomerFiscalEntitiesResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CustomerFiscalEntitiesResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerFiscalEntitiesResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_info.g.dart b/lib/src/model/customer_info.g.dart new file mode 100644 index 0000000..72d01da --- /dev/null +++ b/lib/src/model/customer_info.g.dart @@ -0,0 +1,149 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerInfo extends CustomerInfo { + @override + final String name; + @override + final String email; + @override + final String phone; + @override + final bool? corporate; + @override + final String? object; + + factory _$CustomerInfo([void Function(CustomerInfoBuilder)? updates]) => + (new CustomerInfoBuilder()..update(updates))._build(); + + _$CustomerInfo._( + {required this.name, + required this.email, + required this.phone, + this.corporate, + this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull(name, r'CustomerInfo', 'name'); + BuiltValueNullFieldError.checkNotNull(email, r'CustomerInfo', 'email'); + BuiltValueNullFieldError.checkNotNull(phone, r'CustomerInfo', 'phone'); + } + + @override + CustomerInfo rebuild(void Function(CustomerInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerInfoBuilder toBuilder() => new CustomerInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerInfo && + name == other.name && + email == other.email && + phone == other.phone && + corporate == other.corporate && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerInfo') + ..add('name', name) + ..add('email', email) + ..add('phone', phone) + ..add('corporate', corporate) + ..add('object', object)) + .toString(); + } +} + +class CustomerInfoBuilder + implements Builder { + _$CustomerInfo? _$v; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(bool? corporate) => _$this._corporate = corporate; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + CustomerInfoBuilder() { + CustomerInfo._defaults(this); + } + + CustomerInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _name = $v.name; + _email = $v.email; + _phone = $v.phone; + _corporate = $v.corporate; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(CustomerInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerInfo; + } + + @override + void update(void Function(CustomerInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerInfo build() => _build(); + + _$CustomerInfo _build() { + final _$result = _$v ?? + new _$CustomerInfo._( + name: BuiltValueNullFieldError.checkNotNull( + name, r'CustomerInfo', 'name'), + email: BuiltValueNullFieldError.checkNotNull( + email, r'CustomerInfo', 'email'), + phone: BuiltValueNullFieldError.checkNotNull( + phone, r'CustomerInfo', 'phone'), + corporate: corporate, + object: object); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_info_just_customer_id.g.dart b/lib/src/model/customer_info_just_customer_id.g.dart new file mode 100644 index 0000000..0bff0f6 --- /dev/null +++ b/lib/src/model/customer_info_just_customer_id.g.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_info_just_customer_id.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerInfoJustCustomerId extends CustomerInfoJustCustomerId { + @override + final String customerId; + + factory _$CustomerInfoJustCustomerId( + [void Function(CustomerInfoJustCustomerIdBuilder)? updates]) => + (new CustomerInfoJustCustomerIdBuilder()..update(updates))._build(); + + _$CustomerInfoJustCustomerId._({required this.customerId}) : super._() { + BuiltValueNullFieldError.checkNotNull( + customerId, r'CustomerInfoJustCustomerId', 'customerId'); + } + + @override + CustomerInfoJustCustomerId rebuild( + void Function(CustomerInfoJustCustomerIdBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerInfoJustCustomerIdBuilder toBuilder() => + new CustomerInfoJustCustomerIdBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerInfoJustCustomerId && + customerId == other.customerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerInfoJustCustomerId') + ..add('customerId', customerId)) + .toString(); + } +} + +class CustomerInfoJustCustomerIdBuilder + implements + Builder { + _$CustomerInfoJustCustomerId? _$v; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(String? customerId) => _$this._customerId = customerId; + + CustomerInfoJustCustomerIdBuilder() { + CustomerInfoJustCustomerId._defaults(this); + } + + CustomerInfoJustCustomerIdBuilder get _$this { + final $v = _$v; + if ($v != null) { + _customerId = $v.customerId; + _$v = null; + } + return this; + } + + @override + void replace(CustomerInfoJustCustomerId other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerInfoJustCustomerId; + } + + @override + void update(void Function(CustomerInfoJustCustomerIdBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerInfoJustCustomerId build() => _build(); + + _$CustomerInfoJustCustomerId _build() { + final _$result = _$v ?? + new _$CustomerInfoJustCustomerId._( + customerId: BuiltValueNullFieldError.checkNotNull( + customerId, r'CustomerInfoJustCustomerId', 'customerId')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_info_just_customer_id_response.g.dart b/lib/src/model/customer_info_just_customer_id_response.g.dart new file mode 100644 index 0000000..b32ccd7 --- /dev/null +++ b/lib/src/model/customer_info_just_customer_id_response.g.dart @@ -0,0 +1,109 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_info_just_customer_id_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class CustomerInfoJustCustomerIdResponseBuilder { + void replace(CustomerInfoJustCustomerIdResponse other); + void update(void Function(CustomerInfoJustCustomerIdResponseBuilder) updates); + String? get customerId; + set customerId(String? customerId); +} + +class _$$CustomerInfoJustCustomerIdResponse + extends $CustomerInfoJustCustomerIdResponse { + @override + final String? customerId; + + factory _$$CustomerInfoJustCustomerIdResponse( + [void Function($CustomerInfoJustCustomerIdResponseBuilder)? + updates]) => + (new $CustomerInfoJustCustomerIdResponseBuilder()..update(updates)) + ._build(); + + _$$CustomerInfoJustCustomerIdResponse._({this.customerId}) : super._(); + + @override + $CustomerInfoJustCustomerIdResponse rebuild( + void Function($CustomerInfoJustCustomerIdResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $CustomerInfoJustCustomerIdResponseBuilder toBuilder() => + new $CustomerInfoJustCustomerIdResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $CustomerInfoJustCustomerIdResponse && + customerId == other.customerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$CustomerInfoJustCustomerIdResponse') + ..add('customerId', customerId)) + .toString(); + } +} + +class $CustomerInfoJustCustomerIdResponseBuilder + implements + Builder<$CustomerInfoJustCustomerIdResponse, + $CustomerInfoJustCustomerIdResponseBuilder>, + CustomerInfoJustCustomerIdResponseBuilder { + _$$CustomerInfoJustCustomerIdResponse? _$v; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(covariant String? customerId) => + _$this._customerId = customerId; + + $CustomerInfoJustCustomerIdResponseBuilder() { + $CustomerInfoJustCustomerIdResponse._defaults(this); + } + + $CustomerInfoJustCustomerIdResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _customerId = $v.customerId; + _$v = null; + } + return this; + } + + @override + void replace(covariant $CustomerInfoJustCustomerIdResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$CustomerInfoJustCustomerIdResponse; + } + + @override + void update( + void Function($CustomerInfoJustCustomerIdResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $CustomerInfoJustCustomerIdResponse build() => _build(); + + _$$CustomerInfoJustCustomerIdResponse _build() { + final _$result = _$v ?? + new _$$CustomerInfoJustCustomerIdResponse._(customerId: customerId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_method_request.g.dart b/lib/src/model/customer_payment_method_request.g.dart new file mode 100644 index 0000000..c457707 --- /dev/null +++ b/lib/src/model/customer_payment_method_request.g.dart @@ -0,0 +1,108 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_payment_method_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class CustomerPaymentMethodRequestBuilder { + void replace(CustomerPaymentMethodRequest other); + void update(void Function(CustomerPaymentMethodRequestBuilder) updates); + String? get type; + set type(String? type); +} + +class _$$CustomerPaymentMethodRequest extends $CustomerPaymentMethodRequest { + @override + final String type; + + factory _$$CustomerPaymentMethodRequest( + [void Function($CustomerPaymentMethodRequestBuilder)? updates]) => + (new $CustomerPaymentMethodRequestBuilder()..update(updates))._build(); + + _$$CustomerPaymentMethodRequest._({required this.type}) : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'$CustomerPaymentMethodRequest', 'type'); + } + + @override + $CustomerPaymentMethodRequest rebuild( + void Function($CustomerPaymentMethodRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $CustomerPaymentMethodRequestBuilder toBuilder() => + new $CustomerPaymentMethodRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $CustomerPaymentMethodRequest && type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$CustomerPaymentMethodRequest') + ..add('type', type)) + .toString(); + } +} + +class $CustomerPaymentMethodRequestBuilder + implements + Builder<$CustomerPaymentMethodRequest, + $CustomerPaymentMethodRequestBuilder>, + CustomerPaymentMethodRequestBuilder { + _$$CustomerPaymentMethodRequest? _$v; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + $CustomerPaymentMethodRequestBuilder() { + $CustomerPaymentMethodRequest._defaults(this); + } + + $CustomerPaymentMethodRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant $CustomerPaymentMethodRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$CustomerPaymentMethodRequest; + } + + @override + void update(void Function($CustomerPaymentMethodRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $CustomerPaymentMethodRequest build() => _build(); + + _$$CustomerPaymentMethodRequest _build() { + final _$result = _$v ?? + new _$$CustomerPaymentMethodRequest._( + type: BuiltValueNullFieldError.checkNotNull( + type, r'$CustomerPaymentMethodRequest', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_methods_data.g.dart b/lib/src/model/customer_payment_methods_data.g.dart new file mode 100644 index 0000000..c4de883 --- /dev/null +++ b/lib/src/model/customer_payment_methods_data.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_payment_methods_data.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerPaymentMethodsData extends CustomerPaymentMethodsData { + @override + final OneOf oneOf; + + factory _$CustomerPaymentMethodsData( + [void Function(CustomerPaymentMethodsDataBuilder)? updates]) => + (new CustomerPaymentMethodsDataBuilder()..update(updates))._build(); + + _$CustomerPaymentMethodsData._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'CustomerPaymentMethodsData', 'oneOf'); + } + + @override + CustomerPaymentMethodsData rebuild( + void Function(CustomerPaymentMethodsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerPaymentMethodsDataBuilder toBuilder() => + new CustomerPaymentMethodsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerPaymentMethodsData && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerPaymentMethodsData') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class CustomerPaymentMethodsDataBuilder + implements + Builder { + _$CustomerPaymentMethodsData? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + CustomerPaymentMethodsDataBuilder() { + CustomerPaymentMethodsData._defaults(this); + } + + CustomerPaymentMethodsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(CustomerPaymentMethodsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerPaymentMethodsData; + } + + @override + void update(void Function(CustomerPaymentMethodsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerPaymentMethodsData build() => _build(); + + _$CustomerPaymentMethodsData _build() { + final _$result = _$v ?? + new _$CustomerPaymentMethodsData._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'CustomerPaymentMethodsData', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_methods_request.g.dart b/lib/src/model/customer_payment_methods_request.g.dart new file mode 100644 index 0000000..11831f2 --- /dev/null +++ b/lib/src/model/customer_payment_methods_request.g.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_payment_methods_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerPaymentMethodsRequest extends CustomerPaymentMethodsRequest { + @override + final OneOf oneOf; + + factory _$CustomerPaymentMethodsRequest( + [void Function(CustomerPaymentMethodsRequestBuilder)? updates]) => + (new CustomerPaymentMethodsRequestBuilder()..update(updates))._build(); + + _$CustomerPaymentMethodsRequest._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'CustomerPaymentMethodsRequest', 'oneOf'); + } + + @override + CustomerPaymentMethodsRequest rebuild( + void Function(CustomerPaymentMethodsRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerPaymentMethodsRequestBuilder toBuilder() => + new CustomerPaymentMethodsRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerPaymentMethodsRequest && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerPaymentMethodsRequest') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class CustomerPaymentMethodsRequestBuilder + implements + Builder { + _$CustomerPaymentMethodsRequest? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + CustomerPaymentMethodsRequestBuilder() { + CustomerPaymentMethodsRequest._defaults(this); + } + + CustomerPaymentMethodsRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(CustomerPaymentMethodsRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerPaymentMethodsRequest; + } + + @override + void update(void Function(CustomerPaymentMethodsRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerPaymentMethodsRequest build() => _build(); + + _$CustomerPaymentMethodsRequest _build() { + final _$result = _$v ?? + new _$CustomerPaymentMethodsRequest._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'CustomerPaymentMethodsRequest', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_payment_methods_response.g.dart b/lib/src/model/customer_payment_methods_response.g.dart new file mode 100644 index 0000000..465ab95 --- /dev/null +++ b/lib/src/model/customer_payment_methods_response.g.dart @@ -0,0 +1,174 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_payment_methods_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerPaymentMethodsResponse extends CustomerPaymentMethodsResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$CustomerPaymentMethodsResponse( + [void Function(CustomerPaymentMethodsResponseBuilder)? updates]) => + (new CustomerPaymentMethodsResponseBuilder()..update(updates))._build(); + + _$CustomerPaymentMethodsResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomerPaymentMethodsResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomerPaymentMethodsResponse', 'object'); + } + + @override + CustomerPaymentMethodsResponse rebuild( + void Function(CustomerPaymentMethodsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerPaymentMethodsResponseBuilder toBuilder() => + new CustomerPaymentMethodsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerPaymentMethodsResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerPaymentMethodsResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class CustomerPaymentMethodsResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$CustomerPaymentMethodsResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + CustomerPaymentMethodsResponseBuilder() { + CustomerPaymentMethodsResponse._defaults(this); + } + + CustomerPaymentMethodsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant CustomerPaymentMethodsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerPaymentMethodsResponse; + } + + @override + void update(void Function(CustomerPaymentMethodsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerPaymentMethodsResponse build() => _build(); + + _$CustomerPaymentMethodsResponse _build() { + _$CustomerPaymentMethodsResponse _$result; + try { + _$result = _$v ?? + new _$CustomerPaymentMethodsResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomerPaymentMethodsResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CustomerPaymentMethodsResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerPaymentMethodsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_response.g.dart b/lib/src/model/customer_response.g.dart new file mode 100644 index 0000000..8686bad --- /dev/null +++ b/lib/src/model/customer_response.g.dart @@ -0,0 +1,383 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerResponse extends CustomerResponse { + @override + final CustomerAntifraudInfoResponse? antifraudInfo; + @override + final bool? corporate; + @override + final int createdAt; + @override + final String? customReference; + @override + final String? dateOfBirth; + @override + final String? defaultFiscalEntityId; + @override + final String? defaultShippingContactId; + @override + final String? defaultPaymentSourceId; + @override + final String? email; + @override + final CustomerFiscalEntitiesResponse? fiscalEntities; + @override + final String id; + @override + final bool livemode; + @override + final String name; + @override + final String? nationalId; + @override + final BuiltMap? metadata; + @override + final String object; + @override + final CustomerPaymentMethodsResponse? paymentSources; + @override + final String? phone; + @override + final CustomerResponseShippingContacts? shippingContacts; + @override + final SubscriptionResponse? subscription; + + factory _$CustomerResponse( + [void Function(CustomerResponseBuilder)? updates]) => + (new CustomerResponseBuilder()..update(updates))._build(); + + _$CustomerResponse._( + {this.antifraudInfo, + this.corporate, + required this.createdAt, + this.customReference, + this.dateOfBirth, + this.defaultFiscalEntityId, + this.defaultShippingContactId, + this.defaultPaymentSourceId, + this.email, + this.fiscalEntities, + required this.id, + required this.livemode, + required this.name, + this.nationalId, + this.metadata, + required this.object, + this.paymentSources, + this.phone, + this.shippingContacts, + this.subscription}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'CustomerResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull(id, r'CustomerResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + livemode, r'CustomerResponse', 'livemode'); + BuiltValueNullFieldError.checkNotNull(name, r'CustomerResponse', 'name'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomerResponse', 'object'); + } + + @override + CustomerResponse rebuild(void Function(CustomerResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerResponseBuilder toBuilder() => + new CustomerResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerResponse && + antifraudInfo == other.antifraudInfo && + corporate == other.corporate && + createdAt == other.createdAt && + customReference == other.customReference && + dateOfBirth == other.dateOfBirth && + defaultFiscalEntityId == other.defaultFiscalEntityId && + defaultShippingContactId == other.defaultShippingContactId && + defaultPaymentSourceId == other.defaultPaymentSourceId && + email == other.email && + fiscalEntities == other.fiscalEntities && + id == other.id && + livemode == other.livemode && + name == other.name && + nationalId == other.nationalId && + metadata == other.metadata && + object == other.object && + paymentSources == other.paymentSources && + phone == other.phone && + shippingContacts == other.shippingContacts && + subscription == other.subscription; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, customReference.hashCode); + _$hash = $jc(_$hash, dateOfBirth.hashCode); + _$hash = $jc(_$hash, defaultFiscalEntityId.hashCode); + _$hash = $jc(_$hash, defaultShippingContactId.hashCode); + _$hash = $jc(_$hash, defaultPaymentSourceId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, fiscalEntities.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, nationalId.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, paymentSources.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, shippingContacts.hashCode); + _$hash = $jc(_$hash, subscription.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerResponse') + ..add('antifraudInfo', antifraudInfo) + ..add('corporate', corporate) + ..add('createdAt', createdAt) + ..add('customReference', customReference) + ..add('dateOfBirth', dateOfBirth) + ..add('defaultFiscalEntityId', defaultFiscalEntityId) + ..add('defaultShippingContactId', defaultShippingContactId) + ..add('defaultPaymentSourceId', defaultPaymentSourceId) + ..add('email', email) + ..add('fiscalEntities', fiscalEntities) + ..add('id', id) + ..add('livemode', livemode) + ..add('name', name) + ..add('nationalId', nationalId) + ..add('metadata', metadata) + ..add('object', object) + ..add('paymentSources', paymentSources) + ..add('phone', phone) + ..add('shippingContacts', shippingContacts) + ..add('subscription', subscription)) + .toString(); + } +} + +class CustomerResponseBuilder + implements Builder { + _$CustomerResponse? _$v; + + CustomerAntifraudInfoResponseBuilder? _antifraudInfo; + CustomerAntifraudInfoResponseBuilder get antifraudInfo => + _$this._antifraudInfo ??= new CustomerAntifraudInfoResponseBuilder(); + set antifraudInfo(CustomerAntifraudInfoResponseBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(bool? corporate) => _$this._corporate = corporate; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _customReference; + String? get customReference => _$this._customReference; + set customReference(String? customReference) => + _$this._customReference = customReference; + + String? _dateOfBirth; + String? get dateOfBirth => _$this._dateOfBirth; + set dateOfBirth(String? dateOfBirth) => _$this._dateOfBirth = dateOfBirth; + + String? _defaultFiscalEntityId; + String? get defaultFiscalEntityId => _$this._defaultFiscalEntityId; + set defaultFiscalEntityId(String? defaultFiscalEntityId) => + _$this._defaultFiscalEntityId = defaultFiscalEntityId; + + String? _defaultShippingContactId; + String? get defaultShippingContactId => _$this._defaultShippingContactId; + set defaultShippingContactId(String? defaultShippingContactId) => + _$this._defaultShippingContactId = defaultShippingContactId; + + String? _defaultPaymentSourceId; + String? get defaultPaymentSourceId => _$this._defaultPaymentSourceId; + set defaultPaymentSourceId(String? defaultPaymentSourceId) => + _$this._defaultPaymentSourceId = defaultPaymentSourceId; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + CustomerFiscalEntitiesResponseBuilder? _fiscalEntities; + CustomerFiscalEntitiesResponseBuilder get fiscalEntities => + _$this._fiscalEntities ??= new CustomerFiscalEntitiesResponseBuilder(); + set fiscalEntities(CustomerFiscalEntitiesResponseBuilder? fiscalEntities) => + _$this._fiscalEntities = fiscalEntities; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _nationalId; + String? get nationalId => _$this._nationalId; + set nationalId(String? nationalId) => _$this._nationalId = nationalId; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + CustomerPaymentMethodsResponseBuilder? _paymentSources; + CustomerPaymentMethodsResponseBuilder get paymentSources => + _$this._paymentSources ??= new CustomerPaymentMethodsResponseBuilder(); + set paymentSources(CustomerPaymentMethodsResponseBuilder? paymentSources) => + _$this._paymentSources = paymentSources; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + CustomerResponseShippingContactsBuilder? _shippingContacts; + CustomerResponseShippingContactsBuilder get shippingContacts => + _$this._shippingContacts ??= + new CustomerResponseShippingContactsBuilder(); + set shippingContacts( + CustomerResponseShippingContactsBuilder? shippingContacts) => + _$this._shippingContacts = shippingContacts; + + SubscriptionResponseBuilder? _subscription; + SubscriptionResponseBuilder get subscription => + _$this._subscription ??= new SubscriptionResponseBuilder(); + set subscription(SubscriptionResponseBuilder? subscription) => + _$this._subscription = subscription; + + CustomerResponseBuilder() { + CustomerResponse._defaults(this); + } + + CustomerResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _antifraudInfo = $v.antifraudInfo?.toBuilder(); + _corporate = $v.corporate; + _createdAt = $v.createdAt; + _customReference = $v.customReference; + _dateOfBirth = $v.dateOfBirth; + _defaultFiscalEntityId = $v.defaultFiscalEntityId; + _defaultShippingContactId = $v.defaultShippingContactId; + _defaultPaymentSourceId = $v.defaultPaymentSourceId; + _email = $v.email; + _fiscalEntities = $v.fiscalEntities?.toBuilder(); + _id = $v.id; + _livemode = $v.livemode; + _name = $v.name; + _nationalId = $v.nationalId; + _metadata = $v.metadata?.toBuilder(); + _object = $v.object; + _paymentSources = $v.paymentSources?.toBuilder(); + _phone = $v.phone; + _shippingContacts = $v.shippingContacts?.toBuilder(); + _subscription = $v.subscription?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(CustomerResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerResponse; + } + + @override + void update(void Function(CustomerResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerResponse build() => _build(); + + _$CustomerResponse _build() { + _$CustomerResponse _$result; + try { + _$result = _$v ?? + new _$CustomerResponse._( + antifraudInfo: _antifraudInfo?.build(), + corporate: corporate, + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'CustomerResponse', 'createdAt'), + customReference: customReference, + dateOfBirth: dateOfBirth, + defaultFiscalEntityId: defaultFiscalEntityId, + defaultShippingContactId: defaultShippingContactId, + defaultPaymentSourceId: defaultPaymentSourceId, + email: email, + fiscalEntities: _fiscalEntities?.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'CustomerResponse', 'id'), + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'CustomerResponse', 'livemode'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'CustomerResponse', 'name'), + nationalId: nationalId, + metadata: _metadata?.build(), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CustomerResponse', 'object'), + paymentSources: _paymentSources?.build(), + phone: phone, + shippingContacts: _shippingContacts?.build(), + subscription: _subscription?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'fiscalEntities'; + _fiscalEntities?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'paymentSources'; + _paymentSources?.build(); + + _$failedField = 'shippingContacts'; + _shippingContacts?.build(); + _$failedField = 'subscription'; + _subscription?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_response_shipping_contacts.g.dart b/lib/src/model/customer_response_shipping_contacts.g.dart new file mode 100644 index 0000000..18f4f4a --- /dev/null +++ b/lib/src/model/customer_response_shipping_contacts.g.dart @@ -0,0 +1,145 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_response_shipping_contacts.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerResponseShippingContacts + extends CustomerResponseShippingContacts { + @override + final BuiltList? data; + @override + final bool hasMore; + @override + final String object; + + factory _$CustomerResponseShippingContacts( + [void Function(CustomerResponseShippingContactsBuilder)? updates]) => + (new CustomerResponseShippingContactsBuilder()..update(updates))._build(); + + _$CustomerResponseShippingContacts._( + {this.data, required this.hasMore, required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomerResponseShippingContacts', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomerResponseShippingContacts', 'object'); + } + + @override + CustomerResponseShippingContacts rebuild( + void Function(CustomerResponseShippingContactsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerResponseShippingContactsBuilder toBuilder() => + new CustomerResponseShippingContactsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerResponseShippingContacts && + data == other.data && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerResponseShippingContacts') + ..add('data', data) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class CustomerResponseShippingContactsBuilder + implements + Builder, + PaginationBuilder { + _$CustomerResponseShippingContacts? _$v; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => + _$this._data = data; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + CustomerResponseShippingContactsBuilder() { + CustomerResponseShippingContacts._defaults(this); + } + + CustomerResponseShippingContactsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant CustomerResponseShippingContacts other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerResponseShippingContacts; + } + + @override + void update(void Function(CustomerResponseShippingContactsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerResponseShippingContacts build() => _build(); + + _$CustomerResponseShippingContacts _build() { + _$CustomerResponseShippingContacts _$result; + try { + _$result = _$v ?? + new _$CustomerResponseShippingContacts._( + data: _data?.build(), + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomerResponseShippingContacts', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CustomerResponseShippingContacts', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerResponseShippingContacts', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts.g.dart b/lib/src/model/customer_shipping_contacts.g.dart new file mode 100644 index 0000000..1a5317e --- /dev/null +++ b/lib/src/model/customer_shipping_contacts.g.dart @@ -0,0 +1,235 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_shipping_contacts.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class CustomerShippingContactsBuilder { + void replace(CustomerShippingContacts other); + void update(void Function(CustomerShippingContactsBuilder) updates); + String? get phone; + set phone(String? phone); + + String? get receiver; + set receiver(String? receiver); + + String? get betweenStreets; + set betweenStreets(String? betweenStreets); + + CustomerShippingContactsAddressBuilder get address; + set address(CustomerShippingContactsAddressBuilder? address); + + String? get parentId; + set parentId(String? parentId); + + bool? get default_; + set default_(bool? default_); + + bool? get deleted; + set deleted(bool? deleted); + + MapBuilder get metadata; + set metadata(MapBuilder? metadata); +} + +class _$$CustomerShippingContacts extends $CustomerShippingContacts { + @override + final String? phone; + @override + final String? receiver; + @override + final String? betweenStreets; + @override + final CustomerShippingContactsAddress address; + @override + final String? parentId; + @override + final bool? default_; + @override + final bool? deleted; + @override + final BuiltMap? metadata; + + factory _$$CustomerShippingContacts( + [void Function($CustomerShippingContactsBuilder)? updates]) => + (new $CustomerShippingContactsBuilder()..update(updates))._build(); + + _$$CustomerShippingContacts._( + {this.phone, + this.receiver, + this.betweenStreets, + required this.address, + this.parentId, + this.default_, + this.deleted, + this.metadata}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + address, r'$CustomerShippingContacts', 'address'); + } + + @override + $CustomerShippingContacts rebuild( + void Function($CustomerShippingContactsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $CustomerShippingContactsBuilder toBuilder() => + new $CustomerShippingContactsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $CustomerShippingContacts && + phone == other.phone && + receiver == other.receiver && + betweenStreets == other.betweenStreets && + address == other.address && + parentId == other.parentId && + default_ == other.default_ && + deleted == other.deleted && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, receiver.hashCode); + _$hash = $jc(_$hash, betweenStreets.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$CustomerShippingContacts') + ..add('phone', phone) + ..add('receiver', receiver) + ..add('betweenStreets', betweenStreets) + ..add('address', address) + ..add('parentId', parentId) + ..add('default_', default_) + ..add('deleted', deleted) + ..add('metadata', metadata)) + .toString(); + } +} + +class $CustomerShippingContactsBuilder + implements + Builder<$CustomerShippingContacts, $CustomerShippingContactsBuilder>, + CustomerShippingContactsBuilder { + _$$CustomerShippingContacts? _$v; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + String? _receiver; + String? get receiver => _$this._receiver; + set receiver(covariant String? receiver) => _$this._receiver = receiver; + + String? _betweenStreets; + String? get betweenStreets => _$this._betweenStreets; + set betweenStreets(covariant String? betweenStreets) => + _$this._betweenStreets = betweenStreets; + + CustomerShippingContactsAddressBuilder? _address; + CustomerShippingContactsAddressBuilder get address => + _$this._address ??= new CustomerShippingContactsAddressBuilder(); + set address(covariant CustomerShippingContactsAddressBuilder? address) => + _$this._address = address; + + 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_; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + $CustomerShippingContactsBuilder() { + $CustomerShippingContacts._defaults(this); + } + + $CustomerShippingContactsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _phone = $v.phone; + _receiver = $v.receiver; + _betweenStreets = $v.betweenStreets; + _address = $v.address.toBuilder(); + _parentId = $v.parentId; + _default_ = $v.default_; + _deleted = $v.deleted; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant $CustomerShippingContacts other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$CustomerShippingContacts; + } + + @override + void update(void Function($CustomerShippingContactsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $CustomerShippingContacts build() => _build(); + + _$$CustomerShippingContacts _build() { + _$$CustomerShippingContacts _$result; + try { + _$result = _$v ?? + new _$$CustomerShippingContacts._( + phone: phone, + receiver: receiver, + betweenStreets: betweenStreets, + address: address.build(), + parentId: parentId, + default_: default_, + deleted: deleted, + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$CustomerShippingContacts', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_address.g.dart b/lib/src/model/customer_shipping_contacts_address.g.dart new file mode 100644 index 0000000..041e298 --- /dev/null +++ b/lib/src/model/customer_shipping_contacts_address.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_shipping_contacts_address.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerShippingContactsAddress + extends CustomerShippingContactsAddress { + @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; + + factory _$CustomerShippingContactsAddress( + [void Function(CustomerShippingContactsAddressBuilder)? updates]) => + (new CustomerShippingContactsAddressBuilder()..update(updates))._build(); + + _$CustomerShippingContactsAddress._( + {this.street1, + this.street2, + this.postalCode, + this.city, + this.state, + this.country, + this.residential}) + : super._(); + + @override + CustomerShippingContactsAddress rebuild( + void Function(CustomerShippingContactsAddressBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerShippingContactsAddressBuilder toBuilder() => + new CustomerShippingContactsAddressBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerShippingContactsAddress && + street1 == other.street1 && + street2 == other.street2 && + postalCode == other.postalCode && + city == other.city && + state == other.state && + country == other.country && + residential == other.residential; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, street1.hashCode); + _$hash = $jc(_$hash, street2.hashCode); + _$hash = $jc(_$hash, postalCode.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, residential.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerShippingContactsAddress') + ..add('street1', street1) + ..add('street2', street2) + ..add('postalCode', postalCode) + ..add('city', city) + ..add('state', state) + ..add('country', country) + ..add('residential', residential)) + .toString(); + } +} + +class CustomerShippingContactsAddressBuilder + implements + Builder { + _$CustomerShippingContactsAddress? _$v; + + String? _street1; + String? get street1 => _$this._street1; + set street1(String? street1) => _$this._street1 = street1; + + String? _street2; + String? get street2 => _$this._street2; + set street2(String? street2) => _$this._street2 = street2; + + String? _postalCode; + String? get postalCode => _$this._postalCode; + set postalCode(String? postalCode) => _$this._postalCode = postalCode; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _state; + String? get state => _$this._state; + set state(String? state) => _$this._state = state; + + String? _country; + String? get country => _$this._country; + set country(String? country) => _$this._country = country; + + bool? _residential; + bool? get residential => _$this._residential; + set residential(bool? residential) => _$this._residential = residential; + + CustomerShippingContactsAddressBuilder() { + CustomerShippingContactsAddress._defaults(this); + } + + CustomerShippingContactsAddressBuilder 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; + _$v = null; + } + return this; + } + + @override + void replace(CustomerShippingContactsAddress other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerShippingContactsAddress; + } + + @override + void update(void Function(CustomerShippingContactsAddressBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerShippingContactsAddress build() => _build(); + + _$CustomerShippingContactsAddress _build() { + final _$result = _$v ?? + new _$CustomerShippingContactsAddress._( + street1: street1, + street2: street2, + postalCode: postalCode, + city: city, + state: state, + country: country, + residential: residential); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_data_response.g.dart b/lib/src/model/customer_shipping_contacts_data_response.g.dart new file mode 100644 index 0000000..d161f88 --- /dev/null +++ b/lib/src/model/customer_shipping_contacts_data_response.g.dart @@ -0,0 +1,259 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_shipping_contacts_data_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerShippingContactsDataResponse + extends CustomerShippingContactsDataResponse { + @override + final int createdAt; + @override + final String id; + @override + final String object; + @override + final String? phone; + @override + final String? receiver; + @override + final String? betweenStreets; + @override + final CustomerShippingContactsAddress address; + @override + final String? parentId; + @override + final bool? default_; + @override + final bool? deleted; + @override + final BuiltMap? metadata; + + factory _$CustomerShippingContactsDataResponse( + [void Function(CustomerShippingContactsDataResponseBuilder)? + updates]) => + (new CustomerShippingContactsDataResponseBuilder()..update(updates)) + ._build(); + + _$CustomerShippingContactsDataResponse._( + {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}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'CustomerShippingContactsDataResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'CustomerShippingContactsDataResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomerShippingContactsDataResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + address, r'CustomerShippingContactsDataResponse', 'address'); + } + + @override + CustomerShippingContactsDataResponse rebuild( + void Function(CustomerShippingContactsDataResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerShippingContactsDataResponseBuilder toBuilder() => + new CustomerShippingContactsDataResponseBuilder()..replace(this); + + @override + 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 && + address == other.address && + parentId == other.parentId && + default_ == other.default_ && + deleted == other.deleted && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, receiver.hashCode); + _$hash = $jc(_$hash, betweenStreets.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @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) + ..add('address', address) + ..add('parentId', parentId) + ..add('default_', default_) + ..add('deleted', deleted) + ..add('metadata', metadata)) + .toString(); + } +} + +class CustomerShippingContactsDataResponseBuilder + implements + Builder, + 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; + + String? _receiver; + String? get receiver => _$this._receiver; + set receiver(covariant String? receiver) => _$this._receiver = receiver; + + String? _betweenStreets; + String? get betweenStreets => _$this._betweenStreets; + set betweenStreets(covariant String? betweenStreets) => + _$this._betweenStreets = betweenStreets; + + CustomerShippingContactsAddressBuilder? _address; + CustomerShippingContactsAddressBuilder get address => + _$this._address ??= new CustomerShippingContactsAddressBuilder(); + set address(covariant CustomerShippingContactsAddressBuilder? address) => + _$this._address = address; + + 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_; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + CustomerShippingContactsDataResponseBuilder() { + CustomerShippingContactsDataResponse._defaults(this); + } + + 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; + _address = $v.address.toBuilder(); + _parentId = $v.parentId; + _default_ = $v.default_; + _deleted = $v.deleted; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant CustomerShippingContactsDataResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerShippingContactsDataResponse; + } + + @override + void update( + void Function(CustomerShippingContactsDataResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerShippingContactsDataResponse build() => _build(); + + _$CustomerShippingContactsDataResponse _build() { + _$CustomerShippingContactsDataResponse _$result; + 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, + address: address.build(), + parentId: parentId, + default_: default_, + deleted: deleted, + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerShippingContactsDataResponse', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_response.g.dart b/lib/src/model/customer_shipping_contacts_response.g.dart new file mode 100644 index 0000000..303bece --- /dev/null +++ b/lib/src/model/customer_shipping_contacts_response.g.dart @@ -0,0 +1,282 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_shipping_contacts_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class CustomerShippingContactsResponseBuilder { + void replace(CustomerShippingContactsResponse other); + void update(void Function(CustomerShippingContactsResponseBuilder) updates); + String? get phone; + set phone(String? phone); + + String? get receiver; + set receiver(String? receiver); + + String? get betweenStreets; + set betweenStreets(String? betweenStreets); + + CustomerShippingContactsResponseAddressBuilder get address; + set address(CustomerShippingContactsResponseAddressBuilder? address); + + String? get parentId; + set parentId(String? parentId); + + bool? get default_; + set default_(bool? default_); + + String? get id; + set id(String? id); + + int? get createdAt; + set createdAt(int? createdAt); + + MapBuilder get metadata; + set metadata(MapBuilder? metadata); + + String? get object; + set object(String? object); + + bool? get deleted; + set deleted(bool? deleted); +} + +class _$$CustomerShippingContactsResponse + extends $CustomerShippingContactsResponse { + @override + final String? phone; + @override + final String? receiver; + @override + final String? betweenStreets; + @override + final CustomerShippingContactsResponseAddress? address; + @override + final String? parentId; + @override + final bool? default_; + @override + final String? id; + @override + final int? createdAt; + @override + final BuiltMap? metadata; + @override + final String? object; + @override + final bool? deleted; + + factory _$$CustomerShippingContactsResponse( + [void Function($CustomerShippingContactsResponseBuilder)? updates]) => + (new $CustomerShippingContactsResponseBuilder()..update(updates)) + ._build(); + + _$$CustomerShippingContactsResponse._( + {this.phone, + this.receiver, + this.betweenStreets, + this.address, + this.parentId, + this.default_, + this.id, + this.createdAt, + this.metadata, + this.object, + this.deleted}) + : super._(); + + @override + $CustomerShippingContactsResponse rebuild( + void Function($CustomerShippingContactsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $CustomerShippingContactsResponseBuilder toBuilder() => + new $CustomerShippingContactsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $CustomerShippingContactsResponse && + phone == other.phone && + receiver == other.receiver && + betweenStreets == other.betweenStreets && + address == other.address && + parentId == other.parentId && + default_ == other.default_ && + id == other.id && + createdAt == other.createdAt && + metadata == other.metadata && + object == other.object && + deleted == other.deleted; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, receiver.hashCode); + _$hash = $jc(_$hash, betweenStreets.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$CustomerShippingContactsResponse') + ..add('phone', phone) + ..add('receiver', receiver) + ..add('betweenStreets', betweenStreets) + ..add('address', address) + ..add('parentId', parentId) + ..add('default_', default_) + ..add('id', id) + ..add('createdAt', createdAt) + ..add('metadata', metadata) + ..add('object', object) + ..add('deleted', deleted)) + .toString(); + } +} + +class $CustomerShippingContactsResponseBuilder + implements + Builder<$CustomerShippingContactsResponse, + $CustomerShippingContactsResponseBuilder>, + CustomerShippingContactsResponseBuilder { + _$$CustomerShippingContactsResponse? _$v; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + String? _receiver; + String? get receiver => _$this._receiver; + set receiver(covariant String? receiver) => _$this._receiver = receiver; + + String? _betweenStreets; + String? get betweenStreets => _$this._betweenStreets; + set betweenStreets(covariant String? betweenStreets) => + _$this._betweenStreets = betweenStreets; + + CustomerShippingContactsResponseAddressBuilder? _address; + CustomerShippingContactsResponseAddressBuilder get address => + _$this._address ??= new CustomerShippingContactsResponseAddressBuilder(); + set address( + covariant CustomerShippingContactsResponseAddressBuilder? address) => + _$this._address = address; + + 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? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + $CustomerShippingContactsResponseBuilder() { + $CustomerShippingContactsResponse._defaults(this); + } + + $CustomerShippingContactsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _phone = $v.phone; + _receiver = $v.receiver; + _betweenStreets = $v.betweenStreets; + _address = $v.address?.toBuilder(); + _parentId = $v.parentId; + _default_ = $v.default_; + _id = $v.id; + _createdAt = $v.createdAt; + _metadata = $v.metadata?.toBuilder(); + _object = $v.object; + _deleted = $v.deleted; + _$v = null; + } + return this; + } + + @override + void replace(covariant $CustomerShippingContactsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$CustomerShippingContactsResponse; + } + + @override + void update( + void Function($CustomerShippingContactsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $CustomerShippingContactsResponse build() => _build(); + + _$$CustomerShippingContactsResponse _build() { + _$$CustomerShippingContactsResponse _$result; + try { + _$result = _$v ?? + new _$$CustomerShippingContactsResponse._( + phone: phone, + receiver: receiver, + betweenStreets: betweenStreets, + address: _address?.build(), + parentId: parentId, + default_: default_, + id: id, + createdAt: createdAt, + metadata: _metadata?.build(), + object: object, + deleted: deleted); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + _address?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$CustomerShippingContactsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_shipping_contacts_response_address.g.dart b/lib/src/model/customer_shipping_contacts_response_address.g.dart new file mode 100644 index 0000000..09500d1 --- /dev/null +++ b/lib/src/model/customer_shipping_contacts_response_address.g.dart @@ -0,0 +1,189 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_shipping_contacts_response_address.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerShippingContactsResponseAddress + extends CustomerShippingContactsResponseAddress { + @override + final String? object; + @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; + + factory _$CustomerShippingContactsResponseAddress( + [void Function(CustomerShippingContactsResponseAddressBuilder)? + updates]) => + (new CustomerShippingContactsResponseAddressBuilder()..update(updates)) + ._build(); + + _$CustomerShippingContactsResponseAddress._( + {this.object, + this.street1, + this.street2, + this.postalCode, + this.city, + this.state, + this.country, + this.residential}) + : super._(); + + @override + CustomerShippingContactsResponseAddress rebuild( + void Function(CustomerShippingContactsResponseAddressBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerShippingContactsResponseAddressBuilder toBuilder() => + new CustomerShippingContactsResponseAddressBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerShippingContactsResponseAddress && + object == other.object && + street1 == other.street1 && + street2 == other.street2 && + postalCode == other.postalCode && + city == other.city && + state == other.state && + country == other.country && + residential == other.residential; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, street1.hashCode); + _$hash = $jc(_$hash, street2.hashCode); + _$hash = $jc(_$hash, postalCode.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, residential.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'CustomerShippingContactsResponseAddress') + ..add('object', object) + ..add('street1', street1) + ..add('street2', street2) + ..add('postalCode', postalCode) + ..add('city', city) + ..add('state', state) + ..add('country', country) + ..add('residential', residential)) + .toString(); + } +} + +class CustomerShippingContactsResponseAddressBuilder + implements + Builder { + _$CustomerShippingContactsResponseAddress? _$v; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _street1; + String? get street1 => _$this._street1; + set street1(String? street1) => _$this._street1 = street1; + + String? _street2; + String? get street2 => _$this._street2; + set street2(String? street2) => _$this._street2 = street2; + + String? _postalCode; + String? get postalCode => _$this._postalCode; + set postalCode(String? postalCode) => _$this._postalCode = postalCode; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _state; + String? get state => _$this._state; + set state(String? state) => _$this._state = state; + + String? _country; + String? get country => _$this._country; + set country(String? country) => _$this._country = country; + + bool? _residential; + bool? get residential => _$this._residential; + set residential(bool? residential) => _$this._residential = residential; + + CustomerShippingContactsResponseAddressBuilder() { + CustomerShippingContactsResponseAddress._defaults(this); + } + + CustomerShippingContactsResponseAddressBuilder get _$this { + final $v = _$v; + if ($v != null) { + _object = $v.object; + _street1 = $v.street1; + _street2 = $v.street2; + _postalCode = $v.postalCode; + _city = $v.city; + _state = $v.state; + _country = $v.country; + _residential = $v.residential; + _$v = null; + } + return this; + } + + @override + void replace(CustomerShippingContactsResponseAddress other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerShippingContactsResponseAddress; + } + + @override + void update( + void Function(CustomerShippingContactsResponseAddressBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerShippingContactsResponseAddress build() => _build(); + + _$CustomerShippingContactsResponseAddress _build() { + final _$result = _$v ?? + new _$CustomerShippingContactsResponseAddress._( + object: object, + street1: street1, + street2: street2, + postalCode: postalCode, + city: city, + state: state, + country: country, + residential: residential); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_update_fiscal_entities_request.g.dart b/lib/src/model/customer_update_fiscal_entities_request.g.dart new file mode 100644 index 0000000..8509f67 --- /dev/null +++ b/lib/src/model/customer_update_fiscal_entities_request.g.dart @@ -0,0 +1,184 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_update_fiscal_entities_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerUpdateFiscalEntitiesRequest + extends CustomerUpdateFiscalEntitiesRequest { + @override + final CustomerAddress? address; + @override + final String? taxId; + @override + final String? email; + @override + final String? phone; + @override + final BuiltMap? metadata; + @override + final String? companyName; + + factory _$CustomerUpdateFiscalEntitiesRequest( + [void Function(CustomerUpdateFiscalEntitiesRequestBuilder)? + updates]) => + (new CustomerUpdateFiscalEntitiesRequestBuilder()..update(updates)) + ._build(); + + _$CustomerUpdateFiscalEntitiesRequest._( + {this.address, + this.taxId, + this.email, + this.phone, + this.metadata, + this.companyName}) + : super._(); + + @override + CustomerUpdateFiscalEntitiesRequest rebuild( + void Function(CustomerUpdateFiscalEntitiesRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerUpdateFiscalEntitiesRequestBuilder toBuilder() => + new CustomerUpdateFiscalEntitiesRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerUpdateFiscalEntitiesRequest && + address == other.address && + taxId == other.taxId && + email == other.email && + phone == other.phone && + metadata == other.metadata && + companyName == other.companyName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, companyName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerUpdateFiscalEntitiesRequest') + ..add('address', address) + ..add('taxId', taxId) + ..add('email', email) + ..add('phone', phone) + ..add('metadata', metadata) + ..add('companyName', companyName)) + .toString(); + } +} + +class CustomerUpdateFiscalEntitiesRequestBuilder + implements + Builder { + _$CustomerUpdateFiscalEntitiesRequest? _$v; + + CustomerAddressBuilder? _address; + CustomerAddressBuilder get address => + _$this._address ??= new CustomerAddressBuilder(); + set address(CustomerAddressBuilder? address) => _$this._address = address; + + String? _taxId; + String? get taxId => _$this._taxId; + set taxId(String? taxId) => _$this._taxId = taxId; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _companyName; + String? get companyName => _$this._companyName; + set companyName(String? companyName) => _$this._companyName = companyName; + + CustomerUpdateFiscalEntitiesRequestBuilder() { + CustomerUpdateFiscalEntitiesRequest._defaults(this); + } + + CustomerUpdateFiscalEntitiesRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _address = $v.address?.toBuilder(); + _taxId = $v.taxId; + _email = $v.email; + _phone = $v.phone; + _metadata = $v.metadata?.toBuilder(); + _companyName = $v.companyName; + _$v = null; + } + return this; + } + + @override + void replace(CustomerUpdateFiscalEntitiesRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerUpdateFiscalEntitiesRequest; + } + + @override + void update( + void Function(CustomerUpdateFiscalEntitiesRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerUpdateFiscalEntitiesRequest build() => _build(); + + _$CustomerUpdateFiscalEntitiesRequest _build() { + _$CustomerUpdateFiscalEntitiesRequest _$result; + try { + _$result = _$v ?? + new _$CustomerUpdateFiscalEntitiesRequest._( + address: _address?.build(), + taxId: taxId, + email: email, + phone: phone, + metadata: _metadata?.build(), + companyName: companyName); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + _address?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerUpdateFiscalEntitiesRequest', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customer_update_shipping_contacts.g.dart b/lib/src/model/customer_update_shipping_contacts.g.dart new file mode 100644 index 0000000..7b5987a --- /dev/null +++ b/lib/src/model/customer_update_shipping_contacts.g.dart @@ -0,0 +1,187 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customer_update_shipping_contacts.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomerUpdateShippingContacts extends CustomerUpdateShippingContacts { + @override + final String? phone; + @override + final String? receiver; + @override + final String? betweenStreets; + @override + final CustomerShippingContactsAddress? address; + @override + final String? parentId; + @override + final bool? default_; + @override + final bool? deleted; + + factory _$CustomerUpdateShippingContacts( + [void Function(CustomerUpdateShippingContactsBuilder)? updates]) => + (new CustomerUpdateShippingContactsBuilder()..update(updates))._build(); + + _$CustomerUpdateShippingContacts._( + {this.phone, + this.receiver, + this.betweenStreets, + this.address, + this.parentId, + this.default_, + this.deleted}) + : super._(); + + @override + CustomerUpdateShippingContacts rebuild( + void Function(CustomerUpdateShippingContactsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomerUpdateShippingContactsBuilder toBuilder() => + new CustomerUpdateShippingContactsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomerUpdateShippingContacts && + phone == other.phone && + receiver == other.receiver && + betweenStreets == other.betweenStreets && + address == other.address && + parentId == other.parentId && + default_ == other.default_ && + deleted == other.deleted; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, receiver.hashCode); + _$hash = $jc(_$hash, betweenStreets.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomerUpdateShippingContacts') + ..add('phone', phone) + ..add('receiver', receiver) + ..add('betweenStreets', betweenStreets) + ..add('address', address) + ..add('parentId', parentId) + ..add('default_', default_) + ..add('deleted', deleted)) + .toString(); + } +} + +class CustomerUpdateShippingContactsBuilder + implements + Builder { + _$CustomerUpdateShippingContacts? _$v; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _receiver; + String? get receiver => _$this._receiver; + set receiver(String? receiver) => _$this._receiver = receiver; + + String? _betweenStreets; + String? get betweenStreets => _$this._betweenStreets; + set betweenStreets(String? betweenStreets) => + _$this._betweenStreets = betweenStreets; + + CustomerShippingContactsAddressBuilder? _address; + CustomerShippingContactsAddressBuilder get address => + _$this._address ??= new CustomerShippingContactsAddressBuilder(); + set address(CustomerShippingContactsAddressBuilder? address) => + _$this._address = address; + + String? _parentId; + String? get parentId => _$this._parentId; + set parentId(String? parentId) => _$this._parentId = parentId; + + bool? _default_; + bool? get default_ => _$this._default_; + set default_(bool? default_) => _$this._default_ = default_; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(bool? deleted) => _$this._deleted = deleted; + + CustomerUpdateShippingContactsBuilder() { + CustomerUpdateShippingContacts._defaults(this); + } + + CustomerUpdateShippingContactsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _phone = $v.phone; + _receiver = $v.receiver; + _betweenStreets = $v.betweenStreets; + _address = $v.address?.toBuilder(); + _parentId = $v.parentId; + _default_ = $v.default_; + _deleted = $v.deleted; + _$v = null; + } + return this; + } + + @override + void replace(CustomerUpdateShippingContacts other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomerUpdateShippingContacts; + } + + @override + void update(void Function(CustomerUpdateShippingContactsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomerUpdateShippingContacts build() => _build(); + + _$CustomerUpdateShippingContacts _build() { + _$CustomerUpdateShippingContacts _$result; + try { + _$result = _$v ?? + new _$CustomerUpdateShippingContacts._( + phone: phone, + receiver: receiver, + betweenStreets: betweenStreets, + address: _address?.build(), + parentId: parentId, + default_: default_, + deleted: deleted); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + _address?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomerUpdateShippingContacts', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/customers_response.g.dart b/lib/src/model/customers_response.g.dart new file mode 100644 index 0000000..47b4937 --- /dev/null +++ b/lib/src/model/customers_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'customers_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CustomersResponse extends CustomersResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$CustomersResponse( + [void Function(CustomersResponseBuilder)? updates]) => + (new CustomersResponseBuilder()..update(updates))._build(); + + _$CustomersResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomersResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'CustomersResponse', 'object'); + } + + @override + CustomersResponse rebuild(void Function(CustomersResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CustomersResponseBuilder toBuilder() => + new CustomersResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CustomersResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CustomersResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class CustomersResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$CustomersResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + CustomersResponseBuilder() { + CustomersResponse._defaults(this); + } + + CustomersResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant CustomersResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CustomersResponse; + } + + @override + void update(void Function(CustomersResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CustomersResponse build() => _build(); + + _$CustomersResponse _build() { + _$CustomersResponse _$result; + try { + _$result = _$v ?? + new _$CustomersResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'CustomersResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'CustomersResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CustomersResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/delete_api_keys_response.g.dart b/lib/src/model/delete_api_keys_response.g.dart new file mode 100644 index 0000000..4c89b75 --- /dev/null +++ b/lib/src/model/delete_api_keys_response.g.dart @@ -0,0 +1,196 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'delete_api_keys_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$DeleteApiKeysResponse extends DeleteApiKeysResponse { + @override + final bool? active; + @override + final int? createdAt; + @override + final String? description; + @override + final bool? livemode; + @override + final String? prefix; + @override + final String? id; + @override + final String? object; + @override + final bool? deleted; + @override + final String? role; + + factory _$DeleteApiKeysResponse( + [void Function(DeleteApiKeysResponseBuilder)? updates]) => + (new DeleteApiKeysResponseBuilder()..update(updates))._build(); + + _$DeleteApiKeysResponse._( + {this.active, + this.createdAt, + this.description, + this.livemode, + this.prefix, + this.id, + this.object, + this.deleted, + this.role}) + : super._(); + + @override + DeleteApiKeysResponse rebuild( + void Function(DeleteApiKeysResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + DeleteApiKeysResponseBuilder toBuilder() => + new DeleteApiKeysResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is DeleteApiKeysResponse && + active == other.active && + createdAt == other.createdAt && + description == other.description && + livemode == other.livemode && + prefix == other.prefix && + id == other.id && + object == other.object && + deleted == other.deleted && + role == other.role; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, prefix.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'DeleteApiKeysResponse') + ..add('active', active) + ..add('createdAt', createdAt) + ..add('description', description) + ..add('livemode', livemode) + ..add('prefix', prefix) + ..add('id', id) + ..add('object', object) + ..add('deleted', deleted) + ..add('role', role)) + .toString(); + } +} + +class DeleteApiKeysResponseBuilder + implements + Builder, + ApiKeyResponseOnDeleteBuilder { + _$DeleteApiKeysResponse? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(covariant bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(covariant bool? livemode) => _$this._livemode = livemode; + + String? _prefix; + String? get prefix => _$this._prefix; + set prefix(covariant String? prefix) => _$this._prefix = prefix; + + 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; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + String? _role; + String? get role => _$this._role; + set role(covariant String? role) => _$this._role = role; + + DeleteApiKeysResponseBuilder() { + DeleteApiKeysResponse._defaults(this); + } + + DeleteApiKeysResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _createdAt = $v.createdAt; + _description = $v.description; + _livemode = $v.livemode; + _prefix = $v.prefix; + _id = $v.id; + _object = $v.object; + _deleted = $v.deleted; + _role = $v.role; + _$v = null; + } + return this; + } + + @override + void replace(covariant DeleteApiKeysResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$DeleteApiKeysResponse; + } + + @override + void update(void Function(DeleteApiKeysResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + DeleteApiKeysResponse build() => _build(); + + _$DeleteApiKeysResponse _build() { + final _$result = _$v ?? + new _$DeleteApiKeysResponse._( + active: active, + createdAt: createdAt, + description: description, + livemode: livemode, + prefix: prefix, + id: id, + object: object, + deleted: deleted, + role: role); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/deleted_blacklist_rule_response.g.dart b/lib/src/model/deleted_blacklist_rule_response.g.dart new file mode 100644 index 0000000..ad27468 --- /dev/null +++ b/lib/src/model/deleted_blacklist_rule_response.g.dart @@ -0,0 +1,129 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'deleted_blacklist_rule_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$DeletedBlacklistRuleResponse extends DeletedBlacklistRuleResponse { + @override + final String? id; + @override + final String? field; + @override + final String? value; + @override + final String? description; + + factory _$DeletedBlacklistRuleResponse( + [void Function(DeletedBlacklistRuleResponseBuilder)? updates]) => + (new DeletedBlacklistRuleResponseBuilder()..update(updates))._build(); + + _$DeletedBlacklistRuleResponse._( + {this.id, this.field, this.value, this.description}) + : super._(); + + @override + DeletedBlacklistRuleResponse rebuild( + void Function(DeletedBlacklistRuleResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + DeletedBlacklistRuleResponseBuilder toBuilder() => + new DeletedBlacklistRuleResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is DeletedBlacklistRuleResponse && + id == other.id && + field == other.field && + value == other.value && + description == other.description; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, field.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'DeletedBlacklistRuleResponse') + ..add('id', id) + ..add('field', field) + ..add('value', value) + ..add('description', description)) + .toString(); + } +} + +class DeletedBlacklistRuleResponseBuilder + implements + Builder { + _$DeletedBlacklistRuleResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _field; + String? get field => _$this._field; + set field(String? field) => _$this._field = field; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + DeletedBlacklistRuleResponseBuilder() { + DeletedBlacklistRuleResponse._defaults(this); + } + + DeletedBlacklistRuleResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _field = $v.field; + _value = $v.value; + _description = $v.description; + _$v = null; + } + return this; + } + + @override + void replace(DeletedBlacklistRuleResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$DeletedBlacklistRuleResponse; + } + + @override + void update(void Function(DeletedBlacklistRuleResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + DeletedBlacklistRuleResponse build() => _build(); + + _$DeletedBlacklistRuleResponse _build() { + final _$result = _$v ?? + new _$DeletedBlacklistRuleResponse._( + id: id, field: field, value: value, description: description); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/deleted_whitelist_rule_response.g.dart b/lib/src/model/deleted_whitelist_rule_response.g.dart new file mode 100644 index 0000000..b9cc337 --- /dev/null +++ b/lib/src/model/deleted_whitelist_rule_response.g.dart @@ -0,0 +1,129 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'deleted_whitelist_rule_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$DeletedWhitelistRuleResponse extends DeletedWhitelistRuleResponse { + @override + final String? id; + @override + final String? field; + @override + final String? value; + @override + final String? description; + + factory _$DeletedWhitelistRuleResponse( + [void Function(DeletedWhitelistRuleResponseBuilder)? updates]) => + (new DeletedWhitelistRuleResponseBuilder()..update(updates))._build(); + + _$DeletedWhitelistRuleResponse._( + {this.id, this.field, this.value, this.description}) + : super._(); + + @override + DeletedWhitelistRuleResponse rebuild( + void Function(DeletedWhitelistRuleResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + DeletedWhitelistRuleResponseBuilder toBuilder() => + new DeletedWhitelistRuleResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is DeletedWhitelistRuleResponse && + id == other.id && + field == other.field && + value == other.value && + description == other.description; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, field.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'DeletedWhitelistRuleResponse') + ..add('id', id) + ..add('field', field) + ..add('value', value) + ..add('description', description)) + .toString(); + } +} + +class DeletedWhitelistRuleResponseBuilder + implements + Builder { + _$DeletedWhitelistRuleResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _field; + String? get field => _$this._field; + set field(String? field) => _$this._field = field; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + DeletedWhitelistRuleResponseBuilder() { + DeletedWhitelistRuleResponse._defaults(this); + } + + DeletedWhitelistRuleResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _field = $v.field; + _value = $v.value; + _description = $v.description; + _$v = null; + } + return this; + } + + @override + void replace(DeletedWhitelistRuleResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$DeletedWhitelistRuleResponse; + } + + @override + void update(void Function(DeletedWhitelistRuleResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + DeletedWhitelistRuleResponse build() => _build(); + + _$DeletedWhitelistRuleResponse _build() { + final _$result = _$v ?? + new _$DeletedWhitelistRuleResponse._( + id: id, field: field, value: value, description: description); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/details.g.dart b/lib/src/model/details.g.dart new file mode 100644 index 0000000..1524310 --- /dev/null +++ b/lib/src/model/details.g.dart @@ -0,0 +1,110 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'details.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class DetailsBuilder { + void replace(Details other); + void update(void Function(DetailsBuilder) updates); + ListBuilder get details; + set details(ListBuilder? details); +} + +class _$$Details extends $Details { + @override + final BuiltList? details; + + factory _$$Details([void Function($DetailsBuilder)? updates]) => + (new $DetailsBuilder()..update(updates))._build(); + + _$$Details._({this.details}) : super._(); + + @override + $Details rebuild(void Function($DetailsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $DetailsBuilder toBuilder() => new $DetailsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $Details && details == other.details; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, details.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$Details')..add('details', details)) + .toString(); + } +} + +class $DetailsBuilder + implements Builder<$Details, $DetailsBuilder>, DetailsBuilder { + _$$Details? _$v; + + ListBuilder? _details; + ListBuilder get details => + _$this._details ??= new ListBuilder(); + set details(covariant ListBuilder? details) => + _$this._details = details; + + $DetailsBuilder() { + $Details._defaults(this); + } + + $DetailsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _details = $v.details?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant $Details other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$Details; + } + + @override + void update(void Function($DetailsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $Details build() => _build(); + + _$$Details _build() { + _$$Details _$result; + try { + _$result = _$v ?? new _$$Details._(details: _details?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'details'; + _details?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$Details', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/details_error.g.dart b/lib/src/model/details_error.g.dart new file mode 100644 index 0000000..8231273 --- /dev/null +++ b/lib/src/model/details_error.g.dart @@ -0,0 +1,126 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'details_error.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$DetailsError extends DetailsError { + @override + final String? code; + @override + final String? param; + @override + final String? message; + @override + final String? debugMessage; + + factory _$DetailsError([void Function(DetailsErrorBuilder)? updates]) => + (new DetailsErrorBuilder()..update(updates))._build(); + + _$DetailsError._({this.code, this.param, this.message, this.debugMessage}) + : super._(); + + @override + DetailsError rebuild(void Function(DetailsErrorBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + DetailsErrorBuilder toBuilder() => new DetailsErrorBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is DetailsError && + code == other.code && + param == other.param && + message == other.message && + debugMessage == other.debugMessage; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, param.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, debugMessage.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'DetailsError') + ..add('code', code) + ..add('param', param) + ..add('message', message) + ..add('debugMessage', debugMessage)) + .toString(); + } +} + +class DetailsErrorBuilder + implements Builder { + _$DetailsError? _$v; + + String? _code; + String? get code => _$this._code; + set code(String? code) => _$this._code = code; + + String? _param; + String? get param => _$this._param; + set param(String? param) => _$this._param = param; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + String? _debugMessage; + String? get debugMessage => _$this._debugMessage; + set debugMessage(String? debugMessage) => _$this._debugMessage = debugMessage; + + DetailsErrorBuilder() { + DetailsError._defaults(this); + } + + DetailsErrorBuilder get _$this { + final $v = _$v; + if ($v != null) { + _code = $v.code; + _param = $v.param; + _message = $v.message; + _debugMessage = $v.debugMessage; + _$v = null; + } + return this; + } + + @override + void replace(DetailsError other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$DetailsError; + } + + @override + void update(void Function(DetailsErrorBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + DetailsError build() => _build(); + + _$DetailsError _build() { + final _$result = _$v ?? + new _$DetailsError._( + code: code, + param: param, + message: message, + debugMessage: debugMessage); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/discount_lines_data_response.g.dart b/lib/src/model/discount_lines_data_response.g.dart new file mode 100644 index 0000000..60e2ea6 --- /dev/null +++ b/lib/src/model/discount_lines_data_response.g.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'discount_lines_data_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$DiscountLinesDataResponse extends DiscountLinesDataResponse { + @override + final String id; + @override + final String parentId; + @override + final String object; + @override + final int amount; + @override + final String code; + @override + final String type; + + factory _$DiscountLinesDataResponse( + [void Function(DiscountLinesDataResponseBuilder)? updates]) => + (new DiscountLinesDataResponseBuilder()..update(updates))._build(); + + _$DiscountLinesDataResponse._( + {required this.id, + required this.parentId, + required this.object, + required this.amount, + required this.code, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'DiscountLinesDataResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + parentId, r'DiscountLinesDataResponse', 'parentId'); + BuiltValueNullFieldError.checkNotNull( + object, r'DiscountLinesDataResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + amount, r'DiscountLinesDataResponse', 'amount'); + BuiltValueNullFieldError.checkNotNull( + code, r'DiscountLinesDataResponse', 'code'); + BuiltValueNullFieldError.checkNotNull( + type, r'DiscountLinesDataResponse', 'type'); + } + + @override + DiscountLinesDataResponse rebuild( + void Function(DiscountLinesDataResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + DiscountLinesDataResponseBuilder toBuilder() => + new DiscountLinesDataResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is DiscountLinesDataResponse && + id == other.id && + parentId == other.parentId && + object == other.object && + amount == other.amount && + code == other.code && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'DiscountLinesDataResponse') + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) + ..add('amount', amount) + ..add('code', code) + ..add('type', type)) + .toString(); + } +} + +class DiscountLinesDataResponseBuilder + implements + Builder, + DiscountLinesResponseBuilder { + _$DiscountLinesDataResponse? _$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; + + String? _code; + String? get code => _$this._code; + set code(covariant String? code) => _$this._code = code; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + DiscountLinesDataResponseBuilder() { + DiscountLinesDataResponse._defaults(this); + } + + DiscountLinesDataResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; + _amount = $v.amount; + _code = $v.code; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant DiscountLinesDataResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$DiscountLinesDataResponse; + } + + @override + void update(void Function(DiscountLinesDataResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + DiscountLinesDataResponse build() => _build(); + + _$DiscountLinesDataResponse _build() { + final _$result = _$v ?? + new _$DiscountLinesDataResponse._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'DiscountLinesDataResponse', 'id'), + parentId: BuiltValueNullFieldError.checkNotNull( + parentId, r'DiscountLinesDataResponse', 'parentId'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'DiscountLinesDataResponse', 'object'), + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'DiscountLinesDataResponse', 'amount'), + code: BuiltValueNullFieldError.checkNotNull( + code, r'DiscountLinesDataResponse', 'code'), + type: BuiltValueNullFieldError.checkNotNull( + type, r'DiscountLinesDataResponse', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/discount_lines_response.g.dart b/lib/src/model/discount_lines_response.g.dart new file mode 100644 index 0000000..f7b9213 --- /dev/null +++ b/lib/src/model/discount_lines_response.g.dart @@ -0,0 +1,200 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'discount_lines_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class DiscountLinesResponseBuilder + implements OrderDiscountLinesRequestBuilder { + void replace(covariant DiscountLinesResponse other); + void update(void Function(DiscountLinesResponseBuilder) updates); + String? get id; + set id(covariant String? id); + + String? get parentId; + set parentId(covariant String? parentId); + + String? get object; + set object(covariant String? object); + + int? get amount; + set amount(covariant int? amount); + + String? get code; + set code(covariant String? code); + + String? get type; + set type(covariant String? type); +} + +class _$$DiscountLinesResponse extends $DiscountLinesResponse { + @override + final String id; + @override + final String parentId; + @override + final String object; + @override + final int amount; + @override + final String code; + @override + final String type; + + factory _$$DiscountLinesResponse( + [void Function($DiscountLinesResponseBuilder)? updates]) => + (new $DiscountLinesResponseBuilder()..update(updates))._build(); + + _$$DiscountLinesResponse._( + {required this.id, + required this.parentId, + required this.object, + required this.amount, + required this.code, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'$DiscountLinesResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + parentId, r'$DiscountLinesResponse', 'parentId'); + BuiltValueNullFieldError.checkNotNull( + object, r'$DiscountLinesResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + amount, r'$DiscountLinesResponse', 'amount'); + BuiltValueNullFieldError.checkNotNull( + code, r'$DiscountLinesResponse', 'code'); + BuiltValueNullFieldError.checkNotNull( + type, r'$DiscountLinesResponse', 'type'); + } + + @override + $DiscountLinesResponse rebuild( + void Function($DiscountLinesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $DiscountLinesResponseBuilder toBuilder() => + new $DiscountLinesResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $DiscountLinesResponse && + id == other.id && + parentId == other.parentId && + object == other.object && + amount == other.amount && + code == other.code && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$DiscountLinesResponse') + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) + ..add('amount', amount) + ..add('code', code) + ..add('type', type)) + .toString(); + } +} + +class $DiscountLinesResponseBuilder + implements + Builder<$DiscountLinesResponse, $DiscountLinesResponseBuilder>, + DiscountLinesResponseBuilder { + _$$DiscountLinesResponse? _$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; + + String? _code; + String? get code => _$this._code; + set code(covariant String? code) => _$this._code = code; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + $DiscountLinesResponseBuilder() { + $DiscountLinesResponse._defaults(this); + } + + $DiscountLinesResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; + _amount = $v.amount; + _code = $v.code; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant $DiscountLinesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$DiscountLinesResponse; + } + + @override + void update(void Function($DiscountLinesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $DiscountLinesResponse build() => _build(); + + _$$DiscountLinesResponse _build() { + final _$result = _$v ?? + new _$$DiscountLinesResponse._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'$DiscountLinesResponse', 'id'), + parentId: BuiltValueNullFieldError.checkNotNull( + parentId, r'$DiscountLinesResponse', 'parentId'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'$DiscountLinesResponse', 'object'), + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'$DiscountLinesResponse', 'amount'), + code: BuiltValueNullFieldError.checkNotNull( + code, r'$DiscountLinesResponse', 'code'), + type: BuiltValueNullFieldError.checkNotNull( + type, r'$DiscountLinesResponse', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/email_checkout_request.g.dart b/lib/src/model/email_checkout_request.g.dart new file mode 100644 index 0000000..29a5a6f --- /dev/null +++ b/lib/src/model/email_checkout_request.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'email_checkout_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$EmailCheckoutRequest extends EmailCheckoutRequest { + @override + final String email; + + factory _$EmailCheckoutRequest( + [void Function(EmailCheckoutRequestBuilder)? updates]) => + (new EmailCheckoutRequestBuilder()..update(updates))._build(); + + _$EmailCheckoutRequest._({required this.email}) : super._() { + BuiltValueNullFieldError.checkNotNull( + email, r'EmailCheckoutRequest', 'email'); + } + + @override + EmailCheckoutRequest rebuild( + void Function(EmailCheckoutRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + EmailCheckoutRequestBuilder toBuilder() => + new EmailCheckoutRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is EmailCheckoutRequest && email == other.email; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'EmailCheckoutRequest') + ..add('email', email)) + .toString(); + } +} + +class EmailCheckoutRequestBuilder + implements Builder { + _$EmailCheckoutRequest? _$v; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + EmailCheckoutRequestBuilder() { + EmailCheckoutRequest._defaults(this); + } + + EmailCheckoutRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _email = $v.email; + _$v = null; + } + return this; + } + + @override + void replace(EmailCheckoutRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$EmailCheckoutRequest; + } + + @override + void update(void Function(EmailCheckoutRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + EmailCheckoutRequest build() => _build(); + + _$EmailCheckoutRequest _build() { + final _$result = _$v ?? + new _$EmailCheckoutRequest._( + email: BuiltValueNullFieldError.checkNotNull( + email, r'EmailCheckoutRequest', 'email')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/error.g.dart b/lib/src/model/error.g.dart new file mode 100644 index 0000000..aa84c26 --- /dev/null +++ b/lib/src/model/error.g.dart @@ -0,0 +1,139 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'error.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$Error extends Error { + @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.logId, this.type, this.object, this.details}) : super._(); + + @override + Error rebuild(void Function(ErrorBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ErrorBuilder toBuilder() => new ErrorBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is Error && + logId == other.logId && + type == other.type && + object == other.object && + details == other.details; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, logId.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, details.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'Error') + ..add('logId', logId) + ..add('type', type) + ..add('object', object) + ..add('details', details)) + .toString(); + } +} + +class ErrorBuilder implements Builder, DetailsBuilder { + _$Error? _$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; + + ListBuilder? _details; + ListBuilder get details => + _$this._details ??= new ListBuilder(); + set details(covariant ListBuilder? details) => + _$this._details = details; + + ErrorBuilder() { + Error._defaults(this); + } + + ErrorBuilder get _$this { + final $v = _$v; + if ($v != null) { + _logId = $v.logId; + _type = $v.type; + _object = $v.object; + _details = $v.details?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant Error other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$Error; + } + + @override + void update(void Function(ErrorBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + Error build() => _build(); + + _$Error _build() { + _$Error _$result; + try { + _$result = _$v ?? + new _$Error._( + logId: logId, + type: type, + object: object, + details: _details?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'details'; + _details?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'Error', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/event_response.g.dart b/lib/src/model/event_response.g.dart new file mode 100644 index 0000000..22eb8fe --- /dev/null +++ b/lib/src/model/event_response.g.dart @@ -0,0 +1,198 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'event_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$EventResponse extends EventResponse { + @override + final int? createdAt; + @override + final BuiltMap? data; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + @override + final String? type; + @override + final BuiltList? webhookLogs; + @override + final String? webhookStatus; + + factory _$EventResponse([void Function(EventResponseBuilder)? updates]) => + (new EventResponseBuilder()..update(updates))._build(); + + _$EventResponse._( + {this.createdAt, + this.data, + this.id, + this.livemode, + this.object, + this.type, + this.webhookLogs, + this.webhookStatus}) + : super._(); + + @override + EventResponse rebuild(void Function(EventResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + EventResponseBuilder toBuilder() => new EventResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is EventResponse && + createdAt == other.createdAt && + data == other.data && + id == other.id && + livemode == other.livemode && + object == other.object && + type == other.type && + webhookLogs == other.webhookLogs && + webhookStatus == other.webhookStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, webhookLogs.hashCode); + _$hash = $jc(_$hash, webhookStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'EventResponse') + ..add('createdAt', createdAt) + ..add('data', data) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('type', type) + ..add('webhookLogs', webhookLogs) + ..add('webhookStatus', webhookStatus)) + .toString(); + } +} + +class EventResponseBuilder + implements Builder { + _$EventResponse? _$v; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + MapBuilder? _data; + MapBuilder get data => + _$this._data ??= new MapBuilder(); + set data(MapBuilder? data) => _$this._data = data; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + ListBuilder? _webhookLogs; + ListBuilder get webhookLogs => + _$this._webhookLogs ??= new ListBuilder(); + set webhookLogs(ListBuilder? webhookLogs) => + _$this._webhookLogs = webhookLogs; + + String? _webhookStatus; + String? get webhookStatus => _$this._webhookStatus; + set webhookStatus(String? webhookStatus) => + _$this._webhookStatus = webhookStatus; + + EventResponseBuilder() { + EventResponse._defaults(this); + } + + EventResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _createdAt = $v.createdAt; + _data = $v.data?.toBuilder(); + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _type = $v.type; + _webhookLogs = $v.webhookLogs?.toBuilder(); + _webhookStatus = $v.webhookStatus; + _$v = null; + } + return this; + } + + @override + void replace(EventResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$EventResponse; + } + + @override + void update(void Function(EventResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + EventResponse build() => _build(); + + _$EventResponse _build() { + _$EventResponse _$result; + try { + _$result = _$v ?? + new _$EventResponse._( + createdAt: createdAt, + data: _data?.build(), + id: id, + livemode: livemode, + object: object, + type: type, + webhookLogs: _webhookLogs?.build(), + webhookStatus: webhookStatus); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + + _$failedField = 'webhookLogs'; + _webhookLogs?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'EventResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/event_types.g.dart b/lib/src/model/event_types.g.dart new file mode 100644 index 0000000..104d988 --- /dev/null +++ b/lib/src/model/event_types.g.dart @@ -0,0 +1,95 @@ +// 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'); +const EventTypes _$orderPeriodPendingPayment = + const EventTypes._('orderPeriodPendingPayment'); + +EventTypes _$valueOf(String name) { + switch (name) { + case 'webhookPing': + return _$webhookPing; + case 'orderPeriodPaid': + return _$orderPeriodPaid; + case 'orderPeriodExpired': + return _$orderPeriodExpired; + case 'orderPeriodCanceled': + return _$orderPeriodCanceled; + case 'orderPeriodPendingPayment': + return _$orderPeriodPendingPayment; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$values = + new BuiltSet(const [ + _$webhookPing, + _$orderPeriodPaid, + _$orderPeriodExpired, + _$orderPeriodCanceled, + _$orderPeriodPendingPayment, +]); + +class _$EventTypesMeta { + const _$EventTypesMeta(); + EventTypes get webhookPing => _$webhookPing; + EventTypes get orderPeriodPaid => _$orderPeriodPaid; + EventTypes get orderPeriodExpired => _$orderPeriodExpired; + EventTypes get orderPeriodCanceled => _$orderPeriodCanceled; + EventTypes get orderPeriodPendingPayment => _$orderPeriodPendingPayment; + 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', + 'orderPeriodPendingPayment': 'order.pending_payment', + }; + static const Map _fromWire = const { + 'webhook_ping': 'webhookPing', + 'order.paid': 'orderPeriodPaid', + 'order.expired': 'orderPeriodExpired', + 'order.canceled': 'orderPeriodCanceled', + 'order.pending_payment': 'orderPeriodPendingPayment', + }; + + @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: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/events_resend_response.g.dart b/lib/src/model/events_resend_response.g.dart new file mode 100644 index 0000000..cab475d --- /dev/null +++ b/lib/src/model/events_resend_response.g.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'events_resend_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$EventsResendResponse extends EventsResendResponse { + @override + final int? failedAttempts; + @override + final String? id; + @override + final int? lastAttemptedAt; + @override + final int? lastHttpResponseStatus; + @override + final BuiltMap? responseData; + @override + final String? url; + + factory _$EventsResendResponse( + [void Function(EventsResendResponseBuilder)? updates]) => + (new EventsResendResponseBuilder()..update(updates))._build(); + + _$EventsResendResponse._( + {this.failedAttempts, + this.id, + this.lastAttemptedAt, + this.lastHttpResponseStatus, + this.responseData, + this.url}) + : super._(); + + @override + EventsResendResponse rebuild( + void Function(EventsResendResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + EventsResendResponseBuilder toBuilder() => + new EventsResendResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is EventsResendResponse && + failedAttempts == other.failedAttempts && + id == other.id && + lastAttemptedAt == other.lastAttemptedAt && + lastHttpResponseStatus == other.lastHttpResponseStatus && + responseData == other.responseData && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, failedAttempts.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastAttemptedAt.hashCode); + _$hash = $jc(_$hash, lastHttpResponseStatus.hashCode); + _$hash = $jc(_$hash, responseData.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'EventsResendResponse') + ..add('failedAttempts', failedAttempts) + ..add('id', id) + ..add('lastAttemptedAt', lastAttemptedAt) + ..add('lastHttpResponseStatus', lastHttpResponseStatus) + ..add('responseData', responseData) + ..add('url', url)) + .toString(); + } +} + +class EventsResendResponseBuilder + implements Builder { + _$EventsResendResponse? _$v; + + int? _failedAttempts; + int? get failedAttempts => _$this._failedAttempts; + set failedAttempts(int? failedAttempts) => + _$this._failedAttempts = failedAttempts; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + int? _lastAttemptedAt; + int? get lastAttemptedAt => _$this._lastAttemptedAt; + set lastAttemptedAt(int? lastAttemptedAt) => + _$this._lastAttemptedAt = lastAttemptedAt; + + int? _lastHttpResponseStatus; + int? get lastHttpResponseStatus => _$this._lastHttpResponseStatus; + set lastHttpResponseStatus(int? lastHttpResponseStatus) => + _$this._lastHttpResponseStatus = lastHttpResponseStatus; + + MapBuilder? _responseData; + MapBuilder get responseData => + _$this._responseData ??= new MapBuilder(); + set responseData(MapBuilder? responseData) => + _$this._responseData = responseData; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + EventsResendResponseBuilder() { + EventsResendResponse._defaults(this); + } + + EventsResendResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _failedAttempts = $v.failedAttempts; + _id = $v.id; + _lastAttemptedAt = $v.lastAttemptedAt; + _lastHttpResponseStatus = $v.lastHttpResponseStatus; + _responseData = $v.responseData?.toBuilder(); + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(EventsResendResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$EventsResendResponse; + } + + @override + void update(void Function(EventsResendResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + EventsResendResponse build() => _build(); + + _$EventsResendResponse _build() { + _$EventsResendResponse _$result; + try { + _$result = _$v ?? + new _$EventsResendResponse._( + failedAttempts: failedAttempts, + id: id, + lastAttemptedAt: lastAttemptedAt, + lastHttpResponseStatus: lastHttpResponseStatus, + responseData: _responseData?.build(), + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'responseData'; + _responseData?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'EventsResendResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/fiscal_entity_address.g.dart b/lib/src/model/fiscal_entity_address.g.dart new file mode 100644 index 0000000..88f990f --- /dev/null +++ b/lib/src/model/fiscal_entity_address.g.dart @@ -0,0 +1,214 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fiscal_entity_address.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class FiscalEntityAddressBuilder { + void replace(FiscalEntityAddress other); + void update(void Function(FiscalEntityAddressBuilder) 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); + + String? get externalNumber; + set externalNumber(String? externalNumber); +} + +class _$$FiscalEntityAddress extends $FiscalEntityAddress { + @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 String externalNumber; + + factory _$$FiscalEntityAddress( + [void Function($FiscalEntityAddressBuilder)? updates]) => + (new $FiscalEntityAddressBuilder()..update(updates))._build(); + + _$$FiscalEntityAddress._( + {required this.street1, + this.street2, + required this.postalCode, + required this.city, + this.state, + required this.country, + required this.externalNumber}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + street1, r'$FiscalEntityAddress', 'street1'); + BuiltValueNullFieldError.checkNotNull( + postalCode, r'$FiscalEntityAddress', 'postalCode'); + BuiltValueNullFieldError.checkNotNull( + city, r'$FiscalEntityAddress', 'city'); + BuiltValueNullFieldError.checkNotNull( + country, r'$FiscalEntityAddress', 'country'); + BuiltValueNullFieldError.checkNotNull( + externalNumber, r'$FiscalEntityAddress', 'externalNumber'); + } + + @override + $FiscalEntityAddress rebuild( + void Function($FiscalEntityAddressBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $FiscalEntityAddressBuilder toBuilder() => + new $FiscalEntityAddressBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $FiscalEntityAddress && + street1 == other.street1 && + street2 == other.street2 && + postalCode == other.postalCode && + city == other.city && + state == other.state && + country == other.country && + externalNumber == other.externalNumber; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, street1.hashCode); + _$hash = $jc(_$hash, street2.hashCode); + _$hash = $jc(_$hash, postalCode.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, externalNumber.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$FiscalEntityAddress') + ..add('street1', street1) + ..add('street2', street2) + ..add('postalCode', postalCode) + ..add('city', city) + ..add('state', state) + ..add('country', country) + ..add('externalNumber', externalNumber)) + .toString(); + } +} + +class $FiscalEntityAddressBuilder + implements + Builder<$FiscalEntityAddress, $FiscalEntityAddressBuilder>, + FiscalEntityAddressBuilder { + _$$FiscalEntityAddress? _$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; + + String? _externalNumber; + String? get externalNumber => _$this._externalNumber; + set externalNumber(covariant String? externalNumber) => + _$this._externalNumber = externalNumber; + + $FiscalEntityAddressBuilder() { + $FiscalEntityAddress._defaults(this); + } + + $FiscalEntityAddressBuilder 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; + _externalNumber = $v.externalNumber; + _$v = null; + } + return this; + } + + @override + void replace(covariant $FiscalEntityAddress other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$FiscalEntityAddress; + } + + @override + void update(void Function($FiscalEntityAddressBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $FiscalEntityAddress build() => _build(); + + _$$FiscalEntityAddress _build() { + final _$result = _$v ?? + new _$$FiscalEntityAddress._( + street1: BuiltValueNullFieldError.checkNotNull( + street1, r'$FiscalEntityAddress', 'street1'), + street2: street2, + postalCode: BuiltValueNullFieldError.checkNotNull( + postalCode, r'$FiscalEntityAddress', 'postalCode'), + city: BuiltValueNullFieldError.checkNotNull( + city, r'$FiscalEntityAddress', 'city'), + state: state, + country: BuiltValueNullFieldError.checkNotNull( + country, r'$FiscalEntityAddress', 'country'), + externalNumber: BuiltValueNullFieldError.checkNotNull( + externalNumber, r'$FiscalEntityAddress', 'externalNumber')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_api_keys_response.g.dart b/lib/src/model/get_api_keys_response.g.dart new file mode 100644 index 0000000..4f0ab5d --- /dev/null +++ b/lib/src/model/get_api_keys_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_api_keys_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetApiKeysResponse extends GetApiKeysResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetApiKeysResponse( + [void Function(GetApiKeysResponseBuilder)? updates]) => + (new GetApiKeysResponseBuilder()..update(updates))._build(); + + _$GetApiKeysResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetApiKeysResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetApiKeysResponse', 'object'); + } + + @override + GetApiKeysResponse rebuild( + void Function(GetApiKeysResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetApiKeysResponseBuilder toBuilder() => + new GetApiKeysResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetApiKeysResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetApiKeysResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetApiKeysResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetApiKeysResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetApiKeysResponseBuilder() { + GetApiKeysResponse._defaults(this); + } + + GetApiKeysResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetApiKeysResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetApiKeysResponse; + } + + @override + void update(void Function(GetApiKeysResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetApiKeysResponse build() => _build(); + + _$GetApiKeysResponse _build() { + _$GetApiKeysResponse _$result; + try { + _$result = _$v ?? + new _$GetApiKeysResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetApiKeysResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetApiKeysResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetApiKeysResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_charges_response.g.dart b/lib/src/model/get_charges_response.g.dart new file mode 100644 index 0000000..71f7a7d --- /dev/null +++ b/lib/src/model/get_charges_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_charges_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetChargesResponse extends GetChargesResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetChargesResponse( + [void Function(GetChargesResponseBuilder)? updates]) => + (new GetChargesResponseBuilder()..update(updates))._build(); + + _$GetChargesResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetChargesResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetChargesResponse', 'object'); + } + + @override + GetChargesResponse rebuild( + void Function(GetChargesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetChargesResponseBuilder toBuilder() => + new GetChargesResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetChargesResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetChargesResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetChargesResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetChargesResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetChargesResponseBuilder() { + GetChargesResponse._defaults(this); + } + + GetChargesResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetChargesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetChargesResponse; + } + + @override + void update(void Function(GetChargesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetChargesResponse build() => _build(); + + _$GetChargesResponse _build() { + _$GetChargesResponse _$result; + try { + _$result = _$v ?? + new _$GetChargesResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetChargesResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetChargesResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetChargesResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_companies_response.g.dart b/lib/src/model/get_companies_response.g.dart new file mode 100644 index 0000000..a48cf48 --- /dev/null +++ b/lib/src/model/get_companies_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_companies_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetCompaniesResponse extends GetCompaniesResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetCompaniesResponse( + [void Function(GetCompaniesResponseBuilder)? updates]) => + (new GetCompaniesResponseBuilder()..update(updates))._build(); + + _$GetCompaniesResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetCompaniesResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetCompaniesResponse', 'object'); + } + + @override + GetCompaniesResponse rebuild( + void Function(GetCompaniesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetCompaniesResponseBuilder toBuilder() => + new GetCompaniesResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetCompaniesResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetCompaniesResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetCompaniesResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetCompaniesResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetCompaniesResponseBuilder() { + GetCompaniesResponse._defaults(this); + } + + GetCompaniesResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetCompaniesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetCompaniesResponse; + } + + @override + void update(void Function(GetCompaniesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetCompaniesResponse build() => _build(); + + _$GetCompaniesResponse _build() { + _$GetCompaniesResponse _$result; + try { + _$result = _$v ?? + new _$GetCompaniesResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetCompaniesResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetCompaniesResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetCompaniesResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_customer_payment_method_data_response.g.dart b/lib/src/model/get_customer_payment_method_data_response.g.dart new file mode 100644 index 0000000..e611c08 --- /dev/null +++ b/lib/src/model/get_customer_payment_method_data_response.g.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_customer_payment_method_data_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetCustomerPaymentMethodDataResponse + extends GetCustomerPaymentMethodDataResponse { + @override + final OneOf oneOf; + + factory _$GetCustomerPaymentMethodDataResponse( + [void Function(GetCustomerPaymentMethodDataResponseBuilder)? + updates]) => + (new GetCustomerPaymentMethodDataResponseBuilder()..update(updates)) + ._build(); + + _$GetCustomerPaymentMethodDataResponse._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'GetCustomerPaymentMethodDataResponse', 'oneOf'); + } + + @override + GetCustomerPaymentMethodDataResponse rebuild( + void Function(GetCustomerPaymentMethodDataResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetCustomerPaymentMethodDataResponseBuilder toBuilder() => + new GetCustomerPaymentMethodDataResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetCustomerPaymentMethodDataResponse && + oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetCustomerPaymentMethodDataResponse') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class GetCustomerPaymentMethodDataResponseBuilder + implements + Builder { + _$GetCustomerPaymentMethodDataResponse? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + GetCustomerPaymentMethodDataResponseBuilder() { + GetCustomerPaymentMethodDataResponse._defaults(this); + } + + GetCustomerPaymentMethodDataResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(GetCustomerPaymentMethodDataResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetCustomerPaymentMethodDataResponse; + } + + @override + void update( + void Function(GetCustomerPaymentMethodDataResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetCustomerPaymentMethodDataResponse build() => _build(); + + _$GetCustomerPaymentMethodDataResponse _build() { + final _$result = _$v ?? + new _$GetCustomerPaymentMethodDataResponse._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'GetCustomerPaymentMethodDataResponse', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_events_response.g.dart b/lib/src/model/get_events_response.g.dart new file mode 100644 index 0000000..ceabf5e --- /dev/null +++ b/lib/src/model/get_events_response.g.dart @@ -0,0 +1,171 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_events_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetEventsResponse extends GetEventsResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetEventsResponse( + [void Function(GetEventsResponseBuilder)? updates]) => + (new GetEventsResponseBuilder()..update(updates))._build(); + + _$GetEventsResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetEventsResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetEventsResponse', 'object'); + } + + @override + GetEventsResponse rebuild(void Function(GetEventsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetEventsResponseBuilder toBuilder() => + new GetEventsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetEventsResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetEventsResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetEventsResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetEventsResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetEventsResponseBuilder() { + GetEventsResponse._defaults(this); + } + + GetEventsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetEventsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetEventsResponse; + } + + @override + void update(void Function(GetEventsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetEventsResponse build() => _build(); + + _$GetEventsResponse _build() { + _$GetEventsResponse _$result; + try { + _$result = _$v ?? + new _$GetEventsResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetEventsResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetEventsResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetEventsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_order_discount_lines_response.g.dart b/lib/src/model/get_order_discount_lines_response.g.dart new file mode 100644 index 0000000..3bd5573 --- /dev/null +++ b/lib/src/model/get_order_discount_lines_response.g.dart @@ -0,0 +1,174 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_order_discount_lines_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetOrderDiscountLinesResponse extends GetOrderDiscountLinesResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetOrderDiscountLinesResponse( + [void Function(GetOrderDiscountLinesResponseBuilder)? updates]) => + (new GetOrderDiscountLinesResponseBuilder()..update(updates))._build(); + + _$GetOrderDiscountLinesResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetOrderDiscountLinesResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetOrderDiscountLinesResponse', 'object'); + } + + @override + GetOrderDiscountLinesResponse rebuild( + void Function(GetOrderDiscountLinesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetOrderDiscountLinesResponseBuilder toBuilder() => + new GetOrderDiscountLinesResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetOrderDiscountLinesResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetOrderDiscountLinesResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetOrderDiscountLinesResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetOrderDiscountLinesResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetOrderDiscountLinesResponseBuilder() { + GetOrderDiscountLinesResponse._defaults(this); + } + + GetOrderDiscountLinesResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetOrderDiscountLinesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetOrderDiscountLinesResponse; + } + + @override + void update(void Function(GetOrderDiscountLinesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetOrderDiscountLinesResponse build() => _build(); + + _$GetOrderDiscountLinesResponse _build() { + _$GetOrderDiscountLinesResponse _$result; + try { + _$result = _$v ?? + new _$GetOrderDiscountLinesResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetOrderDiscountLinesResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetOrderDiscountLinesResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetOrderDiscountLinesResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_orders_response.g.dart b/lib/src/model/get_orders_response.g.dart new file mode 100644 index 0000000..8407af9 --- /dev/null +++ b/lib/src/model/get_orders_response.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_orders_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetOrdersResponse extends GetOrdersResponse { + @override + final BuiltList data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetOrdersResponse( + [void Function(GetOrdersResponseBuilder)? updates]) => + (new GetOrdersResponseBuilder()..update(updates))._build(); + + _$GetOrdersResponse._( + {required this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'GetOrdersResponse', 'data'); + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetOrdersResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetOrdersResponse', 'object'); + } + + @override + GetOrdersResponse rebuild(void Function(GetOrdersResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetOrdersResponseBuilder toBuilder() => + new GetOrdersResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetOrdersResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetOrdersResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetOrdersResponseBuilder + implements + Builder, + OrdersResponseBuilder, + PageBuilder, + PaginationBuilder { + _$GetOrdersResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetOrdersResponseBuilder() { + GetOrdersResponse._defaults(this); + } + + GetOrdersResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetOrdersResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetOrdersResponse; + } + + @override + void update(void Function(GetOrdersResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetOrdersResponse build() => _build(); + + _$GetOrdersResponse _build() { + _$GetOrdersResponse _$result; + try { + _$result = _$v ?? + new _$GetOrdersResponse._( + data: data.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetOrdersResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetOrdersResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + data.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetOrdersResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_payment_method_response.g.dart b/lib/src/model/get_payment_method_response.g.dart new file mode 100644 index 0000000..6e0a11b --- /dev/null +++ b/lib/src/model/get_payment_method_response.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_payment_method_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetPaymentMethodResponse extends GetPaymentMethodResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetPaymentMethodResponse( + [void Function(GetPaymentMethodResponseBuilder)? updates]) => + (new GetPaymentMethodResponseBuilder()..update(updates))._build(); + + _$GetPaymentMethodResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetPaymentMethodResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetPaymentMethodResponse', 'object'); + } + + @override + GetPaymentMethodResponse rebuild( + void Function(GetPaymentMethodResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetPaymentMethodResponseBuilder toBuilder() => + new GetPaymentMethodResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetPaymentMethodResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetPaymentMethodResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetPaymentMethodResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetPaymentMethodResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetPaymentMethodResponseBuilder() { + GetPaymentMethodResponse._defaults(this); + } + + GetPaymentMethodResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetPaymentMethodResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetPaymentMethodResponse; + } + + @override + void update(void Function(GetPaymentMethodResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetPaymentMethodResponse build() => _build(); + + _$GetPaymentMethodResponse _build() { + _$GetPaymentMethodResponse _$result; + try { + _$result = _$v ?? + new _$GetPaymentMethodResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetPaymentMethodResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetPaymentMethodResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetPaymentMethodResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_plans_response.g.dart b/lib/src/model/get_plans_response.g.dart new file mode 100644 index 0000000..10ae286 --- /dev/null +++ b/lib/src/model/get_plans_response.g.dart @@ -0,0 +1,171 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_plans_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetPlansResponse extends GetPlansResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetPlansResponse( + [void Function(GetPlansResponseBuilder)? updates]) => + (new GetPlansResponseBuilder()..update(updates))._build(); + + _$GetPlansResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetPlansResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetPlansResponse', 'object'); + } + + @override + GetPlansResponse rebuild(void Function(GetPlansResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetPlansResponseBuilder toBuilder() => + new GetPlansResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetPlansResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetPlansResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetPlansResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetPlansResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetPlansResponseBuilder() { + GetPlansResponse._defaults(this); + } + + GetPlansResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetPlansResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetPlansResponse; + } + + @override + void update(void Function(GetPlansResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetPlansResponse build() => _build(); + + _$GetPlansResponse _build() { + _$GetPlansResponse _$result; + try { + _$result = _$v ?? + new _$GetPlansResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetPlansResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetPlansResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetPlansResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_transactions_response.g.dart b/lib/src/model/get_transactions_response.g.dart new file mode 100644 index 0000000..a48584f --- /dev/null +++ b/lib/src/model/get_transactions_response.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_transactions_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetTransactionsResponse extends GetTransactionsResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetTransactionsResponse( + [void Function(GetTransactionsResponseBuilder)? updates]) => + (new GetTransactionsResponseBuilder()..update(updates))._build(); + + _$GetTransactionsResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetTransactionsResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetTransactionsResponse', 'object'); + } + + @override + GetTransactionsResponse rebuild( + void Function(GetTransactionsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetTransactionsResponseBuilder toBuilder() => + new GetTransactionsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetTransactionsResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetTransactionsResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetTransactionsResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetTransactionsResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetTransactionsResponseBuilder() { + GetTransactionsResponse._defaults(this); + } + + GetTransactionsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetTransactionsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetTransactionsResponse; + } + + @override + void update(void Function(GetTransactionsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetTransactionsResponse build() => _build(); + + _$GetTransactionsResponse _build() { + _$GetTransactionsResponse _$result; + try { + _$result = _$v ?? + new _$GetTransactionsResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetTransactionsResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetTransactionsResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetTransactionsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_transfers_response.g.dart b/lib/src/model/get_transfers_response.g.dart new file mode 100644 index 0000000..8330ab0 --- /dev/null +++ b/lib/src/model/get_transfers_response.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_transfers_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetTransfersResponse extends GetTransfersResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetTransfersResponse( + [void Function(GetTransfersResponseBuilder)? updates]) => + (new GetTransfersResponseBuilder()..update(updates))._build(); + + _$GetTransfersResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetTransfersResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetTransfersResponse', 'object'); + } + + @override + GetTransfersResponse rebuild( + void Function(GetTransfersResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetTransfersResponseBuilder toBuilder() => + new GetTransfersResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetTransfersResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetTransfersResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetTransfersResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetTransfersResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetTransfersResponseBuilder() { + GetTransfersResponse._defaults(this); + } + + GetTransfersResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetTransfersResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetTransfersResponse; + } + + @override + void update(void Function(GetTransfersResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetTransfersResponse build() => _build(); + + _$GetTransfersResponse _build() { + _$GetTransfersResponse _$result; + try { + _$result = _$v ?? + new _$GetTransfersResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetTransfersResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetTransfersResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetTransfersResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_webhook_keys_response.g.dart b/lib/src/model/get_webhook_keys_response.g.dart new file mode 100644 index 0000000..9006634 --- /dev/null +++ b/lib/src/model/get_webhook_keys_response.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_webhook_keys_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetWebhookKeysResponse extends GetWebhookKeysResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetWebhookKeysResponse( + [void Function(GetWebhookKeysResponseBuilder)? updates]) => + (new GetWebhookKeysResponseBuilder()..update(updates))._build(); + + _$GetWebhookKeysResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetWebhookKeysResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetWebhookKeysResponse', 'object'); + } + + @override + GetWebhookKeysResponse rebuild( + void Function(GetWebhookKeysResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetWebhookKeysResponseBuilder toBuilder() => + new GetWebhookKeysResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetWebhookKeysResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetWebhookKeysResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetWebhookKeysResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetWebhookKeysResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetWebhookKeysResponseBuilder() { + GetWebhookKeysResponse._defaults(this); + } + + GetWebhookKeysResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetWebhookKeysResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetWebhookKeysResponse; + } + + @override + void update(void Function(GetWebhookKeysResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetWebhookKeysResponse build() => _build(); + + _$GetWebhookKeysResponse _build() { + _$GetWebhookKeysResponse _$result; + try { + _$result = _$v ?? + new _$GetWebhookKeysResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetWebhookKeysResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetWebhookKeysResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetWebhookKeysResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/get_webhooks_response.g.dart b/lib/src/model/get_webhooks_response.g.dart new file mode 100644 index 0000000..7c1ed72 --- /dev/null +++ b/lib/src/model/get_webhooks_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_webhooks_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$GetWebhooksResponse extends GetWebhooksResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$GetWebhooksResponse( + [void Function(GetWebhooksResponseBuilder)? updates]) => + (new GetWebhooksResponseBuilder()..update(updates))._build(); + + _$GetWebhooksResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetWebhooksResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'GetWebhooksResponse', 'object'); + } + + @override + GetWebhooksResponse rebuild( + void Function(GetWebhooksResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GetWebhooksResponseBuilder toBuilder() => + new GetWebhooksResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GetWebhooksResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GetWebhooksResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class GetWebhooksResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$GetWebhooksResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + GetWebhooksResponseBuilder() { + GetWebhooksResponse._defaults(this); + } + + GetWebhooksResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant GetWebhooksResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GetWebhooksResponse; + } + + @override + void update(void Function(GetWebhooksResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GetWebhooksResponse build() => _build(); + + _$GetWebhooksResponse _build() { + _$GetWebhooksResponse _$result; + try { + _$result = _$v ?? + new _$GetWebhooksResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'GetWebhooksResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'GetWebhooksResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GetWebhooksResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/log_response.g.dart b/lib/src/model/log_response.g.dart new file mode 100644 index 0000000..3fd61fd --- /dev/null +++ b/lib/src/model/log_response.g.dart @@ -0,0 +1,360 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'log_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$LogResponse extends LogResponse { + @override + final int createdAt; + @override + final String id; + @override + final String? ipAddress; + @override + final bool livemode; + @override + final String? loggableId; + @override + final String? loggableType; + @override + final String? method; + @override + final String? oauthTokenId; + @override + final BuiltMap? queryString; + @override + final String? related; + @override + final JsonObject? requestBody; + @override + final BuiltMap? requestHeaders; + @override + final JsonObject? responseBody; + @override + final BuiltMap? responseHeaders; + @override + final BuiltList? searchableTags; + @override + final String? status; + @override + final String? updatedAt; + @override + final String? url; + @override + final String? userAccountId; + @override + final String? version; + + factory _$LogResponse([void Function(LogResponseBuilder)? updates]) => + (new LogResponseBuilder()..update(updates))._build(); + + _$LogResponse._( + {required this.createdAt, + required this.id, + this.ipAddress, + required this.livemode, + this.loggableId, + this.loggableType, + this.method, + this.oauthTokenId, + this.queryString, + this.related, + this.requestBody, + this.requestHeaders, + this.responseBody, + this.responseHeaders, + this.searchableTags, + this.status, + this.updatedAt, + this.url, + this.userAccountId, + this.version}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'LogResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull(id, r'LogResponse', 'id'); + BuiltValueNullFieldError.checkNotNull(livemode, r'LogResponse', 'livemode'); + } + + @override + LogResponse rebuild(void Function(LogResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + LogResponseBuilder toBuilder() => new LogResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is LogResponse && + createdAt == other.createdAt && + id == other.id && + ipAddress == other.ipAddress && + livemode == other.livemode && + loggableId == other.loggableId && + loggableType == other.loggableType && + method == other.method && + oauthTokenId == other.oauthTokenId && + queryString == other.queryString && + related == other.related && + requestBody == other.requestBody && + requestHeaders == other.requestHeaders && + responseBody == other.responseBody && + responseHeaders == other.responseHeaders && + searchableTags == other.searchableTags && + status == other.status && + updatedAt == other.updatedAt && + url == other.url && + userAccountId == other.userAccountId && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, ipAddress.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, loggableId.hashCode); + _$hash = $jc(_$hash, loggableType.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, oauthTokenId.hashCode); + _$hash = $jc(_$hash, queryString.hashCode); + _$hash = $jc(_$hash, related.hashCode); + _$hash = $jc(_$hash, requestBody.hashCode); + _$hash = $jc(_$hash, requestHeaders.hashCode); + _$hash = $jc(_$hash, responseBody.hashCode); + _$hash = $jc(_$hash, responseHeaders.hashCode); + _$hash = $jc(_$hash, searchableTags.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, userAccountId.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'LogResponse') + ..add('createdAt', createdAt) + ..add('id', id) + ..add('ipAddress', ipAddress) + ..add('livemode', livemode) + ..add('loggableId', loggableId) + ..add('loggableType', loggableType) + ..add('method', method) + ..add('oauthTokenId', oauthTokenId) + ..add('queryString', queryString) + ..add('related', related) + ..add('requestBody', requestBody) + ..add('requestHeaders', requestHeaders) + ..add('responseBody', responseBody) + ..add('responseHeaders', responseHeaders) + ..add('searchableTags', searchableTags) + ..add('status', status) + ..add('updatedAt', updatedAt) + ..add('url', url) + ..add('userAccountId', userAccountId) + ..add('version', version)) + .toString(); + } +} + +class LogResponseBuilder implements Builder { + _$LogResponse? _$v; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _ipAddress; + String? get ipAddress => _$this._ipAddress; + set ipAddress(String? ipAddress) => _$this._ipAddress = ipAddress; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _loggableId; + String? get loggableId => _$this._loggableId; + set loggableId(String? loggableId) => _$this._loggableId = loggableId; + + String? _loggableType; + String? get loggableType => _$this._loggableType; + set loggableType(String? loggableType) => _$this._loggableType = loggableType; + + String? _method; + String? get method => _$this._method; + set method(String? method) => _$this._method = method; + + String? _oauthTokenId; + String? get oauthTokenId => _$this._oauthTokenId; + set oauthTokenId(String? oauthTokenId) => _$this._oauthTokenId = oauthTokenId; + + MapBuilder? _queryString; + MapBuilder get queryString => + _$this._queryString ??= new MapBuilder(); + set queryString(MapBuilder? queryString) => + _$this._queryString = queryString; + + String? _related; + String? get related => _$this._related; + set related(String? related) => _$this._related = related; + + JsonObject? _requestBody; + JsonObject? get requestBody => _$this._requestBody; + set requestBody(JsonObject? requestBody) => _$this._requestBody = requestBody; + + MapBuilder? _requestHeaders; + MapBuilder get requestHeaders => + _$this._requestHeaders ??= new MapBuilder(); + set requestHeaders(MapBuilder? requestHeaders) => + _$this._requestHeaders = requestHeaders; + + JsonObject? _responseBody; + JsonObject? get responseBody => _$this._responseBody; + set responseBody(JsonObject? responseBody) => + _$this._responseBody = responseBody; + + MapBuilder? _responseHeaders; + MapBuilder get responseHeaders => + _$this._responseHeaders ??= new MapBuilder(); + set responseHeaders(MapBuilder? responseHeaders) => + _$this._responseHeaders = responseHeaders; + + ListBuilder? _searchableTags; + ListBuilder get searchableTags => + _$this._searchableTags ??= new ListBuilder(); + set searchableTags(ListBuilder? searchableTags) => + _$this._searchableTags = searchableTags; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + String? _updatedAt; + String? get updatedAt => _$this._updatedAt; + set updatedAt(String? updatedAt) => _$this._updatedAt = updatedAt; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _userAccountId; + String? get userAccountId => _$this._userAccountId; + set userAccountId(String? userAccountId) => + _$this._userAccountId = userAccountId; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + LogResponseBuilder() { + LogResponse._defaults(this); + } + + LogResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _createdAt = $v.createdAt; + _id = $v.id; + _ipAddress = $v.ipAddress; + _livemode = $v.livemode; + _loggableId = $v.loggableId; + _loggableType = $v.loggableType; + _method = $v.method; + _oauthTokenId = $v.oauthTokenId; + _queryString = $v.queryString?.toBuilder(); + _related = $v.related; + _requestBody = $v.requestBody; + _requestHeaders = $v.requestHeaders?.toBuilder(); + _responseBody = $v.responseBody; + _responseHeaders = $v.responseHeaders?.toBuilder(); + _searchableTags = $v.searchableTags?.toBuilder(); + _status = $v.status; + _updatedAt = $v.updatedAt; + _url = $v.url; + _userAccountId = $v.userAccountId; + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(LogResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$LogResponse; + } + + @override + void update(void Function(LogResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + LogResponse build() => _build(); + + _$LogResponse _build() { + _$LogResponse _$result; + try { + _$result = _$v ?? + new _$LogResponse._( + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'LogResponse', 'createdAt'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'LogResponse', 'id'), + ipAddress: ipAddress, + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'LogResponse', 'livemode'), + loggableId: loggableId, + loggableType: loggableType, + method: method, + oauthTokenId: oauthTokenId, + queryString: _queryString?.build(), + related: related, + requestBody: requestBody, + requestHeaders: _requestHeaders?.build(), + responseBody: responseBody, + responseHeaders: _responseHeaders?.build(), + searchableTags: _searchableTags?.build(), + status: status, + updatedAt: updatedAt, + url: url, + userAccountId: userAccountId, + version: version); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'queryString'; + _queryString?.build(); + + _$failedField = 'requestHeaders'; + _requestHeaders?.build(); + + _$failedField = 'responseHeaders'; + _responseHeaders?.build(); + _$failedField = 'searchableTags'; + _searchableTags?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'LogResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/logs_response.g.dart b/lib/src/model/logs_response.g.dart new file mode 100644 index 0000000..72dc16d --- /dev/null +++ b/lib/src/model/logs_response.g.dart @@ -0,0 +1,157 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'logs_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$LogsResponse extends LogsResponse { + @override + final bool? hasMore; + @override + final String? object; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final BuiltList? data; + + factory _$LogsResponse([void Function(LogsResponseBuilder)? updates]) => + (new LogsResponseBuilder()..update(updates))._build(); + + _$LogsResponse._( + {this.hasMore, + this.object, + this.nextPageUrl, + this.previousPageUrl, + this.data}) + : super._(); + + @override + LogsResponse rebuild(void Function(LogsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + LogsResponseBuilder toBuilder() => new LogsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is LogsResponse && + hasMore == other.hasMore && + object == other.object && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'LogsResponse') + ..add('hasMore', hasMore) + ..add('object', object) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('data', data)) + .toString(); + } +} + +class LogsResponseBuilder + implements Builder { + _$LogsResponse? _$v; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _nextPageUrl; + String? get nextPageUrl => _$this._nextPageUrl; + set nextPageUrl(String? nextPageUrl) => _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + LogsResponseBuilder() { + LogsResponse._defaults(this); + } + + LogsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _hasMore = $v.hasMore; + _object = $v.object; + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _data = $v.data?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(LogsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$LogsResponse; + } + + @override + void update(void Function(LogsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + LogsResponse build() => _build(); + + _$LogsResponse _build() { + _$LogsResponse _$result; + try { + _$result = _$v ?? + new _$LogsResponse._( + hasMore: hasMore, + object: object, + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + data: _data?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'LogsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/logs_response_data.g.dart b/lib/src/model/logs_response_data.g.dart new file mode 100644 index 0000000..751d1c1 --- /dev/null +++ b/lib/src/model/logs_response_data.g.dart @@ -0,0 +1,355 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'logs_response_data.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$LogsResponseData extends LogsResponseData { + @override + final int? createdAt; + @override + final String? id; + @override + final String? ipAddress; + @override + final bool? livemode; + @override + final String? loggableId; + @override + final String? loggableType; + @override + final String? method; + @override + final String? oauthTokenId; + @override + final BuiltMap? queryString; + @override + final String? related; + @override + final JsonObject? requestBody; + @override + final BuiltMap? requestHeaders; + @override + final JsonObject? responseBody; + @override + final BuiltMap? responseHeaders; + @override + final BuiltList? searchableTags; + @override + final String? status; + @override + final String? updatedAt; + @override + final String? url; + @override + final String? userAccountId; + @override + final String? version; + + factory _$LogsResponseData( + [void Function(LogsResponseDataBuilder)? updates]) => + (new LogsResponseDataBuilder()..update(updates))._build(); + + _$LogsResponseData._( + {this.createdAt, + this.id, + this.ipAddress, + this.livemode, + this.loggableId, + this.loggableType, + this.method, + this.oauthTokenId, + this.queryString, + this.related, + this.requestBody, + this.requestHeaders, + this.responseBody, + this.responseHeaders, + this.searchableTags, + this.status, + this.updatedAt, + this.url, + this.userAccountId, + this.version}) + : super._(); + + @override + LogsResponseData rebuild(void Function(LogsResponseDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + LogsResponseDataBuilder toBuilder() => + new LogsResponseDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is LogsResponseData && + createdAt == other.createdAt && + id == other.id && + ipAddress == other.ipAddress && + livemode == other.livemode && + loggableId == other.loggableId && + loggableType == other.loggableType && + method == other.method && + oauthTokenId == other.oauthTokenId && + queryString == other.queryString && + related == other.related && + requestBody == other.requestBody && + requestHeaders == other.requestHeaders && + responseBody == other.responseBody && + responseHeaders == other.responseHeaders && + searchableTags == other.searchableTags && + status == other.status && + updatedAt == other.updatedAt && + url == other.url && + userAccountId == other.userAccountId && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, ipAddress.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, loggableId.hashCode); + _$hash = $jc(_$hash, loggableType.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, oauthTokenId.hashCode); + _$hash = $jc(_$hash, queryString.hashCode); + _$hash = $jc(_$hash, related.hashCode); + _$hash = $jc(_$hash, requestBody.hashCode); + _$hash = $jc(_$hash, requestHeaders.hashCode); + _$hash = $jc(_$hash, responseBody.hashCode); + _$hash = $jc(_$hash, responseHeaders.hashCode); + _$hash = $jc(_$hash, searchableTags.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, userAccountId.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'LogsResponseData') + ..add('createdAt', createdAt) + ..add('id', id) + ..add('ipAddress', ipAddress) + ..add('livemode', livemode) + ..add('loggableId', loggableId) + ..add('loggableType', loggableType) + ..add('method', method) + ..add('oauthTokenId', oauthTokenId) + ..add('queryString', queryString) + ..add('related', related) + ..add('requestBody', requestBody) + ..add('requestHeaders', requestHeaders) + ..add('responseBody', responseBody) + ..add('responseHeaders', responseHeaders) + ..add('searchableTags', searchableTags) + ..add('status', status) + ..add('updatedAt', updatedAt) + ..add('url', url) + ..add('userAccountId', userAccountId) + ..add('version', version)) + .toString(); + } +} + +class LogsResponseDataBuilder + implements Builder { + _$LogsResponseData? _$v; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _ipAddress; + String? get ipAddress => _$this._ipAddress; + set ipAddress(String? ipAddress) => _$this._ipAddress = ipAddress; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _loggableId; + String? get loggableId => _$this._loggableId; + set loggableId(String? loggableId) => _$this._loggableId = loggableId; + + String? _loggableType; + String? get loggableType => _$this._loggableType; + set loggableType(String? loggableType) => _$this._loggableType = loggableType; + + String? _method; + String? get method => _$this._method; + set method(String? method) => _$this._method = method; + + String? _oauthTokenId; + String? get oauthTokenId => _$this._oauthTokenId; + set oauthTokenId(String? oauthTokenId) => _$this._oauthTokenId = oauthTokenId; + + MapBuilder? _queryString; + MapBuilder get queryString => + _$this._queryString ??= new MapBuilder(); + set queryString(MapBuilder? queryString) => + _$this._queryString = queryString; + + String? _related; + String? get related => _$this._related; + set related(String? related) => _$this._related = related; + + JsonObject? _requestBody; + JsonObject? get requestBody => _$this._requestBody; + set requestBody(JsonObject? requestBody) => _$this._requestBody = requestBody; + + MapBuilder? _requestHeaders; + MapBuilder get requestHeaders => + _$this._requestHeaders ??= new MapBuilder(); + set requestHeaders(MapBuilder? requestHeaders) => + _$this._requestHeaders = requestHeaders; + + JsonObject? _responseBody; + JsonObject? get responseBody => _$this._responseBody; + set responseBody(JsonObject? responseBody) => + _$this._responseBody = responseBody; + + MapBuilder? _responseHeaders; + MapBuilder get responseHeaders => + _$this._responseHeaders ??= new MapBuilder(); + set responseHeaders(MapBuilder? responseHeaders) => + _$this._responseHeaders = responseHeaders; + + ListBuilder? _searchableTags; + ListBuilder get searchableTags => + _$this._searchableTags ??= new ListBuilder(); + set searchableTags(ListBuilder? searchableTags) => + _$this._searchableTags = searchableTags; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + String? _updatedAt; + String? get updatedAt => _$this._updatedAt; + set updatedAt(String? updatedAt) => _$this._updatedAt = updatedAt; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _userAccountId; + String? get userAccountId => _$this._userAccountId; + set userAccountId(String? userAccountId) => + _$this._userAccountId = userAccountId; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + LogsResponseDataBuilder() { + LogsResponseData._defaults(this); + } + + LogsResponseDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _createdAt = $v.createdAt; + _id = $v.id; + _ipAddress = $v.ipAddress; + _livemode = $v.livemode; + _loggableId = $v.loggableId; + _loggableType = $v.loggableType; + _method = $v.method; + _oauthTokenId = $v.oauthTokenId; + _queryString = $v.queryString?.toBuilder(); + _related = $v.related; + _requestBody = $v.requestBody; + _requestHeaders = $v.requestHeaders?.toBuilder(); + _responseBody = $v.responseBody; + _responseHeaders = $v.responseHeaders?.toBuilder(); + _searchableTags = $v.searchableTags?.toBuilder(); + _status = $v.status; + _updatedAt = $v.updatedAt; + _url = $v.url; + _userAccountId = $v.userAccountId; + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(LogsResponseData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$LogsResponseData; + } + + @override + void update(void Function(LogsResponseDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + LogsResponseData build() => _build(); + + _$LogsResponseData _build() { + _$LogsResponseData _$result; + try { + _$result = _$v ?? + new _$LogsResponseData._( + createdAt: createdAt, + id: id, + ipAddress: ipAddress, + livemode: livemode, + loggableId: loggableId, + loggableType: loggableType, + method: method, + oauthTokenId: oauthTokenId, + queryString: _queryString?.build(), + related: related, + requestBody: requestBody, + requestHeaders: _requestHeaders?.build(), + responseBody: responseBody, + responseHeaders: _responseHeaders?.build(), + searchableTags: _searchableTags?.build(), + status: status, + updatedAt: updatedAt, + url: url, + userAccountId: userAccountId, + version: version); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'queryString'; + _queryString?.build(); + + _$failedField = 'requestHeaders'; + _requestHeaders?.build(); + + _$failedField = 'responseHeaders'; + _responseHeaders?.build(); + _$failedField = 'searchableTags'; + _searchableTags?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'LogsResponseData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_capture_request.g.dart b/lib/src/model/order_capture_request.g.dart new file mode 100644 index 0000000..aa24019 --- /dev/null +++ b/lib/src/model/order_capture_request.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_capture_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderCaptureRequest extends OrderCaptureRequest { + @override + final int amount; + + factory _$OrderCaptureRequest( + [void Function(OrderCaptureRequestBuilder)? updates]) => + (new OrderCaptureRequestBuilder()..update(updates))._build(); + + _$OrderCaptureRequest._({required this.amount}) : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'OrderCaptureRequest', 'amount'); + } + + @override + OrderCaptureRequest rebuild( + void Function(OrderCaptureRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderCaptureRequestBuilder toBuilder() => + new OrderCaptureRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderCaptureRequest && amount == other.amount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderCaptureRequest') + ..add('amount', amount)) + .toString(); + } +} + +class OrderCaptureRequestBuilder + implements Builder { + _$OrderCaptureRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + OrderCaptureRequestBuilder() { + OrderCaptureRequest._defaults(this); + } + + OrderCaptureRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _$v = null; + } + return this; + } + + @override + void replace(OrderCaptureRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderCaptureRequest; + } + + @override + void update(void Function(OrderCaptureRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderCaptureRequest build() => _build(); + + _$OrderCaptureRequest _build() { + final _$result = _$v ?? + new _$OrderCaptureRequest._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'OrderCaptureRequest', 'amount')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_customer_info_response.g.dart b/lib/src/model/order_customer_info_response.g.dart new file mode 100644 index 0000000..f93377b --- /dev/null +++ b/lib/src/model/order_customer_info_response.g.dart @@ -0,0 +1,182 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_customer_info_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class OrderCustomerInfoResponseBuilder { + void replace(OrderCustomerInfoResponse other); + void update(void Function(OrderCustomerInfoResponseBuilder) updates); + String? get customerCustomReference; + set customerCustomReference(String? customerCustomReference); + + String? get name; + set name(String? name); + + String? get email; + set email(String? email); + + String? get phone; + set phone(String? phone); + + bool? get corporate; + set corporate(bool? corporate); + + String? get object; + set object(String? object); +} + +class _$$OrderCustomerInfoResponse extends $OrderCustomerInfoResponse { + @override + final String? customerCustomReference; + @override + final String? name; + @override + final String? email; + @override + final String? phone; + @override + final bool? corporate; + @override + final String? object; + + factory _$$OrderCustomerInfoResponse( + [void Function($OrderCustomerInfoResponseBuilder)? updates]) => + (new $OrderCustomerInfoResponseBuilder()..update(updates))._build(); + + _$$OrderCustomerInfoResponse._( + {this.customerCustomReference, + this.name, + this.email, + this.phone, + this.corporate, + this.object}) + : super._(); + + @override + $OrderCustomerInfoResponse rebuild( + void Function($OrderCustomerInfoResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $OrderCustomerInfoResponseBuilder toBuilder() => + new $OrderCustomerInfoResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $OrderCustomerInfoResponse && + customerCustomReference == other.customerCustomReference && + name == other.name && + email == other.email && + phone == other.phone && + corporate == other.corporate && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, customerCustomReference.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$OrderCustomerInfoResponse') + ..add('customerCustomReference', customerCustomReference) + ..add('name', name) + ..add('email', email) + ..add('phone', phone) + ..add('corporate', corporate) + ..add('object', object)) + .toString(); + } +} + +class $OrderCustomerInfoResponseBuilder + implements + Builder<$OrderCustomerInfoResponse, $OrderCustomerInfoResponseBuilder>, + OrderCustomerInfoResponseBuilder { + _$$OrderCustomerInfoResponse? _$v; + + String? _customerCustomReference; + String? get customerCustomReference => _$this._customerCustomReference; + set customerCustomReference(covariant String? customerCustomReference) => + _$this._customerCustomReference = customerCustomReference; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(covariant bool? corporate) => _$this._corporate = corporate; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + $OrderCustomerInfoResponseBuilder() { + $OrderCustomerInfoResponse._defaults(this); + } + + $OrderCustomerInfoResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _customerCustomReference = $v.customerCustomReference; + _name = $v.name; + _email = $v.email; + _phone = $v.phone; + _corporate = $v.corporate; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant $OrderCustomerInfoResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$OrderCustomerInfoResponse; + } + + @override + void update(void Function($OrderCustomerInfoResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $OrderCustomerInfoResponse build() => _build(); + + _$$OrderCustomerInfoResponse _build() { + final _$result = _$v ?? + new _$$OrderCustomerInfoResponse._( + customerCustomReference: customerCustomReference, + name: name, + email: email, + phone: phone, + corporate: corporate, + object: object); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_discount_lines_request.g.dart b/lib/src/model/order_discount_lines_request.g.dart new file mode 100644 index 0000000..1ff2e46 --- /dev/null +++ b/lib/src/model/order_discount_lines_request.g.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_discount_lines_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class OrderDiscountLinesRequestBuilder { + void replace(OrderDiscountLinesRequest other); + void update(void Function(OrderDiscountLinesRequestBuilder) updates); + int? get amount; + set amount(int? amount); + + String? get code; + set code(String? code); + + String? get type; + set type(String? type); +} + +class _$$OrderDiscountLinesRequest extends $OrderDiscountLinesRequest { + @override + final int amount; + @override + final String code; + @override + final String type; + + factory _$$OrderDiscountLinesRequest( + [void Function($OrderDiscountLinesRequestBuilder)? updates]) => + (new $OrderDiscountLinesRequestBuilder()..update(updates))._build(); + + _$$OrderDiscountLinesRequest._( + {required this.amount, required this.code, required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'$OrderDiscountLinesRequest', 'amount'); + BuiltValueNullFieldError.checkNotNull( + code, r'$OrderDiscountLinesRequest', 'code'); + BuiltValueNullFieldError.checkNotNull( + type, r'$OrderDiscountLinesRequest', 'type'); + } + + @override + $OrderDiscountLinesRequest rebuild( + void Function($OrderDiscountLinesRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $OrderDiscountLinesRequestBuilder toBuilder() => + new $OrderDiscountLinesRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $OrderDiscountLinesRequest && + amount == other.amount && + code == other.code && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$OrderDiscountLinesRequest') + ..add('amount', amount) + ..add('code', code) + ..add('type', type)) + .toString(); + } +} + +class $OrderDiscountLinesRequestBuilder + implements + Builder<$OrderDiscountLinesRequest, $OrderDiscountLinesRequestBuilder>, + OrderDiscountLinesRequestBuilder { + _$$OrderDiscountLinesRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(covariant int? amount) => _$this._amount = amount; + + String? _code; + String? get code => _$this._code; + set code(covariant String? code) => _$this._code = code; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + $OrderDiscountLinesRequestBuilder() { + $OrderDiscountLinesRequest._defaults(this); + } + + $OrderDiscountLinesRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _code = $v.code; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant $OrderDiscountLinesRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$OrderDiscountLinesRequest; + } + + @override + void update(void Function($OrderDiscountLinesRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $OrderDiscountLinesRequest build() => _build(); + + _$$OrderDiscountLinesRequest _build() { + final _$result = _$v ?? + new _$$OrderDiscountLinesRequest._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'$OrderDiscountLinesRequest', 'amount'), + code: BuiltValueNullFieldError.checkNotNull( + code, r'$OrderDiscountLinesRequest', 'code'), + type: BuiltValueNullFieldError.checkNotNull( + type, r'$OrderDiscountLinesRequest', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_fiscal_entity_address_response.g.dart b/lib/src/model/order_fiscal_entity_address_response.g.dart new file mode 100644 index 0000000..7a8020b --- /dev/null +++ b/lib/src/model/order_fiscal_entity_address_response.g.dart @@ -0,0 +1,205 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_fiscal_entity_address_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderFiscalEntityAddressResponse + extends OrderFiscalEntityAddressResponse { + @override + final String? object; + @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 String externalNumber; + + factory _$OrderFiscalEntityAddressResponse( + [void Function(OrderFiscalEntityAddressResponseBuilder)? updates]) => + (new OrderFiscalEntityAddressResponseBuilder()..update(updates))._build(); + + _$OrderFiscalEntityAddressResponse._( + {this.object, + required this.street1, + this.street2, + required this.postalCode, + required this.city, + this.state, + required this.country, + required this.externalNumber}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + street1, r'OrderFiscalEntityAddressResponse', 'street1'); + BuiltValueNullFieldError.checkNotNull( + postalCode, r'OrderFiscalEntityAddressResponse', 'postalCode'); + BuiltValueNullFieldError.checkNotNull( + city, r'OrderFiscalEntityAddressResponse', 'city'); + BuiltValueNullFieldError.checkNotNull( + country, r'OrderFiscalEntityAddressResponse', 'country'); + BuiltValueNullFieldError.checkNotNull( + externalNumber, r'OrderFiscalEntityAddressResponse', 'externalNumber'); + } + + @override + OrderFiscalEntityAddressResponse rebuild( + void Function(OrderFiscalEntityAddressResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderFiscalEntityAddressResponseBuilder toBuilder() => + new OrderFiscalEntityAddressResponseBuilder()..replace(this); + + @override + 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; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, street1.hashCode); + _$hash = $jc(_$hash, street2.hashCode); + _$hash = $jc(_$hash, postalCode.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, externalNumber.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @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)) + .toString(); + } +} + +class OrderFiscalEntityAddressResponseBuilder + implements + Builder, + 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; + + 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; + + String? _externalNumber; + String? get externalNumber => _$this._externalNumber; + set externalNumber(covariant String? externalNumber) => + _$this._externalNumber = externalNumber; + + OrderFiscalEntityAddressResponseBuilder() { + OrderFiscalEntityAddressResponse._defaults(this); + } + + OrderFiscalEntityAddressResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _object = $v.object; + _street1 = $v.street1; + _street2 = $v.street2; + _postalCode = $v.postalCode; + _city = $v.city; + _state = $v.state; + _country = $v.country; + _externalNumber = $v.externalNumber; + _$v = null; + } + return this; + } + + @override + void replace(covariant OrderFiscalEntityAddressResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderFiscalEntityAddressResponse; + } + + @override + void update(void Function(OrderFiscalEntityAddressResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderFiscalEntityAddressResponse build() => _build(); + + _$OrderFiscalEntityAddressResponse _build() { + final _$result = _$v ?? + new _$OrderFiscalEntityAddressResponse._( + object: object, + street1: BuiltValueNullFieldError.checkNotNull( + street1, r'OrderFiscalEntityAddressResponse', 'street1'), + street2: street2, + postalCode: BuiltValueNullFieldError.checkNotNull( + postalCode, r'OrderFiscalEntityAddressResponse', 'postalCode'), + city: BuiltValueNullFieldError.checkNotNull( + city, r'OrderFiscalEntityAddressResponse', 'city'), + state: state, + country: BuiltValueNullFieldError.checkNotNull( + country, r'OrderFiscalEntityAddressResponse', 'country'), + externalNumber: BuiltValueNullFieldError.checkNotNull( + externalNumber, + r'OrderFiscalEntityAddressResponse', + 'externalNumber')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_fiscal_entity_request.g.dart b/lib/src/model/order_fiscal_entity_request.g.dart new file mode 100644 index 0000000..6353224 --- /dev/null +++ b/lib/src/model/order_fiscal_entity_request.g.dart @@ -0,0 +1,177 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_fiscal_entity_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderFiscalEntityRequest extends OrderFiscalEntityRequest { + @override + final FiscalEntityAddress address; + @override + final String? email; + @override + final BuiltMap? metadata; + @override + final String? name; + @override + final String? phone; + @override + final String? taxId; + + factory _$OrderFiscalEntityRequest( + [void Function(OrderFiscalEntityRequestBuilder)? updates]) => + (new OrderFiscalEntityRequestBuilder()..update(updates))._build(); + + _$OrderFiscalEntityRequest._( + {required this.address, + this.email, + this.metadata, + this.name, + this.phone, + this.taxId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + address, r'OrderFiscalEntityRequest', 'address'); + } + + @override + OrderFiscalEntityRequest rebuild( + void Function(OrderFiscalEntityRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderFiscalEntityRequestBuilder toBuilder() => + new OrderFiscalEntityRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderFiscalEntityRequest && + address == other.address && + email == other.email && + metadata == other.metadata && + name == other.name && + phone == other.phone && + taxId == other.taxId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderFiscalEntityRequest') + ..add('address', address) + ..add('email', email) + ..add('metadata', metadata) + ..add('name', name) + ..add('phone', phone) + ..add('taxId', taxId)) + .toString(); + } +} + +class OrderFiscalEntityRequestBuilder + implements + Builder { + _$OrderFiscalEntityRequest? _$v; + + FiscalEntityAddress? _address; + FiscalEntityAddress? get address => _$this._address; + set address(FiscalEntityAddress? address) => _$this._address = address; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _taxId; + String? get taxId => _$this._taxId; + set taxId(String? taxId) => _$this._taxId = taxId; + + OrderFiscalEntityRequestBuilder() { + OrderFiscalEntityRequest._defaults(this); + } + + OrderFiscalEntityRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _address = $v.address; + _email = $v.email; + _metadata = $v.metadata?.toBuilder(); + _name = $v.name; + _phone = $v.phone; + _taxId = $v.taxId; + _$v = null; + } + return this; + } + + @override + void replace(OrderFiscalEntityRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderFiscalEntityRequest; + } + + @override + void update(void Function(OrderFiscalEntityRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderFiscalEntityRequest build() => _build(); + + _$OrderFiscalEntityRequest _build() { + _$OrderFiscalEntityRequest _$result; + try { + _$result = _$v ?? + new _$OrderFiscalEntityRequest._( + address: BuiltValueNullFieldError.checkNotNull( + address, r'OrderFiscalEntityRequest', 'address'), + email: email, + metadata: _metadata?.build(), + name: name, + phone: phone, + taxId: taxId); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderFiscalEntityRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_fiscal_entity_response.g.dart b/lib/src/model/order_fiscal_entity_response.g.dart new file mode 100644 index 0000000..afbd435 --- /dev/null +++ b/lib/src/model/order_fiscal_entity_response.g.dart @@ -0,0 +1,226 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_fiscal_entity_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderFiscalEntityResponse extends OrderFiscalEntityResponse { + @override + final OrderFiscalEntityAddressResponse address; + @override + final String? email; + @override + final BuiltMap? metadata; + @override + final String? name; + @override + final String? taxId; + @override + final String id; + @override + final int createdAt; + @override + final String object; + @override + final String? phone; + + factory _$OrderFiscalEntityResponse( + [void Function(OrderFiscalEntityResponseBuilder)? updates]) => + (new OrderFiscalEntityResponseBuilder()..update(updates))._build(); + + _$OrderFiscalEntityResponse._( + {required this.address, + this.email, + this.metadata, + this.name, + this.taxId, + required this.id, + required this.createdAt, + required this.object, + this.phone}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + address, r'OrderFiscalEntityResponse', 'address'); + BuiltValueNullFieldError.checkNotNull( + id, r'OrderFiscalEntityResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'OrderFiscalEntityResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + object, r'OrderFiscalEntityResponse', 'object'); + } + + @override + OrderFiscalEntityResponse rebuild( + void Function(OrderFiscalEntityResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderFiscalEntityResponseBuilder toBuilder() => + new OrderFiscalEntityResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderFiscalEntityResponse && + address == other.address && + email == other.email && + metadata == other.metadata && + name == other.name && + taxId == other.taxId && + id == other.id && + createdAt == other.createdAt && + object == other.object && + phone == other.phone; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderFiscalEntityResponse') + ..add('address', address) + ..add('email', email) + ..add('metadata', metadata) + ..add('name', name) + ..add('taxId', taxId) + ..add('id', id) + ..add('createdAt', createdAt) + ..add('object', object) + ..add('phone', phone)) + .toString(); + } +} + +class OrderFiscalEntityResponseBuilder + implements + Builder { + _$OrderFiscalEntityResponse? _$v; + + OrderFiscalEntityAddressResponseBuilder? _address; + OrderFiscalEntityAddressResponseBuilder get address => + _$this._address ??= new OrderFiscalEntityAddressResponseBuilder(); + set address(OrderFiscalEntityAddressResponseBuilder? address) => + _$this._address = address; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _taxId; + String? get taxId => _$this._taxId; + set taxId(String? taxId) => _$this._taxId = taxId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + OrderFiscalEntityResponseBuilder() { + OrderFiscalEntityResponse._defaults(this); + } + + OrderFiscalEntityResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _address = $v.address.toBuilder(); + _email = $v.email; + _metadata = $v.metadata?.toBuilder(); + _name = $v.name; + _taxId = $v.taxId; + _id = $v.id; + _createdAt = $v.createdAt; + _object = $v.object; + _phone = $v.phone; + _$v = null; + } + return this; + } + + @override + void replace(OrderFiscalEntityResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderFiscalEntityResponse; + } + + @override + void update(void Function(OrderFiscalEntityResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderFiscalEntityResponse build() => _build(); + + _$OrderFiscalEntityResponse _build() { + _$OrderFiscalEntityResponse _$result; + try { + _$result = _$v ?? + new _$OrderFiscalEntityResponse._( + address: address.build(), + email: email, + metadata: _metadata?.build(), + name: name, + taxId: taxId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'OrderFiscalEntityResponse', 'id'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'OrderFiscalEntityResponse', 'createdAt'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'OrderFiscalEntityResponse', 'object'), + phone: phone); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderFiscalEntityResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_next_action_response.g.dart b/lib/src/model/order_next_action_response.g.dart new file mode 100644 index 0000000..1c43be4 --- /dev/null +++ b/lib/src/model/order_next_action_response.g.dart @@ -0,0 +1,123 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_next_action_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderNextActionResponse extends OrderNextActionResponse { + @override + final OrderNextActionResponseRedirectToUrl? redirectToUrl; + @override + final String? type; + + factory _$OrderNextActionResponse( + [void Function(OrderNextActionResponseBuilder)? updates]) => + (new OrderNextActionResponseBuilder()..update(updates))._build(); + + _$OrderNextActionResponse._({this.redirectToUrl, this.type}) : super._(); + + @override + OrderNextActionResponse rebuild( + void Function(OrderNextActionResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderNextActionResponseBuilder toBuilder() => + new OrderNextActionResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderNextActionResponse && + redirectToUrl == other.redirectToUrl && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, redirectToUrl.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderNextActionResponse') + ..add('redirectToUrl', redirectToUrl) + ..add('type', type)) + .toString(); + } +} + +class OrderNextActionResponseBuilder + implements + Builder { + _$OrderNextActionResponse? _$v; + + OrderNextActionResponseRedirectToUrlBuilder? _redirectToUrl; + OrderNextActionResponseRedirectToUrlBuilder get redirectToUrl => + _$this._redirectToUrl ??= + new OrderNextActionResponseRedirectToUrlBuilder(); + set redirectToUrl( + OrderNextActionResponseRedirectToUrlBuilder? redirectToUrl) => + _$this._redirectToUrl = redirectToUrl; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + OrderNextActionResponseBuilder() { + OrderNextActionResponse._defaults(this); + } + + OrderNextActionResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _redirectToUrl = $v.redirectToUrl?.toBuilder(); + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(OrderNextActionResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderNextActionResponse; + } + + @override + void update(void Function(OrderNextActionResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderNextActionResponse build() => _build(); + + _$OrderNextActionResponse _build() { + _$OrderNextActionResponse _$result; + try { + _$result = _$v ?? + new _$OrderNextActionResponse._( + redirectToUrl: _redirectToUrl?.build(), type: type); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'redirectToUrl'; + _redirectToUrl?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderNextActionResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_next_action_response_redirect_to_url.g.dart b/lib/src/model/order_next_action_response_redirect_to_url.g.dart new file mode 100644 index 0000000..080555a --- /dev/null +++ b/lib/src/model/order_next_action_response_redirect_to_url.g.dart @@ -0,0 +1,112 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_next_action_response_redirect_to_url.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderNextActionResponseRedirectToUrl + extends OrderNextActionResponseRedirectToUrl { + @override + final String? url; + @override + final String? returnUrl; + + factory _$OrderNextActionResponseRedirectToUrl( + [void Function(OrderNextActionResponseRedirectToUrlBuilder)? + updates]) => + (new OrderNextActionResponseRedirectToUrlBuilder()..update(updates)) + ._build(); + + _$OrderNextActionResponseRedirectToUrl._({this.url, this.returnUrl}) + : super._(); + + @override + OrderNextActionResponseRedirectToUrl rebuild( + void Function(OrderNextActionResponseRedirectToUrlBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderNextActionResponseRedirectToUrlBuilder toBuilder() => + new OrderNextActionResponseRedirectToUrlBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderNextActionResponseRedirectToUrl && + url == other.url && + returnUrl == other.returnUrl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, returnUrl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderNextActionResponseRedirectToUrl') + ..add('url', url) + ..add('returnUrl', returnUrl)) + .toString(); + } +} + +class OrderNextActionResponseRedirectToUrlBuilder + implements + Builder { + _$OrderNextActionResponseRedirectToUrl? _$v; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _returnUrl; + String? get returnUrl => _$this._returnUrl; + set returnUrl(String? returnUrl) => _$this._returnUrl = returnUrl; + + OrderNextActionResponseRedirectToUrlBuilder() { + OrderNextActionResponseRedirectToUrl._defaults(this); + } + + OrderNextActionResponseRedirectToUrlBuilder get _$this { + final $v = _$v; + if ($v != null) { + _url = $v.url; + _returnUrl = $v.returnUrl; + _$v = null; + } + return this; + } + + @override + void replace(OrderNextActionResponseRedirectToUrl other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderNextActionResponseRedirectToUrl; + } + + @override + void update( + void Function(OrderNextActionResponseRedirectToUrlBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderNextActionResponseRedirectToUrl build() => _build(); + + _$OrderNextActionResponseRedirectToUrl _build() { + final _$result = _$v ?? + new _$OrderNextActionResponseRedirectToUrl._( + url: url, returnUrl: returnUrl); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_refund_request.g.dart b/lib/src/model/order_refund_request.g.dart new file mode 100644 index 0000000..edee306 --- /dev/null +++ b/lib/src/model/order_refund_request.g.dart @@ -0,0 +1,126 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_refund_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderRefundRequest extends OrderRefundRequest { + @override + final int amount; + @override + final int? expiresAt; + @override + final String reason; + + factory _$OrderRefundRequest( + [void Function(OrderRefundRequestBuilder)? updates]) => + (new OrderRefundRequestBuilder()..update(updates))._build(); + + _$OrderRefundRequest._( + {required this.amount, this.expiresAt, required this.reason}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'OrderRefundRequest', 'amount'); + BuiltValueNullFieldError.checkNotNull( + reason, r'OrderRefundRequest', 'reason'); + } + + @override + OrderRefundRequest rebuild( + void Function(OrderRefundRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderRefundRequestBuilder toBuilder() => + new OrderRefundRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderRefundRequest && + amount == other.amount && + expiresAt == other.expiresAt && + reason == other.reason; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, reason.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderRefundRequest') + ..add('amount', amount) + ..add('expiresAt', expiresAt) + ..add('reason', reason)) + .toString(); + } +} + +class OrderRefundRequestBuilder + implements Builder { + _$OrderRefundRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _reason; + String? get reason => _$this._reason; + set reason(String? reason) => _$this._reason = reason; + + OrderRefundRequestBuilder() { + OrderRefundRequest._defaults(this); + } + + OrderRefundRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _expiresAt = $v.expiresAt; + _reason = $v.reason; + _$v = null; + } + return this; + } + + @override + void replace(OrderRefundRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderRefundRequest; + } + + @override + void update(void Function(OrderRefundRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderRefundRequest build() => _build(); + + _$OrderRefundRequest _build() { + final _$result = _$v ?? + new _$OrderRefundRequest._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'OrderRefundRequest', 'amount'), + expiresAt: expiresAt, + reason: BuiltValueNullFieldError.checkNotNull( + reason, r'OrderRefundRequest', 'reason')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_request.g.dart b/lib/src/model/order_request.g.dart new file mode 100644 index 0000000..971cc13 --- /dev/null +++ b/lib/src/model/order_request.g.dart @@ -0,0 +1,332 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderRequest extends OrderRequest { + @override + final BuiltList? charges; + @override + final CheckoutRequest? checkout; + @override + final String currency; + @override + final OrderRequestCustomerInfo customerInfo; + @override + final BuiltList? discountLines; + @override + final OrderFiscalEntityRequest? fiscalEntity; + @override + final BuiltList lineItems; + @override + final BuiltMap? metadata; + @override + final bool? needsShippingContact; + @override + final bool? preAuthorize; + @override + final String? processingMode; + @override + final String? returnUrl; + @override + final CustomerShippingContacts? shippingContact; + @override + final BuiltList? shippingLines; + @override + final BuiltList? taxLines; + @override + final String? threeDsMode; + + factory _$OrderRequest([void Function(OrderRequestBuilder)? updates]) => + (new OrderRequestBuilder()..update(updates))._build(); + + _$OrderRequest._( + {this.charges, + this.checkout, + required this.currency, + required this.customerInfo, + this.discountLines, + this.fiscalEntity, + required this.lineItems, + this.metadata, + this.needsShippingContact, + this.preAuthorize, + this.processingMode, + this.returnUrl, + this.shippingContact, + this.shippingLines, + this.taxLines, + this.threeDsMode}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + currency, r'OrderRequest', 'currency'); + BuiltValueNullFieldError.checkNotNull( + customerInfo, r'OrderRequest', 'customerInfo'); + BuiltValueNullFieldError.checkNotNull( + lineItems, r'OrderRequest', 'lineItems'); + } + + @override + OrderRequest rebuild(void Function(OrderRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderRequestBuilder toBuilder() => new OrderRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderRequest && + charges == other.charges && + checkout == other.checkout && + currency == other.currency && + customerInfo == other.customerInfo && + discountLines == other.discountLines && + fiscalEntity == other.fiscalEntity && + lineItems == other.lineItems && + metadata == other.metadata && + needsShippingContact == other.needsShippingContact && + preAuthorize == other.preAuthorize && + processingMode == other.processingMode && + returnUrl == other.returnUrl && + shippingContact == other.shippingContact && + shippingLines == other.shippingLines && + taxLines == other.taxLines && + threeDsMode == other.threeDsMode; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, charges.hashCode); + _$hash = $jc(_$hash, checkout.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerInfo.hashCode); + _$hash = $jc(_$hash, discountLines.hashCode); + _$hash = $jc(_$hash, fiscalEntity.hashCode); + _$hash = $jc(_$hash, lineItems.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, needsShippingContact.hashCode); + _$hash = $jc(_$hash, preAuthorize.hashCode); + _$hash = $jc(_$hash, processingMode.hashCode); + _$hash = $jc(_$hash, returnUrl.hashCode); + _$hash = $jc(_$hash, shippingContact.hashCode); + _$hash = $jc(_$hash, shippingLines.hashCode); + _$hash = $jc(_$hash, taxLines.hashCode); + _$hash = $jc(_$hash, threeDsMode.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderRequest') + ..add('charges', charges) + ..add('checkout', checkout) + ..add('currency', currency) + ..add('customerInfo', customerInfo) + ..add('discountLines', discountLines) + ..add('fiscalEntity', fiscalEntity) + ..add('lineItems', lineItems) + ..add('metadata', metadata) + ..add('needsShippingContact', needsShippingContact) + ..add('preAuthorize', preAuthorize) + ..add('processingMode', processingMode) + ..add('returnUrl', returnUrl) + ..add('shippingContact', shippingContact) + ..add('shippingLines', shippingLines) + ..add('taxLines', taxLines) + ..add('threeDsMode', threeDsMode)) + .toString(); + } +} + +class OrderRequestBuilder + implements Builder { + _$OrderRequest? _$v; + + ListBuilder? _charges; + ListBuilder get charges => + _$this._charges ??= new ListBuilder(); + set charges(ListBuilder? charges) => _$this._charges = charges; + + CheckoutRequestBuilder? _checkout; + CheckoutRequestBuilder get checkout => + _$this._checkout ??= new CheckoutRequestBuilder(); + set checkout(CheckoutRequestBuilder? checkout) => _$this._checkout = checkout; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + OrderRequestCustomerInfoBuilder? _customerInfo; + OrderRequestCustomerInfoBuilder get customerInfo => + _$this._customerInfo ??= new OrderRequestCustomerInfoBuilder(); + set customerInfo(OrderRequestCustomerInfoBuilder? customerInfo) => + _$this._customerInfo = customerInfo; + + ListBuilder? _discountLines; + ListBuilder get discountLines => + _$this._discountLines ??= new ListBuilder(); + set discountLines(ListBuilder? discountLines) => + _$this._discountLines = discountLines; + + OrderFiscalEntityRequestBuilder? _fiscalEntity; + OrderFiscalEntityRequestBuilder get fiscalEntity => + _$this._fiscalEntity ??= new OrderFiscalEntityRequestBuilder(); + set fiscalEntity(OrderFiscalEntityRequestBuilder? fiscalEntity) => + _$this._fiscalEntity = fiscalEntity; + + ListBuilder? _lineItems; + ListBuilder get lineItems => + _$this._lineItems ??= new ListBuilder(); + set lineItems(ListBuilder? lineItems) => + _$this._lineItems = lineItems; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + bool? _needsShippingContact; + bool? get needsShippingContact => _$this._needsShippingContact; + set needsShippingContact(bool? needsShippingContact) => + _$this._needsShippingContact = needsShippingContact; + + bool? _preAuthorize; + bool? get preAuthorize => _$this._preAuthorize; + set preAuthorize(bool? preAuthorize) => _$this._preAuthorize = preAuthorize; + + String? _processingMode; + String? get processingMode => _$this._processingMode; + set processingMode(String? processingMode) => + _$this._processingMode = processingMode; + + String? _returnUrl; + String? get returnUrl => _$this._returnUrl; + set returnUrl(String? returnUrl) => _$this._returnUrl = returnUrl; + + CustomerShippingContacts? _shippingContact; + CustomerShippingContacts? get shippingContact => _$this._shippingContact; + set shippingContact(CustomerShippingContacts? shippingContact) => + _$this._shippingContact = shippingContact; + + ListBuilder? _shippingLines; + ListBuilder get shippingLines => + _$this._shippingLines ??= new ListBuilder(); + set shippingLines(ListBuilder? shippingLines) => + _$this._shippingLines = shippingLines; + + ListBuilder? _taxLines; + ListBuilder get taxLines => + _$this._taxLines ??= new ListBuilder(); + set taxLines(ListBuilder? taxLines) => + _$this._taxLines = taxLines; + + String? _threeDsMode; + String? get threeDsMode => _$this._threeDsMode; + set threeDsMode(String? threeDsMode) => _$this._threeDsMode = threeDsMode; + + OrderRequestBuilder() { + OrderRequest._defaults(this); + } + + OrderRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _charges = $v.charges?.toBuilder(); + _checkout = $v.checkout?.toBuilder(); + _currency = $v.currency; + _customerInfo = $v.customerInfo.toBuilder(); + _discountLines = $v.discountLines?.toBuilder(); + _fiscalEntity = $v.fiscalEntity?.toBuilder(); + _lineItems = $v.lineItems.toBuilder(); + _metadata = $v.metadata?.toBuilder(); + _needsShippingContact = $v.needsShippingContact; + _preAuthorize = $v.preAuthorize; + _processingMode = $v.processingMode; + _returnUrl = $v.returnUrl; + _shippingContact = $v.shippingContact; + _shippingLines = $v.shippingLines?.toBuilder(); + _taxLines = $v.taxLines?.toBuilder(); + _threeDsMode = $v.threeDsMode; + _$v = null; + } + return this; + } + + @override + void replace(OrderRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderRequest; + } + + @override + void update(void Function(OrderRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderRequest build() => _build(); + + _$OrderRequest _build() { + _$OrderRequest _$result; + try { + _$result = _$v ?? + new _$OrderRequest._( + charges: _charges?.build(), + checkout: _checkout?.build(), + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'OrderRequest', 'currency'), + customerInfo: customerInfo.build(), + discountLines: _discountLines?.build(), + fiscalEntity: _fiscalEntity?.build(), + lineItems: lineItems.build(), + metadata: _metadata?.build(), + needsShippingContact: needsShippingContact, + preAuthorize: preAuthorize, + processingMode: processingMode, + returnUrl: returnUrl, + shippingContact: shippingContact, + shippingLines: _shippingLines?.build(), + taxLines: _taxLines?.build(), + threeDsMode: threeDsMode); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'charges'; + _charges?.build(); + _$failedField = 'checkout'; + _checkout?.build(); + + _$failedField = 'customerInfo'; + customerInfo.build(); + _$failedField = 'discountLines'; + _discountLines?.build(); + _$failedField = 'fiscalEntity'; + _fiscalEntity?.build(); + _$failedField = 'lineItems'; + lineItems.build(); + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'shippingLines'; + _shippingLines?.build(); + _$failedField = 'taxLines'; + _taxLines?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_request_customer_info.g.dart b/lib/src/model/order_request_customer_info.g.dart new file mode 100644 index 0000000..f4d2929 --- /dev/null +++ b/lib/src/model/order_request_customer_info.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_request_customer_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderRequestCustomerInfo extends OrderRequestCustomerInfo { + @override + final OneOf oneOf; + + factory _$OrderRequestCustomerInfo( + [void Function(OrderRequestCustomerInfoBuilder)? updates]) => + (new OrderRequestCustomerInfoBuilder()..update(updates))._build(); + + _$OrderRequestCustomerInfo._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'OrderRequestCustomerInfo', 'oneOf'); + } + + @override + OrderRequestCustomerInfo rebuild( + void Function(OrderRequestCustomerInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderRequestCustomerInfoBuilder toBuilder() => + new OrderRequestCustomerInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderRequestCustomerInfo && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderRequestCustomerInfo') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class OrderRequestCustomerInfoBuilder + implements + Builder { + _$OrderRequestCustomerInfo? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + OrderRequestCustomerInfoBuilder() { + OrderRequestCustomerInfo._defaults(this); + } + + OrderRequestCustomerInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(OrderRequestCustomerInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderRequestCustomerInfo; + } + + @override + void update(void Function(OrderRequestCustomerInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderRequestCustomerInfo build() => _build(); + + _$OrderRequestCustomerInfo _build() { + final _$result = _$v ?? + new _$OrderRequestCustomerInfo._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'OrderRequestCustomerInfo', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response.g.dart b/lib/src/model/order_response.g.dart new file mode 100644 index 0000000..8b1b58e --- /dev/null +++ b/lib/src/model/order_response.g.dart @@ -0,0 +1,392 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponse extends OrderResponse { + @override + final int? amount; + @override + final int? amountRefunded; + @override + final ChargeResponseChannel? channel; + @override + final OrderResponseCharges? charges; + @override + final OrderResponseCheckout? checkout; + @override + final int? createdAt; + @override + final String? currency; + @override + final OrderResponseCustomerInfo? customerInfo; + @override + final OrderResponseDiscountLines? discountLines; + @override + final OrderFiscalEntityResponse? fiscalEntity; + @override + final String? id; + @override + final bool? isRefundable; + @override + final OrderResponseProducts? lineItems; + @override + final bool? livemode; + @override + final BuiltMap? metadata; + @override + final OrderNextActionResponse? nextAction; + @override + final String? object; + @override + final String? paymentStatus; + @override + final String? processingMode; + @override + final OrderResponseShippingContact? shippingContact; + @override + final int? updatedAt; + + factory _$OrderResponse([void Function(OrderResponseBuilder)? updates]) => + (new OrderResponseBuilder()..update(updates))._build(); + + _$OrderResponse._( + {this.amount, + this.amountRefunded, + this.channel, + this.charges, + this.checkout, + this.createdAt, + this.currency, + this.customerInfo, + this.discountLines, + this.fiscalEntity, + this.id, + this.isRefundable, + this.lineItems, + this.livemode, + this.metadata, + this.nextAction, + this.object, + this.paymentStatus, + this.processingMode, + this.shippingContact, + this.updatedAt}) + : super._(); + + @override + OrderResponse rebuild(void Function(OrderResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseBuilder toBuilder() => new OrderResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponse && + amount == other.amount && + amountRefunded == other.amountRefunded && + channel == other.channel && + charges == other.charges && + checkout == other.checkout && + createdAt == other.createdAt && + currency == other.currency && + customerInfo == other.customerInfo && + discountLines == other.discountLines && + fiscalEntity == other.fiscalEntity && + id == other.id && + isRefundable == other.isRefundable && + lineItems == other.lineItems && + livemode == other.livemode && + metadata == other.metadata && + nextAction == other.nextAction && + object == other.object && + paymentStatus == other.paymentStatus && + processingMode == other.processingMode && + shippingContact == other.shippingContact && + updatedAt == other.updatedAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, amountRefunded.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, charges.hashCode); + _$hash = $jc(_$hash, checkout.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerInfo.hashCode); + _$hash = $jc(_$hash, discountLines.hashCode); + _$hash = $jc(_$hash, fiscalEntity.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isRefundable.hashCode); + _$hash = $jc(_$hash, lineItems.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, nextAction.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, paymentStatus.hashCode); + _$hash = $jc(_$hash, processingMode.hashCode); + _$hash = $jc(_$hash, shippingContact.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponse') + ..add('amount', amount) + ..add('amountRefunded', amountRefunded) + ..add('channel', channel) + ..add('charges', charges) + ..add('checkout', checkout) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('customerInfo', customerInfo) + ..add('discountLines', discountLines) + ..add('fiscalEntity', fiscalEntity) + ..add('id', id) + ..add('isRefundable', isRefundable) + ..add('lineItems', lineItems) + ..add('livemode', livemode) + ..add('metadata', metadata) + ..add('nextAction', nextAction) + ..add('object', object) + ..add('paymentStatus', paymentStatus) + ..add('processingMode', processingMode) + ..add('shippingContact', shippingContact) + ..add('updatedAt', updatedAt)) + .toString(); + } +} + +class OrderResponseBuilder + implements Builder { + _$OrderResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + int? _amountRefunded; + int? get amountRefunded => _$this._amountRefunded; + set amountRefunded(int? amountRefunded) => + _$this._amountRefunded = amountRefunded; + + ChargeResponseChannelBuilder? _channel; + ChargeResponseChannelBuilder get channel => + _$this._channel ??= new ChargeResponseChannelBuilder(); + set channel(ChargeResponseChannelBuilder? channel) => + _$this._channel = channel; + + OrderResponseChargesBuilder? _charges; + OrderResponseChargesBuilder get charges => + _$this._charges ??= new OrderResponseChargesBuilder(); + set charges(OrderResponseChargesBuilder? charges) => + _$this._charges = charges; + + OrderResponseCheckoutBuilder? _checkout; + OrderResponseCheckoutBuilder get checkout => + _$this._checkout ??= new OrderResponseCheckoutBuilder(); + set checkout(OrderResponseCheckoutBuilder? checkout) => + _$this._checkout = checkout; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + OrderResponseCustomerInfoBuilder? _customerInfo; + OrderResponseCustomerInfoBuilder get customerInfo => + _$this._customerInfo ??= new OrderResponseCustomerInfoBuilder(); + set customerInfo(OrderResponseCustomerInfoBuilder? customerInfo) => + _$this._customerInfo = customerInfo; + + OrderResponseDiscountLinesBuilder? _discountLines; + OrderResponseDiscountLinesBuilder get discountLines => + _$this._discountLines ??= new OrderResponseDiscountLinesBuilder(); + set discountLines(OrderResponseDiscountLinesBuilder? discountLines) => + _$this._discountLines = discountLines; + + OrderFiscalEntityResponseBuilder? _fiscalEntity; + OrderFiscalEntityResponseBuilder get fiscalEntity => + _$this._fiscalEntity ??= new OrderFiscalEntityResponseBuilder(); + set fiscalEntity(OrderFiscalEntityResponseBuilder? fiscalEntity) => + _$this._fiscalEntity = fiscalEntity; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _isRefundable; + bool? get isRefundable => _$this._isRefundable; + set isRefundable(bool? isRefundable) => _$this._isRefundable = isRefundable; + + OrderResponseProductsBuilder? _lineItems; + OrderResponseProductsBuilder get lineItems => + _$this._lineItems ??= new OrderResponseProductsBuilder(); + set lineItems(OrderResponseProductsBuilder? lineItems) => + _$this._lineItems = lineItems; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + OrderNextActionResponseBuilder? _nextAction; + OrderNextActionResponseBuilder get nextAction => + _$this._nextAction ??= new OrderNextActionResponseBuilder(); + set nextAction(OrderNextActionResponseBuilder? nextAction) => + _$this._nextAction = nextAction; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _paymentStatus; + String? get paymentStatus => _$this._paymentStatus; + set paymentStatus(String? paymentStatus) => + _$this._paymentStatus = paymentStatus; + + String? _processingMode; + String? get processingMode => _$this._processingMode; + set processingMode(String? processingMode) => + _$this._processingMode = processingMode; + + OrderResponseShippingContactBuilder? _shippingContact; + OrderResponseShippingContactBuilder get shippingContact => + _$this._shippingContact ??= new OrderResponseShippingContactBuilder(); + set shippingContact(OrderResponseShippingContactBuilder? shippingContact) => + _$this._shippingContact = shippingContact; + + int? _updatedAt; + int? get updatedAt => _$this._updatedAt; + set updatedAt(int? updatedAt) => _$this._updatedAt = updatedAt; + + OrderResponseBuilder() { + OrderResponse._defaults(this); + } + + OrderResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _amountRefunded = $v.amountRefunded; + _channel = $v.channel?.toBuilder(); + _charges = $v.charges?.toBuilder(); + _checkout = $v.checkout?.toBuilder(); + _createdAt = $v.createdAt; + _currency = $v.currency; + _customerInfo = $v.customerInfo?.toBuilder(); + _discountLines = $v.discountLines?.toBuilder(); + _fiscalEntity = $v.fiscalEntity?.toBuilder(); + _id = $v.id; + _isRefundable = $v.isRefundable; + _lineItems = $v.lineItems?.toBuilder(); + _livemode = $v.livemode; + _metadata = $v.metadata?.toBuilder(); + _nextAction = $v.nextAction?.toBuilder(); + _object = $v.object; + _paymentStatus = $v.paymentStatus; + _processingMode = $v.processingMode; + _shippingContact = $v.shippingContact?.toBuilder(); + _updatedAt = $v.updatedAt; + _$v = null; + } + return this; + } + + @override + void replace(OrderResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponse; + } + + @override + void update(void Function(OrderResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponse build() => _build(); + + _$OrderResponse _build() { + _$OrderResponse _$result; + try { + _$result = _$v ?? + new _$OrderResponse._( + amount: amount, + amountRefunded: amountRefunded, + channel: _channel?.build(), + charges: _charges?.build(), + checkout: _checkout?.build(), + createdAt: createdAt, + currency: currency, + customerInfo: _customerInfo?.build(), + discountLines: _discountLines?.build(), + fiscalEntity: _fiscalEntity?.build(), + id: id, + isRefundable: isRefundable, + lineItems: _lineItems?.build(), + livemode: livemode, + metadata: _metadata?.build(), + nextAction: _nextAction?.build(), + object: object, + paymentStatus: paymentStatus, + processingMode: processingMode, + shippingContact: _shippingContact?.build(), + updatedAt: updatedAt); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'channel'; + _channel?.build(); + _$failedField = 'charges'; + _charges?.build(); + _$failedField = 'checkout'; + _checkout?.build(); + + _$failedField = 'customerInfo'; + _customerInfo?.build(); + _$failedField = 'discountLines'; + _discountLines?.build(); + _$failedField = 'fiscalEntity'; + _fiscalEntity?.build(); + + _$failedField = 'lineItems'; + _lineItems?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + _$failedField = 'nextAction'; + _nextAction?.build(); + + _$failedField = 'shippingContact'; + _shippingContact?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_charges.g.dart b/lib/src/model/order_response_charges.g.dart new file mode 100644 index 0000000..24b96a8 --- /dev/null +++ b/lib/src/model/order_response_charges.g.dart @@ -0,0 +1,142 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response_charges.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponseCharges extends OrderResponseCharges { + @override + final BuiltList? data; + @override + final bool hasMore; + @override + final String object; + + factory _$OrderResponseCharges( + [void Function(OrderResponseChargesBuilder)? updates]) => + (new OrderResponseChargesBuilder()..update(updates))._build(); + + _$OrderResponseCharges._( + {this.data, required this.hasMore, required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'OrderResponseCharges', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'OrderResponseCharges', 'object'); + } + + @override + OrderResponseCharges rebuild( + void Function(OrderResponseChargesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseChargesBuilder toBuilder() => + new OrderResponseChargesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponseCharges && + data == other.data && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponseCharges') + ..add('data', data) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class OrderResponseChargesBuilder + implements + Builder, + PaginationBuilder { + _$OrderResponseCharges? _$v; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => _$this._data = data; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + OrderResponseChargesBuilder() { + OrderResponseCharges._defaults(this); + } + + OrderResponseChargesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant OrderResponseCharges other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponseCharges; + } + + @override + void update(void Function(OrderResponseChargesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponseCharges build() => _build(); + + _$OrderResponseCharges _build() { + _$OrderResponseCharges _$result; + try { + _$result = _$v ?? + new _$OrderResponseCharges._( + data: _data?.build(), + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'OrderResponseCharges', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'OrderResponseCharges', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderResponseCharges', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_checkout.g.dart b/lib/src/model/order_response_checkout.g.dart new file mode 100644 index 0000000..da479db --- /dev/null +++ b/lib/src/model/order_response_checkout.g.dart @@ -0,0 +1,459 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response_checkout.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponseCheckout extends OrderResponseCheckout { + @override + final BuiltList? allowedPaymentMethods; + @override + final bool? canNotExpire; + @override + final int? emailsSent; + @override + final BuiltList? excludeCardNetworks; + @override + final int? expiresAt; + @override + final String? failureUrl; + @override + final bool? force3dsFlow; + @override + final String? id; + @override + final bool? isRedirectOnFailure; + @override + final bool? livemode; + @override + final int? maxFailedRetries; + @override + final BuiltMap? metadata; + @override + final bool? monthlyInstallmentsEnabled; + @override + final BuiltList? monthlyInstallmentsOptions; + @override + final String? name; + @override + final bool? needsShippingContact; + @override + final String? object; + @override + final bool? onDemandEnabled; + @override + final int? paidPaymentsCount; + @override + final bool? recurrent; + @override + final int? redirectionTime; + @override + final String? slug; + @override + final int? smsSent; + @override + final String? successUrl; + @override + final int? startsAt; + @override + final String? status; + @override + final String? type; + @override + final String? url; + + factory _$OrderResponseCheckout( + [void Function(OrderResponseCheckoutBuilder)? updates]) => + (new OrderResponseCheckoutBuilder()..update(updates))._build(); + + _$OrderResponseCheckout._( + {this.allowedPaymentMethods, + this.canNotExpire, + this.emailsSent, + this.excludeCardNetworks, + this.expiresAt, + this.failureUrl, + this.force3dsFlow, + this.id, + this.isRedirectOnFailure, + this.livemode, + this.maxFailedRetries, + this.metadata, + this.monthlyInstallmentsEnabled, + this.monthlyInstallmentsOptions, + this.name, + this.needsShippingContact, + this.object, + this.onDemandEnabled, + this.paidPaymentsCount, + this.recurrent, + this.redirectionTime, + this.slug, + this.smsSent, + this.successUrl, + this.startsAt, + this.status, + this.type, + this.url}) + : super._(); + + @override + OrderResponseCheckout rebuild( + void Function(OrderResponseCheckoutBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseCheckoutBuilder toBuilder() => + new OrderResponseCheckoutBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponseCheckout && + allowedPaymentMethods == other.allowedPaymentMethods && + canNotExpire == other.canNotExpire && + emailsSent == other.emailsSent && + excludeCardNetworks == other.excludeCardNetworks && + expiresAt == other.expiresAt && + failureUrl == other.failureUrl && + force3dsFlow == other.force3dsFlow && + id == other.id && + isRedirectOnFailure == other.isRedirectOnFailure && + livemode == other.livemode && + maxFailedRetries == other.maxFailedRetries && + metadata == other.metadata && + monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && + monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && + name == other.name && + needsShippingContact == other.needsShippingContact && + object == other.object && + onDemandEnabled == other.onDemandEnabled && + paidPaymentsCount == other.paidPaymentsCount && + recurrent == other.recurrent && + redirectionTime == other.redirectionTime && + slug == other.slug && + smsSent == other.smsSent && + successUrl == other.successUrl && + startsAt == other.startsAt && + status == other.status && + type == other.type && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); + _$hash = $jc(_$hash, canNotExpire.hashCode); + _$hash = $jc(_$hash, emailsSent.hashCode); + _$hash = $jc(_$hash, excludeCardNetworks.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, failureUrl.hashCode); + _$hash = $jc(_$hash, force3dsFlow.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isRedirectOnFailure.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, maxFailedRetries.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, needsShippingContact.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, onDemandEnabled.hashCode); + _$hash = $jc(_$hash, paidPaymentsCount.hashCode); + _$hash = $jc(_$hash, recurrent.hashCode); + _$hash = $jc(_$hash, redirectionTime.hashCode); + _$hash = $jc(_$hash, slug.hashCode); + _$hash = $jc(_$hash, smsSent.hashCode); + _$hash = $jc(_$hash, successUrl.hashCode); + _$hash = $jc(_$hash, startsAt.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponseCheckout') + ..add('allowedPaymentMethods', allowedPaymentMethods) + ..add('canNotExpire', canNotExpire) + ..add('emailsSent', emailsSent) + ..add('excludeCardNetworks', excludeCardNetworks) + ..add('expiresAt', expiresAt) + ..add('failureUrl', failureUrl) + ..add('force3dsFlow', force3dsFlow) + ..add('id', id) + ..add('isRedirectOnFailure', isRedirectOnFailure) + ..add('livemode', livemode) + ..add('maxFailedRetries', maxFailedRetries) + ..add('metadata', metadata) + ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) + ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) + ..add('name', name) + ..add('needsShippingContact', needsShippingContact) + ..add('object', object) + ..add('onDemandEnabled', onDemandEnabled) + ..add('paidPaymentsCount', paidPaymentsCount) + ..add('recurrent', recurrent) + ..add('redirectionTime', redirectionTime) + ..add('slug', slug) + ..add('smsSent', smsSent) + ..add('successUrl', successUrl) + ..add('startsAt', startsAt) + ..add('status', status) + ..add('type', type) + ..add('url', url)) + .toString(); + } +} + +class OrderResponseCheckoutBuilder + implements Builder { + _$OrderResponseCheckout? _$v; + + ListBuilder? _allowedPaymentMethods; + ListBuilder get allowedPaymentMethods => + _$this._allowedPaymentMethods ??= new ListBuilder(); + set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => + _$this._allowedPaymentMethods = allowedPaymentMethods; + + bool? _canNotExpire; + bool? get canNotExpire => _$this._canNotExpire; + set canNotExpire(bool? canNotExpire) => _$this._canNotExpire = canNotExpire; + + int? _emailsSent; + int? get emailsSent => _$this._emailsSent; + set emailsSent(int? emailsSent) => _$this._emailsSent = emailsSent; + + ListBuilder? _excludeCardNetworks; + ListBuilder get excludeCardNetworks => + _$this._excludeCardNetworks ??= new ListBuilder(); + set excludeCardNetworks(ListBuilder? excludeCardNetworks) => + _$this._excludeCardNetworks = excludeCardNetworks; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _failureUrl; + String? get failureUrl => _$this._failureUrl; + set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; + + bool? _force3dsFlow; + bool? get force3dsFlow => _$this._force3dsFlow; + set force3dsFlow(bool? force3dsFlow) => _$this._force3dsFlow = force3dsFlow; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _isRedirectOnFailure; + bool? get isRedirectOnFailure => _$this._isRedirectOnFailure; + set isRedirectOnFailure(bool? isRedirectOnFailure) => + _$this._isRedirectOnFailure = isRedirectOnFailure; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + int? _maxFailedRetries; + int? get maxFailedRetries => _$this._maxFailedRetries; + set maxFailedRetries(int? maxFailedRetries) => + _$this._maxFailedRetries = maxFailedRetries; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + bool? _monthlyInstallmentsEnabled; + bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; + set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => + _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; + + ListBuilder? _monthlyInstallmentsOptions; + ListBuilder get monthlyInstallmentsOptions => + _$this._monthlyInstallmentsOptions ??= new ListBuilder(); + set monthlyInstallmentsOptions( + ListBuilder? monthlyInstallmentsOptions) => + _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _needsShippingContact; + bool? get needsShippingContact => _$this._needsShippingContact; + set needsShippingContact(bool? needsShippingContact) => + _$this._needsShippingContact = needsShippingContact; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + bool? _onDemandEnabled; + bool? get onDemandEnabled => _$this._onDemandEnabled; + set onDemandEnabled(bool? onDemandEnabled) => + _$this._onDemandEnabled = onDemandEnabled; + + int? _paidPaymentsCount; + int? get paidPaymentsCount => _$this._paidPaymentsCount; + set paidPaymentsCount(int? paidPaymentsCount) => + _$this._paidPaymentsCount = paidPaymentsCount; + + bool? _recurrent; + bool? get recurrent => _$this._recurrent; + set recurrent(bool? recurrent) => _$this._recurrent = recurrent; + + int? _redirectionTime; + int? get redirectionTime => _$this._redirectionTime; + set redirectionTime(int? redirectionTime) => + _$this._redirectionTime = redirectionTime; + + String? _slug; + String? get slug => _$this._slug; + set slug(String? slug) => _$this._slug = slug; + + int? _smsSent; + int? get smsSent => _$this._smsSent; + set smsSent(int? smsSent) => _$this._smsSent = smsSent; + + String? _successUrl; + String? get successUrl => _$this._successUrl; + set successUrl(String? successUrl) => _$this._successUrl = successUrl; + + int? _startsAt; + int? get startsAt => _$this._startsAt; + set startsAt(int? startsAt) => _$this._startsAt = startsAt; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + OrderResponseCheckoutBuilder() { + OrderResponseCheckout._defaults(this); + } + + OrderResponseCheckoutBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPaymentMethods = $v.allowedPaymentMethods?.toBuilder(); + _canNotExpire = $v.canNotExpire; + _emailsSent = $v.emailsSent; + _excludeCardNetworks = $v.excludeCardNetworks?.toBuilder(); + _expiresAt = $v.expiresAt; + _failureUrl = $v.failureUrl; + _force3dsFlow = $v.force3dsFlow; + _id = $v.id; + _isRedirectOnFailure = $v.isRedirectOnFailure; + _livemode = $v.livemode; + _maxFailedRetries = $v.maxFailedRetries; + _metadata = $v.metadata?.toBuilder(); + _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; + _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); + _name = $v.name; + _needsShippingContact = $v.needsShippingContact; + _object = $v.object; + _onDemandEnabled = $v.onDemandEnabled; + _paidPaymentsCount = $v.paidPaymentsCount; + _recurrent = $v.recurrent; + _redirectionTime = $v.redirectionTime; + _slug = $v.slug; + _smsSent = $v.smsSent; + _successUrl = $v.successUrl; + _startsAt = $v.startsAt; + _status = $v.status; + _type = $v.type; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(OrderResponseCheckout other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponseCheckout; + } + + @override + void update(void Function(OrderResponseCheckoutBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponseCheckout build() => _build(); + + _$OrderResponseCheckout _build() { + _$OrderResponseCheckout _$result; + try { + _$result = _$v ?? + new _$OrderResponseCheckout._( + allowedPaymentMethods: _allowedPaymentMethods?.build(), + canNotExpire: canNotExpire, + emailsSent: emailsSent, + excludeCardNetworks: _excludeCardNetworks?.build(), + expiresAt: expiresAt, + failureUrl: failureUrl, + force3dsFlow: force3dsFlow, + id: id, + isRedirectOnFailure: isRedirectOnFailure, + livemode: livemode, + maxFailedRetries: maxFailedRetries, + metadata: _metadata?.build(), + monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, + monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), + name: name, + needsShippingContact: needsShippingContact, + object: object, + onDemandEnabled: onDemandEnabled, + paidPaymentsCount: paidPaymentsCount, + recurrent: recurrent, + redirectionTime: redirectionTime, + slug: slug, + smsSent: smsSent, + successUrl: successUrl, + startsAt: startsAt, + status: status, + type: type, + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPaymentMethods'; + _allowedPaymentMethods?.build(); + + _$failedField = 'excludeCardNetworks'; + _excludeCardNetworks?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'monthlyInstallmentsOptions'; + _monthlyInstallmentsOptions?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderResponseCheckout', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_customer_info.g.dart b/lib/src/model/order_response_customer_info.g.dart new file mode 100644 index 0000000..38667d9 --- /dev/null +++ b/lib/src/model/order_response_customer_info.g.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response_customer_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponseCustomerInfo extends OrderResponseCustomerInfo { + @override + final String? customerId; + @override + final String? customerCustomReference; + @override + final String? name; + @override + final String? email; + @override + final String? phone; + @override + final bool? corporate; + @override + final String? object; + + factory _$OrderResponseCustomerInfo( + [void Function(OrderResponseCustomerInfoBuilder)? updates]) => + (new OrderResponseCustomerInfoBuilder()..update(updates))._build(); + + _$OrderResponseCustomerInfo._( + {this.customerId, + this.customerCustomReference, + this.name, + this.email, + this.phone, + this.corporate, + this.object}) + : super._(); + + @override + OrderResponseCustomerInfo rebuild( + void Function(OrderResponseCustomerInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseCustomerInfoBuilder toBuilder() => + new OrderResponseCustomerInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponseCustomerInfo && + customerId == other.customerId && + customerCustomReference == other.customerCustomReference && + name == other.name && + email == other.email && + phone == other.phone && + corporate == other.corporate && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jc(_$hash, customerCustomReference.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponseCustomerInfo') + ..add('customerId', customerId) + ..add('customerCustomReference', customerCustomReference) + ..add('name', name) + ..add('email', email) + ..add('phone', phone) + ..add('corporate', corporate) + ..add('object', object)) + .toString(); + } +} + +class OrderResponseCustomerInfoBuilder + implements + Builder, + CustomerInfoJustCustomerIdResponseBuilder, + OrderCustomerInfoResponseBuilder { + _$OrderResponseCustomerInfo? _$v; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(covariant String? customerId) => + _$this._customerId = customerId; + + String? _customerCustomReference; + String? get customerCustomReference => _$this._customerCustomReference; + set customerCustomReference(covariant String? customerCustomReference) => + _$this._customerCustomReference = customerCustomReference; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(covariant bool? corporate) => _$this._corporate = corporate; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + OrderResponseCustomerInfoBuilder() { + OrderResponseCustomerInfo._defaults(this); + } + + OrderResponseCustomerInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _customerId = $v.customerId; + _customerCustomReference = $v.customerCustomReference; + _name = $v.name; + _email = $v.email; + _phone = $v.phone; + _corporate = $v.corporate; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant OrderResponseCustomerInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponseCustomerInfo; + } + + @override + void update(void Function(OrderResponseCustomerInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponseCustomerInfo build() => _build(); + + _$OrderResponseCustomerInfo _build() { + final _$result = _$v ?? + new _$OrderResponseCustomerInfo._( + customerId: customerId, + customerCustomReference: customerCustomReference, + name: name, + email: email, + phone: phone, + corporate: corporate, + object: object); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_discount_lines.g.dart b/lib/src/model/order_response_discount_lines.g.dart new file mode 100644 index 0000000..9e4f264 --- /dev/null +++ b/lib/src/model/order_response_discount_lines.g.dart @@ -0,0 +1,143 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response_discount_lines.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponseDiscountLines extends OrderResponseDiscountLines { + @override + final BuiltList? data; + @override + final bool hasMore; + @override + final String object; + + factory _$OrderResponseDiscountLines( + [void Function(OrderResponseDiscountLinesBuilder)? updates]) => + (new OrderResponseDiscountLinesBuilder()..update(updates))._build(); + + _$OrderResponseDiscountLines._( + {this.data, required this.hasMore, required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'OrderResponseDiscountLines', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'OrderResponseDiscountLines', 'object'); + } + + @override + OrderResponseDiscountLines rebuild( + void Function(OrderResponseDiscountLinesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseDiscountLinesBuilder toBuilder() => + new OrderResponseDiscountLinesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponseDiscountLines && + data == other.data && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponseDiscountLines') + ..add('data', data) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class OrderResponseDiscountLinesBuilder + implements + Builder, + PaginationBuilder { + _$OrderResponseDiscountLines? _$v; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => + _$this._data = data; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + OrderResponseDiscountLinesBuilder() { + OrderResponseDiscountLines._defaults(this); + } + + OrderResponseDiscountLinesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant OrderResponseDiscountLines other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponseDiscountLines; + } + + @override + void update(void Function(OrderResponseDiscountLinesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponseDiscountLines build() => _build(); + + _$OrderResponseDiscountLines _build() { + _$OrderResponseDiscountLines _$result; + try { + _$result = _$v ?? + new _$OrderResponseDiscountLines._( + data: _data?.build(), + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'OrderResponseDiscountLines', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'OrderResponseDiscountLines', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderResponseDiscountLines', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_products.g.dart b/lib/src/model/order_response_products.g.dart new file mode 100644 index 0000000..7ffb150 --- /dev/null +++ b/lib/src/model/order_response_products.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response_products.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponseProducts extends OrderResponseProducts { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$OrderResponseProducts( + [void Function(OrderResponseProductsBuilder)? updates]) => + (new OrderResponseProductsBuilder()..update(updates))._build(); + + _$OrderResponseProducts._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'OrderResponseProducts', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'OrderResponseProducts', 'object'); + } + + @override + OrderResponseProducts rebuild( + void Function(OrderResponseProductsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseProductsBuilder toBuilder() => + new OrderResponseProductsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponseProducts && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponseProducts') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class OrderResponseProductsBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$OrderResponseProducts? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + OrderResponseProductsBuilder() { + OrderResponseProducts._defaults(this); + } + + OrderResponseProductsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant OrderResponseProducts other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponseProducts; + } + + @override + void update(void Function(OrderResponseProductsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponseProducts build() => _build(); + + _$OrderResponseProducts _build() { + _$OrderResponseProducts _$result; + try { + _$result = _$v ?? + new _$OrderResponseProducts._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'OrderResponseProducts', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'OrderResponseProducts', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderResponseProducts', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_response_shipping_contact.g.dart b/lib/src/model/order_response_shipping_contact.g.dart new file mode 100644 index 0000000..cd618de --- /dev/null +++ b/lib/src/model/order_response_shipping_contact.g.dart @@ -0,0 +1,242 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_response_shipping_contact.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderResponseShippingContact extends OrderResponseShippingContact { + @override + final String? phone; + @override + final String? receiver; + @override + final String? betweenStreets; + @override + final CustomerShippingContactsResponseAddress? address; + @override + final String? parentId; + @override + final bool? default_; + @override + final String? id; + @override + final int? createdAt; + @override + final BuiltMap? metadata; + @override + final String? object; + @override + final bool? deleted; + + factory _$OrderResponseShippingContact( + [void Function(OrderResponseShippingContactBuilder)? updates]) => + (new OrderResponseShippingContactBuilder()..update(updates))._build(); + + _$OrderResponseShippingContact._( + {this.phone, + this.receiver, + this.betweenStreets, + this.address, + this.parentId, + this.default_, + this.id, + this.createdAt, + this.metadata, + this.object, + this.deleted}) + : super._(); + + @override + OrderResponseShippingContact rebuild( + void Function(OrderResponseShippingContactBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderResponseShippingContactBuilder toBuilder() => + new OrderResponseShippingContactBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderResponseShippingContact && + phone == other.phone && + receiver == other.receiver && + betweenStreets == other.betweenStreets && + address == other.address && + parentId == other.parentId && + default_ == other.default_ && + id == other.id && + createdAt == other.createdAt && + metadata == other.metadata && + object == other.object && + deleted == other.deleted; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, receiver.hashCode); + _$hash = $jc(_$hash, betweenStreets.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderResponseShippingContact') + ..add('phone', phone) + ..add('receiver', receiver) + ..add('betweenStreets', betweenStreets) + ..add('address', address) + ..add('parentId', parentId) + ..add('default_', default_) + ..add('id', id) + ..add('createdAt', createdAt) + ..add('metadata', metadata) + ..add('object', object) + ..add('deleted', deleted)) + .toString(); + } +} + +class OrderResponseShippingContactBuilder + implements + Builder, + CustomerShippingContactsResponseBuilder { + _$OrderResponseShippingContact? _$v; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + String? _receiver; + String? get receiver => _$this._receiver; + set receiver(covariant String? receiver) => _$this._receiver = receiver; + + String? _betweenStreets; + String? get betweenStreets => _$this._betweenStreets; + set betweenStreets(covariant String? betweenStreets) => + _$this._betweenStreets = betweenStreets; + + CustomerShippingContactsResponseAddressBuilder? _address; + CustomerShippingContactsResponseAddressBuilder get address => + _$this._address ??= new CustomerShippingContactsResponseAddressBuilder(); + set address( + covariant CustomerShippingContactsResponseAddressBuilder? address) => + _$this._address = address; + + 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? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(covariant int? createdAt) => _$this._createdAt = createdAt; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(covariant bool? deleted) => _$this._deleted = deleted; + + OrderResponseShippingContactBuilder() { + OrderResponseShippingContact._defaults(this); + } + + OrderResponseShippingContactBuilder get _$this { + final $v = _$v; + if ($v != null) { + _phone = $v.phone; + _receiver = $v.receiver; + _betweenStreets = $v.betweenStreets; + _address = $v.address?.toBuilder(); + _parentId = $v.parentId; + _default_ = $v.default_; + _id = $v.id; + _createdAt = $v.createdAt; + _metadata = $v.metadata?.toBuilder(); + _object = $v.object; + _deleted = $v.deleted; + _$v = null; + } + return this; + } + + @override + void replace(covariant OrderResponseShippingContact other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderResponseShippingContact; + } + + @override + void update(void Function(OrderResponseShippingContactBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderResponseShippingContact build() => _build(); + + _$OrderResponseShippingContact _build() { + _$OrderResponseShippingContact _$result; + try { + _$result = _$v ?? + new _$OrderResponseShippingContact._( + phone: phone, + receiver: receiver, + betweenStreets: betweenStreets, + address: _address?.build(), + parentId: parentId, + default_: default_, + id: id, + createdAt: createdAt, + metadata: _metadata?.build(), + object: object, + deleted: deleted); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + _address?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderResponseShippingContact', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_tax_request.g.dart b/lib/src/model/order_tax_request.g.dart new file mode 100644 index 0000000..42ebe4c --- /dev/null +++ b/lib/src/model/order_tax_request.g.dart @@ -0,0 +1,156 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_tax_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class OrderTaxRequestBuilder { + void replace(OrderTaxRequest other); + void update(void Function(OrderTaxRequestBuilder) updates); + int? get amount; + set amount(int? amount); + + String? get description; + set description(String? description); + + MapBuilder get metadata; + set metadata(MapBuilder? metadata); +} + +class _$$OrderTaxRequest extends $OrderTaxRequest { + @override + final int amount; + @override + final String description; + @override + final BuiltMap? metadata; + + factory _$$OrderTaxRequest( + [void Function($OrderTaxRequestBuilder)? updates]) => + (new $OrderTaxRequestBuilder()..update(updates))._build(); + + _$$OrderTaxRequest._( + {required this.amount, required this.description, this.metadata}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'$OrderTaxRequest', 'amount'); + BuiltValueNullFieldError.checkNotNull( + description, r'$OrderTaxRequest', 'description'); + } + + @override + $OrderTaxRequest rebuild(void Function($OrderTaxRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $OrderTaxRequestBuilder toBuilder() => + new $OrderTaxRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $OrderTaxRequest && + amount == other.amount && + description == other.description && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$OrderTaxRequest') + ..add('amount', amount) + ..add('description', description) + ..add('metadata', metadata)) + .toString(); + } +} + +class $OrderTaxRequestBuilder + implements + Builder<$OrderTaxRequest, $OrderTaxRequestBuilder>, + OrderTaxRequestBuilder { + _$$OrderTaxRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(covariant int? amount) => _$this._amount = amount; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + $OrderTaxRequestBuilder() { + $OrderTaxRequest._defaults(this); + } + + $OrderTaxRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _description = $v.description; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant $OrderTaxRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$OrderTaxRequest; + } + + @override + void update(void Function($OrderTaxRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $OrderTaxRequest build() => _build(); + + _$$OrderTaxRequest _build() { + _$$OrderTaxRequest _$result; + try { + _$result = _$v ?? + new _$$OrderTaxRequest._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'$OrderTaxRequest', 'amount'), + description: BuiltValueNullFieldError.checkNotNull( + description, r'$OrderTaxRequest', 'description'), + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$OrderTaxRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_update_fiscal_entity_request.g.dart b/lib/src/model/order_update_fiscal_entity_request.g.dart new file mode 100644 index 0000000..a12e265 --- /dev/null +++ b/lib/src/model/order_update_fiscal_entity_request.g.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_update_fiscal_entity_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderUpdateFiscalEntityRequest extends OrderUpdateFiscalEntityRequest { + @override + final FiscalEntityAddress address; + @override + final String? email; + @override + final String? name; + @override + final BuiltMap? metadata; + @override + final String? phone; + @override + final String? taxId; + + factory _$OrderUpdateFiscalEntityRequest( + [void Function(OrderUpdateFiscalEntityRequestBuilder)? updates]) => + (new OrderUpdateFiscalEntityRequestBuilder()..update(updates))._build(); + + _$OrderUpdateFiscalEntityRequest._( + {required this.address, + this.email, + this.name, + this.metadata, + this.phone, + this.taxId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + address, r'OrderUpdateFiscalEntityRequest', 'address'); + } + + @override + OrderUpdateFiscalEntityRequest rebuild( + void Function(OrderUpdateFiscalEntityRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderUpdateFiscalEntityRequestBuilder toBuilder() => + new OrderUpdateFiscalEntityRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderUpdateFiscalEntityRequest && + address == other.address && + email == other.email && + name == other.name && + metadata == other.metadata && + phone == other.phone && + taxId == other.taxId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderUpdateFiscalEntityRequest') + ..add('address', address) + ..add('email', email) + ..add('name', name) + ..add('metadata', metadata) + ..add('phone', phone) + ..add('taxId', taxId)) + .toString(); + } +} + +class OrderUpdateFiscalEntityRequestBuilder + implements + Builder { + _$OrderUpdateFiscalEntityRequest? _$v; + + FiscalEntityAddress? _address; + FiscalEntityAddress? get address => _$this._address; + set address(FiscalEntityAddress? address) => _$this._address = address; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _taxId; + String? get taxId => _$this._taxId; + set taxId(String? taxId) => _$this._taxId = taxId; + + OrderUpdateFiscalEntityRequestBuilder() { + OrderUpdateFiscalEntityRequest._defaults(this); + } + + OrderUpdateFiscalEntityRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _address = $v.address; + _email = $v.email; + _name = $v.name; + _metadata = $v.metadata?.toBuilder(); + _phone = $v.phone; + _taxId = $v.taxId; + _$v = null; + } + return this; + } + + @override + void replace(OrderUpdateFiscalEntityRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderUpdateFiscalEntityRequest; + } + + @override + void update(void Function(OrderUpdateFiscalEntityRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderUpdateFiscalEntityRequest build() => _build(); + + _$OrderUpdateFiscalEntityRequest _build() { + _$OrderUpdateFiscalEntityRequest _$result; + try { + _$result = _$v ?? + new _$OrderUpdateFiscalEntityRequest._( + address: BuiltValueNullFieldError.checkNotNull( + address, r'OrderUpdateFiscalEntityRequest', 'address'), + email: email, + name: name, + metadata: _metadata?.build(), + phone: phone, + taxId: taxId); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderUpdateFiscalEntityRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_update_request.g.dart b/lib/src/model/order_update_request.g.dart new file mode 100644 index 0000000..01c2e35 --- /dev/null +++ b/lib/src/model/order_update_request.g.dart @@ -0,0 +1,277 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderUpdateRequest extends OrderUpdateRequest { + @override + final BuiltList? charges; + @override + final CheckoutRequest? checkout; + @override + final String? currency; + @override + final OrderUpdateRequestCustomerInfo? customerInfo; + @override + final BuiltList? discountLines; + @override + final OrderUpdateFiscalEntityRequest? fiscalEntity; + @override + final BuiltList? lineItems; + @override + final BuiltMap? metadata; + @override + final bool? preAuthorize; + @override + final CustomerShippingContacts? shippingContact; + @override + final BuiltList? shippingLines; + @override + final BuiltList? taxLines; + + factory _$OrderUpdateRequest( + [void Function(OrderUpdateRequestBuilder)? updates]) => + (new OrderUpdateRequestBuilder()..update(updates))._build(); + + _$OrderUpdateRequest._( + {this.charges, + this.checkout, + this.currency, + this.customerInfo, + this.discountLines, + this.fiscalEntity, + this.lineItems, + this.metadata, + this.preAuthorize, + this.shippingContact, + this.shippingLines, + this.taxLines}) + : super._(); + + @override + OrderUpdateRequest rebuild( + void Function(OrderUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderUpdateRequestBuilder toBuilder() => + new OrderUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderUpdateRequest && + charges == other.charges && + checkout == other.checkout && + currency == other.currency && + customerInfo == other.customerInfo && + discountLines == other.discountLines && + fiscalEntity == other.fiscalEntity && + lineItems == other.lineItems && + metadata == other.metadata && + preAuthorize == other.preAuthorize && + shippingContact == other.shippingContact && + shippingLines == other.shippingLines && + taxLines == other.taxLines; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, charges.hashCode); + _$hash = $jc(_$hash, checkout.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerInfo.hashCode); + _$hash = $jc(_$hash, discountLines.hashCode); + _$hash = $jc(_$hash, fiscalEntity.hashCode); + _$hash = $jc(_$hash, lineItems.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, preAuthorize.hashCode); + _$hash = $jc(_$hash, shippingContact.hashCode); + _$hash = $jc(_$hash, shippingLines.hashCode); + _$hash = $jc(_$hash, taxLines.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderUpdateRequest') + ..add('charges', charges) + ..add('checkout', checkout) + ..add('currency', currency) + ..add('customerInfo', customerInfo) + ..add('discountLines', discountLines) + ..add('fiscalEntity', fiscalEntity) + ..add('lineItems', lineItems) + ..add('metadata', metadata) + ..add('preAuthorize', preAuthorize) + ..add('shippingContact', shippingContact) + ..add('shippingLines', shippingLines) + ..add('taxLines', taxLines)) + .toString(); + } +} + +class OrderUpdateRequestBuilder + implements Builder { + _$OrderUpdateRequest? _$v; + + ListBuilder? _charges; + ListBuilder get charges => + _$this._charges ??= new ListBuilder(); + set charges(ListBuilder? charges) => _$this._charges = charges; + + CheckoutRequestBuilder? _checkout; + CheckoutRequestBuilder get checkout => + _$this._checkout ??= new CheckoutRequestBuilder(); + set checkout(CheckoutRequestBuilder? checkout) => _$this._checkout = checkout; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + OrderUpdateRequestCustomerInfoBuilder? _customerInfo; + OrderUpdateRequestCustomerInfoBuilder get customerInfo => + _$this._customerInfo ??= new OrderUpdateRequestCustomerInfoBuilder(); + set customerInfo(OrderUpdateRequestCustomerInfoBuilder? customerInfo) => + _$this._customerInfo = customerInfo; + + ListBuilder? _discountLines; + ListBuilder get discountLines => + _$this._discountLines ??= new ListBuilder(); + set discountLines(ListBuilder? discountLines) => + _$this._discountLines = discountLines; + + OrderUpdateFiscalEntityRequestBuilder? _fiscalEntity; + OrderUpdateFiscalEntityRequestBuilder get fiscalEntity => + _$this._fiscalEntity ??= new OrderUpdateFiscalEntityRequestBuilder(); + set fiscalEntity(OrderUpdateFiscalEntityRequestBuilder? fiscalEntity) => + _$this._fiscalEntity = fiscalEntity; + + ListBuilder? _lineItems; + ListBuilder get lineItems => + _$this._lineItems ??= new ListBuilder(); + set lineItems(ListBuilder? lineItems) => + _$this._lineItems = lineItems; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + bool? _preAuthorize; + bool? get preAuthorize => _$this._preAuthorize; + set preAuthorize(bool? preAuthorize) => _$this._preAuthorize = preAuthorize; + + CustomerShippingContacts? _shippingContact; + CustomerShippingContacts? get shippingContact => _$this._shippingContact; + set shippingContact(CustomerShippingContacts? shippingContact) => + _$this._shippingContact = shippingContact; + + ListBuilder? _shippingLines; + ListBuilder get shippingLines => + _$this._shippingLines ??= new ListBuilder(); + set shippingLines(ListBuilder? shippingLines) => + _$this._shippingLines = shippingLines; + + ListBuilder? _taxLines; + ListBuilder get taxLines => + _$this._taxLines ??= new ListBuilder(); + set taxLines(ListBuilder? taxLines) => + _$this._taxLines = taxLines; + + OrderUpdateRequestBuilder() { + OrderUpdateRequest._defaults(this); + } + + OrderUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _charges = $v.charges?.toBuilder(); + _checkout = $v.checkout?.toBuilder(); + _currency = $v.currency; + _customerInfo = $v.customerInfo?.toBuilder(); + _discountLines = $v.discountLines?.toBuilder(); + _fiscalEntity = $v.fiscalEntity?.toBuilder(); + _lineItems = $v.lineItems?.toBuilder(); + _metadata = $v.metadata?.toBuilder(); + _preAuthorize = $v.preAuthorize; + _shippingContact = $v.shippingContact; + _shippingLines = $v.shippingLines?.toBuilder(); + _taxLines = $v.taxLines?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(OrderUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderUpdateRequest; + } + + @override + void update(void Function(OrderUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderUpdateRequest build() => _build(); + + _$OrderUpdateRequest _build() { + _$OrderUpdateRequest _$result; + try { + _$result = _$v ?? + new _$OrderUpdateRequest._( + charges: _charges?.build(), + checkout: _checkout?.build(), + currency: currency, + customerInfo: _customerInfo?.build(), + discountLines: _discountLines?.build(), + fiscalEntity: _fiscalEntity?.build(), + lineItems: _lineItems?.build(), + metadata: _metadata?.build(), + preAuthorize: preAuthorize, + shippingContact: shippingContact, + shippingLines: _shippingLines?.build(), + taxLines: _taxLines?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'charges'; + _charges?.build(); + _$failedField = 'checkout'; + _checkout?.build(); + + _$failedField = 'customerInfo'; + _customerInfo?.build(); + _$failedField = 'discountLines'; + _discountLines?.build(); + _$failedField = 'fiscalEntity'; + _fiscalEntity?.build(); + _$failedField = 'lineItems'; + _lineItems?.build(); + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'shippingLines'; + _shippingLines?.build(); + _$failedField = 'taxLines'; + _taxLines?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'OrderUpdateRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/order_update_request_customer_info.g.dart b/lib/src/model/order_update_request_customer_info.g.dart new file mode 100644 index 0000000..d16cf26 --- /dev/null +++ b/lib/src/model/order_update_request_customer_info.g.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'order_update_request_customer_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$OrderUpdateRequestCustomerInfo extends OrderUpdateRequestCustomerInfo { + @override + final OneOf oneOf; + + factory _$OrderUpdateRequestCustomerInfo( + [void Function(OrderUpdateRequestCustomerInfoBuilder)? updates]) => + (new OrderUpdateRequestCustomerInfoBuilder()..update(updates))._build(); + + _$OrderUpdateRequestCustomerInfo._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'OrderUpdateRequestCustomerInfo', 'oneOf'); + } + + @override + OrderUpdateRequestCustomerInfo rebuild( + void Function(OrderUpdateRequestCustomerInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + OrderUpdateRequestCustomerInfoBuilder toBuilder() => + new OrderUpdateRequestCustomerInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is OrderUpdateRequestCustomerInfo && oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'OrderUpdateRequestCustomerInfo') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class OrderUpdateRequestCustomerInfoBuilder + implements + Builder { + _$OrderUpdateRequestCustomerInfo? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + OrderUpdateRequestCustomerInfoBuilder() { + OrderUpdateRequestCustomerInfo._defaults(this); + } + + OrderUpdateRequestCustomerInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(OrderUpdateRequestCustomerInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$OrderUpdateRequestCustomerInfo; + } + + @override + void update(void Function(OrderUpdateRequestCustomerInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + OrderUpdateRequestCustomerInfo build() => _build(); + + _$OrderUpdateRequestCustomerInfo _build() { + final _$result = _$v ?? + new _$OrderUpdateRequestCustomerInfo._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'OrderUpdateRequestCustomerInfo', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/orders_response.g.dart b/lib/src/model/orders_response.g.dart new file mode 100644 index 0000000..198ce5a --- /dev/null +++ b/lib/src/model/orders_response.g.dart @@ -0,0 +1,114 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'orders_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class OrdersResponseBuilder { + void replace(OrdersResponse other); + void update(void Function(OrdersResponseBuilder) updates); + ListBuilder get data; + set data(ListBuilder? data); +} + +class _$$OrdersResponse extends $OrdersResponse { + @override + final BuiltList data; + + factory _$$OrdersResponse([void Function($OrdersResponseBuilder)? updates]) => + (new $OrdersResponseBuilder()..update(updates))._build(); + + _$$OrdersResponse._({required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'$OrdersResponse', 'data'); + } + + @override + $OrdersResponse rebuild(void Function($OrdersResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $OrdersResponseBuilder toBuilder() => + new $OrdersResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $OrdersResponse && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$OrdersResponse')..add('data', data)) + .toString(); + } +} + +class $OrdersResponseBuilder + implements + Builder<$OrdersResponse, $OrdersResponseBuilder>, + OrdersResponseBuilder { + _$$OrdersResponse? _$v; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= new ListBuilder(); + set data(covariant ListBuilder? data) => _$this._data = data; + + $OrdersResponseBuilder() { + $OrdersResponse._defaults(this); + } + + $OrdersResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant $OrdersResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$OrdersResponse; + } + + @override + void update(void Function($OrdersResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $OrdersResponse build() => _build(); + + _$$OrdersResponse _build() { + _$$OrdersResponse _$result; + try { + _$result = _$v ?? new _$$OrdersResponse._(data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + data.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$OrdersResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/page.g.dart b/lib/src/model/page.g.dart new file mode 100644 index 0000000..29e2556 --- /dev/null +++ b/lib/src/model/page.g.dart @@ -0,0 +1,113 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'page.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class PageBuilder { + void replace(Page other); + void update(void Function(PageBuilder) updates); + String? get nextPageUrl; + set nextPageUrl(String? nextPageUrl); + + String? get previousPageUrl; + set previousPageUrl(String? previousPageUrl); +} + +class _$$Page extends $Page { + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + + factory _$$Page([void Function($PageBuilder)? updates]) => + (new $PageBuilder()..update(updates))._build(); + + _$$Page._({this.nextPageUrl, this.previousPageUrl}) : super._(); + + @override + $Page rebuild(void Function($PageBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $PageBuilder toBuilder() => new $PageBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $Page && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$Page') + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl)) + .toString(); + } +} + +class $PageBuilder implements Builder<$Page, $PageBuilder>, PageBuilder { + _$$Page? _$v; + + String? _nextPageUrl; + String? get nextPageUrl => _$this._nextPageUrl; + set nextPageUrl(covariant String? nextPageUrl) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + $PageBuilder() { + $Page._defaults(this); + } + + $PageBuilder get _$this { + final $v = _$v; + if ($v != null) { + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _$v = null; + } + return this; + } + + @override + void replace(covariant $Page other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$Page; + } + + @override + void update(void Function($PageBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $Page build() => _build(); + + _$$Page _build() { + final _$result = _$v ?? + new _$$Page._( + nextPageUrl: nextPageUrl, previousPageUrl: previousPageUrl); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/pagination.g.dart b/lib/src/model/pagination.g.dart new file mode 100644 index 0000000..99ddd79 --- /dev/null +++ b/lib/src/model/pagination.g.dart @@ -0,0 +1,118 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'pagination.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class PaginationBuilder { + void replace(Pagination other); + void update(void Function(PaginationBuilder) updates); + bool? get hasMore; + set hasMore(bool? hasMore); + + String? get object; + set object(String? object); +} + +class _$$Pagination extends $Pagination { + @override + final bool hasMore; + @override + final String object; + + factory _$$Pagination([void Function($PaginationBuilder)? updates]) => + (new $PaginationBuilder()..update(updates))._build(); + + _$$Pagination._({required this.hasMore, required this.object}) : super._() { + BuiltValueNullFieldError.checkNotNull(hasMore, r'$Pagination', 'hasMore'); + BuiltValueNullFieldError.checkNotNull(object, r'$Pagination', 'object'); + } + + @override + $Pagination rebuild(void Function($PaginationBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $PaginationBuilder toBuilder() => new $PaginationBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $Pagination && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$Pagination') + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class $PaginationBuilder + implements Builder<$Pagination, $PaginationBuilder>, PaginationBuilder { + _$$Pagination? _$v; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + $PaginationBuilder() { + $Pagination._defaults(this); + } + + $PaginationBuilder get _$this { + final $v = _$v; + if ($v != null) { + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant $Pagination other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$Pagination; + } + + @override + void update(void Function($PaginationBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $Pagination build() => _build(); + + _$$Pagination _build() { + final _$result = _$v ?? + new _$$Pagination._( + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'$Pagination', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'$Pagination', 'object')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method.g.dart b/lib/src/model/payment_method.g.dart new file mode 100644 index 0000000..6940026 --- /dev/null +++ b/lib/src/model/payment_method.g.dart @@ -0,0 +1,119 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class PaymentMethodBuilder { + void replace(PaymentMethod other); + void update(void Function(PaymentMethodBuilder) updates); + String? get type; + set type(String? type); + + String? get object; + set object(String? object); +} + +class _$$PaymentMethod extends $PaymentMethod { + @override + final String? type; + @override + final String object; + + factory _$$PaymentMethod([void Function($PaymentMethodBuilder)? updates]) => + (new $PaymentMethodBuilder()..update(updates))._build(); + + _$$PaymentMethod._({this.type, required this.object}) : super._() { + BuiltValueNullFieldError.checkNotNull(object, r'$PaymentMethod', 'object'); + } + + @override + $PaymentMethod rebuild(void Function($PaymentMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $PaymentMethodBuilder toBuilder() => + new $PaymentMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $PaymentMethod && + type == other.type && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$PaymentMethod') + ..add('type', type) + ..add('object', object)) + .toString(); + } +} + +class $PaymentMethodBuilder + implements + Builder<$PaymentMethod, $PaymentMethodBuilder>, + PaymentMethodBuilder { + _$$PaymentMethod? _$v; + + 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; + + $PaymentMethodBuilder() { + $PaymentMethod._defaults(this); + } + + $PaymentMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _type = $v.type; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant $PaymentMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$PaymentMethod; + } + + @override + void update(void Function($PaymentMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $PaymentMethod build() => _build(); + + _$$PaymentMethod _build() { + final _$result = _$v ?? + new _$$PaymentMethod._( + type: type, + object: BuiltValueNullFieldError.checkNotNull( + object, r'$PaymentMethod', 'object')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_bank_transfer.g.dart b/lib/src/model/payment_method_bank_transfer.g.dart new file mode 100644 index 0000000..d61cab4 --- /dev/null +++ b/lib/src/model/payment_method_bank_transfer.g.dart @@ -0,0 +1,347 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_bank_transfer.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodBankTransfer extends PaymentMethodBankTransfer { + @override + final String? issuingAccountBank; + @override + final int? executedAt; + @override + final String? receivingAccountBank; + @override + final String? issuingAccountNumber; + @override + final String? description; + @override + final String? trackingCode; + @override + final String? customerIpAddress; + @override + final int? expiresAt; + @override + final String? receivingAccountTaxId; + @override + final String? receivingAccountNumber; + @override + final String? bank; + @override + final String? issuingAccountHolderName; + @override + final String? issuingAccountTaxId; + @override + final BuiltList? paymentAttempts; + @override + final String? referenceNumber; + @override + final String? receivingAccountHolderName; + @override + final String? clabe; + @override + final String? type; + @override + final String object; + + factory _$PaymentMethodBankTransfer( + [void Function(PaymentMethodBankTransferBuilder)? updates]) => + (new PaymentMethodBankTransferBuilder()..update(updates))._build(); + + _$PaymentMethodBankTransfer._( + {this.issuingAccountBank, + this.executedAt, + this.receivingAccountBank, + this.issuingAccountNumber, + this.description, + this.trackingCode, + this.customerIpAddress, + this.expiresAt, + this.receivingAccountTaxId, + this.receivingAccountNumber, + this.bank, + this.issuingAccountHolderName, + this.issuingAccountTaxId, + this.paymentAttempts, + this.referenceNumber, + this.receivingAccountHolderName, + this.clabe, + this.type, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodBankTransfer', 'object'); + } + + @override + PaymentMethodBankTransfer rebuild( + void Function(PaymentMethodBankTransferBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodBankTransferBuilder toBuilder() => + new PaymentMethodBankTransferBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodBankTransfer && + issuingAccountBank == other.issuingAccountBank && + executedAt == other.executedAt && + receivingAccountBank == other.receivingAccountBank && + issuingAccountNumber == other.issuingAccountNumber && + description == other.description && + trackingCode == other.trackingCode && + customerIpAddress == other.customerIpAddress && + expiresAt == other.expiresAt && + receivingAccountTaxId == other.receivingAccountTaxId && + receivingAccountNumber == other.receivingAccountNumber && + bank == other.bank && + issuingAccountHolderName == other.issuingAccountHolderName && + issuingAccountTaxId == other.issuingAccountTaxId && + paymentAttempts == other.paymentAttempts && + referenceNumber == other.referenceNumber && + receivingAccountHolderName == other.receivingAccountHolderName && + clabe == other.clabe && + type == other.type && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, issuingAccountBank.hashCode); + _$hash = $jc(_$hash, executedAt.hashCode); + _$hash = $jc(_$hash, receivingAccountBank.hashCode); + _$hash = $jc(_$hash, issuingAccountNumber.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, trackingCode.hashCode); + _$hash = $jc(_$hash, customerIpAddress.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, receivingAccountTaxId.hashCode); + _$hash = $jc(_$hash, receivingAccountNumber.hashCode); + _$hash = $jc(_$hash, bank.hashCode); + _$hash = $jc(_$hash, issuingAccountHolderName.hashCode); + _$hash = $jc(_$hash, issuingAccountTaxId.hashCode); + _$hash = $jc(_$hash, paymentAttempts.hashCode); + _$hash = $jc(_$hash, referenceNumber.hashCode); + _$hash = $jc(_$hash, receivingAccountHolderName.hashCode); + _$hash = $jc(_$hash, clabe.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodBankTransfer') + ..add('issuingAccountBank', issuingAccountBank) + ..add('executedAt', executedAt) + ..add('receivingAccountBank', receivingAccountBank) + ..add('issuingAccountNumber', issuingAccountNumber) + ..add('description', description) + ..add('trackingCode', trackingCode) + ..add('customerIpAddress', customerIpAddress) + ..add('expiresAt', expiresAt) + ..add('receivingAccountTaxId', receivingAccountTaxId) + ..add('receivingAccountNumber', receivingAccountNumber) + ..add('bank', bank) + ..add('issuingAccountHolderName', issuingAccountHolderName) + ..add('issuingAccountTaxId', issuingAccountTaxId) + ..add('paymentAttempts', paymentAttempts) + ..add('referenceNumber', referenceNumber) + ..add('receivingAccountHolderName', receivingAccountHolderName) + ..add('clabe', clabe) + ..add('type', type) + ..add('object', object)) + .toString(); + } +} + +class PaymentMethodBankTransferBuilder + implements + Builder, + PaymentMethodBuilder { + _$PaymentMethodBankTransfer? _$v; + + String? _issuingAccountBank; + String? get issuingAccountBank => _$this._issuingAccountBank; + set issuingAccountBank(covariant String? issuingAccountBank) => + _$this._issuingAccountBank = issuingAccountBank; + + 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; + + String? _trackingCode; + String? get trackingCode => _$this._trackingCode; + set trackingCode(covariant String? trackingCode) => + _$this._trackingCode = trackingCode; + + String? _customerIpAddress; + String? get customerIpAddress => _$this._customerIpAddress; + set customerIpAddress(covariant String? customerIpAddress) => + _$this._customerIpAddress = customerIpAddress; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _receivingAccountTaxId; + String? get receivingAccountTaxId => _$this._receivingAccountTaxId; + set receivingAccountTaxId(covariant String? receivingAccountTaxId) => + _$this._receivingAccountTaxId = receivingAccountTaxId; + + 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; + 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? _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? _clabe; + String? get clabe => _$this._clabe; + set clabe(covariant String? clabe) => _$this._clabe = clabe; + + 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; + + PaymentMethodBankTransferBuilder() { + PaymentMethodBankTransfer._defaults(this); + } + + PaymentMethodBankTransferBuilder get _$this { + final $v = _$v; + if ($v != null) { + _issuingAccountBank = $v.issuingAccountBank; + _executedAt = $v.executedAt; + _receivingAccountBank = $v.receivingAccountBank; + _issuingAccountNumber = $v.issuingAccountNumber; + _description = $v.description; + _trackingCode = $v.trackingCode; + _customerIpAddress = $v.customerIpAddress; + _expiresAt = $v.expiresAt; + _receivingAccountTaxId = $v.receivingAccountTaxId; + _receivingAccountNumber = $v.receivingAccountNumber; + _bank = $v.bank; + _issuingAccountHolderName = $v.issuingAccountHolderName; + _issuingAccountTaxId = $v.issuingAccountTaxId; + _paymentAttempts = $v.paymentAttempts?.toBuilder(); + _referenceNumber = $v.referenceNumber; + _receivingAccountHolderName = $v.receivingAccountHolderName; + _clabe = $v.clabe; + _type = $v.type; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodBankTransfer other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodBankTransfer; + } + + @override + void update(void Function(PaymentMethodBankTransferBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodBankTransfer build() => _build(); + + _$PaymentMethodBankTransfer _build() { + _$PaymentMethodBankTransfer _$result; + try { + _$result = _$v ?? + new _$PaymentMethodBankTransfer._( + issuingAccountBank: issuingAccountBank, + executedAt: executedAt, + receivingAccountBank: receivingAccountBank, + issuingAccountNumber: issuingAccountNumber, + description: description, + trackingCode: trackingCode, + customerIpAddress: customerIpAddress, + expiresAt: expiresAt, + receivingAccountTaxId: receivingAccountTaxId, + receivingAccountNumber: receivingAccountNumber, + bank: bank, + issuingAccountHolderName: issuingAccountHolderName, + issuingAccountTaxId: issuingAccountTaxId, + paymentAttempts: _paymentAttempts?.build(), + referenceNumber: referenceNumber, + receivingAccountHolderName: receivingAccountHolderName, + clabe: clabe, + type: type, + object: BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodBankTransfer', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'paymentAttempts'; + _paymentAttempts?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'PaymentMethodBankTransfer', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_card.g.dart b/lib/src/model/payment_method_card.g.dart new file mode 100644 index 0000000..6a8d15e --- /dev/null +++ b/lib/src/model/payment_method_card.g.dart @@ -0,0 +1,276 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_card.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodCard extends PaymentMethodCard { + @override + final String? country; + @override + final String? expMonth; + @override + final String? last4; + @override + final String? authCode; + @override + final String? expYear; + @override + final String? accountType; + @override + final String? contractId; + @override + final String? name; + @override + final String? customerIpAddress; + @override + final String? brand; + @override + final BuiltList? fraudIndicators; + @override + final String? issuer; + @override + final String? type; + @override + final String object; + + factory _$PaymentMethodCard( + [void Function(PaymentMethodCardBuilder)? updates]) => + (new PaymentMethodCardBuilder()..update(updates))._build(); + + _$PaymentMethodCard._( + {this.country, + this.expMonth, + this.last4, + this.authCode, + this.expYear, + this.accountType, + this.contractId, + this.name, + this.customerIpAddress, + this.brand, + this.fraudIndicators, + this.issuer, + this.type, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCard', 'object'); + } + + @override + PaymentMethodCard rebuild(void Function(PaymentMethodCardBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodCardBuilder toBuilder() => + new PaymentMethodCardBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodCard && + country == other.country && + expMonth == other.expMonth && + last4 == other.last4 && + authCode == other.authCode && + expYear == other.expYear && + accountType == other.accountType && + contractId == other.contractId && + name == other.name && + customerIpAddress == other.customerIpAddress && + brand == other.brand && + fraudIndicators == other.fraudIndicators && + issuer == other.issuer && + type == other.type && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, country.hashCode); + _$hash = $jc(_$hash, expMonth.hashCode); + _$hash = $jc(_$hash, last4.hashCode); + _$hash = $jc(_$hash, authCode.hashCode); + _$hash = $jc(_$hash, expYear.hashCode); + _$hash = $jc(_$hash, accountType.hashCode); + _$hash = $jc(_$hash, contractId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, customerIpAddress.hashCode); + _$hash = $jc(_$hash, brand.hashCode); + _$hash = $jc(_$hash, fraudIndicators.hashCode); + _$hash = $jc(_$hash, issuer.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodCard') + ..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('customerIpAddress', customerIpAddress) + ..add('brand', brand) + ..add('fraudIndicators', fraudIndicators) + ..add('issuer', issuer) + ..add('type', type) + ..add('object', object)) + .toString(); + } +} + +class PaymentMethodCardBuilder + implements + Builder, + PaymentMethodBuilder { + _$PaymentMethodCard? _$v; + + 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? _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? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + String? _customerIpAddress; + String? get customerIpAddress => _$this._customerIpAddress; + set customerIpAddress(covariant String? customerIpAddress) => + _$this._customerIpAddress = customerIpAddress; + + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; + + 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? _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; + + PaymentMethodCardBuilder() { + PaymentMethodCard._defaults(this); + } + + PaymentMethodCardBuilder get _$this { + final $v = _$v; + if ($v != null) { + _country = $v.country; + _expMonth = $v.expMonth; + _last4 = $v.last4; + _authCode = $v.authCode; + _expYear = $v.expYear; + _accountType = $v.accountType; + _contractId = $v.contractId; + _name = $v.name; + _customerIpAddress = $v.customerIpAddress; + _brand = $v.brand; + _fraudIndicators = $v.fraudIndicators?.toBuilder(); + _issuer = $v.issuer; + _type = $v.type; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodCard other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodCard; + } + + @override + void update(void Function(PaymentMethodCardBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodCard build() => _build(); + + _$PaymentMethodCard _build() { + _$PaymentMethodCard _$result; + try { + _$result = _$v ?? + new _$PaymentMethodCard._( + country: country, + expMonth: expMonth, + last4: last4, + authCode: authCode, + expYear: expYear, + accountType: accountType, + contractId: contractId, + name: name, + customerIpAddress: customerIpAddress, + brand: brand, + fraudIndicators: _fraudIndicators?.build(), + issuer: issuer, + type: type, + object: BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCard', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fraudIndicators'; + _fraudIndicators?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'PaymentMethodCard', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_card_request.g.dart b/lib/src/model/payment_method_card_request.g.dart new file mode 100644 index 0000000..16672f2 --- /dev/null +++ b/lib/src/model/payment_method_card_request.g.dart @@ -0,0 +1,191 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_card_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodCardRequest extends PaymentMethodCardRequest { + @override + final String cvc; + @override + final String expMonth; + @override + final String number; + @override + final String expYear; + @override + final String name; + @override + final String? customerIpAddress; + @override + final String type; + + factory _$PaymentMethodCardRequest( + [void Function(PaymentMethodCardRequestBuilder)? updates]) => + (new PaymentMethodCardRequestBuilder()..update(updates))._build(); + + _$PaymentMethodCardRequest._( + {required this.cvc, + required this.expMonth, + required this.number, + required this.expYear, + required this.name, + this.customerIpAddress, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + cvc, r'PaymentMethodCardRequest', 'cvc'); + BuiltValueNullFieldError.checkNotNull( + expMonth, r'PaymentMethodCardRequest', 'expMonth'); + BuiltValueNullFieldError.checkNotNull( + number, r'PaymentMethodCardRequest', 'number'); + BuiltValueNullFieldError.checkNotNull( + expYear, r'PaymentMethodCardRequest', 'expYear'); + BuiltValueNullFieldError.checkNotNull( + name, r'PaymentMethodCardRequest', 'name'); + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCardRequest', 'type'); + } + + @override + PaymentMethodCardRequest rebuild( + void Function(PaymentMethodCardRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodCardRequestBuilder toBuilder() => + new PaymentMethodCardRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodCardRequest && + cvc == other.cvc && + expMonth == other.expMonth && + number == other.number && + expYear == other.expYear && + name == other.name && + customerIpAddress == other.customerIpAddress && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, cvc.hashCode); + _$hash = $jc(_$hash, expMonth.hashCode); + _$hash = $jc(_$hash, number.hashCode); + _$hash = $jc(_$hash, expYear.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, customerIpAddress.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodCardRequest') + ..add('cvc', cvc) + ..add('expMonth', expMonth) + ..add('number', number) + ..add('expYear', expYear) + ..add('name', name) + ..add('customerIpAddress', customerIpAddress) + ..add('type', type)) + .toString(); + } +} + +class PaymentMethodCardRequestBuilder + implements + Builder, + CustomerPaymentMethodRequestBuilder { + _$PaymentMethodCardRequest? _$v; + + String? _cvc; + String? get cvc => _$this._cvc; + set cvc(covariant String? cvc) => _$this._cvc = cvc; + + String? _expMonth; + String? get expMonth => _$this._expMonth; + set expMonth(covariant String? expMonth) => _$this._expMonth = expMonth; + + String? _number; + String? get number => _$this._number; + set number(covariant String? number) => _$this._number = number; + + String? _expYear; + String? get expYear => _$this._expYear; + set expYear(covariant String? expYear) => _$this._expYear = expYear; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + String? _customerIpAddress; + String? get customerIpAddress => _$this._customerIpAddress; + set customerIpAddress(covariant String? customerIpAddress) => + _$this._customerIpAddress = customerIpAddress; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + PaymentMethodCardRequestBuilder() { + PaymentMethodCardRequest._defaults(this); + } + + PaymentMethodCardRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _cvc = $v.cvc; + _expMonth = $v.expMonth; + _number = $v.number; + _expYear = $v.expYear; + _name = $v.name; + _customerIpAddress = $v.customerIpAddress; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodCardRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodCardRequest; + } + + @override + void update(void Function(PaymentMethodCardRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodCardRequest build() => _build(); + + _$PaymentMethodCardRequest _build() { + final _$result = _$v ?? + new _$PaymentMethodCardRequest._( + cvc: BuiltValueNullFieldError.checkNotNull( + cvc, r'PaymentMethodCardRequest', 'cvc'), + expMonth: BuiltValueNullFieldError.checkNotNull( + expMonth, r'PaymentMethodCardRequest', 'expMonth'), + number: BuiltValueNullFieldError.checkNotNull( + number, r'PaymentMethodCardRequest', 'number'), + expYear: BuiltValueNullFieldError.checkNotNull( + expYear, r'PaymentMethodCardRequest', 'expYear'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'PaymentMethodCardRequest', 'name'), + customerIpAddress: customerIpAddress, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCardRequest', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_card_response.g.dart b/lib/src/model/payment_method_card_response.g.dart new file mode 100644 index 0000000..1744962 --- /dev/null +++ b/lib/src/model/payment_method_card_response.g.dart @@ -0,0 +1,282 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_card_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodCardResponse extends PaymentMethodCardResponse { + @override + final String? last4; + @override + final String? expMonth; + @override + final bool? visibleOnCheckout; + @override + final String? expYear; + @override + final String? bin; + @override + final String? cardType; + @override + final String? name; + @override + final bool? default_; + @override + final String? brand; + @override + final String? paymentSourceStatus; + @override + final String type; + @override + final String id; + @override + final String object; + @override + final int createdAt; + @override + final String? parentId; + + factory _$PaymentMethodCardResponse( + [void Function(PaymentMethodCardResponseBuilder)? updates]) => + (new PaymentMethodCardResponseBuilder()..update(updates))._build(); + + _$PaymentMethodCardResponse._( + {this.last4, + this.expMonth, + this.visibleOnCheckout, + this.expYear, + this.bin, + this.cardType, + this.name, + this.default_, + this.brand, + this.paymentSourceStatus, + required this.type, + required this.id, + required this.object, + required this.createdAt, + this.parentId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCardResponse', 'type'); + BuiltValueNullFieldError.checkNotNull( + id, r'PaymentMethodCardResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCardResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'PaymentMethodCardResponse', 'createdAt'); + } + + @override + PaymentMethodCardResponse rebuild( + void Function(PaymentMethodCardResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodCardResponseBuilder toBuilder() => + new PaymentMethodCardResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodCardResponse && + last4 == other.last4 && + expMonth == other.expMonth && + visibleOnCheckout == other.visibleOnCheckout && + expYear == other.expYear && + bin == other.bin && + cardType == other.cardType && + name == other.name && + default_ == other.default_ && + brand == other.brand && + paymentSourceStatus == other.paymentSourceStatus && + type == other.type && + id == other.id && + object == other.object && + createdAt == other.createdAt && + parentId == other.parentId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, last4.hashCode); + _$hash = $jc(_$hash, expMonth.hashCode); + _$hash = $jc(_$hash, visibleOnCheckout.hashCode); + _$hash = $jc(_$hash, expYear.hashCode); + _$hash = $jc(_$hash, bin.hashCode); + _$hash = $jc(_$hash, cardType.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, brand.hashCode); + _$hash = $jc(_$hash, paymentSourceStatus.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodCardResponse') + ..add('last4', last4) + ..add('expMonth', expMonth) + ..add('visibleOnCheckout', visibleOnCheckout) + ..add('expYear', expYear) + ..add('bin', bin) + ..add('cardType', cardType) + ..add('name', name) + ..add('default_', default_) + ..add('brand', brand) + ..add('paymentSourceStatus', paymentSourceStatus) + ..add('type', type) + ..add('id', id) + ..add('object', object) + ..add('createdAt', createdAt) + ..add('parentId', parentId)) + .toString(); + } +} + +class PaymentMethodCardResponseBuilder + implements + Builder, + PaymentMethodResponseBuilder { + _$PaymentMethodCardResponse? _$v; + + String? _last4; + String? get last4 => _$this._last4; + set last4(covariant String? last4) => _$this._last4 = last4; + + 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? _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; + set name(covariant String? name) => _$this._name = name; + + bool? _default_; + bool? get default_ => _$this._default_; + set default_(covariant bool? default_) => _$this._default_ = default_; + + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; + + String? _paymentSourceStatus; + String? get paymentSourceStatus => _$this._paymentSourceStatus; + set paymentSourceStatus(covariant String? paymentSourceStatus) => + _$this._paymentSourceStatus = paymentSourceStatus; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + 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; + + PaymentMethodCardResponseBuilder() { + PaymentMethodCardResponse._defaults(this); + } + + PaymentMethodCardResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _last4 = $v.last4; + _expMonth = $v.expMonth; + _visibleOnCheckout = $v.visibleOnCheckout; + _expYear = $v.expYear; + _bin = $v.bin; + _cardType = $v.cardType; + _name = $v.name; + _default_ = $v.default_; + _brand = $v.brand; + _paymentSourceStatus = $v.paymentSourceStatus; + _type = $v.type; + _id = $v.id; + _object = $v.object; + _createdAt = $v.createdAt; + _parentId = $v.parentId; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodCardResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodCardResponse; + } + + @override + void update(void Function(PaymentMethodCardResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodCardResponse build() => _build(); + + _$PaymentMethodCardResponse _build() { + final _$result = _$v ?? + new _$PaymentMethodCardResponse._( + last4: last4, + expMonth: expMonth, + visibleOnCheckout: visibleOnCheckout, + expYear: expYear, + bin: bin, + cardType: cardType, + name: name, + default_: default_, + brand: brand, + paymentSourceStatus: paymentSourceStatus, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCardResponse', 'type'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'PaymentMethodCardResponse', 'id'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCardResponse', 'object'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'PaymentMethodCardResponse', 'createdAt'), + parentId: parentId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_cash.g.dart b/lib/src/model/payment_method_cash.g.dart new file mode 100644 index 0000000..aa4b7f9 --- /dev/null +++ b/lib/src/model/payment_method_cash.g.dart @@ -0,0 +1,250 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_cash.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodCash extends PaymentMethodCash { + @override + final String? reference; + @override + final String? agreement; + @override + final int? authCode; + @override + final String? cashierId; + @override + final String? storeName; + @override + final String? barcodeUrl; + @override + final String? store; + @override + final String? customerIpAddress; + @override + final String? serviceName; + @override + final int? expiresAt; + @override + final String? productType; + @override + final String? type; + @override + final String object; + + factory _$PaymentMethodCash( + [void Function(PaymentMethodCashBuilder)? updates]) => + (new PaymentMethodCashBuilder()..update(updates))._build(); + + _$PaymentMethodCash._( + {this.reference, + this.agreement, + this.authCode, + this.cashierId, + this.storeName, + this.barcodeUrl, + this.store, + this.customerIpAddress, + this.serviceName, + this.expiresAt, + this.productType, + this.type, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCash', 'object'); + } + + @override + PaymentMethodCash rebuild(void Function(PaymentMethodCashBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodCashBuilder toBuilder() => + new PaymentMethodCashBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodCash && + reference == other.reference && + agreement == other.agreement && + authCode == other.authCode && + cashierId == other.cashierId && + storeName == other.storeName && + barcodeUrl == other.barcodeUrl && + store == other.store && + customerIpAddress == other.customerIpAddress && + serviceName == other.serviceName && + expiresAt == other.expiresAt && + productType == other.productType && + type == other.type && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, reference.hashCode); + _$hash = $jc(_$hash, agreement.hashCode); + _$hash = $jc(_$hash, authCode.hashCode); + _$hash = $jc(_$hash, cashierId.hashCode); + _$hash = $jc(_$hash, storeName.hashCode); + _$hash = $jc(_$hash, barcodeUrl.hashCode); + _$hash = $jc(_$hash, store.hashCode); + _$hash = $jc(_$hash, customerIpAddress.hashCode); + _$hash = $jc(_$hash, serviceName.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, productType.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodCash') + ..add('reference', reference) + ..add('agreement', agreement) + ..add('authCode', authCode) + ..add('cashierId', cashierId) + ..add('storeName', storeName) + ..add('barcodeUrl', barcodeUrl) + ..add('store', store) + ..add('customerIpAddress', customerIpAddress) + ..add('serviceName', serviceName) + ..add('expiresAt', expiresAt) + ..add('productType', productType) + ..add('type', type) + ..add('object', object)) + .toString(); + } +} + +class PaymentMethodCashBuilder + implements + Builder, + PaymentMethodBuilder { + _$PaymentMethodCash? _$v; + + String? _reference; + String? get reference => _$this._reference; + set reference(covariant String? reference) => _$this._reference = reference; + + String? _agreement; + String? get agreement => _$this._agreement; + set agreement(covariant String? agreement) => _$this._agreement = agreement; + + 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? _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; + + String? _store; + String? get store => _$this._store; + set store(covariant String? store) => _$this._store = store; + + String? _customerIpAddress; + String? get customerIpAddress => _$this._customerIpAddress; + set customerIpAddress(covariant String? customerIpAddress) => + _$this._customerIpAddress = customerIpAddress; + + String? _serviceName; + String? get serviceName => _$this._serviceName; + set serviceName(covariant String? serviceName) => + _$this._serviceName = serviceName; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(covariant int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _productType; + String? get productType => _$this._productType; + set productType(covariant String? productType) => + _$this._productType = productType; + + 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; + + PaymentMethodCashBuilder() { + PaymentMethodCash._defaults(this); + } + + PaymentMethodCashBuilder get _$this { + final $v = _$v; + if ($v != null) { + _reference = $v.reference; + _agreement = $v.agreement; + _authCode = $v.authCode; + _cashierId = $v.cashierId; + _storeName = $v.storeName; + _barcodeUrl = $v.barcodeUrl; + _store = $v.store; + _customerIpAddress = $v.customerIpAddress; + _serviceName = $v.serviceName; + _expiresAt = $v.expiresAt; + _productType = $v.productType; + _type = $v.type; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodCash other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodCash; + } + + @override + void update(void Function(PaymentMethodCashBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodCash build() => _build(); + + _$PaymentMethodCash _build() { + final _$result = _$v ?? + new _$PaymentMethodCash._( + reference: reference, + agreement: agreement, + authCode: authCode, + cashierId: cashierId, + storeName: storeName, + barcodeUrl: barcodeUrl, + store: store, + customerIpAddress: customerIpAddress, + serviceName: serviceName, + expiresAt: expiresAt, + productType: productType, + type: type, + object: BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCash', 'object')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_cash_request.g.dart b/lib/src/model/payment_method_cash_request.g.dart new file mode 100644 index 0000000..30b0b74 --- /dev/null +++ b/lib/src/model/payment_method_cash_request.g.dart @@ -0,0 +1,113 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_cash_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodCashRequest extends PaymentMethodCashRequest { + @override + final int? expiresAt; + @override + final String type; + + factory _$PaymentMethodCashRequest( + [void Function(PaymentMethodCashRequestBuilder)? updates]) => + (new PaymentMethodCashRequestBuilder()..update(updates))._build(); + + _$PaymentMethodCashRequest._({this.expiresAt, required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCashRequest', 'type'); + } + + @override + PaymentMethodCashRequest rebuild( + void Function(PaymentMethodCashRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodCashRequestBuilder toBuilder() => + new PaymentMethodCashRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodCashRequest && + expiresAt == other.expiresAt && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodCashRequest') + ..add('expiresAt', expiresAt) + ..add('type', type)) + .toString(); + } +} + +class PaymentMethodCashRequestBuilder + implements + Builder, + CustomerPaymentMethodRequestBuilder { + _$PaymentMethodCashRequest? _$v; + + 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); + } + + PaymentMethodCashRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _expiresAt = $v.expiresAt; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodCashRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodCashRequest; + } + + @override + void update(void Function(PaymentMethodCashRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodCashRequest build() => _build(); + + _$PaymentMethodCashRequest _build() { + final _$result = _$v ?? + new _$PaymentMethodCashRequest._( + expiresAt: expiresAt, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCashRequest', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_cash_response.g.dart b/lib/src/model/payment_method_cash_response.g.dart new file mode 100644 index 0000000..5e04d31 --- /dev/null +++ b/lib/src/model/payment_method_cash_response.g.dart @@ -0,0 +1,221 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_cash_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodCashResponse extends PaymentMethodCashResponse { + @override + final String? reference; + @override + final String? provider; + @override + final String? barcodeUrl; + @override + final String? barcode; + @override + final int? expiresAt; + @override + final String type; + @override + final String id; + @override + final String object; + @override + final int createdAt; + @override + final String? parentId; + + factory _$PaymentMethodCashResponse( + [void Function(PaymentMethodCashResponseBuilder)? updates]) => + (new PaymentMethodCashResponseBuilder()..update(updates))._build(); + + _$PaymentMethodCashResponse._( + {this.reference, + this.provider, + this.barcodeUrl, + this.barcode, + this.expiresAt, + required this.type, + required this.id, + required this.object, + required this.createdAt, + this.parentId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCashResponse', 'type'); + BuiltValueNullFieldError.checkNotNull( + id, r'PaymentMethodCashResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCashResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'PaymentMethodCashResponse', 'createdAt'); + } + + @override + PaymentMethodCashResponse rebuild( + void Function(PaymentMethodCashResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodCashResponseBuilder toBuilder() => + new PaymentMethodCashResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodCashResponse && + reference == other.reference && + provider == other.provider && + barcodeUrl == other.barcodeUrl && + barcode == other.barcode && + expiresAt == other.expiresAt && + type == other.type && + id == other.id && + object == other.object && + createdAt == other.createdAt && + parentId == other.parentId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, reference.hashCode); + _$hash = $jc(_$hash, provider.hashCode); + _$hash = $jc(_$hash, barcodeUrl.hashCode); + _$hash = $jc(_$hash, barcode.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodCashResponse') + ..add('reference', reference) + ..add('provider', provider) + ..add('barcodeUrl', barcodeUrl) + ..add('barcode', barcode) + ..add('expiresAt', expiresAt) + ..add('type', type) + ..add('id', id) + ..add('object', object) + ..add('createdAt', createdAt) + ..add('parentId', parentId)) + .toString(); + } +} + +class PaymentMethodCashResponseBuilder + implements + Builder, + PaymentMethodResponseBuilder { + _$PaymentMethodCashResponse? _$v; + + String? _reference; + String? get reference => _$this._reference; + set reference(covariant String? reference) => _$this._reference = reference; + + 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? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + 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; + + PaymentMethodCashResponseBuilder() { + PaymentMethodCashResponse._defaults(this); + } + + PaymentMethodCashResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _reference = $v.reference; + _provider = $v.provider; + _barcodeUrl = $v.barcodeUrl; + _barcode = $v.barcode; + _expiresAt = $v.expiresAt; + _type = $v.type; + _id = $v.id; + _object = $v.object; + _createdAt = $v.createdAt; + _parentId = $v.parentId; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodCashResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodCashResponse; + } + + @override + void update(void Function(PaymentMethodCashResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodCashResponse build() => _build(); + + _$PaymentMethodCashResponse _build() { + final _$result = _$v ?? + new _$PaymentMethodCashResponse._( + reference: reference, + provider: provider, + barcodeUrl: barcodeUrl, + barcode: barcode, + expiresAt: expiresAt, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodCashResponse', 'type'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'PaymentMethodCashResponse', 'id'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodCashResponse', 'object'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'PaymentMethodCashResponse', 'createdAt'), + parentId: parentId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_general_request.g.dart b/lib/src/model/payment_method_general_request.g.dart new file mode 100644 index 0000000..bc6b13e --- /dev/null +++ b/lib/src/model/payment_method_general_request.g.dart @@ -0,0 +1,190 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_general_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodGeneralRequest extends PaymentMethodGeneralRequest { + @override + final int? expiresAt; + @override + final int? monthlyInstallments; + @override + final String type; + @override + final String? tokenId; + @override + final String? paymentSourceId; + @override + final String? cvc; + @override + final String? contractId; + @override + final String? customerIpAddress; + + factory _$PaymentMethodGeneralRequest( + [void Function(PaymentMethodGeneralRequestBuilder)? updates]) => + (new PaymentMethodGeneralRequestBuilder()..update(updates))._build(); + + _$PaymentMethodGeneralRequest._( + {this.expiresAt, + this.monthlyInstallments, + required this.type, + this.tokenId, + this.paymentSourceId, + this.cvc, + this.contractId, + this.customerIpAddress}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodGeneralRequest', 'type'); + } + + @override + PaymentMethodGeneralRequest rebuild( + void Function(PaymentMethodGeneralRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodGeneralRequestBuilder toBuilder() => + new PaymentMethodGeneralRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodGeneralRequest && + expiresAt == other.expiresAt && + monthlyInstallments == other.monthlyInstallments && + type == other.type && + tokenId == other.tokenId && + paymentSourceId == other.paymentSourceId && + cvc == other.cvc && + contractId == other.contractId && + customerIpAddress == other.customerIpAddress; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, monthlyInstallments.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, tokenId.hashCode); + _$hash = $jc(_$hash, paymentSourceId.hashCode); + _$hash = $jc(_$hash, cvc.hashCode); + _$hash = $jc(_$hash, contractId.hashCode); + _$hash = $jc(_$hash, customerIpAddress.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodGeneralRequest') + ..add('expiresAt', expiresAt) + ..add('monthlyInstallments', monthlyInstallments) + ..add('type', type) + ..add('tokenId', tokenId) + ..add('paymentSourceId', paymentSourceId) + ..add('cvc', cvc) + ..add('contractId', contractId) + ..add('customerIpAddress', customerIpAddress)) + .toString(); + } +} + +class PaymentMethodGeneralRequestBuilder + implements + Builder { + _$PaymentMethodGeneralRequest? _$v; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + int? _monthlyInstallments; + int? get monthlyInstallments => _$this._monthlyInstallments; + set monthlyInstallments(int? monthlyInstallments) => + _$this._monthlyInstallments = monthlyInstallments; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _tokenId; + String? get tokenId => _$this._tokenId; + set tokenId(String? tokenId) => _$this._tokenId = tokenId; + + String? _paymentSourceId; + String? get paymentSourceId => _$this._paymentSourceId; + set paymentSourceId(String? paymentSourceId) => + _$this._paymentSourceId = paymentSourceId; + + String? _cvc; + String? get cvc => _$this._cvc; + set cvc(String? cvc) => _$this._cvc = cvc; + + String? _contractId; + String? get contractId => _$this._contractId; + set contractId(String? contractId) => _$this._contractId = contractId; + + String? _customerIpAddress; + String? get customerIpAddress => _$this._customerIpAddress; + set customerIpAddress(String? customerIpAddress) => + _$this._customerIpAddress = customerIpAddress; + + PaymentMethodGeneralRequestBuilder() { + PaymentMethodGeneralRequest._defaults(this); + } + + PaymentMethodGeneralRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _expiresAt = $v.expiresAt; + _monthlyInstallments = $v.monthlyInstallments; + _type = $v.type; + _tokenId = $v.tokenId; + _paymentSourceId = $v.paymentSourceId; + _cvc = $v.cvc; + _contractId = $v.contractId; + _customerIpAddress = $v.customerIpAddress; + _$v = null; + } + return this; + } + + @override + void replace(PaymentMethodGeneralRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodGeneralRequest; + } + + @override + void update(void Function(PaymentMethodGeneralRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodGeneralRequest build() => _build(); + + _$PaymentMethodGeneralRequest _build() { + final _$result = _$v ?? + new _$PaymentMethodGeneralRequest._( + expiresAt: expiresAt, + monthlyInstallments: monthlyInstallments, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodGeneralRequest', 'type'), + tokenId: tokenId, + paymentSourceId: paymentSourceId, + cvc: cvc, + contractId: contractId, + customerIpAddress: customerIpAddress); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_response.g.dart b/lib/src/model/payment_method_response.g.dart new file mode 100644 index 0000000..2f2879d --- /dev/null +++ b/lib/src/model/payment_method_response.g.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class PaymentMethodResponseBuilder { + void replace(PaymentMethodResponse other); + void update(void Function(PaymentMethodResponseBuilder) updates); + String? get type; + set type(String? type); + + 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); +} + +class _$$PaymentMethodResponse extends $PaymentMethodResponse { + @override + final String type; + @override + final String id; + @override + final String object; + @override + final int createdAt; + @override + final String? parentId; + + factory _$$PaymentMethodResponse( + [void Function($PaymentMethodResponseBuilder)? updates]) => + (new $PaymentMethodResponseBuilder()..update(updates))._build(); + + _$$PaymentMethodResponse._( + {required this.type, + required this.id, + required this.object, + required this.createdAt, + this.parentId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'$PaymentMethodResponse', 'type'); + BuiltValueNullFieldError.checkNotNull(id, r'$PaymentMethodResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'$PaymentMethodResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'$PaymentMethodResponse', 'createdAt'); + } + + @override + $PaymentMethodResponse rebuild( + void Function($PaymentMethodResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $PaymentMethodResponseBuilder toBuilder() => + new $PaymentMethodResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $PaymentMethodResponse && + type == other.type && + id == other.id && + object == other.object && + createdAt == other.createdAt && + parentId == other.parentId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$PaymentMethodResponse') + ..add('type', type) + ..add('id', id) + ..add('object', object) + ..add('createdAt', createdAt) + ..add('parentId', parentId)) + .toString(); + } +} + +class $PaymentMethodResponseBuilder + implements + Builder<$PaymentMethodResponse, $PaymentMethodResponseBuilder>, + PaymentMethodResponseBuilder { + _$$PaymentMethodResponse? _$v; + + String? _type; + String? get type => _$this._type; + set type(covariant String? type) => _$this._type = type; + + 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; + + $PaymentMethodResponseBuilder() { + $PaymentMethodResponse._defaults(this); + } + + $PaymentMethodResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _type = $v.type; + _id = $v.id; + _object = $v.object; + _createdAt = $v.createdAt; + _parentId = $v.parentId; + _$v = null; + } + return this; + } + + @override + void replace(covariant $PaymentMethodResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$PaymentMethodResponse; + } + + @override + void update(void Function($PaymentMethodResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $PaymentMethodResponse build() => _build(); + + _$$PaymentMethodResponse _build() { + final _$result = _$v ?? + new _$$PaymentMethodResponse._( + type: BuiltValueNullFieldError.checkNotNull( + type, r'$PaymentMethodResponse', 'type'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'$PaymentMethodResponse', 'id'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'$PaymentMethodResponse', 'object'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'$PaymentMethodResponse', 'createdAt'), + parentId: parentId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_spei_recurrent.g.dart b/lib/src/model/payment_method_spei_recurrent.g.dart new file mode 100644 index 0000000..b66b7ae --- /dev/null +++ b/lib/src/model/payment_method_spei_recurrent.g.dart @@ -0,0 +1,184 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_spei_recurrent.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodSpeiRecurrent extends PaymentMethodSpeiRecurrent { + @override + final String? reference; + @override + final String? expiresAt; + @override + final String type; + @override + final String id; + @override + final String object; + @override + final int createdAt; + @override + final String? parentId; + + factory _$PaymentMethodSpeiRecurrent( + [void Function(PaymentMethodSpeiRecurrentBuilder)? updates]) => + (new PaymentMethodSpeiRecurrentBuilder()..update(updates))._build(); + + _$PaymentMethodSpeiRecurrent._( + {this.reference, + this.expiresAt, + required this.type, + required this.id, + required this.object, + required this.createdAt, + this.parentId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodSpeiRecurrent', 'type'); + BuiltValueNullFieldError.checkNotNull( + id, r'PaymentMethodSpeiRecurrent', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodSpeiRecurrent', 'object'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'PaymentMethodSpeiRecurrent', 'createdAt'); + } + + @override + PaymentMethodSpeiRecurrent rebuild( + void Function(PaymentMethodSpeiRecurrentBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodSpeiRecurrentBuilder toBuilder() => + new PaymentMethodSpeiRecurrentBuilder()..replace(this); + + @override + 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; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, reference.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @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)) + .toString(); + } +} + +class PaymentMethodSpeiRecurrentBuilder + implements + Builder, + 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; + + 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; + + PaymentMethodSpeiRecurrentBuilder() { + PaymentMethodSpeiRecurrent._defaults(this); + } + + 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; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodSpeiRecurrent other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodSpeiRecurrent; + } + + @override + void update(void Function(PaymentMethodSpeiRecurrentBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodSpeiRecurrent build() => _build(); + + _$PaymentMethodSpeiRecurrent _build() { + final _$result = _$v ?? + new _$PaymentMethodSpeiRecurrent._( + reference: reference, + expiresAt: expiresAt, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodSpeiRecurrent', 'type'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'PaymentMethodSpeiRecurrent', 'id'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'PaymentMethodSpeiRecurrent', 'object'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'PaymentMethodSpeiRecurrent', 'createdAt'), + parentId: parentId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_spei_request.g.dart b/lib/src/model/payment_method_spei_request.g.dart new file mode 100644 index 0000000..e83b728 --- /dev/null +++ b/lib/src/model/payment_method_spei_request.g.dart @@ -0,0 +1,113 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_spei_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodSpeiRequest extends PaymentMethodSpeiRequest { + @override + final int? expiresAt; + @override + final String type; + + factory _$PaymentMethodSpeiRequest( + [void Function(PaymentMethodSpeiRequestBuilder)? updates]) => + (new PaymentMethodSpeiRequestBuilder()..update(updates))._build(); + + _$PaymentMethodSpeiRequest._({this.expiresAt, required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodSpeiRequest', 'type'); + } + + @override + PaymentMethodSpeiRequest rebuild( + void Function(PaymentMethodSpeiRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodSpeiRequestBuilder toBuilder() => + new PaymentMethodSpeiRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodSpeiRequest && + expiresAt == other.expiresAt && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodSpeiRequest') + ..add('expiresAt', expiresAt) + ..add('type', type)) + .toString(); + } +} + +class PaymentMethodSpeiRequestBuilder + implements + Builder, + CustomerPaymentMethodRequestBuilder { + _$PaymentMethodSpeiRequest? _$v; + + 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); + } + + PaymentMethodSpeiRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _expiresAt = $v.expiresAt; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodSpeiRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodSpeiRequest; + } + + @override + void update(void Function(PaymentMethodSpeiRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodSpeiRequest build() => _build(); + + _$PaymentMethodSpeiRequest _build() { + final _$result = _$v ?? + new _$PaymentMethodSpeiRequest._( + expiresAt: expiresAt, + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodSpeiRequest', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payment_method_token_request.g.dart b/lib/src/model/payment_method_token_request.g.dart new file mode 100644 index 0000000..723d3ca --- /dev/null +++ b/lib/src/model/payment_method_token_request.g.dart @@ -0,0 +1,116 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payment_method_token_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PaymentMethodTokenRequest extends PaymentMethodTokenRequest { + @override + final String tokenId; + @override + final String type; + + factory _$PaymentMethodTokenRequest( + [void Function(PaymentMethodTokenRequestBuilder)? updates]) => + (new PaymentMethodTokenRequestBuilder()..update(updates))._build(); + + _$PaymentMethodTokenRequest._({required this.tokenId, required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + tokenId, r'PaymentMethodTokenRequest', 'tokenId'); + BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodTokenRequest', 'type'); + } + + @override + PaymentMethodTokenRequest rebuild( + void Function(PaymentMethodTokenRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PaymentMethodTokenRequestBuilder toBuilder() => + new PaymentMethodTokenRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PaymentMethodTokenRequest && + tokenId == other.tokenId && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, tokenId.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PaymentMethodTokenRequest') + ..add('tokenId', tokenId) + ..add('type', type)) + .toString(); + } +} + +class PaymentMethodTokenRequestBuilder + implements + Builder, + CustomerPaymentMethodRequestBuilder { + _$PaymentMethodTokenRequest? _$v; + + 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; + + PaymentMethodTokenRequestBuilder() { + PaymentMethodTokenRequest._defaults(this); + } + + PaymentMethodTokenRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _tokenId = $v.tokenId; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(covariant PaymentMethodTokenRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PaymentMethodTokenRequest; + } + + @override + void update(void Function(PaymentMethodTokenRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PaymentMethodTokenRequest build() => _build(); + + _$PaymentMethodTokenRequest _build() { + final _$result = _$v ?? + new _$PaymentMethodTokenRequest._( + tokenId: BuiltValueNullFieldError.checkNotNull( + tokenId, r'PaymentMethodTokenRequest', 'tokenId'), + type: BuiltValueNullFieldError.checkNotNull( + type, r'PaymentMethodTokenRequest', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout.g.dart b/lib/src/model/payout.g.dart new file mode 100644 index 0000000..beb190e --- /dev/null +++ b/lib/src/model/payout.g.dart @@ -0,0 +1,106 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$Payout extends Payout { + @override + final PayoutMethod payoutMethod; + + factory _$Payout([void Function(PayoutBuilder)? updates]) => + (new PayoutBuilder()..update(updates))._build(); + + _$Payout._({required this.payoutMethod}) : super._() { + BuiltValueNullFieldError.checkNotNull( + payoutMethod, r'Payout', 'payoutMethod'); + } + + @override + Payout rebuild(void Function(PayoutBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutBuilder toBuilder() => new PayoutBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is Payout && payoutMethod == other.payoutMethod; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, payoutMethod.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'Payout') + ..add('payoutMethod', payoutMethod)) + .toString(); + } +} + +class PayoutBuilder implements Builder { + _$Payout? _$v; + + PayoutMethodBuilder? _payoutMethod; + PayoutMethodBuilder get payoutMethod => + _$this._payoutMethod ??= new PayoutMethodBuilder(); + set payoutMethod(PayoutMethodBuilder? payoutMethod) => + _$this._payoutMethod = payoutMethod; + + PayoutBuilder() { + Payout._defaults(this); + } + + PayoutBuilder get _$this { + final $v = _$v; + if ($v != null) { + _payoutMethod = $v.payoutMethod.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(Payout other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$Payout; + } + + @override + void update(void Function(PayoutBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + Payout build() => _build(); + + _$Payout _build() { + _$Payout _$result; + try { + _$result = _$v ?? new _$Payout._(payoutMethod: payoutMethod.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'payoutMethod'; + payoutMethod.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'Payout', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_method.g.dart b/lib/src/model/payout_method.g.dart new file mode 100644 index 0000000..6f37e0d --- /dev/null +++ b/lib/src/model/payout_method.g.dart @@ -0,0 +1,93 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PayoutMethod extends PayoutMethod { + @override + final String type; + + factory _$PayoutMethod([void Function(PayoutMethodBuilder)? updates]) => + (new PayoutMethodBuilder()..update(updates))._build(); + + _$PayoutMethod._({required this.type}) : super._() { + BuiltValueNullFieldError.checkNotNull(type, r'PayoutMethod', 'type'); + } + + @override + PayoutMethod rebuild(void Function(PayoutMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutMethodBuilder toBuilder() => new PayoutMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PayoutMethod && type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PayoutMethod')..add('type', type)) + .toString(); + } +} + +class PayoutMethodBuilder + implements Builder { + _$PayoutMethod? _$v; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + PayoutMethodBuilder() { + PayoutMethod._defaults(this); + } + + PayoutMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(PayoutMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PayoutMethod; + } + + @override + void update(void Function(PayoutMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PayoutMethod build() => _build(); + + _$PayoutMethod _build() { + final _$result = _$v ?? + new _$PayoutMethod._( + type: BuiltValueNullFieldError.checkNotNull( + type, r'PayoutMethod', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order.g.dart b/lib/src/model/payout_order.g.dart new file mode 100644 index 0000000..0f0eeb3 --- /dev/null +++ b/lib/src/model/payout_order.g.dart @@ -0,0 +1,203 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout_order.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PayoutOrder extends PayoutOrder { + @override + final BuiltList allowedPayoutMethods; + @override + final int amount; + @override + final String currency; + @override + final CustomerInfoJustCustomerId customerInfo; + @override + final BuiltMap? metadata; + @override + final Payout payout; + @override + final String reason; + + factory _$PayoutOrder([void Function(PayoutOrderBuilder)? updates]) => + (new PayoutOrderBuilder()..update(updates))._build(); + + _$PayoutOrder._( + {required this.allowedPayoutMethods, + required this.amount, + required this.currency, + required this.customerInfo, + this.metadata, + required this.payout, + required this.reason}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + allowedPayoutMethods, r'PayoutOrder', 'allowedPayoutMethods'); + BuiltValueNullFieldError.checkNotNull(amount, r'PayoutOrder', 'amount'); + BuiltValueNullFieldError.checkNotNull(currency, r'PayoutOrder', 'currency'); + BuiltValueNullFieldError.checkNotNull( + customerInfo, r'PayoutOrder', 'customerInfo'); + BuiltValueNullFieldError.checkNotNull(payout, r'PayoutOrder', 'payout'); + BuiltValueNullFieldError.checkNotNull(reason, r'PayoutOrder', 'reason'); + } + + @override + PayoutOrder rebuild(void Function(PayoutOrderBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutOrderBuilder toBuilder() => new PayoutOrderBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PayoutOrder && + allowedPayoutMethods == other.allowedPayoutMethods && + amount == other.amount && + currency == other.currency && + customerInfo == other.customerInfo && + metadata == other.metadata && + payout == other.payout && + reason == other.reason; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPayoutMethods.hashCode); + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerInfo.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, payout.hashCode); + _$hash = $jc(_$hash, reason.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PayoutOrder') + ..add('allowedPayoutMethods', allowedPayoutMethods) + ..add('amount', amount) + ..add('currency', currency) + ..add('customerInfo', customerInfo) + ..add('metadata', metadata) + ..add('payout', payout) + ..add('reason', reason)) + .toString(); + } +} + +class PayoutOrderBuilder implements Builder { + _$PayoutOrder? _$v; + + ListBuilder? _allowedPayoutMethods; + ListBuilder get allowedPayoutMethods => + _$this._allowedPayoutMethods ??= new ListBuilder(); + set allowedPayoutMethods(ListBuilder? allowedPayoutMethods) => + _$this._allowedPayoutMethods = allowedPayoutMethods; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + CustomerInfoJustCustomerIdBuilder? _customerInfo; + CustomerInfoJustCustomerIdBuilder get customerInfo => + _$this._customerInfo ??= new CustomerInfoJustCustomerIdBuilder(); + set customerInfo(CustomerInfoJustCustomerIdBuilder? customerInfo) => + _$this._customerInfo = customerInfo; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + PayoutBuilder? _payout; + PayoutBuilder get payout => _$this._payout ??= new PayoutBuilder(); + set payout(PayoutBuilder? payout) => _$this._payout = payout; + + String? _reason; + String? get reason => _$this._reason; + set reason(String? reason) => _$this._reason = reason; + + PayoutOrderBuilder() { + PayoutOrder._defaults(this); + } + + PayoutOrderBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPayoutMethods = $v.allowedPayoutMethods.toBuilder(); + _amount = $v.amount; + _currency = $v.currency; + _customerInfo = $v.customerInfo.toBuilder(); + _metadata = $v.metadata?.toBuilder(); + _payout = $v.payout.toBuilder(); + _reason = $v.reason; + _$v = null; + } + return this; + } + + @override + void replace(PayoutOrder other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PayoutOrder; + } + + @override + void update(void Function(PayoutOrderBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PayoutOrder build() => _build(); + + _$PayoutOrder _build() { + _$PayoutOrder _$result; + try { + _$result = _$v ?? + new _$PayoutOrder._( + allowedPayoutMethods: allowedPayoutMethods.build(), + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'PayoutOrder', 'amount'), + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'PayoutOrder', 'currency'), + customerInfo: customerInfo.build(), + metadata: _metadata?.build(), + payout: payout.build(), + reason: BuiltValueNullFieldError.checkNotNull( + reason, r'PayoutOrder', 'reason')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPayoutMethods'; + allowedPayoutMethods.build(); + + _$failedField = 'customerInfo'; + customerInfo.build(); + _$failedField = 'metadata'; + _metadata?.build(); + _$failedField = 'payout'; + payout.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'PayoutOrder', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order_payouts_item.g.dart b/lib/src/model/payout_order_payouts_item.g.dart new file mode 100644 index 0000000..4697a69 --- /dev/null +++ b/lib/src/model/payout_order_payouts_item.g.dart @@ -0,0 +1,197 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout_order_payouts_item.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PayoutOrderPayoutsItem extends PayoutOrderPayoutsItem { + @override + final int amount; + @override + final String currency; + @override + final int? expiresAt; + @override + final String id; + @override + final bool livemode; + @override + final String object; + @override + final String? payoutOrderId; + @override + final String? status; + + factory _$PayoutOrderPayoutsItem( + [void Function(PayoutOrderPayoutsItemBuilder)? updates]) => + (new PayoutOrderPayoutsItemBuilder()..update(updates))._build(); + + _$PayoutOrderPayoutsItem._( + {required this.amount, + required this.currency, + this.expiresAt, + required this.id, + required this.livemode, + required this.object, + this.payoutOrderId, + this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'PayoutOrderPayoutsItem', 'amount'); + BuiltValueNullFieldError.checkNotNull( + currency, r'PayoutOrderPayoutsItem', 'currency'); + BuiltValueNullFieldError.checkNotNull(id, r'PayoutOrderPayoutsItem', 'id'); + BuiltValueNullFieldError.checkNotNull( + livemode, r'PayoutOrderPayoutsItem', 'livemode'); + BuiltValueNullFieldError.checkNotNull( + object, r'PayoutOrderPayoutsItem', 'object'); + } + + @override + PayoutOrderPayoutsItem rebuild( + void Function(PayoutOrderPayoutsItemBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutOrderPayoutsItemBuilder toBuilder() => + new PayoutOrderPayoutsItemBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PayoutOrderPayoutsItem && + amount == other.amount && + currency == other.currency && + expiresAt == other.expiresAt && + id == other.id && + livemode == other.livemode && + object == other.object && + payoutOrderId == other.payoutOrderId && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, payoutOrderId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PayoutOrderPayoutsItem') + ..add('amount', amount) + ..add('currency', currency) + ..add('expiresAt', expiresAt) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('payoutOrderId', payoutOrderId) + ..add('status', status)) + .toString(); + } +} + +class PayoutOrderPayoutsItemBuilder + implements Builder { + _$PayoutOrderPayoutsItem? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _payoutOrderId; + String? get payoutOrderId => _$this._payoutOrderId; + set payoutOrderId(String? payoutOrderId) => + _$this._payoutOrderId = payoutOrderId; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + PayoutOrderPayoutsItemBuilder() { + PayoutOrderPayoutsItem._defaults(this); + } + + PayoutOrderPayoutsItemBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _currency = $v.currency; + _expiresAt = $v.expiresAt; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _payoutOrderId = $v.payoutOrderId; + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(PayoutOrderPayoutsItem other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PayoutOrderPayoutsItem; + } + + @override + void update(void Function(PayoutOrderPayoutsItemBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PayoutOrderPayoutsItem build() => _build(); + + _$PayoutOrderPayoutsItem _build() { + final _$result = _$v ?? + new _$PayoutOrderPayoutsItem._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'PayoutOrderPayoutsItem', 'amount'), + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'PayoutOrderPayoutsItem', 'currency'), + expiresAt: expiresAt, + id: BuiltValueNullFieldError.checkNotNull( + id, r'PayoutOrderPayoutsItem', 'id'), + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'PayoutOrderPayoutsItem', 'livemode'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'PayoutOrderPayoutsItem', 'object'), + payoutOrderId: payoutOrderId, + status: status); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order_response.g.dart b/lib/src/model/payout_order_response.g.dart new file mode 100644 index 0000000..4103f27 --- /dev/null +++ b/lib/src/model/payout_order_response.g.dart @@ -0,0 +1,312 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout_order_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PayoutOrderResponse extends PayoutOrderResponse { + @override + final BuiltList allowedPayoutMethods; + @override + final int amount; + @override + final int createdAt; + @override + final String currency; + @override + final PayoutOrderResponseCustomerInfo customerInfo; + @override + final int? expiresAt; + @override + final String id; + @override + final bool livemode; + @override + final String object; + @override + final BuiltMap? metadata; + @override + final BuiltList payouts; + @override + final String reason; + @override + final String? status; + @override + final int updatedAt; + + factory _$PayoutOrderResponse( + [void Function(PayoutOrderResponseBuilder)? updates]) => + (new PayoutOrderResponseBuilder()..update(updates))._build(); + + _$PayoutOrderResponse._( + {required this.allowedPayoutMethods, + required this.amount, + required this.createdAt, + required this.currency, + required this.customerInfo, + this.expiresAt, + required this.id, + required this.livemode, + required this.object, + this.metadata, + required this.payouts, + required this.reason, + this.status, + required this.updatedAt}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + allowedPayoutMethods, r'PayoutOrderResponse', 'allowedPayoutMethods'); + BuiltValueNullFieldError.checkNotNull( + amount, r'PayoutOrderResponse', 'amount'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'PayoutOrderResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + currency, r'PayoutOrderResponse', 'currency'); + BuiltValueNullFieldError.checkNotNull( + customerInfo, r'PayoutOrderResponse', 'customerInfo'); + BuiltValueNullFieldError.checkNotNull(id, r'PayoutOrderResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + livemode, r'PayoutOrderResponse', 'livemode'); + BuiltValueNullFieldError.checkNotNull( + object, r'PayoutOrderResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + payouts, r'PayoutOrderResponse', 'payouts'); + BuiltValueNullFieldError.checkNotNull( + reason, r'PayoutOrderResponse', 'reason'); + BuiltValueNullFieldError.checkNotNull( + updatedAt, r'PayoutOrderResponse', 'updatedAt'); + } + + @override + PayoutOrderResponse rebuild( + void Function(PayoutOrderResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutOrderResponseBuilder toBuilder() => + new PayoutOrderResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PayoutOrderResponse && + allowedPayoutMethods == other.allowedPayoutMethods && + amount == other.amount && + createdAt == other.createdAt && + currency == other.currency && + customerInfo == other.customerInfo && + expiresAt == other.expiresAt && + id == other.id && + livemode == other.livemode && + object == other.object && + metadata == other.metadata && + payouts == other.payouts && + reason == other.reason && + status == other.status && + updatedAt == other.updatedAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPayoutMethods.hashCode); + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, customerInfo.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, payouts.hashCode); + _$hash = $jc(_$hash, reason.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PayoutOrderResponse') + ..add('allowedPayoutMethods', allowedPayoutMethods) + ..add('amount', amount) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('customerInfo', customerInfo) + ..add('expiresAt', expiresAt) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('metadata', metadata) + ..add('payouts', payouts) + ..add('reason', reason) + ..add('status', status) + ..add('updatedAt', updatedAt)) + .toString(); + } +} + +class PayoutOrderResponseBuilder + implements Builder { + _$PayoutOrderResponse? _$v; + + ListBuilder? _allowedPayoutMethods; + ListBuilder get allowedPayoutMethods => + _$this._allowedPayoutMethods ??= new ListBuilder(); + set allowedPayoutMethods(ListBuilder? allowedPayoutMethods) => + _$this._allowedPayoutMethods = allowedPayoutMethods; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + PayoutOrderResponseCustomerInfoBuilder? _customerInfo; + PayoutOrderResponseCustomerInfoBuilder get customerInfo => + _$this._customerInfo ??= new PayoutOrderResponseCustomerInfoBuilder(); + set customerInfo(PayoutOrderResponseCustomerInfoBuilder? customerInfo) => + _$this._customerInfo = customerInfo; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + ListBuilder? _payouts; + ListBuilder get payouts => + _$this._payouts ??= new ListBuilder(); + set payouts(ListBuilder? payouts) => + _$this._payouts = payouts; + + String? _reason; + String? get reason => _$this._reason; + set reason(String? reason) => _$this._reason = reason; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + int? _updatedAt; + int? get updatedAt => _$this._updatedAt; + set updatedAt(int? updatedAt) => _$this._updatedAt = updatedAt; + + PayoutOrderResponseBuilder() { + PayoutOrderResponse._defaults(this); + } + + PayoutOrderResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPayoutMethods = $v.allowedPayoutMethods.toBuilder(); + _amount = $v.amount; + _createdAt = $v.createdAt; + _currency = $v.currency; + _customerInfo = $v.customerInfo.toBuilder(); + _expiresAt = $v.expiresAt; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _metadata = $v.metadata?.toBuilder(); + _payouts = $v.payouts.toBuilder(); + _reason = $v.reason; + _status = $v.status; + _updatedAt = $v.updatedAt; + _$v = null; + } + return this; + } + + @override + void replace(PayoutOrderResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PayoutOrderResponse; + } + + @override + void update(void Function(PayoutOrderResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PayoutOrderResponse build() => _build(); + + _$PayoutOrderResponse _build() { + _$PayoutOrderResponse _$result; + try { + _$result = _$v ?? + new _$PayoutOrderResponse._( + allowedPayoutMethods: allowedPayoutMethods.build(), + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'PayoutOrderResponse', 'amount'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'PayoutOrderResponse', 'createdAt'), + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'PayoutOrderResponse', 'currency'), + customerInfo: customerInfo.build(), + expiresAt: expiresAt, + id: BuiltValueNullFieldError.checkNotNull( + id, r'PayoutOrderResponse', 'id'), + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'PayoutOrderResponse', 'livemode'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'PayoutOrderResponse', 'object'), + metadata: _metadata?.build(), + payouts: payouts.build(), + reason: BuiltValueNullFieldError.checkNotNull( + reason, r'PayoutOrderResponse', 'reason'), + status: status, + updatedAt: BuiltValueNullFieldError.checkNotNull( + updatedAt, r'PayoutOrderResponse', 'updatedAt')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPayoutMethods'; + allowedPayoutMethods.build(); + + _$failedField = 'customerInfo'; + customerInfo.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + _$failedField = 'payouts'; + payouts.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'PayoutOrderResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_order_response_customer_info.g.dart b/lib/src/model/payout_order_response_customer_info.g.dart new file mode 100644 index 0000000..23b788c --- /dev/null +++ b/lib/src/model/payout_order_response_customer_info.g.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout_order_response_customer_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PayoutOrderResponseCustomerInfo + extends PayoutOrderResponseCustomerInfo { + @override + final String id; + @override + final String? customerCustomReference; + @override + final String? name; + @override + final String? email; + @override + final String? phone; + @override + final bool? corporate; + @override + final String? object; + + factory _$PayoutOrderResponseCustomerInfo( + [void Function(PayoutOrderResponseCustomerInfoBuilder)? updates]) => + (new PayoutOrderResponseCustomerInfoBuilder()..update(updates))._build(); + + _$PayoutOrderResponseCustomerInfo._( + {required this.id, + this.customerCustomReference, + this.name, + this.email, + this.phone, + this.corporate, + this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'PayoutOrderResponseCustomerInfo', 'id'); + } + + @override + PayoutOrderResponseCustomerInfo rebuild( + void Function(PayoutOrderResponseCustomerInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutOrderResponseCustomerInfoBuilder toBuilder() => + new PayoutOrderResponseCustomerInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PayoutOrderResponseCustomerInfo && + id == other.id && + customerCustomReference == other.customerCustomReference && + name == other.name && + email == other.email && + phone == other.phone && + corporate == other.corporate && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, customerCustomReference.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PayoutOrderResponseCustomerInfo') + ..add('id', id) + ..add('customerCustomReference', customerCustomReference) + ..add('name', name) + ..add('email', email) + ..add('phone', phone) + ..add('corporate', corporate) + ..add('object', object)) + .toString(); + } +} + +class PayoutOrderResponseCustomerInfoBuilder + implements + Builder, + OrderCustomerInfoResponseBuilder { + _$PayoutOrderResponseCustomerInfo? _$v; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + String? _customerCustomReference; + String? get customerCustomReference => _$this._customerCustomReference; + set customerCustomReference(covariant String? customerCustomReference) => + _$this._customerCustomReference = customerCustomReference; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(covariant bool? corporate) => _$this._corporate = corporate; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + PayoutOrderResponseCustomerInfoBuilder() { + PayoutOrderResponseCustomerInfo._defaults(this); + } + + PayoutOrderResponseCustomerInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _customerCustomReference = $v.customerCustomReference; + _name = $v.name; + _email = $v.email; + _phone = $v.phone; + _corporate = $v.corporate; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(covariant PayoutOrderResponseCustomerInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PayoutOrderResponseCustomerInfo; + } + + @override + void update(void Function(PayoutOrderResponseCustomerInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PayoutOrderResponseCustomerInfo build() => _build(); + + _$PayoutOrderResponseCustomerInfo _build() { + final _$result = _$v ?? + new _$PayoutOrderResponseCustomerInfo._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'PayoutOrderResponseCustomerInfo', 'id'), + customerCustomReference: customerCustomReference, + name: name, + email: email, + phone: phone, + corporate: corporate, + object: object); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/payout_orders_response.g.dart b/lib/src/model/payout_orders_response.g.dart new file mode 100644 index 0000000..b096b2c --- /dev/null +++ b/lib/src/model/payout_orders_response.g.dart @@ -0,0 +1,173 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'payout_orders_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PayoutOrdersResponse extends PayoutOrdersResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$PayoutOrdersResponse( + [void Function(PayoutOrdersResponseBuilder)? updates]) => + (new PayoutOrdersResponseBuilder()..update(updates))._build(); + + _$PayoutOrdersResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'PayoutOrdersResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'PayoutOrdersResponse', 'object'); + } + + @override + PayoutOrdersResponse rebuild( + void Function(PayoutOrdersResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PayoutOrdersResponseBuilder toBuilder() => + new PayoutOrdersResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PayoutOrdersResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PayoutOrdersResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class PayoutOrdersResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$PayoutOrdersResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + PayoutOrdersResponseBuilder() { + PayoutOrdersResponse._defaults(this); + } + + PayoutOrdersResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant PayoutOrdersResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PayoutOrdersResponse; + } + + @override + void update(void Function(PayoutOrdersResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PayoutOrdersResponse build() => _build(); + + _$PayoutOrdersResponse _build() { + _$PayoutOrdersResponse _$result; + try { + _$result = _$v ?? + new _$PayoutOrdersResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'PayoutOrdersResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'PayoutOrdersResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'PayoutOrdersResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/plan_request.g.dart b/lib/src/model/plan_request.g.dart new file mode 100644 index 0000000..b328fe9 --- /dev/null +++ b/lib/src/model/plan_request.g.dart @@ -0,0 +1,257 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'plan_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const PlanRequestIntervalEnum _$planRequestIntervalEnum_week = + const PlanRequestIntervalEnum._('week'); +const PlanRequestIntervalEnum _$planRequestIntervalEnum_halfMonth = + const PlanRequestIntervalEnum._('halfMonth'); +const PlanRequestIntervalEnum _$planRequestIntervalEnum_month = + const PlanRequestIntervalEnum._('month'); +const PlanRequestIntervalEnum _$planRequestIntervalEnum_year = + const PlanRequestIntervalEnum._('year'); + +PlanRequestIntervalEnum _$planRequestIntervalEnumValueOf(String name) { + switch (name) { + case 'week': + return _$planRequestIntervalEnum_week; + case 'halfMonth': + return _$planRequestIntervalEnum_halfMonth; + case 'month': + return _$planRequestIntervalEnum_month; + case 'year': + return _$planRequestIntervalEnum_year; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$planRequestIntervalEnumValues = + new BuiltSet(const [ + _$planRequestIntervalEnum_week, + _$planRequestIntervalEnum_halfMonth, + _$planRequestIntervalEnum_month, + _$planRequestIntervalEnum_year, +]); + +Serializer _$planRequestIntervalEnumSerializer = + new _$PlanRequestIntervalEnumSerializer(); + +class _$PlanRequestIntervalEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'week': 'week', + 'halfMonth': 'half_month', + 'month': 'month', + 'year': 'year', + }; + static const Map _fromWire = const { + 'week': 'week', + 'half_month': 'halfMonth', + 'month': 'month', + 'year': 'year', + }; + + @override + final Iterable types = const [PlanRequestIntervalEnum]; + @override + final String wireName = 'PlanRequestIntervalEnum'; + + @override + Object serialize(Serializers serializers, PlanRequestIntervalEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + PlanRequestIntervalEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + PlanRequestIntervalEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$PlanRequest extends PlanRequest { + @override + final int amount; + @override + final String? currency; + @override + final int? expiryCount; + @override + final int frequency; + @override + final String? id; + @override + final PlanRequestIntervalEnum interval; + @override + final String name; + @override + final int? trialPeriodDays; + + factory _$PlanRequest([void Function(PlanRequestBuilder)? updates]) => + (new PlanRequestBuilder()..update(updates))._build(); + + _$PlanRequest._( + {required this.amount, + this.currency, + this.expiryCount, + required this.frequency, + this.id, + required this.interval, + required this.name, + this.trialPeriodDays}) + : super._() { + BuiltValueNullFieldError.checkNotNull(amount, r'PlanRequest', 'amount'); + BuiltValueNullFieldError.checkNotNull( + frequency, r'PlanRequest', 'frequency'); + BuiltValueNullFieldError.checkNotNull(interval, r'PlanRequest', 'interval'); + BuiltValueNullFieldError.checkNotNull(name, r'PlanRequest', 'name'); + } + + @override + PlanRequest rebuild(void Function(PlanRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PlanRequestBuilder toBuilder() => new PlanRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PlanRequest && + amount == other.amount && + currency == other.currency && + expiryCount == other.expiryCount && + frequency == other.frequency && + id == other.id && + interval == other.interval && + name == other.name && + trialPeriodDays == other.trialPeriodDays; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, expiryCount.hashCode); + _$hash = $jc(_$hash, frequency.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, interval.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, trialPeriodDays.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PlanRequest') + ..add('amount', amount) + ..add('currency', currency) + ..add('expiryCount', expiryCount) + ..add('frequency', frequency) + ..add('id', id) + ..add('interval', interval) + ..add('name', name) + ..add('trialPeriodDays', trialPeriodDays)) + .toString(); + } +} + +class PlanRequestBuilder implements Builder { + _$PlanRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + int? _expiryCount; + int? get expiryCount => _$this._expiryCount; + set expiryCount(int? expiryCount) => _$this._expiryCount = expiryCount; + + int? _frequency; + int? get frequency => _$this._frequency; + set frequency(int? frequency) => _$this._frequency = frequency; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + PlanRequestIntervalEnum? _interval; + PlanRequestIntervalEnum? get interval => _$this._interval; + set interval(PlanRequestIntervalEnum? interval) => + _$this._interval = interval; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _trialPeriodDays; + int? get trialPeriodDays => _$this._trialPeriodDays; + set trialPeriodDays(int? trialPeriodDays) => + _$this._trialPeriodDays = trialPeriodDays; + + PlanRequestBuilder() { + PlanRequest._defaults(this); + } + + PlanRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _currency = $v.currency; + _expiryCount = $v.expiryCount; + _frequency = $v.frequency; + _id = $v.id; + _interval = $v.interval; + _name = $v.name; + _trialPeriodDays = $v.trialPeriodDays; + _$v = null; + } + return this; + } + + @override + void replace(PlanRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PlanRequest; + } + + @override + void update(void Function(PlanRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PlanRequest build() => _build(); + + _$PlanRequest _build() { + final _$result = _$v ?? + new _$PlanRequest._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'PlanRequest', 'amount'), + currency: currency, + expiryCount: expiryCount, + frequency: BuiltValueNullFieldError.checkNotNull( + frequency, r'PlanRequest', 'frequency'), + id: id, + interval: BuiltValueNullFieldError.checkNotNull( + interval, r'PlanRequest', 'interval'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'PlanRequest', 'name'), + trialPeriodDays: trialPeriodDays); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/plan_response.g.dart b/lib/src/model/plan_response.g.dart new file mode 100644 index 0000000..666ebd6 --- /dev/null +++ b/lib/src/model/plan_response.g.dart @@ -0,0 +1,215 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'plan_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PlanResponse extends PlanResponse { + @override + final int? amount; + @override + final int? createdAt; + @override + final String? currency; + @override + final int? expiryCount; + @override + final int? frequency; + @override + final String? id; + @override + final String? interval; + @override + final bool? livemode; + @override + final String? name; + @override + final String? object; + @override + final int? trialPeriodDays; + + factory _$PlanResponse([void Function(PlanResponseBuilder)? updates]) => + (new PlanResponseBuilder()..update(updates))._build(); + + _$PlanResponse._( + {this.amount, + this.createdAt, + this.currency, + this.expiryCount, + this.frequency, + this.id, + this.interval, + this.livemode, + this.name, + this.object, + this.trialPeriodDays}) + : super._(); + + @override + PlanResponse rebuild(void Function(PlanResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PlanResponseBuilder toBuilder() => new PlanResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PlanResponse && + amount == other.amount && + createdAt == other.createdAt && + currency == other.currency && + expiryCount == other.expiryCount && + frequency == other.frequency && + id == other.id && + interval == other.interval && + livemode == other.livemode && + name == other.name && + object == other.object && + trialPeriodDays == other.trialPeriodDays; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, expiryCount.hashCode); + _$hash = $jc(_$hash, frequency.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, interval.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, trialPeriodDays.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PlanResponse') + ..add('amount', amount) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('expiryCount', expiryCount) + ..add('frequency', frequency) + ..add('id', id) + ..add('interval', interval) + ..add('livemode', livemode) + ..add('name', name) + ..add('object', object) + ..add('trialPeriodDays', trialPeriodDays)) + .toString(); + } +} + +class PlanResponseBuilder + implements Builder { + _$PlanResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + int? _expiryCount; + int? get expiryCount => _$this._expiryCount; + set expiryCount(int? expiryCount) => _$this._expiryCount = expiryCount; + + int? _frequency; + int? get frequency => _$this._frequency; + set frequency(int? frequency) => _$this._frequency = frequency; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _interval; + String? get interval => _$this._interval; + set interval(String? interval) => _$this._interval = interval; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + int? _trialPeriodDays; + int? get trialPeriodDays => _$this._trialPeriodDays; + set trialPeriodDays(int? trialPeriodDays) => + _$this._trialPeriodDays = trialPeriodDays; + + PlanResponseBuilder() { + PlanResponse._defaults(this); + } + + PlanResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _createdAt = $v.createdAt; + _currency = $v.currency; + _expiryCount = $v.expiryCount; + _frequency = $v.frequency; + _id = $v.id; + _interval = $v.interval; + _livemode = $v.livemode; + _name = $v.name; + _object = $v.object; + _trialPeriodDays = $v.trialPeriodDays; + _$v = null; + } + return this; + } + + @override + void replace(PlanResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PlanResponse; + } + + @override + void update(void Function(PlanResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PlanResponse build() => _build(); + + _$PlanResponse _build() { + final _$result = _$v ?? + new _$PlanResponse._( + amount: amount, + createdAt: createdAt, + currency: currency, + expiryCount: expiryCount, + frequency: frequency, + id: id, + interval: interval, + livemode: livemode, + name: name, + object: object, + trialPeriodDays: trialPeriodDays); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/plan_update_request.g.dart b/lib/src/model/plan_update_request.g.dart new file mode 100644 index 0000000..79ac4d3 --- /dev/null +++ b/lib/src/model/plan_update_request.g.dart @@ -0,0 +1,129 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'plan_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PlanUpdateRequest extends PlanUpdateRequest { + @override + final int? amount; + @override + final String? currency; + @override + final int? expiryCount; + @override + final String? name; + + factory _$PlanUpdateRequest( + [void Function(PlanUpdateRequestBuilder)? updates]) => + (new PlanUpdateRequestBuilder()..update(updates))._build(); + + _$PlanUpdateRequest._( + {this.amount, this.currency, this.expiryCount, this.name}) + : super._(); + + @override + PlanUpdateRequest rebuild(void Function(PlanUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PlanUpdateRequestBuilder toBuilder() => + new PlanUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PlanUpdateRequest && + amount == other.amount && + currency == other.currency && + expiryCount == other.expiryCount && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, expiryCount.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PlanUpdateRequest') + ..add('amount', amount) + ..add('currency', currency) + ..add('expiryCount', expiryCount) + ..add('name', name)) + .toString(); + } +} + +class PlanUpdateRequestBuilder + implements Builder { + _$PlanUpdateRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + int? _expiryCount; + int? get expiryCount => _$this._expiryCount; + set expiryCount(int? expiryCount) => _$this._expiryCount = expiryCount; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + PlanUpdateRequestBuilder() { + PlanUpdateRequest._defaults(this); + } + + PlanUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _currency = $v.currency; + _expiryCount = $v.expiryCount; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(PlanUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PlanUpdateRequest; + } + + @override + void update(void Function(PlanUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PlanUpdateRequest build() => _build(); + + _$PlanUpdateRequest _build() { + final _$result = _$v ?? + new _$PlanUpdateRequest._( + amount: amount, + currency: currency, + expiryCount: expiryCount, + name: name); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/product.g.dart b/lib/src/model/product.g.dart new file mode 100644 index 0000000..dbf911a --- /dev/null +++ b/lib/src/model/product.g.dart @@ -0,0 +1,252 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'product.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class ProductBuilder { + void replace(Product other); + void update(void Function(ProductBuilder) updates); + MapBuilder get antifraudInfo; + set antifraudInfo(MapBuilder? antifraudInfo); + + String? get brand; + set brand(String? brand); + + String? get description; + set description(String? description); + + MapBuilder get metadata; + set metadata(MapBuilder? metadata); + + String? get name; + set name(String? name); + + int? get quantity; + set quantity(int? quantity); + + String? get sku; + set sku(String? sku); + + ListBuilder get tags; + set tags(ListBuilder? tags); + + int? get unitPrice; + set unitPrice(int? unitPrice); +} + +class _$$Product extends $Product { + @override + final BuiltMap? antifraudInfo; + @override + final String? brand; + @override + final String? description; + @override + final BuiltMap? metadata; + @override + final String name; + @override + final int quantity; + @override + final String? sku; + @override + final BuiltList? tags; + @override + final int unitPrice; + + factory _$$Product([void Function($ProductBuilder)? updates]) => + (new $ProductBuilder()..update(updates))._build(); + + _$$Product._( + {this.antifraudInfo, + this.brand, + this.description, + this.metadata, + required this.name, + required this.quantity, + this.sku, + this.tags, + required this.unitPrice}) + : super._() { + BuiltValueNullFieldError.checkNotNull(name, r'$Product', 'name'); + BuiltValueNullFieldError.checkNotNull(quantity, r'$Product', 'quantity'); + BuiltValueNullFieldError.checkNotNull(unitPrice, r'$Product', 'unitPrice'); + } + + @override + $Product rebuild(void Function($ProductBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $ProductBuilder toBuilder() => new $ProductBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $Product && + antifraudInfo == other.antifraudInfo && + brand == other.brand && + description == other.description && + metadata == other.metadata && + name == other.name && + quantity == other.quantity && + sku == other.sku && + tags == other.tags && + unitPrice == other.unitPrice; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, brand.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, quantity.hashCode); + _$hash = $jc(_$hash, sku.hashCode); + _$hash = $jc(_$hash, tags.hashCode); + _$hash = $jc(_$hash, unitPrice.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$Product') + ..add('antifraudInfo', antifraudInfo) + ..add('brand', brand) + ..add('description', description) + ..add('metadata', metadata) + ..add('name', name) + ..add('quantity', quantity) + ..add('sku', sku) + ..add('tags', tags) + ..add('unitPrice', unitPrice)) + .toString(); + } +} + +class $ProductBuilder + implements Builder<$Product, $ProductBuilder>, ProductBuilder { + _$$Product? _$v; + + MapBuilder? _antifraudInfo; + MapBuilder get antifraudInfo => + _$this._antifraudInfo ??= new MapBuilder(); + set antifraudInfo(covariant MapBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + int? _quantity; + int? get quantity => _$this._quantity; + set quantity(covariant int? quantity) => _$this._quantity = quantity; + + String? _sku; + String? get sku => _$this._sku; + set sku(covariant String? sku) => _$this._sku = sku; + + ListBuilder? _tags; + ListBuilder get tags => _$this._tags ??= new ListBuilder(); + set tags(covariant ListBuilder? tags) => _$this._tags = tags; + + int? _unitPrice; + int? get unitPrice => _$this._unitPrice; + set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; + + $ProductBuilder() { + $Product._defaults(this); + } + + $ProductBuilder get _$this { + final $v = _$v; + if ($v != null) { + _antifraudInfo = $v.antifraudInfo?.toBuilder(); + _brand = $v.brand; + _description = $v.description; + _metadata = $v.metadata?.toBuilder(); + _name = $v.name; + _quantity = $v.quantity; + _sku = $v.sku; + _tags = $v.tags?.toBuilder(); + _unitPrice = $v.unitPrice; + _$v = null; + } + return this; + } + + @override + void replace(covariant $Product other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$Product; + } + + @override + void update(void Function($ProductBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $Product build() => _build(); + + _$$Product _build() { + _$$Product _$result; + try { + _$result = _$v ?? + new _$$Product._( + antifraudInfo: _antifraudInfo?.build(), + brand: brand, + description: description, + metadata: _metadata?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, r'$Product', 'name'), + quantity: BuiltValueNullFieldError.checkNotNull( + quantity, r'$Product', 'quantity'), + sku: sku, + tags: _tags?.build(), + unitPrice: BuiltValueNullFieldError.checkNotNull( + unitPrice, r'$Product', 'unitPrice')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'tags'; + _tags?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$Product', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/product_data_response.g.dart b/lib/src/model/product_data_response.g.dart new file mode 100644 index 0000000..3877e66 --- /dev/null +++ b/lib/src/model/product_data_response.g.dart @@ -0,0 +1,264 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'product_data_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ProductDataResponse extends ProductDataResponse { + @override + final String? id; + @override + final String? parentId; + @override + final String? object; + @override + final BuiltMap? antifraudInfo; + @override + final String? brand; + @override + final String? description; + @override + final BuiltMap? metadata; + @override + final String name; + @override + final int quantity; + @override + final String? sku; + @override + final BuiltList? tags; + @override + final int unitPrice; + + factory _$ProductDataResponse( + [void Function(ProductDataResponseBuilder)? updates]) => + (new ProductDataResponseBuilder()..update(updates))._build(); + + _$ProductDataResponse._( + {this.id, + this.parentId, + this.object, + this.antifraudInfo, + this.brand, + this.description, + this.metadata, + required this.name, + required this.quantity, + this.sku, + this.tags, + required this.unitPrice}) + : super._() { + BuiltValueNullFieldError.checkNotNull(name, r'ProductDataResponse', 'name'); + BuiltValueNullFieldError.checkNotNull( + quantity, r'ProductDataResponse', 'quantity'); + BuiltValueNullFieldError.checkNotNull( + unitPrice, r'ProductDataResponse', 'unitPrice'); + } + + @override + ProductDataResponse rebuild( + void Function(ProductDataResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ProductDataResponseBuilder toBuilder() => + new ProductDataResponseBuilder()..replace(this); + + @override + 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 && + metadata == other.metadata && + name == other.name && + quantity == other.quantity && + sku == other.sku && + tags == other.tags && + unitPrice == other.unitPrice; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, brand.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, quantity.hashCode); + _$hash = $jc(_$hash, sku.hashCode); + _$hash = $jc(_$hash, tags.hashCode); + _$hash = $jc(_$hash, unitPrice.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @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) + ..add('metadata', metadata) + ..add('name', name) + ..add('quantity', quantity) + ..add('sku', sku) + ..add('tags', tags) + ..add('unitPrice', unitPrice)) + .toString(); + } +} + +class ProductDataResponseBuilder + implements + Builder, + 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(); + set antifraudInfo(covariant MapBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + int? _quantity; + int? get quantity => _$this._quantity; + set quantity(covariant int? quantity) => _$this._quantity = quantity; + + String? _sku; + String? get sku => _$this._sku; + set sku(covariant String? sku) => _$this._sku = sku; + + ListBuilder? _tags; + ListBuilder get tags => _$this._tags ??= new ListBuilder(); + set tags(covariant ListBuilder? tags) => _$this._tags = tags; + + int? _unitPrice; + int? get unitPrice => _$this._unitPrice; + set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; + + ProductDataResponseBuilder() { + ProductDataResponse._defaults(this); + } + + 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; + _metadata = $v.metadata?.toBuilder(); + _name = $v.name; + _quantity = $v.quantity; + _sku = $v.sku; + _tags = $v.tags?.toBuilder(); + _unitPrice = $v.unitPrice; + _$v = null; + } + return this; + } + + @override + void replace(covariant ProductDataResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ProductDataResponse; + } + + @override + void update(void Function(ProductDataResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ProductDataResponse build() => _build(); + + _$ProductDataResponse _build() { + _$ProductDataResponse _$result; + try { + _$result = _$v ?? + new _$ProductDataResponse._( + id: id, + parentId: parentId, + object: object, + antifraudInfo: _antifraudInfo?.build(), + brand: brand, + description: description, + metadata: _metadata?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, r'ProductDataResponse', 'name'), + quantity: BuiltValueNullFieldError.checkNotNull( + quantity, r'ProductDataResponse', 'quantity'), + sku: sku, + tags: _tags?.build(), + unitPrice: BuiltValueNullFieldError.checkNotNull( + unitPrice, r'ProductDataResponse', 'unitPrice')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'tags'; + _tags?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ProductDataResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/product_order_response.g.dart b/lib/src/model/product_order_response.g.dart new file mode 100644 index 0000000..5d2bfa5 --- /dev/null +++ b/lib/src/model/product_order_response.g.dart @@ -0,0 +1,265 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'product_order_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ProductOrderResponse extends ProductOrderResponse { + @override + final String? id; + @override + final String? parentId; + @override + final String? object; + @override + final BuiltMap? antifraudInfo; + @override + final String? brand; + @override + final String? description; + @override + final BuiltMap? metadata; + @override + final String name; + @override + final int quantity; + @override + final String? sku; + @override + final BuiltList? tags; + @override + final int unitPrice; + + factory _$ProductOrderResponse( + [void Function(ProductOrderResponseBuilder)? updates]) => + (new ProductOrderResponseBuilder()..update(updates))._build(); + + _$ProductOrderResponse._( + {this.id, + this.parentId, + this.object, + this.antifraudInfo, + this.brand, + this.description, + this.metadata, + required this.name, + required this.quantity, + this.sku, + this.tags, + required this.unitPrice}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + name, r'ProductOrderResponse', 'name'); + BuiltValueNullFieldError.checkNotNull( + quantity, r'ProductOrderResponse', 'quantity'); + BuiltValueNullFieldError.checkNotNull( + unitPrice, r'ProductOrderResponse', 'unitPrice'); + } + + @override + ProductOrderResponse rebuild( + void Function(ProductOrderResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ProductOrderResponseBuilder toBuilder() => + new ProductOrderResponseBuilder()..replace(this); + + @override + 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 && + metadata == other.metadata && + name == other.name && + quantity == other.quantity && + sku == other.sku && + tags == other.tags && + unitPrice == other.unitPrice; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, brand.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, quantity.hashCode); + _$hash = $jc(_$hash, sku.hashCode); + _$hash = $jc(_$hash, tags.hashCode); + _$hash = $jc(_$hash, unitPrice.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @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) + ..add('metadata', metadata) + ..add('name', name) + ..add('quantity', quantity) + ..add('sku', sku) + ..add('tags', tags) + ..add('unitPrice', unitPrice)) + .toString(); + } +} + +class ProductOrderResponseBuilder + implements + Builder, + 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(); + set antifraudInfo(covariant MapBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + String? _brand; + String? get brand => _$this._brand; + set brand(covariant String? brand) => _$this._brand = brand; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _name; + String? get name => _$this._name; + set name(covariant String? name) => _$this._name = name; + + int? _quantity; + int? get quantity => _$this._quantity; + set quantity(covariant int? quantity) => _$this._quantity = quantity; + + String? _sku; + String? get sku => _$this._sku; + set sku(covariant String? sku) => _$this._sku = sku; + + ListBuilder? _tags; + ListBuilder get tags => _$this._tags ??= new ListBuilder(); + set tags(covariant ListBuilder? tags) => _$this._tags = tags; + + int? _unitPrice; + int? get unitPrice => _$this._unitPrice; + set unitPrice(covariant int? unitPrice) => _$this._unitPrice = unitPrice; + + ProductOrderResponseBuilder() { + ProductOrderResponse._defaults(this); + } + + 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; + _metadata = $v.metadata?.toBuilder(); + _name = $v.name; + _quantity = $v.quantity; + _sku = $v.sku; + _tags = $v.tags?.toBuilder(); + _unitPrice = $v.unitPrice; + _$v = null; + } + return this; + } + + @override + void replace(covariant ProductOrderResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ProductOrderResponse; + } + + @override + void update(void Function(ProductOrderResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ProductOrderResponse build() => _build(); + + _$ProductOrderResponse _build() { + _$ProductOrderResponse _$result; + try { + _$result = _$v ?? + new _$ProductOrderResponse._( + id: id, + parentId: parentId, + object: object, + antifraudInfo: _antifraudInfo?.build(), + brand: brand, + description: description, + metadata: _metadata?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, r'ProductOrderResponse', 'name'), + quantity: BuiltValueNullFieldError.checkNotNull( + quantity, r'ProductOrderResponse', 'quantity'), + sku: sku, + tags: _tags?.build(), + unitPrice: BuiltValueNullFieldError.checkNotNull( + unitPrice, r'ProductOrderResponse', 'unitPrice')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'tags'; + _tags?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ProductOrderResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/risk_rules_data.g.dart b/lib/src/model/risk_rules_data.g.dart new file mode 100644 index 0000000..771bac6 --- /dev/null +++ b/lib/src/model/risk_rules_data.g.dart @@ -0,0 +1,166 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'risk_rules_data.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$RiskRulesData extends RiskRulesData { + @override + final String? id; + @override + final String? field; + @override + final String? createdAt; + @override + final String? value; + @override + final bool? isGlobal; + @override + final bool? isTest; + @override + final String? description; + + factory _$RiskRulesData([void Function(RiskRulesDataBuilder)? updates]) => + (new RiskRulesDataBuilder()..update(updates))._build(); + + _$RiskRulesData._( + {this.id, + this.field, + this.createdAt, + this.value, + this.isGlobal, + this.isTest, + this.description}) + : super._(); + + @override + RiskRulesData rebuild(void Function(RiskRulesDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + RiskRulesDataBuilder toBuilder() => new RiskRulesDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is RiskRulesData && + id == other.id && + field == other.field && + createdAt == other.createdAt && + value == other.value && + isGlobal == other.isGlobal && + isTest == other.isTest && + description == other.description; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, field.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jc(_$hash, isGlobal.hashCode); + _$hash = $jc(_$hash, isTest.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'RiskRulesData') + ..add('id', id) + ..add('field', field) + ..add('createdAt', createdAt) + ..add('value', value) + ..add('isGlobal', isGlobal) + ..add('isTest', isTest) + ..add('description', description)) + .toString(); + } +} + +class RiskRulesDataBuilder + implements Builder { + _$RiskRulesData? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _field; + String? get field => _$this._field; + set field(String? field) => _$this._field = field; + + String? _createdAt; + String? get createdAt => _$this._createdAt; + set createdAt(String? createdAt) => _$this._createdAt = createdAt; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + bool? _isGlobal; + bool? get isGlobal => _$this._isGlobal; + set isGlobal(bool? isGlobal) => _$this._isGlobal = isGlobal; + + bool? _isTest; + bool? get isTest => _$this._isTest; + set isTest(bool? isTest) => _$this._isTest = isTest; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + RiskRulesDataBuilder() { + RiskRulesData._defaults(this); + } + + RiskRulesDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _field = $v.field; + _createdAt = $v.createdAt; + _value = $v.value; + _isGlobal = $v.isGlobal; + _isTest = $v.isTest; + _description = $v.description; + _$v = null; + } + return this; + } + + @override + void replace(RiskRulesData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$RiskRulesData; + } + + @override + void update(void Function(RiskRulesDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + RiskRulesData build() => _build(); + + _$RiskRulesData _build() { + final _$result = _$v ?? + new _$RiskRulesData._( + id: id, + field: field, + createdAt: createdAt, + value: value, + isGlobal: isGlobal, + isTest: isTest, + description: description); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/risk_rules_list.g.dart b/lib/src/model/risk_rules_list.g.dart new file mode 100644 index 0000000..203ac25 --- /dev/null +++ b/lib/src/model/risk_rules_list.g.dart @@ -0,0 +1,167 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'risk_rules_list.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$RiskRulesList extends RiskRulesList { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$RiskRulesList([void Function(RiskRulesListBuilder)? updates]) => + (new RiskRulesListBuilder()..update(updates))._build(); + + _$RiskRulesList._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull(hasMore, r'RiskRulesList', 'hasMore'); + BuiltValueNullFieldError.checkNotNull(object, r'RiskRulesList', 'object'); + } + + @override + RiskRulesList rebuild(void Function(RiskRulesListBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + RiskRulesListBuilder toBuilder() => new RiskRulesListBuilder()..replace(this); + + @override + 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; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'RiskRulesList') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class RiskRulesListBuilder + implements + Builder, + PageBuilder, + 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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + RiskRulesListBuilder() { + RiskRulesList._defaults(this); + } + + 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; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant RiskRulesList other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$RiskRulesList; + } + + @override + void update(void Function(RiskRulesListBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + RiskRulesList build() => _build(); + + _$RiskRulesList _build() { + _$RiskRulesList _$result; + 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')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'RiskRulesList', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/shipping_order_response.g.dart b/lib/src/model/shipping_order_response.g.dart new file mode 100644 index 0000000..ef0440f --- /dev/null +++ b/lib/src/model/shipping_order_response.g.dart @@ -0,0 +1,203 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'shipping_order_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ShippingOrderResponse extends ShippingOrderResponse { + @override + final String? id; + @override + final String? parentId; + @override + final String? object; + @override + final int amount; + @override + final String? carrier; + @override + final String? trackingNumber; + @override + final String? method; + @override + final BuiltMap? metadata; + + factory _$ShippingOrderResponse( + [void Function(ShippingOrderResponseBuilder)? updates]) => + (new ShippingOrderResponseBuilder()..update(updates))._build(); + + _$ShippingOrderResponse._( + {this.id, + this.parentId, + this.object, + required this.amount, + this.carrier, + this.trackingNumber, + this.method, + this.metadata}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'ShippingOrderResponse', 'amount'); + } + + @override + ShippingOrderResponse rebuild( + void Function(ShippingOrderResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ShippingOrderResponseBuilder toBuilder() => + new ShippingOrderResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ShippingOrderResponse && + id == other.id && + parentId == other.parentId && + object == other.object && + amount == other.amount && + carrier == other.carrier && + trackingNumber == other.trackingNumber && + method == other.method && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, carrier.hashCode); + _$hash = $jc(_$hash, trackingNumber.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ShippingOrderResponse') + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) + ..add('amount', amount) + ..add('carrier', carrier) + ..add('trackingNumber', trackingNumber) + ..add('method', method) + ..add('metadata', metadata)) + .toString(); + } +} + +class ShippingOrderResponseBuilder + implements + Builder, + ShippingRequestBuilder { + _$ShippingOrderResponse? _$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; + + String? _carrier; + String? get carrier => _$this._carrier; + set carrier(covariant String? carrier) => _$this._carrier = carrier; + + String? _trackingNumber; + String? get trackingNumber => _$this._trackingNumber; + set trackingNumber(covariant String? trackingNumber) => + _$this._trackingNumber = trackingNumber; + + String? _method; + String? get method => _$this._method; + set method(covariant String? method) => _$this._method = method; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + ShippingOrderResponseBuilder() { + ShippingOrderResponse._defaults(this); + } + + ShippingOrderResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _parentId = $v.parentId; + _object = $v.object; + _amount = $v.amount; + _carrier = $v.carrier; + _trackingNumber = $v.trackingNumber; + _method = $v.method; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant ShippingOrderResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ShippingOrderResponse; + } + + @override + void update(void Function(ShippingOrderResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ShippingOrderResponse build() => _build(); + + _$ShippingOrderResponse _build() { + _$ShippingOrderResponse _$result; + try { + _$result = _$v ?? + new _$ShippingOrderResponse._( + id: id, + parentId: parentId, + object: object, + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'ShippingOrderResponse', 'amount'), + carrier: carrier, + trackingNumber: trackingNumber, + method: method, + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ShippingOrderResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/shipping_request.g.dart b/lib/src/model/shipping_request.g.dart new file mode 100644 index 0000000..e1e041d --- /dev/null +++ b/lib/src/model/shipping_request.g.dart @@ -0,0 +1,185 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'shipping_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +abstract class ShippingRequestBuilder { + void replace(ShippingRequest other); + void update(void Function(ShippingRequestBuilder) updates); + int? get amount; + set amount(int? amount); + + String? get carrier; + set carrier(String? carrier); + + String? get trackingNumber; + set trackingNumber(String? trackingNumber); + + String? get method; + set method(String? method); + + MapBuilder get metadata; + set metadata(MapBuilder? metadata); +} + +class _$$ShippingRequest extends $ShippingRequest { + @override + final int amount; + @override + final String? carrier; + @override + final String? trackingNumber; + @override + final String? method; + @override + final BuiltMap? metadata; + + factory _$$ShippingRequest( + [void Function($ShippingRequestBuilder)? updates]) => + (new $ShippingRequestBuilder()..update(updates))._build(); + + _$$ShippingRequest._( + {required this.amount, + this.carrier, + this.trackingNumber, + this.method, + this.metadata}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'$ShippingRequest', 'amount'); + } + + @override + $ShippingRequest rebuild(void Function($ShippingRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + $ShippingRequestBuilder toBuilder() => + new $ShippingRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is $ShippingRequest && + amount == other.amount && + carrier == other.carrier && + trackingNumber == other.trackingNumber && + method == other.method && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, carrier.hashCode); + _$hash = $jc(_$hash, trackingNumber.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'$ShippingRequest') + ..add('amount', amount) + ..add('carrier', carrier) + ..add('trackingNumber', trackingNumber) + ..add('method', method) + ..add('metadata', metadata)) + .toString(); + } +} + +class $ShippingRequestBuilder + implements + Builder<$ShippingRequest, $ShippingRequestBuilder>, + ShippingRequestBuilder { + _$$ShippingRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(covariant int? amount) => _$this._amount = amount; + + String? _carrier; + String? get carrier => _$this._carrier; + set carrier(covariant String? carrier) => _$this._carrier = carrier; + + String? _trackingNumber; + String? get trackingNumber => _$this._trackingNumber; + set trackingNumber(covariant String? trackingNumber) => + _$this._trackingNumber = trackingNumber; + + String? _method; + String? get method => _$this._method; + set method(covariant String? method) => _$this._method = method; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + $ShippingRequestBuilder() { + $ShippingRequest._defaults(this); + } + + $ShippingRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _carrier = $v.carrier; + _trackingNumber = $v.trackingNumber; + _method = $v.method; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant $ShippingRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$$ShippingRequest; + } + + @override + void update(void Function($ShippingRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + $ShippingRequest build() => _build(); + + _$$ShippingRequest _build() { + _$$ShippingRequest _$result; + try { + _$result = _$v ?? + new _$$ShippingRequest._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'$ShippingRequest', 'amount'), + carrier: carrier, + trackingNumber: trackingNumber, + method: method, + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'$ShippingRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/sms_checkout_request.g.dart b/lib/src/model/sms_checkout_request.g.dart new file mode 100644 index 0000000..9130353 --- /dev/null +++ b/lib/src/model/sms_checkout_request.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'sms_checkout_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$SmsCheckoutRequest extends SmsCheckoutRequest { + @override + final String phonenumber; + + factory _$SmsCheckoutRequest( + [void Function(SmsCheckoutRequestBuilder)? updates]) => + (new SmsCheckoutRequestBuilder()..update(updates))._build(); + + _$SmsCheckoutRequest._({required this.phonenumber}) : super._() { + BuiltValueNullFieldError.checkNotNull( + phonenumber, r'SmsCheckoutRequest', 'phonenumber'); + } + + @override + SmsCheckoutRequest rebuild( + void Function(SmsCheckoutRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + SmsCheckoutRequestBuilder toBuilder() => + new SmsCheckoutRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is SmsCheckoutRequest && phonenumber == other.phonenumber; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, phonenumber.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'SmsCheckoutRequest') + ..add('phonenumber', phonenumber)) + .toString(); + } +} + +class SmsCheckoutRequestBuilder + implements Builder { + _$SmsCheckoutRequest? _$v; + + String? _phonenumber; + String? get phonenumber => _$this._phonenumber; + set phonenumber(String? phonenumber) => _$this._phonenumber = phonenumber; + + SmsCheckoutRequestBuilder() { + SmsCheckoutRequest._defaults(this); + } + + SmsCheckoutRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _phonenumber = $v.phonenumber; + _$v = null; + } + return this; + } + + @override + void replace(SmsCheckoutRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$SmsCheckoutRequest; + } + + @override + void update(void Function(SmsCheckoutRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + SmsCheckoutRequest build() => _build(); + + _$SmsCheckoutRequest _build() { + final _$result = _$v ?? + new _$SmsCheckoutRequest._( + phonenumber: BuiltValueNullFieldError.checkNotNull( + phonenumber, r'SmsCheckoutRequest', 'phonenumber')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_events_response.g.dart b/lib/src/model/subscription_events_response.g.dart new file mode 100644 index 0000000..cc0db01 --- /dev/null +++ b/lib/src/model/subscription_events_response.g.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'subscription_events_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$SubscriptionEventsResponse extends SubscriptionEventsResponse { + @override + final BuiltList? data; + @override + final String? nextPageUrl; + @override + final String? previousPageUrl; + @override + final bool hasMore; + @override + final String object; + + factory _$SubscriptionEventsResponse( + [void Function(SubscriptionEventsResponseBuilder)? updates]) => + (new SubscriptionEventsResponseBuilder()..update(updates))._build(); + + _$SubscriptionEventsResponse._( + {this.data, + this.nextPageUrl, + this.previousPageUrl, + required this.hasMore, + required this.object}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasMore, r'SubscriptionEventsResponse', 'hasMore'); + BuiltValueNullFieldError.checkNotNull( + object, r'SubscriptionEventsResponse', 'object'); + } + + @override + SubscriptionEventsResponse rebuild( + void Function(SubscriptionEventsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + SubscriptionEventsResponseBuilder toBuilder() => + new SubscriptionEventsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is SubscriptionEventsResponse && + data == other.data && + nextPageUrl == other.nextPageUrl && + previousPageUrl == other.previousPageUrl && + hasMore == other.hasMore && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, nextPageUrl.hashCode); + _$hash = $jc(_$hash, previousPageUrl.hashCode); + _$hash = $jc(_$hash, hasMore.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'SubscriptionEventsResponse') + ..add('data', data) + ..add('nextPageUrl', nextPageUrl) + ..add('previousPageUrl', previousPageUrl) + ..add('hasMore', hasMore) + ..add('object', object)) + .toString(); + } +} + +class SubscriptionEventsResponseBuilder + implements + Builder, + PageBuilder, + PaginationBuilder { + _$SubscriptionEventsResponse? _$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) => + _$this._nextPageUrl = nextPageUrl; + + String? _previousPageUrl; + String? get previousPageUrl => _$this._previousPageUrl; + set previousPageUrl(covariant String? previousPageUrl) => + _$this._previousPageUrl = previousPageUrl; + + bool? _hasMore; + bool? get hasMore => _$this._hasMore; + set hasMore(covariant bool? hasMore) => _$this._hasMore = hasMore; + + String? _object; + String? get object => _$this._object; + set object(covariant String? object) => _$this._object = object; + + SubscriptionEventsResponseBuilder() { + SubscriptionEventsResponse._defaults(this); + } + + SubscriptionEventsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data?.toBuilder(); + _nextPageUrl = $v.nextPageUrl; + _previousPageUrl = $v.previousPageUrl; + _hasMore = $v.hasMore; + _object = $v.object; + _$v = null; + } + return this; + } + + @override +// ignore: override_on_non_overriding_method + void replace(covariant SubscriptionEventsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$SubscriptionEventsResponse; + } + + @override + void update(void Function(SubscriptionEventsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + SubscriptionEventsResponse build() => _build(); + + _$SubscriptionEventsResponse _build() { + _$SubscriptionEventsResponse _$result; + try { + _$result = _$v ?? + new _$SubscriptionEventsResponse._( + data: _data?.build(), + nextPageUrl: nextPageUrl, + previousPageUrl: previousPageUrl, + hasMore: BuiltValueNullFieldError.checkNotNull( + hasMore, r'SubscriptionEventsResponse', 'hasMore'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'SubscriptionEventsResponse', 'object')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'data'; + _data?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'SubscriptionEventsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_request.g.dart b/lib/src/model/subscription_request.g.dart new file mode 100644 index 0000000..9168792 --- /dev/null +++ b/lib/src/model/subscription_request.g.dart @@ -0,0 +1,122 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'subscription_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$SubscriptionRequest extends SubscriptionRequest { + @override + final String planId; + @override + final String? cardId; + @override + final int? trialEnd; + + factory _$SubscriptionRequest( + [void Function(SubscriptionRequestBuilder)? updates]) => + (new SubscriptionRequestBuilder()..update(updates))._build(); + + _$SubscriptionRequest._({required this.planId, this.cardId, this.trialEnd}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + planId, r'SubscriptionRequest', 'planId'); + } + + @override + SubscriptionRequest rebuild( + void Function(SubscriptionRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + SubscriptionRequestBuilder toBuilder() => + new SubscriptionRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is SubscriptionRequest && + planId == other.planId && + cardId == other.cardId && + trialEnd == other.trialEnd; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, planId.hashCode); + _$hash = $jc(_$hash, cardId.hashCode); + _$hash = $jc(_$hash, trialEnd.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'SubscriptionRequest') + ..add('planId', planId) + ..add('cardId', cardId) + ..add('trialEnd', trialEnd)) + .toString(); + } +} + +class SubscriptionRequestBuilder + implements Builder { + _$SubscriptionRequest? _$v; + + String? _planId; + String? get planId => _$this._planId; + set planId(String? planId) => _$this._planId = planId; + + String? _cardId; + String? get cardId => _$this._cardId; + set cardId(String? cardId) => _$this._cardId = cardId; + + int? _trialEnd; + int? get trialEnd => _$this._trialEnd; + set trialEnd(int? trialEnd) => _$this._trialEnd = trialEnd; + + SubscriptionRequestBuilder() { + SubscriptionRequest._defaults(this); + } + + SubscriptionRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _planId = $v.planId; + _cardId = $v.cardId; + _trialEnd = $v.trialEnd; + _$v = null; + } + return this; + } + + @override + void replace(SubscriptionRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$SubscriptionRequest; + } + + @override + void update(void Function(SubscriptionRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + SubscriptionRequest build() => _build(); + + _$SubscriptionRequest _build() { + final _$result = _$v ?? + new _$SubscriptionRequest._( + planId: BuiltValueNullFieldError.checkNotNull( + planId, r'SubscriptionRequest', 'planId'), + cardId: cardId, + trialEnd: trialEnd); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_response.g.dart b/lib/src/model/subscription_response.g.dart new file mode 100644 index 0000000..b464e20 --- /dev/null +++ b/lib/src/model/subscription_response.g.dart @@ -0,0 +1,307 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'subscription_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$SubscriptionResponse extends SubscriptionResponse { + @override + final int? billingCycleStart; + @override + final int? billingCycleEnd; + @override + final int? canceledAt; + @override + final String? canceledReason; + @override + final String? cardId; + @override + final String? chargeId; + @override + final int? createdAt; + @override + final String? customerCustomReference; + @override + final String? customerId; + @override + final String? id; + @override + final String? lastBillingCycleOrderId; + @override + final String? object; + @override + final int? pausedAt; + @override + final String? planId; + @override + final String? status; + @override + final int? subscriptionStart; + @override + final int? trialStart; + @override + final int? trialEnd; + + factory _$SubscriptionResponse( + [void Function(SubscriptionResponseBuilder)? updates]) => + (new SubscriptionResponseBuilder()..update(updates))._build(); + + _$SubscriptionResponse._( + {this.billingCycleStart, + this.billingCycleEnd, + this.canceledAt, + this.canceledReason, + this.cardId, + this.chargeId, + this.createdAt, + this.customerCustomReference, + this.customerId, + this.id, + this.lastBillingCycleOrderId, + this.object, + this.pausedAt, + this.planId, + this.status, + this.subscriptionStart, + this.trialStart, + this.trialEnd}) + : super._(); + + @override + SubscriptionResponse rebuild( + void Function(SubscriptionResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + SubscriptionResponseBuilder toBuilder() => + new SubscriptionResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is SubscriptionResponse && + billingCycleStart == other.billingCycleStart && + billingCycleEnd == other.billingCycleEnd && + canceledAt == other.canceledAt && + canceledReason == other.canceledReason && + cardId == other.cardId && + chargeId == other.chargeId && + createdAt == other.createdAt && + customerCustomReference == other.customerCustomReference && + customerId == other.customerId && + id == other.id && + lastBillingCycleOrderId == other.lastBillingCycleOrderId && + object == other.object && + pausedAt == other.pausedAt && + planId == other.planId && + status == other.status && + subscriptionStart == other.subscriptionStart && + trialStart == other.trialStart && + trialEnd == other.trialEnd; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, billingCycleStart.hashCode); + _$hash = $jc(_$hash, billingCycleEnd.hashCode); + _$hash = $jc(_$hash, canceledAt.hashCode); + _$hash = $jc(_$hash, canceledReason.hashCode); + _$hash = $jc(_$hash, cardId.hashCode); + _$hash = $jc(_$hash, chargeId.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, customerCustomReference.hashCode); + _$hash = $jc(_$hash, customerId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastBillingCycleOrderId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, pausedAt.hashCode); + _$hash = $jc(_$hash, planId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, subscriptionStart.hashCode); + _$hash = $jc(_$hash, trialStart.hashCode); + _$hash = $jc(_$hash, trialEnd.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'SubscriptionResponse') + ..add('billingCycleStart', billingCycleStart) + ..add('billingCycleEnd', billingCycleEnd) + ..add('canceledAt', canceledAt) + ..add('canceledReason', canceledReason) + ..add('cardId', cardId) + ..add('chargeId', chargeId) + ..add('createdAt', createdAt) + ..add('customerCustomReference', customerCustomReference) + ..add('customerId', customerId) + ..add('id', id) + ..add('lastBillingCycleOrderId', lastBillingCycleOrderId) + ..add('object', object) + ..add('pausedAt', pausedAt) + ..add('planId', planId) + ..add('status', status) + ..add('subscriptionStart', subscriptionStart) + ..add('trialStart', trialStart) + ..add('trialEnd', trialEnd)) + .toString(); + } +} + +class SubscriptionResponseBuilder + implements Builder { + _$SubscriptionResponse? _$v; + + int? _billingCycleStart; + int? get billingCycleStart => _$this._billingCycleStart; + set billingCycleStart(int? billingCycleStart) => + _$this._billingCycleStart = billingCycleStart; + + int? _billingCycleEnd; + int? get billingCycleEnd => _$this._billingCycleEnd; + set billingCycleEnd(int? billingCycleEnd) => + _$this._billingCycleEnd = billingCycleEnd; + + int? _canceledAt; + int? get canceledAt => _$this._canceledAt; + set canceledAt(int? canceledAt) => _$this._canceledAt = canceledAt; + + String? _canceledReason; + String? get canceledReason => _$this._canceledReason; + set canceledReason(String? canceledReason) => + _$this._canceledReason = canceledReason; + + String? _cardId; + String? get cardId => _$this._cardId; + set cardId(String? cardId) => _$this._cardId = cardId; + + String? _chargeId; + String? get chargeId => _$this._chargeId; + set chargeId(String? chargeId) => _$this._chargeId = chargeId; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _customerCustomReference; + String? get customerCustomReference => _$this._customerCustomReference; + set customerCustomReference(String? customerCustomReference) => + _$this._customerCustomReference = customerCustomReference; + + String? _customerId; + String? get customerId => _$this._customerId; + set customerId(String? customerId) => _$this._customerId = customerId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _lastBillingCycleOrderId; + String? get lastBillingCycleOrderId => _$this._lastBillingCycleOrderId; + set lastBillingCycleOrderId(String? lastBillingCycleOrderId) => + _$this._lastBillingCycleOrderId = lastBillingCycleOrderId; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + int? _pausedAt; + int? get pausedAt => _$this._pausedAt; + set pausedAt(int? pausedAt) => _$this._pausedAt = pausedAt; + + String? _planId; + String? get planId => _$this._planId; + set planId(String? planId) => _$this._planId = planId; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + int? _subscriptionStart; + int? get subscriptionStart => _$this._subscriptionStart; + set subscriptionStart(int? subscriptionStart) => + _$this._subscriptionStart = subscriptionStart; + + int? _trialStart; + int? get trialStart => _$this._trialStart; + set trialStart(int? trialStart) => _$this._trialStart = trialStart; + + int? _trialEnd; + int? get trialEnd => _$this._trialEnd; + set trialEnd(int? trialEnd) => _$this._trialEnd = trialEnd; + + SubscriptionResponseBuilder() { + SubscriptionResponse._defaults(this); + } + + SubscriptionResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _billingCycleStart = $v.billingCycleStart; + _billingCycleEnd = $v.billingCycleEnd; + _canceledAt = $v.canceledAt; + _canceledReason = $v.canceledReason; + _cardId = $v.cardId; + _chargeId = $v.chargeId; + _createdAt = $v.createdAt; + _customerCustomReference = $v.customerCustomReference; + _customerId = $v.customerId; + _id = $v.id; + _lastBillingCycleOrderId = $v.lastBillingCycleOrderId; + _object = $v.object; + _pausedAt = $v.pausedAt; + _planId = $v.planId; + _status = $v.status; + _subscriptionStart = $v.subscriptionStart; + _trialStart = $v.trialStart; + _trialEnd = $v.trialEnd; + _$v = null; + } + return this; + } + + @override + void replace(SubscriptionResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$SubscriptionResponse; + } + + @override + void update(void Function(SubscriptionResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + SubscriptionResponse build() => _build(); + + _$SubscriptionResponse _build() { + final _$result = _$v ?? + new _$SubscriptionResponse._( + billingCycleStart: billingCycleStart, + billingCycleEnd: billingCycleEnd, + canceledAt: canceledAt, + canceledReason: canceledReason, + cardId: cardId, + chargeId: chargeId, + createdAt: createdAt, + customerCustomReference: customerCustomReference, + customerId: customerId, + id: id, + lastBillingCycleOrderId: lastBillingCycleOrderId, + object: object, + pausedAt: pausedAt, + planId: planId, + status: status, + subscriptionStart: subscriptionStart, + trialStart: trialStart, + trialEnd: trialEnd); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/subscription_update_request.g.dart b/lib/src/model/subscription_update_request.g.dart new file mode 100644 index 0000000..7c5110a --- /dev/null +++ b/lib/src/model/subscription_update_request.g.dart @@ -0,0 +1,117 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'subscription_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$SubscriptionUpdateRequest extends SubscriptionUpdateRequest { + @override + final String? planId; + @override + final String? cardId; + @override + final int? trialEnd; + + factory _$SubscriptionUpdateRequest( + [void Function(SubscriptionUpdateRequestBuilder)? updates]) => + (new SubscriptionUpdateRequestBuilder()..update(updates))._build(); + + _$SubscriptionUpdateRequest._({this.planId, this.cardId, this.trialEnd}) + : super._(); + + @override + SubscriptionUpdateRequest rebuild( + void Function(SubscriptionUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + SubscriptionUpdateRequestBuilder toBuilder() => + new SubscriptionUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is SubscriptionUpdateRequest && + planId == other.planId && + cardId == other.cardId && + trialEnd == other.trialEnd; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, planId.hashCode); + _$hash = $jc(_$hash, cardId.hashCode); + _$hash = $jc(_$hash, trialEnd.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'SubscriptionUpdateRequest') + ..add('planId', planId) + ..add('cardId', cardId) + ..add('trialEnd', trialEnd)) + .toString(); + } +} + +class SubscriptionUpdateRequestBuilder + implements + Builder { + _$SubscriptionUpdateRequest? _$v; + + String? _planId; + String? get planId => _$this._planId; + set planId(String? planId) => _$this._planId = planId; + + String? _cardId; + String? get cardId => _$this._cardId; + set cardId(String? cardId) => _$this._cardId = cardId; + + int? _trialEnd; + int? get trialEnd => _$this._trialEnd; + set trialEnd(int? trialEnd) => _$this._trialEnd = trialEnd; + + SubscriptionUpdateRequestBuilder() { + SubscriptionUpdateRequest._defaults(this); + } + + SubscriptionUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _planId = $v.planId; + _cardId = $v.cardId; + _trialEnd = $v.trialEnd; + _$v = null; + } + return this; + } + + @override + void replace(SubscriptionUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$SubscriptionUpdateRequest; + } + + @override + void update(void Function(SubscriptionUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + SubscriptionUpdateRequest build() => _build(); + + _$SubscriptionUpdateRequest _build() { + final _$result = _$v ?? + new _$SubscriptionUpdateRequest._( + planId: planId, cardId: cardId, trialEnd: trialEnd); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token.g.dart b/lib/src/model/token.g.dart new file mode 100644 index 0000000..6d552eb --- /dev/null +++ b/lib/src/model/token.g.dart @@ -0,0 +1,114 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'token.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$Token extends Token { + @override + final TokenCard? card; + @override + final TokenCheckout? checkout; + + factory _$Token([void Function(TokenBuilder)? updates]) => + (new TokenBuilder()..update(updates))._build(); + + _$Token._({this.card, this.checkout}) : super._(); + + @override + Token rebuild(void Function(TokenBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TokenBuilder toBuilder() => new TokenBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is Token && card == other.card && checkout == other.checkout; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, card.hashCode); + _$hash = $jc(_$hash, checkout.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'Token') + ..add('card', card) + ..add('checkout', checkout)) + .toString(); + } +} + +class TokenBuilder implements Builder { + _$Token? _$v; + + TokenCardBuilder? _card; + TokenCardBuilder get card => _$this._card ??= new TokenCardBuilder(); + set card(TokenCardBuilder? card) => _$this._card = card; + + TokenCheckoutBuilder? _checkout; + TokenCheckoutBuilder get checkout => + _$this._checkout ??= new TokenCheckoutBuilder(); + set checkout(TokenCheckoutBuilder? checkout) => _$this._checkout = checkout; + + TokenBuilder() { + Token._defaults(this); + } + + TokenBuilder get _$this { + final $v = _$v; + if ($v != null) { + _card = $v.card?.toBuilder(); + _checkout = $v.checkout?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(Token other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$Token; + } + + @override + void update(void Function(TokenBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + Token build() => _build(); + + _$Token _build() { + _$Token _$result; + try { + _$result = _$v ?? + new _$Token._(card: _card?.build(), checkout: _checkout?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'card'; + _card?.build(); + _$failedField = 'checkout'; + _checkout?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'Token', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_card.g.dart b/lib/src/model/token_card.g.dart new file mode 100644 index 0000000..8702de3 --- /dev/null +++ b/lib/src/model/token_card.g.dart @@ -0,0 +1,165 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'token_card.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TokenCard extends TokenCard { + @override + final String cvc; + @override + final String? deviceFingerprint; + @override + final String expMonth; + @override + final String expYear; + @override + final String name; + @override + final String number; + + factory _$TokenCard([void Function(TokenCardBuilder)? updates]) => + (new TokenCardBuilder()..update(updates))._build(); + + _$TokenCard._( + {required this.cvc, + this.deviceFingerprint, + required this.expMonth, + required this.expYear, + required this.name, + required this.number}) + : super._() { + BuiltValueNullFieldError.checkNotNull(cvc, r'TokenCard', 'cvc'); + BuiltValueNullFieldError.checkNotNull(expMonth, r'TokenCard', 'expMonth'); + BuiltValueNullFieldError.checkNotNull(expYear, r'TokenCard', 'expYear'); + BuiltValueNullFieldError.checkNotNull(name, r'TokenCard', 'name'); + BuiltValueNullFieldError.checkNotNull(number, r'TokenCard', 'number'); + } + + @override + TokenCard rebuild(void Function(TokenCardBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TokenCardBuilder toBuilder() => new TokenCardBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TokenCard && + cvc == other.cvc && + deviceFingerprint == other.deviceFingerprint && + expMonth == other.expMonth && + expYear == other.expYear && + name == other.name && + number == other.number; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, cvc.hashCode); + _$hash = $jc(_$hash, deviceFingerprint.hashCode); + _$hash = $jc(_$hash, expMonth.hashCode); + _$hash = $jc(_$hash, expYear.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, number.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TokenCard') + ..add('cvc', cvc) + ..add('deviceFingerprint', deviceFingerprint) + ..add('expMonth', expMonth) + ..add('expYear', expYear) + ..add('name', name) + ..add('number', number)) + .toString(); + } +} + +class TokenCardBuilder implements Builder { + _$TokenCard? _$v; + + String? _cvc; + String? get cvc => _$this._cvc; + set cvc(String? cvc) => _$this._cvc = cvc; + + String? _deviceFingerprint; + String? get deviceFingerprint => _$this._deviceFingerprint; + set deviceFingerprint(String? deviceFingerprint) => + _$this._deviceFingerprint = deviceFingerprint; + + String? _expMonth; + String? get expMonth => _$this._expMonth; + set expMonth(String? expMonth) => _$this._expMonth = expMonth; + + String? _expYear; + String? get expYear => _$this._expYear; + set expYear(String? expYear) => _$this._expYear = expYear; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _number; + String? get number => _$this._number; + set number(String? number) => _$this._number = number; + + TokenCardBuilder() { + TokenCard._defaults(this); + } + + TokenCardBuilder get _$this { + final $v = _$v; + if ($v != null) { + _cvc = $v.cvc; + _deviceFingerprint = $v.deviceFingerprint; + _expMonth = $v.expMonth; + _expYear = $v.expYear; + _name = $v.name; + _number = $v.number; + _$v = null; + } + return this; + } + + @override + void replace(TokenCard other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TokenCard; + } + + @override + void update(void Function(TokenCardBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TokenCard build() => _build(); + + _$TokenCard _build() { + final _$result = _$v ?? + new _$TokenCard._( + cvc: + BuiltValueNullFieldError.checkNotNull(cvc, r'TokenCard', 'cvc'), + deviceFingerprint: deviceFingerprint, + expMonth: BuiltValueNullFieldError.checkNotNull( + expMonth, r'TokenCard', 'expMonth'), + expYear: BuiltValueNullFieldError.checkNotNull( + expYear, r'TokenCard', 'expYear'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'TokenCard', 'name'), + number: BuiltValueNullFieldError.checkNotNull( + number, r'TokenCard', 'number')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_checkout.g.dart b/lib/src/model/token_checkout.g.dart new file mode 100644 index 0000000..d4619af --- /dev/null +++ b/lib/src/model/token_checkout.g.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'token_checkout.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TokenCheckout extends TokenCheckout { + @override + final String? returnsControlOn; + + factory _$TokenCheckout([void Function(TokenCheckoutBuilder)? updates]) => + (new TokenCheckoutBuilder()..update(updates))._build(); + + _$TokenCheckout._({this.returnsControlOn}) : super._(); + + @override + TokenCheckout rebuild(void Function(TokenCheckoutBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TokenCheckoutBuilder toBuilder() => new TokenCheckoutBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TokenCheckout && returnsControlOn == other.returnsControlOn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, returnsControlOn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TokenCheckout') + ..add('returnsControlOn', returnsControlOn)) + .toString(); + } +} + +class TokenCheckoutBuilder + implements Builder { + _$TokenCheckout? _$v; + + String? _returnsControlOn; + String? get returnsControlOn => _$this._returnsControlOn; + set returnsControlOn(String? returnsControlOn) => + _$this._returnsControlOn = returnsControlOn; + + TokenCheckoutBuilder() { + TokenCheckout._defaults(this); + } + + TokenCheckoutBuilder get _$this { + final $v = _$v; + if ($v != null) { + _returnsControlOn = $v.returnsControlOn; + _$v = null; + } + return this; + } + + @override + void replace(TokenCheckout other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TokenCheckout; + } + + @override + void update(void Function(TokenCheckoutBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TokenCheckout build() => _build(); + + _$TokenCheckout _build() { + final _$result = + _$v ?? new _$TokenCheckout._(returnsControlOn: returnsControlOn); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_response.g.dart b/lib/src/model/token_response.g.dart new file mode 100644 index 0000000..626bacc --- /dev/null +++ b/lib/src/model/token_response.g.dart @@ -0,0 +1,167 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'token_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TokenResponse extends TokenResponse { + @override + final TokenResponseCheckout? checkout; + @override + final String id; + @override + final bool livemode; + @override + final String object; + @override + final bool used; + + factory _$TokenResponse([void Function(TokenResponseBuilder)? updates]) => + (new TokenResponseBuilder()..update(updates))._build(); + + _$TokenResponse._( + {this.checkout, + required this.id, + required this.livemode, + required this.object, + required this.used}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'TokenResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + livemode, r'TokenResponse', 'livemode'); + BuiltValueNullFieldError.checkNotNull(object, r'TokenResponse', 'object'); + BuiltValueNullFieldError.checkNotNull(used, r'TokenResponse', 'used'); + } + + @override + TokenResponse rebuild(void Function(TokenResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TokenResponseBuilder toBuilder() => new TokenResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TokenResponse && + checkout == other.checkout && + id == other.id && + livemode == other.livemode && + object == other.object && + used == other.used; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, checkout.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, used.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TokenResponse') + ..add('checkout', checkout) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('used', used)) + .toString(); + } +} + +class TokenResponseBuilder + implements Builder { + _$TokenResponse? _$v; + + TokenResponseCheckoutBuilder? _checkout; + TokenResponseCheckoutBuilder get checkout => + _$this._checkout ??= new TokenResponseCheckoutBuilder(); + set checkout(TokenResponseCheckoutBuilder? checkout) => + _$this._checkout = checkout; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + bool? _used; + bool? get used => _$this._used; + set used(bool? used) => _$this._used = used; + + TokenResponseBuilder() { + TokenResponse._defaults(this); + } + + TokenResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _checkout = $v.checkout?.toBuilder(); + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _used = $v.used; + _$v = null; + } + return this; + } + + @override + void replace(TokenResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TokenResponse; + } + + @override + void update(void Function(TokenResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TokenResponse build() => _build(); + + _$TokenResponse _build() { + _$TokenResponse _$result; + try { + _$result = _$v ?? + new _$TokenResponse._( + checkout: _checkout?.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'TokenResponse', 'id'), + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'TokenResponse', 'livemode'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'TokenResponse', 'object'), + used: BuiltValueNullFieldError.checkNotNull( + used, r'TokenResponse', 'used')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'checkout'; + _checkout?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'TokenResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/token_response_checkout.g.dart b/lib/src/model/token_response_checkout.g.dart new file mode 100644 index 0000000..5ab0b41 --- /dev/null +++ b/lib/src/model/token_response_checkout.g.dart @@ -0,0 +1,396 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'token_response_checkout.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TokenResponseCheckout extends TokenResponseCheckout { + @override + final BuiltList? allowedPaymentMethods; + @override + final bool? canNotExpire; + @override + final int? emailsSent; + @override + final BuiltList? excludeCardNetworks; + @override + final int? expiresAt; + @override + final String? failureUrl; + @override + final bool? force3dsFlow; + @override + final String? id; + @override + final bool? livemode; + @override + final BuiltMap? metadata; + @override + final bool? monthlyInstallmentsEnabled; + @override + final BuiltList? monthlyInstallmentsOptions; + @override + final String? name; + @override + final bool? needsShippingContact; + @override + final String? object; + @override + final bool? onDemandEnabled; + @override + final int? paidPaymentsCount; + @override + final bool? recurrent; + @override + final int? smsSent; + @override + final int? startsAt; + @override + final String? status; + @override + final String? successUrl; + @override + final String? type; + + factory _$TokenResponseCheckout( + [void Function(TokenResponseCheckoutBuilder)? updates]) => + (new TokenResponseCheckoutBuilder()..update(updates))._build(); + + _$TokenResponseCheckout._( + {this.allowedPaymentMethods, + this.canNotExpire, + this.emailsSent, + this.excludeCardNetworks, + this.expiresAt, + this.failureUrl, + this.force3dsFlow, + this.id, + this.livemode, + this.metadata, + this.monthlyInstallmentsEnabled, + this.monthlyInstallmentsOptions, + this.name, + this.needsShippingContact, + this.object, + this.onDemandEnabled, + this.paidPaymentsCount, + this.recurrent, + this.smsSent, + this.startsAt, + this.status, + this.successUrl, + this.type}) + : super._(); + + @override + TokenResponseCheckout rebuild( + void Function(TokenResponseCheckoutBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TokenResponseCheckoutBuilder toBuilder() => + new TokenResponseCheckoutBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TokenResponseCheckout && + allowedPaymentMethods == other.allowedPaymentMethods && + canNotExpire == other.canNotExpire && + emailsSent == other.emailsSent && + excludeCardNetworks == other.excludeCardNetworks && + expiresAt == other.expiresAt && + failureUrl == other.failureUrl && + force3dsFlow == other.force3dsFlow && + id == other.id && + livemode == other.livemode && + metadata == other.metadata && + monthlyInstallmentsEnabled == other.monthlyInstallmentsEnabled && + monthlyInstallmentsOptions == other.monthlyInstallmentsOptions && + name == other.name && + needsShippingContact == other.needsShippingContact && + object == other.object && + onDemandEnabled == other.onDemandEnabled && + paidPaymentsCount == other.paidPaymentsCount && + recurrent == other.recurrent && + smsSent == other.smsSent && + startsAt == other.startsAt && + status == other.status && + successUrl == other.successUrl && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, allowedPaymentMethods.hashCode); + _$hash = $jc(_$hash, canNotExpire.hashCode); + _$hash = $jc(_$hash, emailsSent.hashCode); + _$hash = $jc(_$hash, excludeCardNetworks.hashCode); + _$hash = $jc(_$hash, expiresAt.hashCode); + _$hash = $jc(_$hash, failureUrl.hashCode); + _$hash = $jc(_$hash, force3dsFlow.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsEnabled.hashCode); + _$hash = $jc(_$hash, monthlyInstallmentsOptions.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, needsShippingContact.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, onDemandEnabled.hashCode); + _$hash = $jc(_$hash, paidPaymentsCount.hashCode); + _$hash = $jc(_$hash, recurrent.hashCode); + _$hash = $jc(_$hash, smsSent.hashCode); + _$hash = $jc(_$hash, startsAt.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, successUrl.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TokenResponseCheckout') + ..add('allowedPaymentMethods', allowedPaymentMethods) + ..add('canNotExpire', canNotExpire) + ..add('emailsSent', emailsSent) + ..add('excludeCardNetworks', excludeCardNetworks) + ..add('expiresAt', expiresAt) + ..add('failureUrl', failureUrl) + ..add('force3dsFlow', force3dsFlow) + ..add('id', id) + ..add('livemode', livemode) + ..add('metadata', metadata) + ..add('monthlyInstallmentsEnabled', monthlyInstallmentsEnabled) + ..add('monthlyInstallmentsOptions', monthlyInstallmentsOptions) + ..add('name', name) + ..add('needsShippingContact', needsShippingContact) + ..add('object', object) + ..add('onDemandEnabled', onDemandEnabled) + ..add('paidPaymentsCount', paidPaymentsCount) + ..add('recurrent', recurrent) + ..add('smsSent', smsSent) + ..add('startsAt', startsAt) + ..add('status', status) + ..add('successUrl', successUrl) + ..add('type', type)) + .toString(); + } +} + +class TokenResponseCheckoutBuilder + implements Builder { + _$TokenResponseCheckout? _$v; + + ListBuilder? _allowedPaymentMethods; + ListBuilder get allowedPaymentMethods => + _$this._allowedPaymentMethods ??= new ListBuilder(); + set allowedPaymentMethods(ListBuilder? allowedPaymentMethods) => + _$this._allowedPaymentMethods = allowedPaymentMethods; + + bool? _canNotExpire; + bool? get canNotExpire => _$this._canNotExpire; + set canNotExpire(bool? canNotExpire) => _$this._canNotExpire = canNotExpire; + + int? _emailsSent; + int? get emailsSent => _$this._emailsSent; + set emailsSent(int? emailsSent) => _$this._emailsSent = emailsSent; + + ListBuilder? _excludeCardNetworks; + ListBuilder get excludeCardNetworks => + _$this._excludeCardNetworks ??= new ListBuilder(); + set excludeCardNetworks(ListBuilder? excludeCardNetworks) => + _$this._excludeCardNetworks = excludeCardNetworks; + + int? _expiresAt; + int? get expiresAt => _$this._expiresAt; + set expiresAt(int? expiresAt) => _$this._expiresAt = expiresAt; + + String? _failureUrl; + String? get failureUrl => _$this._failureUrl; + set failureUrl(String? failureUrl) => _$this._failureUrl = failureUrl; + + bool? _force3dsFlow; + bool? get force3dsFlow => _$this._force3dsFlow; + set force3dsFlow(bool? force3dsFlow) => _$this._force3dsFlow = force3dsFlow; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + bool? _monthlyInstallmentsEnabled; + bool? get monthlyInstallmentsEnabled => _$this._monthlyInstallmentsEnabled; + set monthlyInstallmentsEnabled(bool? monthlyInstallmentsEnabled) => + _$this._monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; + + ListBuilder? _monthlyInstallmentsOptions; + ListBuilder get monthlyInstallmentsOptions => + _$this._monthlyInstallmentsOptions ??= new ListBuilder(); + set monthlyInstallmentsOptions( + ListBuilder? monthlyInstallmentsOptions) => + _$this._monthlyInstallmentsOptions = monthlyInstallmentsOptions; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _needsShippingContact; + bool? get needsShippingContact => _$this._needsShippingContact; + set needsShippingContact(bool? needsShippingContact) => + _$this._needsShippingContact = needsShippingContact; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + bool? _onDemandEnabled; + bool? get onDemandEnabled => _$this._onDemandEnabled; + set onDemandEnabled(bool? onDemandEnabled) => + _$this._onDemandEnabled = onDemandEnabled; + + int? _paidPaymentsCount; + int? get paidPaymentsCount => _$this._paidPaymentsCount; + set paidPaymentsCount(int? paidPaymentsCount) => + _$this._paidPaymentsCount = paidPaymentsCount; + + bool? _recurrent; + bool? get recurrent => _$this._recurrent; + set recurrent(bool? recurrent) => _$this._recurrent = recurrent; + + int? _smsSent; + int? get smsSent => _$this._smsSent; + set smsSent(int? smsSent) => _$this._smsSent = smsSent; + + int? _startsAt; + int? get startsAt => _$this._startsAt; + set startsAt(int? startsAt) => _$this._startsAt = startsAt; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + String? _successUrl; + String? get successUrl => _$this._successUrl; + set successUrl(String? successUrl) => _$this._successUrl = successUrl; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + TokenResponseCheckoutBuilder() { + TokenResponseCheckout._defaults(this); + } + + TokenResponseCheckoutBuilder get _$this { + final $v = _$v; + if ($v != null) { + _allowedPaymentMethods = $v.allowedPaymentMethods?.toBuilder(); + _canNotExpire = $v.canNotExpire; + _emailsSent = $v.emailsSent; + _excludeCardNetworks = $v.excludeCardNetworks?.toBuilder(); + _expiresAt = $v.expiresAt; + _failureUrl = $v.failureUrl; + _force3dsFlow = $v.force3dsFlow; + _id = $v.id; + _livemode = $v.livemode; + _metadata = $v.metadata?.toBuilder(); + _monthlyInstallmentsEnabled = $v.monthlyInstallmentsEnabled; + _monthlyInstallmentsOptions = $v.monthlyInstallmentsOptions?.toBuilder(); + _name = $v.name; + _needsShippingContact = $v.needsShippingContact; + _object = $v.object; + _onDemandEnabled = $v.onDemandEnabled; + _paidPaymentsCount = $v.paidPaymentsCount; + _recurrent = $v.recurrent; + _smsSent = $v.smsSent; + _startsAt = $v.startsAt; + _status = $v.status; + _successUrl = $v.successUrl; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(TokenResponseCheckout other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TokenResponseCheckout; + } + + @override + void update(void Function(TokenResponseCheckoutBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TokenResponseCheckout build() => _build(); + + _$TokenResponseCheckout _build() { + _$TokenResponseCheckout _$result; + try { + _$result = _$v ?? + new _$TokenResponseCheckout._( + allowedPaymentMethods: _allowedPaymentMethods?.build(), + canNotExpire: canNotExpire, + emailsSent: emailsSent, + excludeCardNetworks: _excludeCardNetworks?.build(), + expiresAt: expiresAt, + failureUrl: failureUrl, + force3dsFlow: force3dsFlow, + id: id, + livemode: livemode, + metadata: _metadata?.build(), + monthlyInstallmentsEnabled: monthlyInstallmentsEnabled, + monthlyInstallmentsOptions: _monthlyInstallmentsOptions?.build(), + name: name, + needsShippingContact: needsShippingContact, + object: object, + onDemandEnabled: onDemandEnabled, + paidPaymentsCount: paidPaymentsCount, + recurrent: recurrent, + smsSent: smsSent, + startsAt: startsAt, + status: status, + successUrl: successUrl, + type: type); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'allowedPaymentMethods'; + _allowedPaymentMethods?.build(); + + _$failedField = 'excludeCardNetworks'; + _excludeCardNetworks?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'monthlyInstallmentsOptions'; + _monthlyInstallmentsOptions?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'TokenResponseCheckout', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transaction_response.g.dart b/lib/src/model/transaction_response.g.dart new file mode 100644 index 0000000..4ab34e8 --- /dev/null +++ b/lib/src/model/transaction_response.g.dart @@ -0,0 +1,245 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'transaction_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TransactionResponse extends TransactionResponse { + @override + final int amount; + @override + final String charge; + @override + final int createdAt; + @override + final String currency; + @override + final int fee; + @override + final String id; + @override + final bool livemode; + @override + final int net; + @override + final String object; + @override + final String status; + @override + final String type; + + factory _$TransactionResponse( + [void Function(TransactionResponseBuilder)? updates]) => + (new TransactionResponseBuilder()..update(updates))._build(); + + _$TransactionResponse._( + {required this.amount, + required this.charge, + required this.createdAt, + required this.currency, + required this.fee, + required this.id, + required this.livemode, + required this.net, + required this.object, + required this.status, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + amount, r'TransactionResponse', 'amount'); + BuiltValueNullFieldError.checkNotNull( + charge, r'TransactionResponse', 'charge'); + BuiltValueNullFieldError.checkNotNull( + createdAt, r'TransactionResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + currency, r'TransactionResponse', 'currency'); + BuiltValueNullFieldError.checkNotNull(fee, r'TransactionResponse', 'fee'); + BuiltValueNullFieldError.checkNotNull(id, r'TransactionResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + livemode, r'TransactionResponse', 'livemode'); + BuiltValueNullFieldError.checkNotNull(net, r'TransactionResponse', 'net'); + BuiltValueNullFieldError.checkNotNull( + object, r'TransactionResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + status, r'TransactionResponse', 'status'); + BuiltValueNullFieldError.checkNotNull(type, r'TransactionResponse', 'type'); + } + + @override + TransactionResponse rebuild( + void Function(TransactionResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TransactionResponseBuilder toBuilder() => + new TransactionResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TransactionResponse && + amount == other.amount && + charge == other.charge && + createdAt == other.createdAt && + currency == other.currency && + fee == other.fee && + id == other.id && + livemode == other.livemode && + net == other.net && + object == other.object && + status == other.status && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, charge.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, fee.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, net.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TransactionResponse') + ..add('amount', amount) + ..add('charge', charge) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('fee', fee) + ..add('id', id) + ..add('livemode', livemode) + ..add('net', net) + ..add('object', object) + ..add('status', status) + ..add('type', type)) + .toString(); + } +} + +class TransactionResponseBuilder + implements Builder { + _$TransactionResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _charge; + String? get charge => _$this._charge; + set charge(String? charge) => _$this._charge = charge; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + int? _fee; + int? get fee => _$this._fee; + set fee(int? fee) => _$this._fee = fee; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + int? _net; + int? get net => _$this._net; + set net(int? net) => _$this._net = net; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + TransactionResponseBuilder() { + TransactionResponse._defaults(this); + } + + TransactionResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _charge = $v.charge; + _createdAt = $v.createdAt; + _currency = $v.currency; + _fee = $v.fee; + _id = $v.id; + _livemode = $v.livemode; + _net = $v.net; + _object = $v.object; + _status = $v.status; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(TransactionResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TransactionResponse; + } + + @override + void update(void Function(TransactionResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TransactionResponse build() => _build(); + + _$TransactionResponse _build() { + final _$result = _$v ?? + new _$TransactionResponse._( + amount: BuiltValueNullFieldError.checkNotNull( + amount, r'TransactionResponse', 'amount'), + charge: BuiltValueNullFieldError.checkNotNull( + charge, r'TransactionResponse', 'charge'), + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'TransactionResponse', 'createdAt'), + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'TransactionResponse', 'currency'), + fee: BuiltValueNullFieldError.checkNotNull( + fee, r'TransactionResponse', 'fee'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'TransactionResponse', 'id'), + livemode: BuiltValueNullFieldError.checkNotNull( + livemode, r'TransactionResponse', 'livemode'), + net: BuiltValueNullFieldError.checkNotNull( + net, r'TransactionResponse', 'net'), + object: BuiltValueNullFieldError.checkNotNull( + object, r'TransactionResponse', 'object'), + status: BuiltValueNullFieldError.checkNotNull(status, r'TransactionResponse', 'status'), + type: BuiltValueNullFieldError.checkNotNull(type, r'TransactionResponse', 'type')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfer_destination_response.g.dart b/lib/src/model/transfer_destination_response.g.dart new file mode 100644 index 0000000..eddaa7c --- /dev/null +++ b/lib/src/model/transfer_destination_response.g.dart @@ -0,0 +1,185 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'transfer_destination_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TransferDestinationResponse extends TransferDestinationResponse { + @override + final String? accountHolder; + @override + final String? accountNumber; + @override + final String? bank; + @override + final int? createdAt; + @override + final String? id; + @override + final String? object; + @override + final String? payeeId; + @override + final String? type; + + factory _$TransferDestinationResponse( + [void Function(TransferDestinationResponseBuilder)? updates]) => + (new TransferDestinationResponseBuilder()..update(updates))._build(); + + _$TransferDestinationResponse._( + {this.accountHolder, + this.accountNumber, + this.bank, + this.createdAt, + this.id, + this.object, + this.payeeId, + this.type}) + : super._(); + + @override + TransferDestinationResponse rebuild( + void Function(TransferDestinationResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TransferDestinationResponseBuilder toBuilder() => + new TransferDestinationResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TransferDestinationResponse && + accountHolder == other.accountHolder && + accountNumber == other.accountNumber && + bank == other.bank && + createdAt == other.createdAt && + id == other.id && + object == other.object && + payeeId == other.payeeId && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, accountHolder.hashCode); + _$hash = $jc(_$hash, accountNumber.hashCode); + _$hash = $jc(_$hash, bank.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, payeeId.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TransferDestinationResponse') + ..add('accountHolder', accountHolder) + ..add('accountNumber', accountNumber) + ..add('bank', bank) + ..add('createdAt', createdAt) + ..add('id', id) + ..add('object', object) + ..add('payeeId', payeeId) + ..add('type', type)) + .toString(); + } +} + +class TransferDestinationResponseBuilder + implements + Builder { + _$TransferDestinationResponse? _$v; + + String? _accountHolder; + String? get accountHolder => _$this._accountHolder; + set accountHolder(String? accountHolder) => + _$this._accountHolder = accountHolder; + + String? _accountNumber; + String? get accountNumber => _$this._accountNumber; + set accountNumber(String? accountNumber) => + _$this._accountNumber = accountNumber; + + String? _bank; + String? get bank => _$this._bank; + set bank(String? bank) => _$this._bank = bank; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _payeeId; + String? get payeeId => _$this._payeeId; + set payeeId(String? payeeId) => _$this._payeeId = payeeId; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + TransferDestinationResponseBuilder() { + TransferDestinationResponse._defaults(this); + } + + TransferDestinationResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _accountHolder = $v.accountHolder; + _accountNumber = $v.accountNumber; + _bank = $v.bank; + _createdAt = $v.createdAt; + _id = $v.id; + _object = $v.object; + _payeeId = $v.payeeId; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(TransferDestinationResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TransferDestinationResponse; + } + + @override + void update(void Function(TransferDestinationResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TransferDestinationResponse build() => _build(); + + _$TransferDestinationResponse _build() { + final _$result = _$v ?? + new _$TransferDestinationResponse._( + accountHolder: accountHolder, + accountNumber: accountNumber, + bank: bank, + createdAt: createdAt, + id: id, + object: object, + payeeId: payeeId, + type: type); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfer_method_response.g.dart b/lib/src/model/transfer_method_response.g.dart new file mode 100644 index 0000000..85897c6 --- /dev/null +++ b/lib/src/model/transfer_method_response.g.dart @@ -0,0 +1,183 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'transfer_method_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TransferMethodResponse extends TransferMethodResponse { + @override + final String? accountHolder; + @override + final String? accountNumber; + @override + final String? bank; + @override + final int? createdAt; + @override + final String? id; + @override + final String? object; + @override + final String? payeeId; + @override + final String? type; + + factory _$TransferMethodResponse( + [void Function(TransferMethodResponseBuilder)? updates]) => + (new TransferMethodResponseBuilder()..update(updates))._build(); + + _$TransferMethodResponse._( + {this.accountHolder, + this.accountNumber, + this.bank, + this.createdAt, + this.id, + this.object, + this.payeeId, + this.type}) + : super._(); + + @override + TransferMethodResponse rebuild( + void Function(TransferMethodResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TransferMethodResponseBuilder toBuilder() => + new TransferMethodResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TransferMethodResponse && + accountHolder == other.accountHolder && + accountNumber == other.accountNumber && + bank == other.bank && + createdAt == other.createdAt && + id == other.id && + object == other.object && + payeeId == other.payeeId && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, accountHolder.hashCode); + _$hash = $jc(_$hash, accountNumber.hashCode); + _$hash = $jc(_$hash, bank.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, payeeId.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TransferMethodResponse') + ..add('accountHolder', accountHolder) + ..add('accountNumber', accountNumber) + ..add('bank', bank) + ..add('createdAt', createdAt) + ..add('id', id) + ..add('object', object) + ..add('payeeId', payeeId) + ..add('type', type)) + .toString(); + } +} + +class TransferMethodResponseBuilder + implements Builder { + _$TransferMethodResponse? _$v; + + String? _accountHolder; + String? get accountHolder => _$this._accountHolder; + set accountHolder(String? accountHolder) => + _$this._accountHolder = accountHolder; + + String? _accountNumber; + String? get accountNumber => _$this._accountNumber; + set accountNumber(String? accountNumber) => + _$this._accountNumber = accountNumber; + + String? _bank; + String? get bank => _$this._bank; + set bank(String? bank) => _$this._bank = bank; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _payeeId; + String? get payeeId => _$this._payeeId; + set payeeId(String? payeeId) => _$this._payeeId = payeeId; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + TransferMethodResponseBuilder() { + TransferMethodResponse._defaults(this); + } + + TransferMethodResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _accountHolder = $v.accountHolder; + _accountNumber = $v.accountNumber; + _bank = $v.bank; + _createdAt = $v.createdAt; + _id = $v.id; + _object = $v.object; + _payeeId = $v.payeeId; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(TransferMethodResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TransferMethodResponse; + } + + @override + void update(void Function(TransferMethodResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TransferMethodResponse build() => _build(); + + _$TransferMethodResponse _build() { + final _$result = _$v ?? + new _$TransferMethodResponse._( + accountHolder: accountHolder, + accountNumber: accountNumber, + bank: bank, + createdAt: createdAt, + id: id, + object: object, + payeeId: payeeId, + type: type); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfer_response.g.dart b/lib/src/model/transfer_response.g.dart new file mode 100644 index 0000000..1f0a2ba --- /dev/null +++ b/lib/src/model/transfer_response.g.dart @@ -0,0 +1,221 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'transfer_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TransferResponse extends TransferResponse { + @override + final int? amount; + @override + final int? createdAt; + @override + final String? currency; + @override + final String? id; + @override + final bool? livemode; + @override + final TransferDestinationResponse? destination; + @override + final String? object; + @override + final String? statementDescription; + @override + final String? statementReference; + @override + final String? status; + + factory _$TransferResponse( + [void Function(TransferResponseBuilder)? updates]) => + (new TransferResponseBuilder()..update(updates))._build(); + + _$TransferResponse._( + {this.amount, + this.createdAt, + this.currency, + this.id, + this.livemode, + this.destination, + this.object, + this.statementDescription, + this.statementReference, + this.status}) + : super._(); + + @override + TransferResponse rebuild(void Function(TransferResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TransferResponseBuilder toBuilder() => + new TransferResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TransferResponse && + amount == other.amount && + createdAt == other.createdAt && + currency == other.currency && + id == other.id && + livemode == other.livemode && + destination == other.destination && + object == other.object && + statementDescription == other.statementDescription && + statementReference == other.statementReference && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, destination.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, statementDescription.hashCode); + _$hash = $jc(_$hash, statementReference.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TransferResponse') + ..add('amount', amount) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('id', id) + ..add('livemode', livemode) + ..add('destination', destination) + ..add('object', object) + ..add('statementDescription', statementDescription) + ..add('statementReference', statementReference) + ..add('status', status)) + .toString(); + } +} + +class TransferResponseBuilder + implements Builder { + _$TransferResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + TransferDestinationResponseBuilder? _destination; + TransferDestinationResponseBuilder get destination => + _$this._destination ??= new TransferDestinationResponseBuilder(); + set destination(TransferDestinationResponseBuilder? destination) => + _$this._destination = destination; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _statementDescription; + String? get statementDescription => _$this._statementDescription; + set statementDescription(String? statementDescription) => + _$this._statementDescription = statementDescription; + + String? _statementReference; + String? get statementReference => _$this._statementReference; + set statementReference(String? statementReference) => + _$this._statementReference = statementReference; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + TransferResponseBuilder() { + TransferResponse._defaults(this); + } + + TransferResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _createdAt = $v.createdAt; + _currency = $v.currency; + _id = $v.id; + _livemode = $v.livemode; + _destination = $v.destination?.toBuilder(); + _object = $v.object; + _statementDescription = $v.statementDescription; + _statementReference = $v.statementReference; + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(TransferResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TransferResponse; + } + + @override + void update(void Function(TransferResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TransferResponse build() => _build(); + + _$TransferResponse _build() { + _$TransferResponse _$result; + try { + _$result = _$v ?? + new _$TransferResponse._( + amount: amount, + createdAt: createdAt, + currency: currency, + id: id, + livemode: livemode, + destination: _destination?.build(), + object: object, + statementDescription: statementDescription, + statementReference: statementReference, + status: status); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'destination'; + _destination?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'TransferResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/transfers_response.g.dart b/lib/src/model/transfers_response.g.dart new file mode 100644 index 0000000..ddf0e6d --- /dev/null +++ b/lib/src/model/transfers_response.g.dart @@ -0,0 +1,220 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'transfers_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$TransfersResponse extends TransfersResponse { + @override + final int? amount; + @override + final int? createdAt; + @override + final String? currency; + @override + final String? id; + @override + final bool? livemode; + @override + final TransferMethodResponse? method; + @override + final String? object; + @override + final String? statementDescription; + @override + final String? statementReference; + @override + final String? status; + + factory _$TransfersResponse( + [void Function(TransfersResponseBuilder)? updates]) => + (new TransfersResponseBuilder()..update(updates))._build(); + + _$TransfersResponse._( + {this.amount, + this.createdAt, + this.currency, + this.id, + this.livemode, + this.method, + this.object, + this.statementDescription, + this.statementReference, + this.status}) + : super._(); + + @override + TransfersResponse rebuild(void Function(TransfersResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + TransfersResponseBuilder toBuilder() => + new TransfersResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is TransfersResponse && + amount == other.amount && + createdAt == other.createdAt && + currency == other.currency && + id == other.id && + livemode == other.livemode && + method == other.method && + object == other.object && + statementDescription == other.statementDescription && + statementReference == other.statementReference && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, statementDescription.hashCode); + _$hash = $jc(_$hash, statementReference.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'TransfersResponse') + ..add('amount', amount) + ..add('createdAt', createdAt) + ..add('currency', currency) + ..add('id', id) + ..add('livemode', livemode) + ..add('method', method) + ..add('object', object) + ..add('statementDescription', statementDescription) + ..add('statementReference', statementReference) + ..add('status', status)) + .toString(); + } +} + +class TransfersResponseBuilder + implements Builder { + _$TransfersResponse? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _currency; + String? get currency => _$this._currency; + set currency(String? currency) => _$this._currency = currency; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + TransferMethodResponseBuilder? _method; + TransferMethodResponseBuilder get method => + _$this._method ??= new TransferMethodResponseBuilder(); + set method(TransferMethodResponseBuilder? method) => _$this._method = method; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _statementDescription; + String? get statementDescription => _$this._statementDescription; + set statementDescription(String? statementDescription) => + _$this._statementDescription = statementDescription; + + String? _statementReference; + String? get statementReference => _$this._statementReference; + set statementReference(String? statementReference) => + _$this._statementReference = statementReference; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + TransfersResponseBuilder() { + TransfersResponse._defaults(this); + } + + TransfersResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _createdAt = $v.createdAt; + _currency = $v.currency; + _id = $v.id; + _livemode = $v.livemode; + _method = $v.method?.toBuilder(); + _object = $v.object; + _statementDescription = $v.statementDescription; + _statementReference = $v.statementReference; + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(TransfersResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$TransfersResponse; + } + + @override + void update(void Function(TransfersResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + TransfersResponse build() => _build(); + + _$TransfersResponse _build() { + _$TransfersResponse _$result; + try { + _$result = _$v ?? + new _$TransfersResponse._( + amount: amount, + createdAt: createdAt, + currency: currency, + id: id, + livemode: livemode, + method: _method?.build(), + object: object, + statementDescription: statementDescription, + statementReference: statementReference, + status: status); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'method'; + _method?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'TransfersResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer.g.dart b/lib/src/model/update_customer.g.dart new file mode 100644 index 0000000..64e80b7 --- /dev/null +++ b/lib/src/model/update_customer.g.dart @@ -0,0 +1,320 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_customer.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateCustomer extends UpdateCustomer { + @override + final UpdateCustomerAntifraudInfo? antifraudInfo; + @override + final String? dateOfBirth; + @override + final String? defaultPaymentSourceId; + @override + final String? email; + @override + final String? name; + @override + final String? phone; + @override + final String? planId; + @override + final String? defaultShippingContactId; + @override + final bool? corporate; + @override + final String? customReference; + @override + final BuiltList? fiscalEntities; + @override + final BuiltMap? metadata; + @override + final String? nationalId; + @override + final BuiltList? paymentSources; + @override + final BuiltList? shippingContacts; + @override + final SubscriptionRequest? subscription; + + factory _$UpdateCustomer([void Function(UpdateCustomerBuilder)? updates]) => + (new UpdateCustomerBuilder()..update(updates))._build(); + + _$UpdateCustomer._( + {this.antifraudInfo, + this.dateOfBirth, + this.defaultPaymentSourceId, + this.email, + this.name, + this.phone, + this.planId, + this.defaultShippingContactId, + this.corporate, + this.customReference, + this.fiscalEntities, + this.metadata, + this.nationalId, + this.paymentSources, + this.shippingContacts, + this.subscription}) + : super._(); + + @override + UpdateCustomer rebuild(void Function(UpdateCustomerBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateCustomerBuilder toBuilder() => + new UpdateCustomerBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateCustomer && + antifraudInfo == other.antifraudInfo && + dateOfBirth == other.dateOfBirth && + defaultPaymentSourceId == other.defaultPaymentSourceId && + email == other.email && + name == other.name && + phone == other.phone && + planId == other.planId && + defaultShippingContactId == other.defaultShippingContactId && + corporate == other.corporate && + customReference == other.customReference && + fiscalEntities == other.fiscalEntities && + metadata == other.metadata && + nationalId == other.nationalId && + paymentSources == other.paymentSources && + shippingContacts == other.shippingContacts && + subscription == other.subscription; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, dateOfBirth.hashCode); + _$hash = $jc(_$hash, defaultPaymentSourceId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, planId.hashCode); + _$hash = $jc(_$hash, defaultShippingContactId.hashCode); + _$hash = $jc(_$hash, corporate.hashCode); + _$hash = $jc(_$hash, customReference.hashCode); + _$hash = $jc(_$hash, fiscalEntities.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, nationalId.hashCode); + _$hash = $jc(_$hash, paymentSources.hashCode); + _$hash = $jc(_$hash, shippingContacts.hashCode); + _$hash = $jc(_$hash, subscription.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateCustomer') + ..add('antifraudInfo', antifraudInfo) + ..add('dateOfBirth', dateOfBirth) + ..add('defaultPaymentSourceId', defaultPaymentSourceId) + ..add('email', email) + ..add('name', name) + ..add('phone', phone) + ..add('planId', planId) + ..add('defaultShippingContactId', defaultShippingContactId) + ..add('corporate', corporate) + ..add('customReference', customReference) + ..add('fiscalEntities', fiscalEntities) + ..add('metadata', metadata) + ..add('nationalId', nationalId) + ..add('paymentSources', paymentSources) + ..add('shippingContacts', shippingContacts) + ..add('subscription', subscription)) + .toString(); + } +} + +class UpdateCustomerBuilder + implements Builder { + _$UpdateCustomer? _$v; + + UpdateCustomerAntifraudInfoBuilder? _antifraudInfo; + UpdateCustomerAntifraudInfoBuilder get antifraudInfo => + _$this._antifraudInfo ??= new UpdateCustomerAntifraudInfoBuilder(); + set antifraudInfo(UpdateCustomerAntifraudInfoBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + String? _dateOfBirth; + String? get dateOfBirth => _$this._dateOfBirth; + set dateOfBirth(String? dateOfBirth) => _$this._dateOfBirth = dateOfBirth; + + String? _defaultPaymentSourceId; + String? get defaultPaymentSourceId => _$this._defaultPaymentSourceId; + set defaultPaymentSourceId(String? defaultPaymentSourceId) => + _$this._defaultPaymentSourceId = defaultPaymentSourceId; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _planId; + String? get planId => _$this._planId; + set planId(String? planId) => _$this._planId = planId; + + String? _defaultShippingContactId; + String? get defaultShippingContactId => _$this._defaultShippingContactId; + set defaultShippingContactId(String? defaultShippingContactId) => + _$this._defaultShippingContactId = defaultShippingContactId; + + bool? _corporate; + bool? get corporate => _$this._corporate; + set corporate(bool? corporate) => _$this._corporate = corporate; + + String? _customReference; + String? get customReference => _$this._customReference; + set customReference(String? customReference) => + _$this._customReference = customReference; + + ListBuilder? _fiscalEntities; + ListBuilder get fiscalEntities => + _$this._fiscalEntities ??= + new ListBuilder(); + set fiscalEntities( + ListBuilder? fiscalEntities) => + _$this._fiscalEntities = fiscalEntities; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _nationalId; + String? get nationalId => _$this._nationalId; + set nationalId(String? nationalId) => _$this._nationalId = nationalId; + + ListBuilder? _paymentSources; + ListBuilder get paymentSources => + _$this._paymentSources ??= + new ListBuilder(); + set paymentSources( + ListBuilder? paymentSources) => + _$this._paymentSources = paymentSources; + + ListBuilder? _shippingContacts; + ListBuilder get shippingContacts => + _$this._shippingContacts ??= new ListBuilder(); + set shippingContacts( + ListBuilder? shippingContacts) => + _$this._shippingContacts = shippingContacts; + + SubscriptionRequestBuilder? _subscription; + SubscriptionRequestBuilder get subscription => + _$this._subscription ??= new SubscriptionRequestBuilder(); + set subscription(SubscriptionRequestBuilder? subscription) => + _$this._subscription = subscription; + + UpdateCustomerBuilder() { + UpdateCustomer._defaults(this); + } + + UpdateCustomerBuilder get _$this { + final $v = _$v; + if ($v != null) { + _antifraudInfo = $v.antifraudInfo?.toBuilder(); + _dateOfBirth = $v.dateOfBirth; + _defaultPaymentSourceId = $v.defaultPaymentSourceId; + _email = $v.email; + _name = $v.name; + _phone = $v.phone; + _planId = $v.planId; + _defaultShippingContactId = $v.defaultShippingContactId; + _corporate = $v.corporate; + _customReference = $v.customReference; + _fiscalEntities = $v.fiscalEntities?.toBuilder(); + _metadata = $v.metadata?.toBuilder(); + _nationalId = $v.nationalId; + _paymentSources = $v.paymentSources?.toBuilder(); + _shippingContacts = $v.shippingContacts?.toBuilder(); + _subscription = $v.subscription?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(UpdateCustomer other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateCustomer; + } + + @override + void update(void Function(UpdateCustomerBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateCustomer build() => _build(); + + _$UpdateCustomer _build() { + _$UpdateCustomer _$result; + try { + _$result = _$v ?? + new _$UpdateCustomer._( + antifraudInfo: _antifraudInfo?.build(), + dateOfBirth: dateOfBirth, + defaultPaymentSourceId: defaultPaymentSourceId, + email: email, + name: name, + phone: phone, + planId: planId, + defaultShippingContactId: defaultShippingContactId, + corporate: corporate, + customReference: customReference, + fiscalEntities: _fiscalEntities?.build(), + metadata: _metadata?.build(), + nationalId: nationalId, + paymentSources: _paymentSources?.build(), + shippingContacts: _shippingContacts?.build(), + subscription: _subscription?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'fiscalEntities'; + _fiscalEntities?.build(); + _$failedField = 'metadata'; + _metadata?.build(); + + _$failedField = 'paymentSources'; + _paymentSources?.build(); + _$failedField = 'shippingContacts'; + _shippingContacts?.build(); + _$failedField = 'subscription'; + _subscription?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'UpdateCustomer', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer_antifraud_info.g.dart b/lib/src/model/update_customer_antifraud_info.g.dart new file mode 100644 index 0000000..9a977b7 --- /dev/null +++ b/lib/src/model/update_customer_antifraud_info.g.dart @@ -0,0 +1,109 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_customer_antifraud_info.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateCustomerAntifraudInfo extends UpdateCustomerAntifraudInfo { + @override + final int? accountCreatedAt; + @override + final int? firstPaidAt; + + factory _$UpdateCustomerAntifraudInfo( + [void Function(UpdateCustomerAntifraudInfoBuilder)? updates]) => + (new UpdateCustomerAntifraudInfoBuilder()..update(updates))._build(); + + _$UpdateCustomerAntifraudInfo._({this.accountCreatedAt, this.firstPaidAt}) + : super._(); + + @override + UpdateCustomerAntifraudInfo rebuild( + void Function(UpdateCustomerAntifraudInfoBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateCustomerAntifraudInfoBuilder toBuilder() => + new UpdateCustomerAntifraudInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateCustomerAntifraudInfo && + accountCreatedAt == other.accountCreatedAt && + firstPaidAt == other.firstPaidAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, accountCreatedAt.hashCode); + _$hash = $jc(_$hash, firstPaidAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateCustomerAntifraudInfo') + ..add('accountCreatedAt', accountCreatedAt) + ..add('firstPaidAt', firstPaidAt)) + .toString(); + } +} + +class UpdateCustomerAntifraudInfoBuilder + implements + Builder { + _$UpdateCustomerAntifraudInfo? _$v; + + int? _accountCreatedAt; + int? get accountCreatedAt => _$this._accountCreatedAt; + set accountCreatedAt(int? accountCreatedAt) => + _$this._accountCreatedAt = accountCreatedAt; + + int? _firstPaidAt; + int? get firstPaidAt => _$this._firstPaidAt; + set firstPaidAt(int? firstPaidAt) => _$this._firstPaidAt = firstPaidAt; + + UpdateCustomerAntifraudInfoBuilder() { + UpdateCustomerAntifraudInfo._defaults(this); + } + + UpdateCustomerAntifraudInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _accountCreatedAt = $v.accountCreatedAt; + _firstPaidAt = $v.firstPaidAt; + _$v = null; + } + return this; + } + + @override + void replace(UpdateCustomerAntifraudInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateCustomerAntifraudInfo; + } + + @override + void update(void Function(UpdateCustomerAntifraudInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateCustomerAntifraudInfo build() => _build(); + + _$UpdateCustomerAntifraudInfo _build() { + final _$result = _$v ?? + new _$UpdateCustomerAntifraudInfo._( + accountCreatedAt: accountCreatedAt, firstPaidAt: firstPaidAt); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer_fiscal_entities_response.g.dart b/lib/src/model/update_customer_fiscal_entities_response.g.dart new file mode 100644 index 0000000..70ad0c6 --- /dev/null +++ b/lib/src/model/update_customer_fiscal_entities_response.g.dart @@ -0,0 +1,259 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_customer_fiscal_entities_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateCustomerFiscalEntitiesResponse + extends UpdateCustomerFiscalEntitiesResponse { + @override + final int createdAt; + @override + final bool? default_; + @override + final String id; + @override + final String? parentId; + @override + final String object; + @override + final CustomerAddress address; + @override + final String? taxId; + @override + final String? email; + @override + final String? phone; + @override + final BuiltMap? metadata; + @override + final String? companyName; + + factory _$UpdateCustomerFiscalEntitiesResponse( + [void Function(UpdateCustomerFiscalEntitiesResponseBuilder)? + updates]) => + (new UpdateCustomerFiscalEntitiesResponseBuilder()..update(updates)) + ._build(); + + _$UpdateCustomerFiscalEntitiesResponse._( + {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}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'UpdateCustomerFiscalEntitiesResponse', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'UpdateCustomerFiscalEntitiesResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + object, r'UpdateCustomerFiscalEntitiesResponse', 'object'); + BuiltValueNullFieldError.checkNotNull( + address, r'UpdateCustomerFiscalEntitiesResponse', 'address'); + } + + @override + UpdateCustomerFiscalEntitiesResponse rebuild( + void Function(UpdateCustomerFiscalEntitiesResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateCustomerFiscalEntitiesResponseBuilder toBuilder() => + new UpdateCustomerFiscalEntitiesResponseBuilder()..replace(this); + + @override + 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; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, default_.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, taxId.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jc(_$hash, companyName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @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)) + .toString(); + } +} + +class UpdateCustomerFiscalEntitiesResponseBuilder + implements + Builder, + CustomerFiscalEntitiesRequestBuilder { + _$UpdateCustomerFiscalEntitiesResponse? _$v; + + 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; + String? get taxId => _$this._taxId; + set taxId(covariant String? taxId) => _$this._taxId = taxId; + + String? _email; + String? get email => _$this._email; + set email(covariant String? email) => _$this._email = email; + + String? _phone; + String? get phone => _$this._phone; + set phone(covariant String? phone) => _$this._phone = phone; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + String? _companyName; + String? get companyName => _$this._companyName; + set companyName(covariant String? companyName) => + _$this._companyName = companyName; + + UpdateCustomerFiscalEntitiesResponseBuilder() { + UpdateCustomerFiscalEntitiesResponse._defaults(this); + } + + 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; + _$v = null; + } + return this; + } + + @override + void replace(covariant UpdateCustomerFiscalEntitiesResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateCustomerFiscalEntitiesResponse; + } + + @override + void update( + void Function(UpdateCustomerFiscalEntitiesResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateCustomerFiscalEntitiesResponse build() => _build(); + + _$UpdateCustomerFiscalEntitiesResponse _build() { + _$UpdateCustomerFiscalEntitiesResponse _$result; + 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); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'address'; + address.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'UpdateCustomerFiscalEntitiesResponse', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_customer_payment_methods_response.g.dart b/lib/src/model/update_customer_payment_methods_response.g.dart new file mode 100644 index 0000000..206ce39 --- /dev/null +++ b/lib/src/model/update_customer_payment_methods_response.g.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_customer_payment_methods_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateCustomerPaymentMethodsResponse + extends UpdateCustomerPaymentMethodsResponse { + @override + final OneOf oneOf; + + factory _$UpdateCustomerPaymentMethodsResponse( + [void Function(UpdateCustomerPaymentMethodsResponseBuilder)? + updates]) => + (new UpdateCustomerPaymentMethodsResponseBuilder()..update(updates)) + ._build(); + + _$UpdateCustomerPaymentMethodsResponse._({required this.oneOf}) : super._() { + BuiltValueNullFieldError.checkNotNull( + oneOf, r'UpdateCustomerPaymentMethodsResponse', 'oneOf'); + } + + @override + UpdateCustomerPaymentMethodsResponse rebuild( + void Function(UpdateCustomerPaymentMethodsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateCustomerPaymentMethodsResponseBuilder toBuilder() => + new UpdateCustomerPaymentMethodsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateCustomerPaymentMethodsResponse && + oneOf == other.oneOf; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, oneOf.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateCustomerPaymentMethodsResponse') + ..add('oneOf', oneOf)) + .toString(); + } +} + +class UpdateCustomerPaymentMethodsResponseBuilder + implements + Builder { + _$UpdateCustomerPaymentMethodsResponse? _$v; + + OneOf? _oneOf; + OneOf? get oneOf => _$this._oneOf; + set oneOf(OneOf? oneOf) => _$this._oneOf = oneOf; + + UpdateCustomerPaymentMethodsResponseBuilder() { + UpdateCustomerPaymentMethodsResponse._defaults(this); + } + + UpdateCustomerPaymentMethodsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _oneOf = $v.oneOf; + _$v = null; + } + return this; + } + + @override + void replace(UpdateCustomerPaymentMethodsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateCustomerPaymentMethodsResponse; + } + + @override + void update( + void Function(UpdateCustomerPaymentMethodsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateCustomerPaymentMethodsResponse build() => _build(); + + _$UpdateCustomerPaymentMethodsResponse _build() { + final _$result = _$v ?? + new _$UpdateCustomerPaymentMethodsResponse._( + oneOf: BuiltValueNullFieldError.checkNotNull( + oneOf, r'UpdateCustomerPaymentMethodsResponse', 'oneOf')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_order_discount_lines_request.g.dart b/lib/src/model/update_order_discount_lines_request.g.dart new file mode 100644 index 0000000..0c1867a --- /dev/null +++ b/lib/src/model/update_order_discount_lines_request.g.dart @@ -0,0 +1,119 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_order_discount_lines_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateOrderDiscountLinesRequest + extends UpdateOrderDiscountLinesRequest { + @override + final int? amount; + @override + final String? code; + @override + final String? type; + + factory _$UpdateOrderDiscountLinesRequest( + [void Function(UpdateOrderDiscountLinesRequestBuilder)? updates]) => + (new UpdateOrderDiscountLinesRequestBuilder()..update(updates))._build(); + + _$UpdateOrderDiscountLinesRequest._({this.amount, this.code, this.type}) + : super._(); + + @override + UpdateOrderDiscountLinesRequest rebuild( + void Function(UpdateOrderDiscountLinesRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateOrderDiscountLinesRequestBuilder toBuilder() => + new UpdateOrderDiscountLinesRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateOrderDiscountLinesRequest && + amount == other.amount && + code == other.code && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateOrderDiscountLinesRequest') + ..add('amount', amount) + ..add('code', code) + ..add('type', type)) + .toString(); + } +} + +class UpdateOrderDiscountLinesRequestBuilder + implements + Builder { + _$UpdateOrderDiscountLinesRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _code; + String? get code => _$this._code; + set code(String? code) => _$this._code = code; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + UpdateOrderDiscountLinesRequestBuilder() { + UpdateOrderDiscountLinesRequest._defaults(this); + } + + UpdateOrderDiscountLinesRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _code = $v.code; + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(UpdateOrderDiscountLinesRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateOrderDiscountLinesRequest; + } + + @override + void update(void Function(UpdateOrderDiscountLinesRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateOrderDiscountLinesRequest build() => _build(); + + _$UpdateOrderDiscountLinesRequest _build() { + final _$result = _$v ?? + new _$UpdateOrderDiscountLinesRequest._( + amount: amount, code: code, type: type); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_order_tax_request.g.dart b/lib/src/model/update_order_tax_request.g.dart new file mode 100644 index 0000000..d35e32b --- /dev/null +++ b/lib/src/model/update_order_tax_request.g.dart @@ -0,0 +1,133 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_order_tax_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateOrderTaxRequest extends UpdateOrderTaxRequest { + @override + final int? amount; + @override + final String? description; + @override + final BuiltMap? metadata; + + factory _$UpdateOrderTaxRequest( + [void Function(UpdateOrderTaxRequestBuilder)? updates]) => + (new UpdateOrderTaxRequestBuilder()..update(updates))._build(); + + _$UpdateOrderTaxRequest._({this.amount, this.description, this.metadata}) + : super._(); + + @override + UpdateOrderTaxRequest rebuild( + void Function(UpdateOrderTaxRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateOrderTaxRequestBuilder toBuilder() => + new UpdateOrderTaxRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateOrderTaxRequest && + amount == other.amount && + description == other.description && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateOrderTaxRequest') + ..add('amount', amount) + ..add('description', description) + ..add('metadata', metadata)) + .toString(); + } +} + +class UpdateOrderTaxRequestBuilder + implements Builder { + _$UpdateOrderTaxRequest? _$v; + + int? _amount; + int? get amount => _$this._amount; + set amount(int? amount) => _$this._amount = amount; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + UpdateOrderTaxRequestBuilder() { + UpdateOrderTaxRequest._defaults(this); + } + + UpdateOrderTaxRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _amount = $v.amount; + _description = $v.description; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(UpdateOrderTaxRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateOrderTaxRequest; + } + + @override + void update(void Function(UpdateOrderTaxRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateOrderTaxRequest build() => _build(); + + _$UpdateOrderTaxRequest _build() { + _$UpdateOrderTaxRequest _$result; + try { + _$result = _$v ?? + new _$UpdateOrderTaxRequest._( + amount: amount, + description: description, + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'UpdateOrderTaxRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_order_tax_response.g.dart b/lib/src/model/update_order_tax_response.g.dart new file mode 100644 index 0000000..476d983 --- /dev/null +++ b/lib/src/model/update_order_tax_response.g.dart @@ -0,0 +1,184 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_order_tax_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateOrderTaxResponse extends UpdateOrderTaxResponse { + @override + final String id; + @override + final String? parentId; + @override + final String? object; + @override + final int amount; + @override + final String description; + @override + final BuiltMap? metadata; + + factory _$UpdateOrderTaxResponse( + [void Function(UpdateOrderTaxResponseBuilder)? updates]) => + (new UpdateOrderTaxResponseBuilder()..update(updates))._build(); + + _$UpdateOrderTaxResponse._( + {required this.id, + this.parentId, + this.object, + required this.amount, + required this.description, + this.metadata}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'UpdateOrderTaxResponse', 'id'); + BuiltValueNullFieldError.checkNotNull( + amount, r'UpdateOrderTaxResponse', 'amount'); + BuiltValueNullFieldError.checkNotNull( + description, r'UpdateOrderTaxResponse', 'description'); + } + + @override + UpdateOrderTaxResponse rebuild( + void Function(UpdateOrderTaxResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateOrderTaxResponseBuilder toBuilder() => + new UpdateOrderTaxResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateOrderTaxResponse && + id == other.id && + parentId == other.parentId && + object == other.object && + amount == other.amount && + description == other.description && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, parentId.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, amount.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateOrderTaxResponse') + ..add('id', id) + ..add('parentId', parentId) + ..add('object', object) + ..add('amount', amount) + ..add('description', description) + ..add('metadata', metadata)) + .toString(); + } +} + +class UpdateOrderTaxResponseBuilder + implements + Builder, + 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; + + String? _description; + String? get description => _$this._description; + set description(covariant String? description) => + _$this._description = description; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(covariant MapBuilder? metadata) => + _$this._metadata = metadata; + + UpdateOrderTaxResponseBuilder() { + UpdateOrderTaxResponse._defaults(this); + } + + 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(); + _$v = null; + } + return this; + } + + @override + void replace(covariant UpdateOrderTaxResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateOrderTaxResponse; + } + + @override + void update(void Function(UpdateOrderTaxResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateOrderTaxResponse build() => _build(); + + _$UpdateOrderTaxResponse _build() { + _$UpdateOrderTaxResponse _$result; + 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()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'UpdateOrderTaxResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_payment_methods.g.dart b/lib/src/model/update_payment_methods.g.dart new file mode 100644 index 0000000..115ed63 --- /dev/null +++ b/lib/src/model/update_payment_methods.g.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_payment_methods.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdatePaymentMethods extends UpdatePaymentMethods { + @override + final String? name; + + factory _$UpdatePaymentMethods( + [void Function(UpdatePaymentMethodsBuilder)? updates]) => + (new UpdatePaymentMethodsBuilder()..update(updates))._build(); + + _$UpdatePaymentMethods._({this.name}) : super._(); + + @override + UpdatePaymentMethods rebuild( + void Function(UpdatePaymentMethodsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdatePaymentMethodsBuilder toBuilder() => + new UpdatePaymentMethodsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdatePaymentMethods && name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdatePaymentMethods') + ..add('name', name)) + .toString(); + } +} + +class UpdatePaymentMethodsBuilder + implements Builder { + _$UpdatePaymentMethods? _$v; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + UpdatePaymentMethodsBuilder() { + UpdatePaymentMethods._defaults(this); + } + + UpdatePaymentMethodsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(UpdatePaymentMethods other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdatePaymentMethods; + } + + @override + void update(void Function(UpdatePaymentMethodsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdatePaymentMethods build() => _build(); + + _$UpdatePaymentMethods _build() { + final _$result = _$v ?? new _$UpdatePaymentMethods._(name: name); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/update_product.g.dart b/lib/src/model/update_product.g.dart new file mode 100644 index 0000000..8b14b11 --- /dev/null +++ b/lib/src/model/update_product.g.dart @@ -0,0 +1,213 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_product.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateProduct extends UpdateProduct { + @override + final BuiltMap? antifraudInfo; + @override + final String? description; + @override + final String? sku; + @override + final String? name; + @override + final int? unitPrice; + @override + final int? quantity; + @override + final BuiltList? tags; + @override + final String? brand; + @override + final BuiltMap? metadata; + + factory _$UpdateProduct([void Function(UpdateProductBuilder)? updates]) => + (new UpdateProductBuilder()..update(updates))._build(); + + _$UpdateProduct._( + {this.antifraudInfo, + this.description, + this.sku, + this.name, + this.unitPrice, + this.quantity, + this.tags, + this.brand, + this.metadata}) + : super._(); + + @override + UpdateProduct rebuild(void Function(UpdateProductBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateProductBuilder toBuilder() => new UpdateProductBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateProduct && + antifraudInfo == other.antifraudInfo && + description == other.description && + sku == other.sku && + name == other.name && + unitPrice == other.unitPrice && + quantity == other.quantity && + tags == other.tags && + brand == other.brand && + metadata == other.metadata; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, antifraudInfo.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, sku.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, unitPrice.hashCode); + _$hash = $jc(_$hash, quantity.hashCode); + _$hash = $jc(_$hash, tags.hashCode); + _$hash = $jc(_$hash, brand.hashCode); + _$hash = $jc(_$hash, metadata.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateProduct') + ..add('antifraudInfo', antifraudInfo) + ..add('description', description) + ..add('sku', sku) + ..add('name', name) + ..add('unitPrice', unitPrice) + ..add('quantity', quantity) + ..add('tags', tags) + ..add('brand', brand) + ..add('metadata', metadata)) + .toString(); + } +} + +class UpdateProductBuilder + implements Builder { + _$UpdateProduct? _$v; + + MapBuilder? _antifraudInfo; + MapBuilder get antifraudInfo => + _$this._antifraudInfo ??= new MapBuilder(); + set antifraudInfo(MapBuilder? antifraudInfo) => + _$this._antifraudInfo = antifraudInfo; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _sku; + String? get sku => _$this._sku; + set sku(String? sku) => _$this._sku = sku; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _unitPrice; + int? get unitPrice => _$this._unitPrice; + set unitPrice(int? unitPrice) => _$this._unitPrice = unitPrice; + + int? _quantity; + int? get quantity => _$this._quantity; + set quantity(int? quantity) => _$this._quantity = quantity; + + ListBuilder? _tags; + ListBuilder get tags => _$this._tags ??= new ListBuilder(); + set tags(ListBuilder? tags) => _$this._tags = tags; + + String? _brand; + String? get brand => _$this._brand; + set brand(String? brand) => _$this._brand = brand; + + MapBuilder? _metadata; + MapBuilder get metadata => + _$this._metadata ??= new MapBuilder(); + set metadata(MapBuilder? metadata) => + _$this._metadata = metadata; + + UpdateProductBuilder() { + UpdateProduct._defaults(this); + } + + UpdateProductBuilder get _$this { + final $v = _$v; + if ($v != null) { + _antifraudInfo = $v.antifraudInfo?.toBuilder(); + _description = $v.description; + _sku = $v.sku; + _name = $v.name; + _unitPrice = $v.unitPrice; + _quantity = $v.quantity; + _tags = $v.tags?.toBuilder(); + _brand = $v.brand; + _metadata = $v.metadata?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(UpdateProduct other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateProduct; + } + + @override + void update(void Function(UpdateProductBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateProduct build() => _build(); + + _$UpdateProduct _build() { + _$UpdateProduct _$result; + try { + _$result = _$v ?? + new _$UpdateProduct._( + antifraudInfo: _antifraudInfo?.build(), + description: description, + sku: sku, + name: name, + unitPrice: unitPrice, + quantity: quantity, + tags: _tags?.build(), + brand: brand, + metadata: _metadata?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'antifraudInfo'; + _antifraudInfo?.build(); + + _$failedField = 'tags'; + _tags?.build(); + + _$failedField = 'metadata'; + _metadata?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'UpdateProduct', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_create_response.g.dart b/lib/src/model/webhook_key_create_response.g.dart new file mode 100644 index 0000000..d116b3d --- /dev/null +++ b/lib/src/model/webhook_key_create_response.g.dart @@ -0,0 +1,158 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_key_create_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookKeyCreateResponse extends WebhookKeyCreateResponse { + @override + final bool? active; + @override + final int? createdAt; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + @override + final String? publicKey; + + factory _$WebhookKeyCreateResponse( + [void Function(WebhookKeyCreateResponseBuilder)? updates]) => + (new WebhookKeyCreateResponseBuilder()..update(updates))._build(); + + _$WebhookKeyCreateResponse._( + {this.active, + this.createdAt, + this.id, + this.livemode, + this.object, + this.publicKey}) + : super._(); + + @override + WebhookKeyCreateResponse rebuild( + void Function(WebhookKeyCreateResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookKeyCreateResponseBuilder toBuilder() => + new WebhookKeyCreateResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookKeyCreateResponse && + active == other.active && + createdAt == other.createdAt && + id == other.id && + livemode == other.livemode && + object == other.object && + publicKey == other.publicKey; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, publicKey.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookKeyCreateResponse') + ..add('active', active) + ..add('createdAt', createdAt) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('publicKey', publicKey)) + .toString(); + } +} + +class WebhookKeyCreateResponseBuilder + implements + Builder { + _$WebhookKeyCreateResponse? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + String? _publicKey; + String? get publicKey => _$this._publicKey; + set publicKey(String? publicKey) => _$this._publicKey = publicKey; + + WebhookKeyCreateResponseBuilder() { + WebhookKeyCreateResponse._defaults(this); + } + + WebhookKeyCreateResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _createdAt = $v.createdAt; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _publicKey = $v.publicKey; + _$v = null; + } + return this; + } + + @override + void replace(WebhookKeyCreateResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookKeyCreateResponse; + } + + @override + void update(void Function(WebhookKeyCreateResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookKeyCreateResponse build() => _build(); + + _$WebhookKeyCreateResponse _build() { + final _$result = _$v ?? + new _$WebhookKeyCreateResponse._( + active: active, + createdAt: createdAt, + id: id, + livemode: livemode, + object: object, + publicKey: publicKey); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_delete_response.g.dart b/lib/src/model/webhook_key_delete_response.g.dart new file mode 100644 index 0000000..b26d7f9 --- /dev/null +++ b/lib/src/model/webhook_key_delete_response.g.dart @@ -0,0 +1,158 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_key_delete_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookKeyDeleteResponse extends WebhookKeyDeleteResponse { + @override + final bool? active; + @override + final int? createdAt; + @override + final bool? deleted; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + + factory _$WebhookKeyDeleteResponse( + [void Function(WebhookKeyDeleteResponseBuilder)? updates]) => + (new WebhookKeyDeleteResponseBuilder()..update(updates))._build(); + + _$WebhookKeyDeleteResponse._( + {this.active, + this.createdAt, + this.deleted, + this.id, + this.livemode, + this.object}) + : super._(); + + @override + WebhookKeyDeleteResponse rebuild( + void Function(WebhookKeyDeleteResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookKeyDeleteResponseBuilder toBuilder() => + new WebhookKeyDeleteResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookKeyDeleteResponse && + active == other.active && + createdAt == other.createdAt && + deleted == other.deleted && + id == other.id && + livemode == other.livemode && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookKeyDeleteResponse') + ..add('active', active) + ..add('createdAt', createdAt) + ..add('deleted', deleted) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object)) + .toString(); + } +} + +class WebhookKeyDeleteResponseBuilder + implements + Builder { + _$WebhookKeyDeleteResponse? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(bool? deleted) => _$this._deleted = deleted; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + WebhookKeyDeleteResponseBuilder() { + WebhookKeyDeleteResponse._defaults(this); + } + + WebhookKeyDeleteResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _createdAt = $v.createdAt; + _deleted = $v.deleted; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(WebhookKeyDeleteResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookKeyDeleteResponse; + } + + @override + void update(void Function(WebhookKeyDeleteResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookKeyDeleteResponse build() => _build(); + + _$WebhookKeyDeleteResponse _build() { + final _$result = _$v ?? + new _$WebhookKeyDeleteResponse._( + active: active, + createdAt: createdAt, + deleted: deleted, + id: id, + livemode: livemode, + object: object); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_request.g.dart b/lib/src/model/webhook_key_request.g.dart new file mode 100644 index 0000000..4e20279 --- /dev/null +++ b/lib/src/model/webhook_key_request.g.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_key_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookKeyRequest extends WebhookKeyRequest { + @override + final bool? active; + + factory _$WebhookKeyRequest( + [void Function(WebhookKeyRequestBuilder)? updates]) => + (new WebhookKeyRequestBuilder()..update(updates))._build(); + + _$WebhookKeyRequest._({this.active}) : super._(); + + @override + WebhookKeyRequest rebuild(void Function(WebhookKeyRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookKeyRequestBuilder toBuilder() => + new WebhookKeyRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookKeyRequest && active == other.active; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookKeyRequest') + ..add('active', active)) + .toString(); + } +} + +class WebhookKeyRequestBuilder + implements Builder { + _$WebhookKeyRequest? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + WebhookKeyRequestBuilder() { + WebhookKeyRequest._defaults(this); + } + + WebhookKeyRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _$v = null; + } + return this; + } + + @override + void replace(WebhookKeyRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookKeyRequest; + } + + @override + void update(void Function(WebhookKeyRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookKeyRequest build() => _build(); + + _$WebhookKeyRequest _build() { + final _$result = _$v ?? new _$WebhookKeyRequest._(active: active); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_response.g.dart b/lib/src/model/webhook_key_response.g.dart new file mode 100644 index 0000000..2ba38c0 --- /dev/null +++ b/lib/src/model/webhook_key_response.g.dart @@ -0,0 +1,170 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_key_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookKeyResponse extends WebhookKeyResponse { + @override + final String? id; + @override + final bool? active; + @override + final int? createdAt; + @override + final int? deactivatedAt; + @override + final String? publicKey; + @override + final bool? livemode; + @override + final String? object; + + factory _$WebhookKeyResponse( + [void Function(WebhookKeyResponseBuilder)? updates]) => + (new WebhookKeyResponseBuilder()..update(updates))._build(); + + _$WebhookKeyResponse._( + {this.id, + this.active, + this.createdAt, + this.deactivatedAt, + this.publicKey, + this.livemode, + this.object}) + : super._(); + + @override + WebhookKeyResponse rebuild( + void Function(WebhookKeyResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookKeyResponseBuilder toBuilder() => + new WebhookKeyResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookKeyResponse && + id == other.id && + active == other.active && + createdAt == other.createdAt && + deactivatedAt == other.deactivatedAt && + publicKey == other.publicKey && + livemode == other.livemode && + object == other.object; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, deactivatedAt.hashCode); + _$hash = $jc(_$hash, publicKey.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookKeyResponse') + ..add('id', id) + ..add('active', active) + ..add('createdAt', createdAt) + ..add('deactivatedAt', deactivatedAt) + ..add('publicKey', publicKey) + ..add('livemode', livemode) + ..add('object', object)) + .toString(); + } +} + +class WebhookKeyResponseBuilder + implements Builder { + _$WebhookKeyResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + int? _createdAt; + int? get createdAt => _$this._createdAt; + set createdAt(int? createdAt) => _$this._createdAt = createdAt; + + int? _deactivatedAt; + int? get deactivatedAt => _$this._deactivatedAt; + set deactivatedAt(int? deactivatedAt) => + _$this._deactivatedAt = deactivatedAt; + + String? _publicKey; + String? get publicKey => _$this._publicKey; + set publicKey(String? publicKey) => _$this._publicKey = publicKey; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + WebhookKeyResponseBuilder() { + WebhookKeyResponse._defaults(this); + } + + WebhookKeyResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _active = $v.active; + _createdAt = $v.createdAt; + _deactivatedAt = $v.deactivatedAt; + _publicKey = $v.publicKey; + _livemode = $v.livemode; + _object = $v.object; + _$v = null; + } + return this; + } + + @override + void replace(WebhookKeyResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookKeyResponse; + } + + @override + void update(void Function(WebhookKeyResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookKeyResponse build() => _build(); + + _$WebhookKeyResponse _build() { + final _$result = _$v ?? + new _$WebhookKeyResponse._( + id: id, + active: active, + createdAt: createdAt, + deactivatedAt: deactivatedAt, + publicKey: publicKey, + livemode: livemode, + object: object); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_key_update_request.g.dart b/lib/src/model/webhook_key_update_request.g.dart new file mode 100644 index 0000000..d416267 --- /dev/null +++ b/lib/src/model/webhook_key_update_request.g.dart @@ -0,0 +1,93 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_key_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookKeyUpdateRequest extends WebhookKeyUpdateRequest { + @override + final bool? active; + + factory _$WebhookKeyUpdateRequest( + [void Function(WebhookKeyUpdateRequestBuilder)? updates]) => + (new WebhookKeyUpdateRequestBuilder()..update(updates))._build(); + + _$WebhookKeyUpdateRequest._({this.active}) : super._(); + + @override + WebhookKeyUpdateRequest rebuild( + void Function(WebhookKeyUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookKeyUpdateRequestBuilder toBuilder() => + new WebhookKeyUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookKeyUpdateRequest && active == other.active; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookKeyUpdateRequest') + ..add('active', active)) + .toString(); + } +} + +class WebhookKeyUpdateRequestBuilder + implements + Builder { + _$WebhookKeyUpdateRequest? _$v; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + WebhookKeyUpdateRequestBuilder() { + WebhookKeyUpdateRequest._defaults(this); + } + + WebhookKeyUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _active = $v.active; + _$v = null; + } + return this; + } + + @override + void replace(WebhookKeyUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookKeyUpdateRequest; + } + + @override + void update(void Function(WebhookKeyUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookKeyUpdateRequest build() => _build(); + + _$WebhookKeyUpdateRequest _build() { + final _$result = _$v ?? new _$WebhookKeyUpdateRequest._(active: active); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_log.g.dart b/lib/src/model/webhook_log.g.dart new file mode 100644 index 0000000..80def71 --- /dev/null +++ b/lib/src/model/webhook_log.g.dart @@ -0,0 +1,183 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_log.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookLog extends WebhookLog { + @override + final int? failedAttempts; + @override + final String? id; + @override + final int? lastAttemptedAt; + @override + final int? lastHttpResponseStatus; + @override + final String? object; + @override + final BuiltMap? responseData; + @override + final String? url; + + factory _$WebhookLog([void Function(WebhookLogBuilder)? updates]) => + (new WebhookLogBuilder()..update(updates))._build(); + + _$WebhookLog._( + {this.failedAttempts, + this.id, + this.lastAttemptedAt, + this.lastHttpResponseStatus, + this.object, + this.responseData, + this.url}) + : super._(); + + @override + WebhookLog rebuild(void Function(WebhookLogBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookLogBuilder toBuilder() => new WebhookLogBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookLog && + failedAttempts == other.failedAttempts && + id == other.id && + lastAttemptedAt == other.lastAttemptedAt && + lastHttpResponseStatus == other.lastHttpResponseStatus && + object == other.object && + responseData == other.responseData && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, failedAttempts.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastAttemptedAt.hashCode); + _$hash = $jc(_$hash, lastHttpResponseStatus.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, responseData.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookLog') + ..add('failedAttempts', failedAttempts) + ..add('id', id) + ..add('lastAttemptedAt', lastAttemptedAt) + ..add('lastHttpResponseStatus', lastHttpResponseStatus) + ..add('object', object) + ..add('responseData', responseData) + ..add('url', url)) + .toString(); + } +} + +class WebhookLogBuilder implements Builder { + _$WebhookLog? _$v; + + int? _failedAttempts; + int? get failedAttempts => _$this._failedAttempts; + set failedAttempts(int? failedAttempts) => + _$this._failedAttempts = failedAttempts; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + int? _lastAttemptedAt; + int? get lastAttemptedAt => _$this._lastAttemptedAt; + set lastAttemptedAt(int? lastAttemptedAt) => + _$this._lastAttemptedAt = lastAttemptedAt; + + int? _lastHttpResponseStatus; + int? get lastHttpResponseStatus => _$this._lastHttpResponseStatus; + set lastHttpResponseStatus(int? lastHttpResponseStatus) => + _$this._lastHttpResponseStatus = lastHttpResponseStatus; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + MapBuilder? _responseData; + MapBuilder get responseData => + _$this._responseData ??= new MapBuilder(); + set responseData(MapBuilder? responseData) => + _$this._responseData = responseData; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + WebhookLogBuilder() { + WebhookLog._defaults(this); + } + + WebhookLogBuilder get _$this { + final $v = _$v; + if ($v != null) { + _failedAttempts = $v.failedAttempts; + _id = $v.id; + _lastAttemptedAt = $v.lastAttemptedAt; + _lastHttpResponseStatus = $v.lastHttpResponseStatus; + _object = $v.object; + _responseData = $v.responseData?.toBuilder(); + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(WebhookLog other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookLog; + } + + @override + void update(void Function(WebhookLogBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookLog build() => _build(); + + _$WebhookLog _build() { + _$WebhookLog _$result; + try { + _$result = _$v ?? + new _$WebhookLog._( + failedAttempts: failedAttempts, + id: id, + lastAttemptedAt: lastAttemptedAt, + lastHttpResponseStatus: lastHttpResponseStatus, + object: object, + responseData: _responseData?.build(), + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'responseData'; + _responseData?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'WebhookLog', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_request.g.dart b/lib/src/model/webhook_request.g.dart new file mode 100644 index 0000000..408c99d --- /dev/null +++ b/lib/src/model/webhook_request.g.dart @@ -0,0 +1,111 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookRequest extends WebhookRequest { + @override + final String url; + @override + final bool synchronous; + + factory _$WebhookRequest([void Function(WebhookRequestBuilder)? updates]) => + (new WebhookRequestBuilder()..update(updates))._build(); + + _$WebhookRequest._({required this.url, required this.synchronous}) + : super._() { + BuiltValueNullFieldError.checkNotNull(url, r'WebhookRequest', 'url'); + BuiltValueNullFieldError.checkNotNull( + synchronous, r'WebhookRequest', 'synchronous'); + } + + @override + WebhookRequest rebuild(void Function(WebhookRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookRequestBuilder toBuilder() => + new WebhookRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookRequest && + url == other.url && + synchronous == other.synchronous; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, synchronous.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookRequest') + ..add('url', url) + ..add('synchronous', synchronous)) + .toString(); + } +} + +class WebhookRequestBuilder + implements Builder { + _$WebhookRequest? _$v; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + bool? _synchronous; + bool? get synchronous => _$this._synchronous; + set synchronous(bool? synchronous) => _$this._synchronous = synchronous; + + WebhookRequestBuilder() { + WebhookRequest._defaults(this); + } + + WebhookRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _url = $v.url; + _synchronous = $v.synchronous; + _$v = null; + } + return this; + } + + @override + void replace(WebhookRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookRequest; + } + + @override + void update(void Function(WebhookRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookRequest build() => _build(); + + _$WebhookRequest _build() { + final _$result = _$v ?? + new _$WebhookRequest._( + url: BuiltValueNullFieldError.checkNotNull( + url, r'WebhookRequest', 'url'), + synchronous: BuiltValueNullFieldError.checkNotNull( + synchronous, r'WebhookRequest', 'synchronous')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_response.g.dart b/lib/src/model/webhook_response.g.dart new file mode 100644 index 0000000..354d817 --- /dev/null +++ b/lib/src/model/webhook_response.g.dart @@ -0,0 +1,220 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookResponse extends WebhookResponse { + @override + final bool? deleted; + @override + final bool? developmentEnabled; + @override + final String? id; + @override + final bool? livemode; + @override + final String? object; + @override + final bool? productionEnabled; + @override + final String? status; + @override + final BuiltList? subscribedEvents; + @override + final bool? synchronous; + @override + final String? url; + + factory _$WebhookResponse([void Function(WebhookResponseBuilder)? updates]) => + (new WebhookResponseBuilder()..update(updates))._build(); + + _$WebhookResponse._( + {this.deleted, + this.developmentEnabled, + this.id, + this.livemode, + this.object, + this.productionEnabled, + this.status, + this.subscribedEvents, + this.synchronous, + this.url}) + : super._(); + + @override + WebhookResponse rebuild(void Function(WebhookResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookResponseBuilder toBuilder() => + new WebhookResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookResponse && + deleted == other.deleted && + developmentEnabled == other.developmentEnabled && + id == other.id && + livemode == other.livemode && + object == other.object && + productionEnabled == other.productionEnabled && + status == other.status && + subscribedEvents == other.subscribedEvents && + synchronous == other.synchronous && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, deleted.hashCode); + _$hash = $jc(_$hash, developmentEnabled.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, livemode.hashCode); + _$hash = $jc(_$hash, object.hashCode); + _$hash = $jc(_$hash, productionEnabled.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, subscribedEvents.hashCode); + _$hash = $jc(_$hash, synchronous.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookResponse') + ..add('deleted', deleted) + ..add('developmentEnabled', developmentEnabled) + ..add('id', id) + ..add('livemode', livemode) + ..add('object', object) + ..add('productionEnabled', productionEnabled) + ..add('status', status) + ..add('subscribedEvents', subscribedEvents) + ..add('synchronous', synchronous) + ..add('url', url)) + .toString(); + } +} + +class WebhookResponseBuilder + implements Builder { + _$WebhookResponse? _$v; + + bool? _deleted; + bool? get deleted => _$this._deleted; + set deleted(bool? deleted) => _$this._deleted = deleted; + + bool? _developmentEnabled; + bool? get developmentEnabled => _$this._developmentEnabled; + set developmentEnabled(bool? developmentEnabled) => + _$this._developmentEnabled = developmentEnabled; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _livemode; + bool? get livemode => _$this._livemode; + set livemode(bool? livemode) => _$this._livemode = livemode; + + String? _object; + String? get object => _$this._object; + set object(String? object) => _$this._object = object; + + bool? _productionEnabled; + bool? get productionEnabled => _$this._productionEnabled; + set productionEnabled(bool? productionEnabled) => + _$this._productionEnabled = productionEnabled; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + ListBuilder? _subscribedEvents; + ListBuilder get subscribedEvents => + _$this._subscribedEvents ??= new ListBuilder(); + set subscribedEvents(ListBuilder? subscribedEvents) => + _$this._subscribedEvents = subscribedEvents; + + bool? _synchronous; + bool? get synchronous => _$this._synchronous; + set synchronous(bool? synchronous) => _$this._synchronous = synchronous; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + WebhookResponseBuilder() { + WebhookResponse._defaults(this); + } + + WebhookResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _deleted = $v.deleted; + _developmentEnabled = $v.developmentEnabled; + _id = $v.id; + _livemode = $v.livemode; + _object = $v.object; + _productionEnabled = $v.productionEnabled; + _status = $v.status; + _subscribedEvents = $v.subscribedEvents?.toBuilder(); + _synchronous = $v.synchronous; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(WebhookResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookResponse; + } + + @override + void update(void Function(WebhookResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookResponse build() => _build(); + + _$WebhookResponse _build() { + _$WebhookResponse _$result; + try { + _$result = _$v ?? + new _$WebhookResponse._( + deleted: deleted, + developmentEnabled: developmentEnabled, + id: id, + livemode: livemode, + object: object, + productionEnabled: productionEnabled, + status: status, + subscribedEvents: _subscribedEvents?.build(), + synchronous: synchronous, + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'subscribedEvents'; + _subscribedEvents?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'WebhookResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/webhook_update_request.g.dart b/lib/src/model/webhook_update_request.g.dart new file mode 100644 index 0000000..85fb19c --- /dev/null +++ b/lib/src/model/webhook_update_request.g.dart @@ -0,0 +1,135 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'webhook_update_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WebhookUpdateRequest extends WebhookUpdateRequest { + @override + final String url; + @override + final bool? synchronous; + @override + final BuiltList? events; + + factory _$WebhookUpdateRequest( + [void Function(WebhookUpdateRequestBuilder)? updates]) => + (new WebhookUpdateRequestBuilder()..update(updates))._build(); + + _$WebhookUpdateRequest._({required this.url, this.synchronous, this.events}) + : super._() { + BuiltValueNullFieldError.checkNotNull(url, r'WebhookUpdateRequest', 'url'); + } + + @override + WebhookUpdateRequest rebuild( + void Function(WebhookUpdateRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WebhookUpdateRequestBuilder toBuilder() => + new WebhookUpdateRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WebhookUpdateRequest && + url == other.url && + synchronous == other.synchronous && + events == other.events; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, synchronous.hashCode); + _$hash = $jc(_$hash, events.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WebhookUpdateRequest') + ..add('url', url) + ..add('synchronous', synchronous) + ..add('events', events)) + .toString(); + } +} + +class WebhookUpdateRequestBuilder + implements Builder { + _$WebhookUpdateRequest? _$v; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + bool? _synchronous; + bool? get synchronous => _$this._synchronous; + set synchronous(bool? synchronous) => _$this._synchronous = synchronous; + + ListBuilder? _events; + ListBuilder get events => + _$this._events ??= new ListBuilder(); + set events(ListBuilder? events) => _$this._events = events; + + WebhookUpdateRequestBuilder() { + WebhookUpdateRequest._defaults(this); + } + + WebhookUpdateRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _url = $v.url; + _synchronous = $v.synchronous; + _events = $v.events?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(WebhookUpdateRequest other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WebhookUpdateRequest; + } + + @override + void update(void Function(WebhookUpdateRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WebhookUpdateRequest build() => _build(); + + _$WebhookUpdateRequest _build() { + _$WebhookUpdateRequest _$result; + try { + _$result = _$v ?? + new _$WebhookUpdateRequest._( + url: BuiltValueNullFieldError.checkNotNull( + url, r'WebhookUpdateRequest', 'url'), + synchronous: synchronous, + events: _events?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'events'; + _events?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'WebhookUpdateRequest', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/model/whitelistlist_rule_response.g.dart b/lib/src/model/whitelistlist_rule_response.g.dart new file mode 100644 index 0000000..a155d21 --- /dev/null +++ b/lib/src/model/whitelistlist_rule_response.g.dart @@ -0,0 +1,128 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'whitelistlist_rule_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WhitelistlistRuleResponse extends WhitelistlistRuleResponse { + @override + final String? id; + @override + final String? field; + @override + final String? value; + @override + final String? description; + + factory _$WhitelistlistRuleResponse( + [void Function(WhitelistlistRuleResponseBuilder)? updates]) => + (new WhitelistlistRuleResponseBuilder()..update(updates))._build(); + + _$WhitelistlistRuleResponse._( + {this.id, this.field, this.value, this.description}) + : super._(); + + @override + WhitelistlistRuleResponse rebuild( + void Function(WhitelistlistRuleResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WhitelistlistRuleResponseBuilder toBuilder() => + new WhitelistlistRuleResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WhitelistlistRuleResponse && + id == other.id && + field == other.field && + value == other.value && + description == other.description; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, field.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WhitelistlistRuleResponse') + ..add('id', id) + ..add('field', field) + ..add('value', value) + ..add('description', description)) + .toString(); + } +} + +class WhitelistlistRuleResponseBuilder + implements + Builder { + _$WhitelistlistRuleResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _field; + String? get field => _$this._field; + set field(String? field) => _$this._field = field; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + WhitelistlistRuleResponseBuilder() { + WhitelistlistRuleResponse._defaults(this); + } + + WhitelistlistRuleResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _field = $v.field; + _value = $v.value; + _description = $v.description; + _$v = null; + } + return this; + } + + @override + void replace(WhitelistlistRuleResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WhitelistlistRuleResponse; + } + + @override + void update(void Function(WhitelistlistRuleResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WhitelistlistRuleResponse build() => _build(); + + _$WhitelistlistRuleResponse _build() { + final _$result = _$v ?? + new _$WhitelistlistRuleResponse._( + id: id, field: field, value: value, description: description); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/serializers.g.dart b/lib/src/serializers.g.dart new file mode 100644 index 0000000..e9cda0a --- /dev/null +++ b/lib/src/serializers.g.dart @@ -0,0 +1,716 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'serializers.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializers _$serializers = (new Serializers().toBuilder() + ..add($ApiKeyResponse.serializer) + ..add($ApiKeyResponseOnDelete.serializer) + ..add($ChargeResponse.serializer) + ..add($CustomerFiscalEntitiesRequest.serializer) + ..add($CustomerInfoJustCustomerIdResponse.serializer) + ..add($CustomerPaymentMethodRequest.serializer) + ..add($CustomerShippingContacts.serializer) + ..add($CustomerShippingContactsResponse.serializer) + ..add($Details.serializer) + ..add($DiscountLinesResponse.serializer) + ..add($FiscalEntityAddress.serializer) + ..add($OrderCustomerInfoResponse.serializer) + ..add($OrderDiscountLinesRequest.serializer) + ..add($OrderTaxRequest.serializer) + ..add($OrdersResponse.serializer) + ..add($Page.serializer) + ..add($Pagination.serializer) + ..add($PaymentMethod.serializer) + ..add($PaymentMethodResponse.serializer) + ..add($Product.serializer) + ..add($ShippingRequest.serializer) + ..add(ApiKeyCreateResponse.serializer) + ..add(ApiKeyRequest.serializer) + ..add(ApiKeyUpdateRequest.serializer) + ..add(BalanceCommonField.serializer) + ..add(BalanceResponse.serializer) + ..add(BlacklistRuleResponse.serializer) + ..add(ChargeOrderResponse.serializer) + ..add(ChargeOrderResponsePaymentMethod.serializer) + ..add(ChargeRequest.serializer) + ..add(ChargeRequestPaymentMethod.serializer) + ..add(ChargeResponseChannel.serializer) + ..add(ChargeResponsePaymentMethod.serializer) + ..add(ChargeResponseRefunds.serializer) + ..add(ChargeResponseRefundsData.serializer) + ..add(ChargeUpdateRequest.serializer) + ..add(ChargesDataResponse.serializer) + ..add(ChargesOrderResponse.serializer) + ..add(ChargesOrderResponseAllOfData.serializer) + ..add(Checkout.serializer) + ..add(CheckoutOrderTemplate.serializer) + ..add(CheckoutOrderTemplateCustomerInfo.serializer) + ..add(CheckoutRequest.serializer) + ..add(CheckoutResponse.serializer) + ..add(CheckoutsResponse.serializer) + ..add(CompanyFiscalInfoAddressResponse.serializer) + ..add(CompanyFiscalInfoAddressResponseObjectEnum.serializer) + ..add(CompanyFiscalInfoResponse.serializer) + ..add(CompanyFiscalInfoResponseObjectEnum.serializer) + ..add(CompanyPayoutDestinationResponse.serializer) + ..add(CompanyPayoutDestinationResponseObjectEnum.serializer) + ..add(CompanyPayoutDestinationResponseTypeEnum.serializer) + ..add(CompanyResponse.serializer) + ..add(CompanyResponseObjectEnum.serializer) + ..add(CreateCustomerFiscalEntitiesResponse.serializer) + ..add(CreateCustomerPaymentMethodsRequest.serializer) + ..add(CreateCustomerPaymentMethodsResponse.serializer) + ..add(CreateRiskRulesData.serializer) + ..add(Customer.serializer) + ..add(CustomerAddress.serializer) + ..add(CustomerAntifraudInfo.serializer) + ..add(CustomerAntifraudInfoResponse.serializer) + ..add(CustomerFiscalEntitiesDataResponse.serializer) + ..add(CustomerFiscalEntitiesResponse.serializer) + ..add(CustomerInfo.serializer) + ..add(CustomerInfoJustCustomerId.serializer) + ..add(CustomerPaymentMethodsData.serializer) + ..add(CustomerPaymentMethodsRequest.serializer) + ..add(CustomerPaymentMethodsResponse.serializer) + ..add(CustomerResponse.serializer) + ..add(CustomerResponseShippingContacts.serializer) + ..add(CustomerShippingContactsAddress.serializer) + ..add(CustomerShippingContactsDataResponse.serializer) + ..add(CustomerShippingContactsResponseAddress.serializer) + ..add(CustomerUpdateFiscalEntitiesRequest.serializer) + ..add(CustomerUpdateShippingContacts.serializer) + ..add(CustomersResponse.serializer) + ..add(DeleteApiKeysResponse.serializer) + ..add(DeletedBlacklistRuleResponse.serializer) + ..add(DeletedWhitelistRuleResponse.serializer) + ..add(DetailsError.serializer) + ..add(DiscountLinesDataResponse.serializer) + ..add(EmailCheckoutRequest.serializer) + ..add(Error.serializer) + ..add(EventResponse.serializer) + ..add(EventTypes.serializer) + ..add(EventsResendResponse.serializer) + ..add(GetApiKeysResponse.serializer) + ..add(GetChargesResponse.serializer) + ..add(GetCompaniesResponse.serializer) + ..add(GetCustomerPaymentMethodDataResponse.serializer) + ..add(GetEventsResponse.serializer) + ..add(GetOrderDiscountLinesResponse.serializer) + ..add(GetOrdersResponse.serializer) + ..add(GetPaymentMethodResponse.serializer) + ..add(GetPlansResponse.serializer) + ..add(GetTransactionsResponse.serializer) + ..add(GetTransfersResponse.serializer) + ..add(GetWebhookKeysResponse.serializer) + ..add(GetWebhooksResponse.serializer) + ..add(LogResponse.serializer) + ..add(LogsResponse.serializer) + ..add(LogsResponseData.serializer) + ..add(OrderCaptureRequest.serializer) + ..add(OrderFiscalEntityAddressResponse.serializer) + ..add(OrderFiscalEntityRequest.serializer) + ..add(OrderFiscalEntityResponse.serializer) + ..add(OrderNextActionResponse.serializer) + ..add(OrderNextActionResponseRedirectToUrl.serializer) + ..add(OrderRefundRequest.serializer) + ..add(OrderRequest.serializer) + ..add(OrderRequestCustomerInfo.serializer) + ..add(OrderResponse.serializer) + ..add(OrderResponseCharges.serializer) + ..add(OrderResponseCheckout.serializer) + ..add(OrderResponseCustomerInfo.serializer) + ..add(OrderResponseDiscountLines.serializer) + ..add(OrderResponseProducts.serializer) + ..add(OrderResponseShippingContact.serializer) + ..add(OrderUpdateFiscalEntityRequest.serializer) + ..add(OrderUpdateRequest.serializer) + ..add(OrderUpdateRequestCustomerInfo.serializer) + ..add(PaymentMethodBankTransfer.serializer) + ..add(PaymentMethodCard.serializer) + ..add(PaymentMethodCardRequest.serializer) + ..add(PaymentMethodCardResponse.serializer) + ..add(PaymentMethodCash.serializer) + ..add(PaymentMethodCashRequest.serializer) + ..add(PaymentMethodCashResponse.serializer) + ..add(PaymentMethodGeneralRequest.serializer) + ..add(PaymentMethodSpeiRecurrent.serializer) + ..add(PaymentMethodSpeiRequest.serializer) + ..add(PaymentMethodTokenRequest.serializer) + ..add(Payout.serializer) + ..add(PayoutMethod.serializer) + ..add(PayoutOrder.serializer) + ..add(PayoutOrderPayoutsItem.serializer) + ..add(PayoutOrderResponse.serializer) + ..add(PayoutOrderResponseCustomerInfo.serializer) + ..add(PayoutOrdersResponse.serializer) + ..add(PlanRequest.serializer) + ..add(PlanRequestIntervalEnum.serializer) + ..add(PlanResponse.serializer) + ..add(PlanUpdateRequest.serializer) + ..add(ProductDataResponse.serializer) + ..add(ProductOrderResponse.serializer) + ..add(RiskRulesData.serializer) + ..add(RiskRulesList.serializer) + ..add(ShippingOrderResponse.serializer) + ..add(SmsCheckoutRequest.serializer) + ..add(SubscriptionEventsResponse.serializer) + ..add(SubscriptionRequest.serializer) + ..add(SubscriptionResponse.serializer) + ..add(SubscriptionUpdateRequest.serializer) + ..add(Token.serializer) + ..add(TokenCard.serializer) + ..add(TokenCheckout.serializer) + ..add(TokenResponse.serializer) + ..add(TokenResponseCheckout.serializer) + ..add(TransactionResponse.serializer) + ..add(TransferDestinationResponse.serializer) + ..add(TransferMethodResponse.serializer) + ..add(TransferResponse.serializer) + ..add(TransfersResponse.serializer) + ..add(UpdateCustomer.serializer) + ..add(UpdateCustomerAntifraudInfo.serializer) + ..add(UpdateCustomerFiscalEntitiesResponse.serializer) + ..add(UpdateCustomerPaymentMethodsResponse.serializer) + ..add(UpdateOrderDiscountLinesRequest.serializer) + ..add(UpdateOrderTaxRequest.serializer) + ..add(UpdateOrderTaxResponse.serializer) + ..add(UpdatePaymentMethods.serializer) + ..add(UpdateProduct.serializer) + ..add(WebhookKeyCreateResponse.serializer) + ..add(WebhookKeyDeleteResponse.serializer) + ..add(WebhookKeyRequest.serializer) + ..add(WebhookKeyResponse.serializer) + ..add(WebhookKeyUpdateRequest.serializer) + ..add(WebhookLog.serializer) + ..add(WebhookRequest.serializer) + ..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(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(BalanceCommonField)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ChargeRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(OrderDiscountLinesRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(Product)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(String)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ShippingRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(OrderTaxRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ChargeRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(OrderDiscountLinesRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(Product)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ShippingRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(OrderTaxRequest)]), + () => new ListBuilder()) + ..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(ChargesOrderResponseAllOfData)]), + () => 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(CustomerFiscalEntitiesDataResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(CustomerFiscalEntitiesRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(CustomerPaymentMethodsRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(CustomerShippingContacts)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(CustomerFiscalEntitiesRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(CustomerPaymentMethodsRequest)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(CustomerShippingContacts)]), + () => 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(CustomerShippingContactsDataResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(DetailsError)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(DetailsError)]), + () => 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()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GetCustomerPaymentMethodDataResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(JsonObject)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(LogsResponseData)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(OrderResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(OrderResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(PayoutOrderResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(PlanResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(Product)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..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(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(JsonObject)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(JsonObject)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(PayoutOrderPayoutsItem)]), + () => 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(WebhookKeyResponse)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(WebhookResponse)]), + () => 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)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, + const [const FullType(String), const FullType(JsonObject)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, + const [const FullType(String), const FullType(JsonObject)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, + const [const FullType(String), const FullType(JsonObject)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, + const [const FullType(String), const FullType(JsonObject)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, + const [const FullType(String), const FullType(JsonObject)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, + const [const FullType(String), const FullType(JsonObject)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(String)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(WebhookLog)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(String)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(String)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(String)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(String)]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder())) + .build(); + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint