newstore-apimatic-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +230 -0
- data/bin/console +15 -0
- data/lib/new_store_api/api_helper.rb +10 -0
- data/lib/new_store_api/client.rb +559 -0
- data/lib/new_store_api/configuration.rb +244 -0
- data/lib/new_store_api/controllers/address_completion_controller.rb +24 -0
- data/lib/new_store_api/controllers/address_controller.rb +131 -0
- data/lib/new_store_api/controllers/adyen_adapter_controller.rb +43 -0
- data/lib/new_store_api/controllers/associate_app_experiments_configuration_controller.rb +132 -0
- data/lib/new_store_api/controllers/audit_events_controller.rb +73 -0
- data/lib/new_store_api/controllers/base_controller.rb +60 -0
- data/lib/new_store_api/controllers/bookings_controller.rb +134 -0
- data/lib/new_store_api/controllers/cart_controller.rb +234 -0
- data/lib/new_store_api/controllers/cashboxes_controller.rb +137 -0
- data/lib/new_store_api/controllers/clients_controller.rb +110 -0
- data/lib/new_store_api/controllers/counting_controller.rb +134 -0
- data/lib/new_store_api/controllers/customer_configuration_controller.rb +47 -0
- data/lib/new_store_api/controllers/customer_profile_controller.rb +195 -0
- data/lib/new_store_api/controllers/data_controller.rb +61 -0
- data/lib/new_store_api/controllers/datasets_controller.rb +64 -0
- data/lib/new_store_api/controllers/device_notifications_controller.rb +38 -0
- data/lib/new_store_api/controllers/device_registrations_controller.rb +38 -0
- data/lib/new_store_api/controllers/device_subscriptions_controller.rb +84 -0
- data/lib/new_store_api/controllers/discounts_controller.rb +37 -0
- data/lib/new_store_api/controllers/easypost_adapter_config_controller.rb +74 -0
- data/lib/new_store_api/controllers/events_controller.rb +69 -0
- data/lib/new_store_api/controllers/extensions_controller.rb +144 -0
- data/lib/new_store_api/controllers/financial_document_controller.rb +161 -0
- data/lib/new_store_api/controllers/fiscal_providers_controller.rb +23 -0
- data/lib/new_store_api/controllers/fulfillment_requests_controller.rb +192 -0
- data/lib/new_store_api/controllers/fulfillment_tasks_controller.rb +46 -0
- data/lib/new_store_api/controllers/identity_providers_controller.rb +118 -0
- data/lib/new_store_api/controllers/import_schemas_controller.rb +145 -0
- data/lib/new_store_api/controllers/insights_controller.rb +85 -0
- data/lib/new_store_api/controllers/installations_controller.rb +60 -0
- data/lib/new_store_api/controllers/inventory_configuration_controller.rb +46 -0
- data/lib/new_store_api/controllers/jobs_controller.rb +224 -0
- data/lib/new_store_api/controllers/manifests_controller.rb +37 -0
- data/lib/new_store_api/controllers/notifications_controller.rb +50 -0
- data/lib/new_store_api/controllers/o_auth_authorization_controller.rb +42 -0
- data/lib/new_store_api/controllers/order_injection_config_controller.rb +80 -0
- data/lib/new_store_api/controllers/order_injection_controller.rb +125 -0
- data/lib/new_store_api/controllers/order_placement_controller.rb +48 -0
- data/lib/new_store_api/controllers/orders_controller.rb +128 -0
- data/lib/new_store_api/controllers/package_types_controller.rb +160 -0
- data/lib/new_store_api/controllers/payment_account_controller.rb +47 -0
- data/lib/new_store_api/controllers/payment_definitions_controller.rb +37 -0
- data/lib/new_store_api/controllers/payment_links_controller.rb +69 -0
- data/lib/new_store_api/controllers/phavda_notifications_controller.rb +58 -0
- data/lib/new_store_api/controllers/platform_event_callbacks_controller.rb +37 -0
- data/lib/new_store_api/controllers/platform_status_controller.rb +32 -0
- data/lib/new_store_api/controllers/pricebook_export_controller.rb +51 -0
- data/lib/new_store_api/controllers/product_export_controller.rb +123 -0
- data/lib/new_store_api/controllers/profiles_controller.rb +50 -0
- data/lib/new_store_api/controllers/provider_rates_controller.rb +119 -0
- data/lib/new_store_api/controllers/providers_controller.rb +235 -0
- data/lib/new_store_api/controllers/reason_codes_controller.rb +128 -0
- data/lib/new_store_api/controllers/reservations_controller.rb +266 -0
- data/lib/new_store_api/controllers/roles_controller.rb +149 -0
- data/lib/new_store_api/controllers/routing_config_controller.rb +345 -0
- data/lib/new_store_api/controllers/routing_controller.rb +58 -0
- data/lib/new_store_api/controllers/routing_ruleset_controller.rb +135 -0
- data/lib/new_store_api/controllers/sales_goals_management_controller.rb +51 -0
- data/lib/new_store_api/controllers/sales_orders_controller.rb +370 -0
- data/lib/new_store_api/controllers/segmentation_controller.rb +485 -0
- data/lib/new_store_api/controllers/settings_controller.rb +165 -0
- data/lib/new_store_api/controllers/shipment_configurations_controller.rb +136 -0
- data/lib/new_store_api/controllers/shipping_labels_controller.rb +30 -0
- data/lib/new_store_api/controllers/shipping_option_audits_controller.rb +54 -0
- data/lib/new_store_api/controllers/shipping_options_controller.rb +185 -0
- data/lib/new_store_api/controllers/shortings_controller.rb +48 -0
- data/lib/new_store_api/controllers/simulation_controller.rb +43 -0
- data/lib/new_store_api/controllers/stock_controller.rb +139 -0
- data/lib/new_store_api/controllers/store_reporting_config_controller.rb +61 -0
- data/lib/new_store_api/controllers/store_tax_configuration_controller.rb +129 -0
- data/lib/new_store_api/controllers/stores_controller.rb +137 -0
- data/lib/new_store_api/controllers/stripe_webhook_notifications_controller.rb +42 -0
- data/lib/new_store_api/controllers/support_users_controller.rb +63 -0
- data/lib/new_store_api/controllers/tax_definitions_controller.rb +40 -0
- data/lib/new_store_api/controllers/tax_quotations_controller.rb +43 -0
- data/lib/new_store_api/controllers/tax_transactions_controller.rb +131 -0
- data/lib/new_store_api/controllers/tenant_config_controller.rb +68 -0
- data/lib/new_store_api/controllers/tenant_tax_configuration_controller.rb +69 -0
- data/lib/new_store_api/controllers/token_operations_controller.rb +47 -0
- data/lib/new_store_api/controllers/tppe_controller.rb +51 -0
- data/lib/new_store_api/controllers/transferring_controller.rb +37 -0
- data/lib/new_store_api/controllers/users_controller.rb +224 -0
- data/lib/new_store_api/exceptions/api_exception.rb +21 -0
- data/lib/new_store_api/exceptions/o_auth_provider_exception.rb +64 -0
- data/lib/new_store_api/http/auth/o_auth2.rb +157 -0
- data/lib/new_store_api/http/http_call_back.rb +10 -0
- data/lib/new_store_api/http/http_method_enum.rb +10 -0
- data/lib/new_store_api/http/http_request.rb +10 -0
- data/lib/new_store_api/http/http_response.rb +10 -0
- data/lib/new_store_api/http/proxy_settings.rb +22 -0
- data/lib/new_store_api/models/accept_enum.rb +26 -0
- data/lib/new_store_api/models/action_enum.rb +36 -0
- data/lib/new_store_api/models/actor.rb +134 -0
- data/lib/new_store_api/models/adapter_enum.rb +36 -0
- data/lib/new_store_api/models/adapter_http_timeout.rb +74 -0
- data/lib/new_store_api/models/add_item_item_price.rb +71 -0
- data/lib/new_store_api/models/add_item_request_body.rb +133 -0
- data/lib/new_store_api/models/add_item_response_body.rb +71 -0
- data/lib/new_store_api/models/add_on_links.rb +81 -0
- data/lib/new_store_api/models/add_on_resource.rb +137 -0
- data/lib/new_store_api/models/add_replace_or_test.rb +102 -0
- data/lib/new_store_api/models/address.rb +149 -0
- data/lib/new_store_api/models/address1.rb +204 -0
- data/lib/new_store_api/models/address_data_ie_v1_dto.rb +116 -0
- data/lib/new_store_api/models/address_data_no_v1_dto.rb +141 -0
- data/lib/new_store_api/models/address_model.rb +150 -0
- data/lib/new_store_api/models/address_response.rb +189 -0
- data/lib/new_store_api/models/adjustment.rb +60 -0
- data/lib/new_store_api/models/allocation.rb +85 -0
- data/lib/new_store_api/models/amount.rb +69 -0
- data/lib/new_store_api/models/application_enum.rb +40 -0
- data/lib/new_store_api/models/atp_insights_response.rb +135 -0
- data/lib/new_store_api/models/atp_key.rb +70 -0
- data/lib/new_store_api/models/audit_event.rb +164 -0
- data/lib/new_store_api/models/audit_event_list.rb +80 -0
- data/lib/new_store_api/models/audit_event_read_only.rb +95 -0
- data/lib/new_store_api/models/audit_operation_enum.rb +40 -0
- data/lib/new_store_api/models/audit_read_only.rb +133 -0
- data/lib/new_store_api/models/audit_response.rb +60 -0
- data/lib/new_store_api/models/audits_response.rb +77 -0
- data/lib/new_store_api/models/automatic_rerouting_settings.rb +83 -0
- data/lib/new_store_api/models/availability_row.rb +79 -0
- data/lib/new_store_api/models/avalara_config_create_dto.rb +126 -0
- data/lib/new_store_api/models/avalara_config_dto.rb +156 -0
- data/lib/new_store_api/models/avalara_config_update_dto.rb +130 -0
- data/lib/new_store_api/models/avalara_env_enum.rb +36 -0
- data/lib/new_store_api/models/avalara_exemption_class_item_create_dto.rb +111 -0
- data/lib/new_store_api/models/avalara_exemption_class_item_dto.rb +137 -0
- data/lib/new_store_api/models/avalara_exemption_class_item_update_dto.rb +111 -0
- data/lib/new_store_api/models/axena_activation_data_v1_dto.rb +97 -0
- data/lib/new_store_api/models/base_model.rb +110 -0
- data/lib/new_store_api/models/billing_address.rb +62 -0
- data/lib/new_store_api/models/body.rb +62 -0
- data/lib/new_store_api/models/booking_product.rb +211 -0
- data/lib/new_store_api/models/booking_product_customs.rb +107 -0
- data/lib/new_store_api/models/booking_response_cost.rb +68 -0
- data/lib/new_store_api/models/bulk_profile_lookup_response.rb +68 -0
- data/lib/new_store_api/models/byo_crm_config_request.rb +85 -0
- data/lib/new_store_api/models/byo_crm_config_response.rb +80 -0
- data/lib/new_store_api/models/calculation_mode_enum.rb +42 -0
- data/lib/new_store_api/models/canceled.rb +91 -0
- data/lib/new_store_api/models/cancellation_policy_settings.rb +82 -0
- data/lib/new_store_api/models/cancellation_policy_settings_reasons_enum.rb +53 -0
- data/lib/new_store_api/models/cancellation_policy_settings_value.rb +79 -0
- data/lib/new_store_api/models/capacity_based_routing_settings.rb +82 -0
- data/lib/new_store_api/models/card_details.rb +150 -0
- data/lib/new_store_api/models/card_payment.rb +184 -0
- data/lib/new_store_api/models/carriers_config.rb +80 -0
- data/lib/new_store_api/models/carriers_config_carrier.rb +117 -0
- data/lib/new_store_api/models/cart.rb +158 -0
- data/lib/new_store_api/models/cart_discount.rb +107 -0
- data/lib/new_store_api/models/cart_links.rb +90 -0
- data/lib/new_store_api/models/cart_list_item.rb +68 -0
- data/lib/new_store_api/models/cart_resource.rb +172 -0
- data/lib/new_store_api/models/cash_denomination_dto.rb +85 -0
- data/lib/new_store_api/models/cash_denominations_response_dto.rb +95 -0
- data/lib/new_store_api/models/cash_details.rb +74 -0
- data/lib/new_store_api/models/cash_payment.rb +179 -0
- data/lib/new_store_api/models/cashbox_config_axena_se_v1_dto.rb +283 -0
- data/lib/new_store_api/models/cashbox_config_efsta_pt_v1_dto.rb +131 -0
- data/lib/new_store_api/models/cashbox_config_epson_it_v1_dto.rb +114 -0
- data/lib/new_store_api/models/cashbox_config_fiskaltrust_at_v1_dto.rb +91 -0
- data/lib/new_store_api/models/cashbox_config_fiskaltrust_de_v1_dto.rb +91 -0
- data/lib/new_store_api/models/cashbox_config_fiskaltrust_fr_v1_dto.rb +136 -0
- data/lib/new_store_api/models/cashbox_config_new_store_be_v1_dto.rb +107 -0
- data/lib/new_store_api/models/cashbox_config_new_store_es_v1_dto.rb +75 -0
- data/lib/new_store_api/models/cashbox_config_new_store_in_v1_dto.rb +81 -0
- data/lib/new_store_api/models/cashbox_config_new_store_th_v1_dto.rb +81 -0
- data/lib/new_store_api/models/cashbox_config_newstore_ie_v1_dto.rb +123 -0
- data/lib/new_store_api/models/cashbox_config_newstore_no_v1_dto.rb +145 -0
- data/lib/new_store_api/models/cashbox_config_posnet_pl_v1_dto.rb +114 -0
- data/lib/new_store_api/models/cashbox_config_ycs_pr_v1_dto.rb +94 -0
- data/lib/new_store_api/models/cashbox_create_v1_dto.rb +94 -0
- data/lib/new_store_api/models/cashbox_created_v1_dto.rb +196 -0
- data/lib/new_store_api/models/cashbox_get_v1_dto.rb +202 -0
- data/lib/new_store_api/models/cashbox_list_v1_dto.rb +69 -0
- data/lib/new_store_api/models/cashbox_release_v1_dto.rb +67 -0
- data/lib/new_store_api/models/cashbox_state_enum.rb +36 -0
- data/lib/new_store_api/models/cashbox_v1_dto.rb +185 -0
- data/lib/new_store_api/models/catalog.rb +68 -0
- data/lib/new_store_api/models/category_enum.rb +36 -0
- data/lib/new_store_api/models/change_cart_request_body.rb +62 -0
- data/lib/new_store_api/models/change_item_request_body.rb +92 -0
- data/lib/new_store_api/models/change_item_response_body.rb +71 -0
- data/lib/new_store_api/models/changes_response_body.rb +62 -0
- data/lib/new_store_api/models/channel.rb +70 -0
- data/lib/new_store_api/models/channel1.rb +94 -0
- data/lib/new_store_api/models/channel_type1_enum.rb +40 -0
- data/lib/new_store_api/models/channel_type_enum.rb +26 -0
- data/lib/new_store_api/models/checkout_financial_documents_exchange_receipts_request.rb +83 -0
- data/lib/new_store_api/models/checkout_financial_documents_sales_receipts_request.rb +62 -0
- data/lib/new_store_api/models/code_enum.rb +52 -0
- data/lib/new_store_api/models/combine_enum.rb +36 -0
- data/lib/new_store_api/models/complete_zone_request.rb +60 -0
- data/lib/new_store_api/models/completion_response.rb +63 -0
- data/lib/new_store_api/models/condition.rb +103 -0
- data/lib/new_store_api/models/conditions.rb +87 -0
- data/lib/new_store_api/models/config.rb +113 -0
- data/lib/new_store_api/models/config_dto.rb +192 -0
- data/lib/new_store_api/models/config_model.rb +242 -0
- data/lib/new_store_api/models/config_model_response.rb +262 -0
- data/lib/new_store_api/models/configuration_feature_flags.rb +73 -0
- data/lib/new_store_api/models/configuration_name_enum.rb +64 -0
- data/lib/new_store_api/models/configuration_request.rb +94 -0
- data/lib/new_store_api/models/configuration_response.rb +84 -0
- data/lib/new_store_api/models/context_v1_dto.rb +113 -0
- data/lib/new_store_api/models/correlation.rb +87 -0
- data/lib/new_store_api/models/count_task_line_item_response.rb +95 -0
- data/lib/new_store_api/models/country_code_enum.rb +1025 -0
- data/lib/new_store_api/models/create_cart_request_body.rb +124 -0
- data/lib/new_store_api/models/create_data_request.rb +79 -0
- data/lib/new_store_api/models/create_data_response.rb +60 -0
- data/lib/new_store_api/models/create_identity_provider_request.rb +116 -0
- data/lib/new_store_api/models/create_import_request.rb +75 -0
- data/lib/new_store_api/models/create_job_request.rb +167 -0
- data/lib/new_store_api/models/create_oidc_identity_provider_config.rb +104 -0
- data/lib/new_store_api/models/create_package_tracking_custom_adapter.rb +125 -0
- data/lib/new_store_api/models/create_package_tracking_easypost_adapter.rb +75 -0
- data/lib/new_store_api/models/create_package_type_request.rb +79 -0
- data/lib/new_store_api/models/create_payment_link_request.rb +105 -0
- data/lib/new_store_api/models/create_profile_request.rb +141 -0
- data/lib/new_store_api/models/create_reservation_request_v1.rb +132 -0
- data/lib/new_store_api/models/create_saml_identity_provider_config.rb +74 -0
- data/lib/new_store_api/models/create_session_token_request.rb +64 -0
- data/lib/new_store_api/models/create_tag_request.rb +94 -0
- data/lib/new_store_api/models/currency1_enum.rb +756 -0
- data/lib/new_store_api/models/currency2_enum.rb +744 -0
- data/lib/new_store_api/models/currency3_enum.rb +676 -0
- data/lib/new_store_api/models/currency_enum.rb +752 -0
- data/lib/new_store_api/models/current.rb +72 -0
- data/lib/new_store_api/models/custom_api_version_enum.rb +36 -0
- data/lib/new_store_api/models/custom_config_additional_create_dto.rb +65 -0
- data/lib/new_store_api/models/custom_config_additional_dto.rb +75 -0
- data/lib/new_store_api/models/custom_config_additional_update_dto.rb +65 -0
- data/lib/new_store_api/models/custom_config_authentication_dto.rb +103 -0
- data/lib/new_store_api/models/custom_config_authentication_method_enum.rb +26 -0
- data/lib/new_store_api/models/custom_config_create_dto.rb +121 -0
- data/lib/new_store_api/models/custom_config_dto.rb +137 -0
- data/lib/new_store_api/models/custom_config_update_dto.rb +122 -0
- data/lib/new_store_api/models/custom_v0_avalara_config_create_dto.rb +91 -0
- data/lib/new_store_api/models/custom_v0_avalara_config_dto.rb +121 -0
- data/lib/new_store_api/models/custom_v0_avalara_config_update_dto.rb +96 -0
- data/lib/new_store_api/models/customer.rb +72 -0
- data/lib/new_store_api/models/customer1.rb +92 -0
- data/lib/new_store_api/models/customization_adapter_config.rb +76 -0
- data/lib/new_store_api/models/customization_adapter_config_value.rb +74 -0
- data/lib/new_store_api/models/data.rb +70 -0
- data/lib/new_store_api/models/delivery_destination.rb +85 -0
- data/lib/new_store_api/models/destination_region.rb +74 -0
- data/lib/new_store_api/models/destination_region1.rb +84 -0
- data/lib/new_store_api/models/dimension_unit_enum.rb +48 -0
- data/lib/new_store_api/models/discount.rb +136 -0
- data/lib/new_store_api/models/download_response.rb +61 -0
- data/lib/new_store_api/models/easypost_adapter_config.rb +159 -0
- data/lib/new_store_api/models/enriched_quotation_item_dto.rb +264 -0
- data/lib/new_store_api/models/enriched_quotation_tax_rate_dto.rb +123 -0
- data/lib/new_store_api/models/enriched_transaction_address_dto.rb +134 -0
- data/lib/new_store_api/models/enriched_transaction_dto.rb +188 -0
- data/lib/new_store_api/models/enriched_transaction_item_dto.rb +261 -0
- data/lib/new_store_api/models/environment_enum.rb +36 -0
- data/lib/new_store_api/models/epc_body.rb +78 -0
- data/lib/new_store_api/models/epson_printer_model_enum.rb +36 -0
- data/lib/new_store_api/models/error.rb +79 -0
- data/lib/new_store_api/models/event_captured_dto.rb +60 -0
- data/lib/new_store_api/models/event_name1_enum.rb +36 -0
- data/lib/new_store_api/models/event_name_enum.rb +37 -0
- data/lib/new_store_api/models/excluded_product.rb +71 -0
- data/lib/new_store_api/models/exemption_class_enum.rb +87 -0
- data/lib/new_store_api/models/exemption_class_item_create_dto.rb +115 -0
- data/lib/new_store_api/models/exemption_class_item_dto.rb +115 -0
- data/lib/new_store_api/models/exemption_class_item_extended_dto.rb +104 -0
- data/lib/new_store_api/models/exemption_class_item_update_dto.rb +93 -0
- data/lib/new_store_api/models/exemption_class_mapping_it_v1_dto.rb +97 -0
- data/lib/new_store_api/models/exemption_code_it_enum.rb +52 -0
- data/lib/new_store_api/models/experiment.rb +79 -0
- data/lib/new_store_api/models/ext_attr_resource.rb +90 -0
- data/lib/new_store_api/models/extend_order_s_grace_period_timer.rb +72 -0
- data/lib/new_store_api/models/extended_attribute.rb +69 -0
- data/lib/new_store_api/models/extended_attribute_model.rb +68 -0
- data/lib/new_store_api/models/external_atp_settings.rb +83 -0
- data/lib/new_store_api/models/external_fulfillment_settings_request.rb +63 -0
- data/lib/new_store_api/models/external_fulfillment_settings_response.rb +74 -0
- data/lib/new_store_api/models/external_identifiers.rb +75 -0
- data/lib/new_store_api/models/external_identifiers1.rb +83 -0
- data/lib/new_store_api/models/external_token_response.rb +63 -0
- data/lib/new_store_api/models/f11n_tax_method_enum.rb +36 -0
- data/lib/new_store_api/models/f11n_transaction_type_enum.rb +92 -0
- data/lib/new_store_api/models/f11n_warning_code_enum.rb +44 -0
- data/lib/new_store_api/models/failed.rb +68 -0
- data/lib/new_store_api/models/fallback_error_dto.rb +79 -0
- data/lib/new_store_api/models/feature_enum.rb +36 -0
- data/lib/new_store_api/models/fiscal_countries_dto.rb +60 -0
- data/lib/new_store_api/models/fiscal_environment_enum.rb +36 -0
- data/lib/new_store_api/models/fiscal_mode_enum.rb +36 -0
- data/lib/new_store_api/models/fiscal_printer_error_state_enum.rb +212 -0
- data/lib/new_store_api/models/fiscal_provider_id_enum.rb +88 -0
- data/lib/new_store_api/models/fiscal_receipt_result_v1_dto.rb +98 -0
- data/lib/new_store_api/models/fixed_discount.rb +173 -0
- data/lib/new_store_api/models/fixed_rate_config_create_dto.rb +105 -0
- data/lib/new_store_api/models/fixed_rate_config_dto.rb +105 -0
- data/lib/new_store_api/models/fixed_rate_config_update_dto.rb +92 -0
- data/lib/new_store_api/models/format_enum.rb +36 -0
- data/lib/new_store_api/models/ft_at_signature_format_enum.rb +84 -0
- data/lib/new_store_api/models/ft_at_signature_type_enum.rb +44 -0
- data/lib/new_store_api/models/ft_at_state_enum.rb +64 -0
- data/lib/new_store_api/models/ft_de_signature_format_enum.rb +84 -0
- data/lib/new_store_api/models/ft_de_signature_type_enum.rb +136 -0
- data/lib/new_store_api/models/ft_de_state_enum.rb +52 -0
- data/lib/new_store_api/models/ft_fr_signature_format_enum.rb +84 -0
- data/lib/new_store_api/models/ft_fr_signature_type_enum.rb +60 -0
- data/lib/new_store_api/models/ft_fr_state_enum.rb +64 -0
- data/lib/new_store_api/models/fulfillment1.rb +75 -0
- data/lib/new_store_api/models/fulfillment_assignment.rb +109 -0
- data/lib/new_store_api/models/fulfillment_config_destination_region.rb +70 -0
- data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response.rb +87 -0
- data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response1.rb +76 -0
- data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response2.rb +75 -0
- data/lib/new_store_api/models/fulfillment_config_get_routing_rules_section_sample_response3.rb +76 -0
- data/lib/new_store_api/models/fulfillment_config_route.rb +73 -0
- data/lib/new_store_api/models/fulfillment_config_routing_rules.rb +116 -0
- data/lib/new_store_api/models/fulfillment_config_v2_body.rb +61 -0
- data/lib/new_store_api/models/fulfillment_enum.rb +36 -0
- data/lib/new_store_api/models/fulfillment_node_assignment.rb +103 -0
- data/lib/new_store_api/models/fulfillment_node_customs_info.rb +80 -0
- data/lib/new_store_api/models/fulfillment_node_customs_info_value.rb +75 -0
- data/lib/new_store_api/models/fulfillment_option.rb +83 -0
- data/lib/new_store_api/models/fulfillment_request.rb +133 -0
- data/lib/new_store_api/models/fulfillment_request1.rb +131 -0
- data/lib/new_store_api/models/fulfillment_request_items_states_request.rb +131 -0
- data/lib/new_store_api/models/fulfillment_request_line_item.rb +139 -0
- data/lib/new_store_api/models/fulfillment_task_document.rb +81 -0
- data/lib/new_store_api/models/fulfillment_task_item_external_identier.rb +68 -0
- data/lib/new_store_api/models/fulfillment_task_item_model.rb +179 -0
- data/lib/new_store_api/models/fulfillment_task_model.rb +287 -0
- data/lib/new_store_api/models/future_allocation.rb +85 -0
- data/lib/new_store_api/models/generate_static_option_for_dc.rb +74 -0
- data/lib/new_store_api/models/get_client_response.rb +90 -0
- data/lib/new_store_api/models/get_clients_response.rb +71 -0
- data/lib/new_store_api/models/get_config_response.rb +78 -0
- data/lib/new_store_api/models/get_notifications_response.rb +62 -0
- data/lib/new_store_api/models/get_permissions_response.rb +71 -0
- data/lib/new_store_api/models/get_response.rb +77 -0
- data/lib/new_store_api/models/get_return_receipt_request.rb +81 -0
- data/lib/new_store_api/models/get_roles_response.rb +71 -0
- data/lib/new_store_api/models/get_scopes_response.rb +80 -0
- data/lib/new_store_api/models/get_shortings_model.rb +77 -0
- data/lib/new_store_api/models/get_task_model.rb +69 -0
- data/lib/new_store_api/models/get_transfer_transaction_response.rb +140 -0
- data/lib/new_store_api/models/get_userinfo_response.rb +121 -0
- data/lib/new_store_api/models/get_users_by_role_response.rb +71 -0
- data/lib/new_store_api/models/get_users_response.rb +82 -0
- data/lib/new_store_api/models/gift_wrapping.rb +128 -0
- data/lib/new_store_api/models/gift_wrapping1.rb +116 -0
- data/lib/new_store_api/models/historical_order_shipment.rb +133 -0
- data/lib/new_store_api/models/historical_shipping_option.rb +226 -0
- data/lib/new_store_api/models/http_response_body.rb +71 -0
- data/lib/new_store_api/models/identity_provider_config.rb +102 -0
- data/lib/new_store_api/models/identity_provider_protocol_enum.rb +36 -0
- data/lib/new_store_api/models/identity_provider_response.rb +101 -0
- data/lib/new_store_api/models/identity_provider_vendor_enum.rb +40 -0
- data/lib/new_store_api/models/identity_providers_response.rb +71 -0
- data/lib/new_store_api/models/import_entity_enum.rb +26 -0
- data/lib/new_store_api/models/import_response.rb +130 -0
- data/lib/new_store_api/models/import_schema_created.rb +76 -0
- data/lib/new_store_api/models/import_schema_get.rb +83 -0
- data/lib/new_store_api/models/import_tag_response.rb +143 -0
- data/lib/new_store_api/models/initial_reservation_status_enum.rb +37 -0
- data/lib/new_store_api/models/injected_order_address.rb +193 -0
- data/lib/new_store_api/models/injected_order_discount_info.rb +141 -0
- data/lib/new_store_api/models/injected_order_discount_info1.rb +141 -0
- data/lib/new_store_api/models/injected_order_extended_attribute.rb +91 -0
- data/lib/new_store_api/models/injected_order_item_ids.rb +79 -0
- data/lib/new_store_api/models/injected_order_item_tax_line.rb +115 -0
- data/lib/new_store_api/models/injected_order_payment.rb +187 -0
- data/lib/new_store_api/models/injected_order_request.rb +402 -0
- data/lib/new_store_api/models/injected_order_response.rb +86 -0
- data/lib/new_store_api/models/injected_order_routing_strategy.rb +75 -0
- data/lib/new_store_api/models/injected_order_routing_strategy1.rb +94 -0
- data/lib/new_store_api/models/injected_order_routing_strategy2.rb +93 -0
- data/lib/new_store_api/models/injected_order_shipment.rb +105 -0
- data/lib/new_store_api/models/injected_order_shipment_item.rb +169 -0
- data/lib/new_store_api/models/injected_order_shipment_item_price.rb +169 -0
- data/lib/new_store_api/models/injected_order_shipping_option.rb +139 -0
- data/lib/new_store_api/models/injected_order_shipping_option1.rb +136 -0
- data/lib/new_store_api/models/insights_activities_schema_response.rb +71 -0
- data/lib/new_store_api/models/insights_config_response.rb +71 -0
- data/lib/new_store_api/models/integration_config.rb +77 -0
- data/lib/new_store_api/models/item1.rb +150 -0
- data/lib/new_store_api/models/item11.rb +71 -0
- data/lib/new_store_api/models/item12.rb +238 -0
- data/lib/new_store_api/models/item21.rb +91 -0
- data/lib/new_store_api/models/item211.rb +104 -0
- data/lib/new_store_api/models/item22.rb +105 -0
- data/lib/new_store_api/models/item3.rb +88 -0
- data/lib/new_store_api/models/item31.rb +74 -0
- data/lib/new_store_api/models/item4.rb +115 -0
- data/lib/new_store_api/models/item41.rb +104 -0
- data/lib/new_store_api/models/item5.rb +79 -0
- data/lib/new_store_api/models/item6.rb +79 -0
- data/lib/new_store_api/models/item7.rb +115 -0
- data/lib/new_store_api/models/item8.rb +106 -0
- data/lib/new_store_api/models/item9.rb +161 -0
- data/lib/new_store_api/models/item_discount.rb +97 -0
- data/lib/new_store_api/models/item_links.rb +100 -0
- data/lib/new_store_api/models/item_price.rb +68 -0
- data/lib/new_store_api/models/item_resource.rb +176 -0
- data/lib/new_store_api/models/item_type_enum.rb +44 -0
- data/lib/new_store_api/models/job_download_response.rb +97 -0
- data/lib/new_store_api/models/job_id_response.rb +97 -0
- data/lib/new_store_api/models/job_list_response.rb +77 -0
- data/lib/new_store_api/models/job_response.rb +175 -0
- data/lib/new_store_api/models/level_enum.rb +37 -0
- data/lib/new_store_api/models/limit_exceeded_when.rb +72 -0
- data/lib/new_store_api/models/line_item.rb +73 -0
- data/lib/new_store_api/models/line_item11.rb +91 -0
- data/lib/new_store_api/models/line_item2.rb +141 -0
- data/lib/new_store_api/models/line_item21.rb +122 -0
- data/lib/new_store_api/models/line_item3.rb +71 -0
- data/lib/new_store_api/models/line_item_price.rb +180 -0
- data/lib/new_store_api/models/link.rb +70 -0
- data/lib/new_store_api/models/list_addresses_response.rb +79 -0
- data/lib/new_store_api/models/list_count_task_line_items_response.rb +77 -0
- data/lib/new_store_api/models/list_import_tags.rb +80 -0
- data/lib/new_store_api/models/list_imports_response.rb +69 -0
- data/lib/new_store_api/models/list_product_zones_response.rb +69 -0
- data/lib/new_store_api/models/list_profiles_response.rb +79 -0
- data/lib/new_store_api/models/list_reservations_response_v1.rb +78 -0
- data/lib/new_store_api/models/list_reservations_response_v2.rb +78 -0
- data/lib/new_store_api/models/list_response.rb +69 -0
- data/lib/new_store_api/models/list_tag_profiles_response.rb +72 -0
- data/lib/new_store_api/models/list_tags_response.rb +80 -0
- data/lib/new_store_api/models/list_zones_response.rb +77 -0
- data/lib/new_store_api/models/localization.rb +68 -0
- data/lib/new_store_api/models/localized_reason_code.rb +77 -0
- data/lib/new_store_api/models/location_mapping.rb +80 -0
- data/lib/new_store_api/models/location_mapping_body.rb +93 -0
- data/lib/new_store_api/models/location_mappings_response.rb +63 -0
- data/lib/new_store_api/models/meta.rb +64 -0
- data/lib/new_store_api/models/meta_data.rb +62 -0
- data/lib/new_store_api/models/move_or_copy.rb +102 -0
- data/lib/new_store_api/models/not_routed_item_response.rb +68 -0
- data/lib/new_store_api/models/notification.rb +89 -0
- data/lib/new_store_api/models/notification_request.rb +84 -0
- data/lib/new_store_api/models/notification_response.rb +63 -0
- data/lib/new_store_api/models/o_auth_provider_error_enum.rb +62 -0
- data/lib/new_store_api/models/o_auth_scope_enum.rb +288 -0
- data/lib/new_store_api/models/o_auth_token.rb +96 -0
- data/lib/new_store_api/models/offline_countries_config_metadata_v1_dto.rb +162 -0
- data/lib/new_store_api/models/offline_countries_config_update_v1_dto.rb +157 -0
- data/lib/new_store_api/models/offline_countries_config_v1_dto.rb +162 -0
- data/lib/new_store_api/models/offline_countries_response_v1_dto.rb +61 -0
- data/lib/new_store_api/models/offline_countries_update_request_v1_dto.rb +61 -0
- data/lib/new_store_api/models/offline_country_config_metadata_v1_dto.rb +93 -0
- data/lib/new_store_api/models/offline_country_config_v1_dto.rb +68 -0
- data/lib/new_store_api/models/op1_enum.rb +36 -0
- data/lib/new_store_api/models/op_enum.rb +40 -0
- data/lib/new_store_api/models/operation1_enum.rb +36 -0
- data/lib/new_store_api/models/operation_enum.rb +36 -0
- data/lib/new_store_api/models/operation_error.rb +68 -0
- data/lib/new_store_api/models/operation_response.rb +125 -0
- data/lib/new_store_api/models/operation_status_enum.rb +48 -0
- data/lib/new_store_api/models/operation_tags_request.rb +60 -0
- data/lib/new_store_api/models/operator_enum.rb +60 -0
- data/lib/new_store_api/models/opt_in_state_enum.rb +40 -0
- data/lib/new_store_api/models/opted_in.rb +77 -0
- data/lib/new_store_api/models/option_product_customs.rb +107 -0
- data/lib/new_store_api/models/order_by1_enum.rb +44 -0
- data/lib/new_store_api/models/order_by_enum.rb +36 -0
- data/lib/new_store_api/models/order_completed_dto.rb +117 -0
- data/lib/new_store_api/models/order_conflict_resolution_request.rb +96 -0
- data/lib/new_store_api/models/order_conflict_resolution_response.rb +125 -0
- data/lib/new_store_api/models/order_fulfillment_requests_response.rb +70 -0
- data/lib/new_store_api/models/order_injection_configuration_big_sales_order.rb +66 -0
- data/lib/new_store_api/models/order_injection_configuration_response.rb +101 -0
- data/lib/new_store_api/models/order_injection_tenant_configuration.rb +83 -0
- data/lib/new_store_api/models/order_management_state_enum.rb +36 -0
- data/lib/new_store_api/models/order_request.rb +208 -0
- data/lib/new_store_api/models/order_response.rb +101 -0
- data/lib/new_store_api/models/origin.rb +72 -0
- data/lib/new_store_api/models/original.rb +72 -0
- data/lib/new_store_api/models/package_dimensions.rb +85 -0
- data/lib/new_store_api/models/package_option.rb +72 -0
- data/lib/new_store_api/models/package_option_dimensions.rb +85 -0
- data/lib/new_store_api/models/package_option_weight.rb +68 -0
- data/lib/new_store_api/models/package_tracking.rb +104 -0
- data/lib/new_store_api/models/package_type_response.rb +87 -0
- data/lib/new_store_api/models/package_types_response.rb +69 -0
- data/lib/new_store_api/models/package_weight.rb +68 -0
- data/lib/new_store_api/models/packing_time_duration.rb +74 -0
- data/lib/new_store_api/models/paginated_response.rb +77 -0
- data/lib/new_store_api/models/pagination_info.rb +77 -0
- data/lib/new_store_api/models/patch_import_request.rb +63 -0
- data/lib/new_store_api/models/payment.rb +77 -0
- data/lib/new_store_api/models/payment1.rb +87 -0
- data/lib/new_store_api/models/payment_link_get_response.rb +90 -0
- data/lib/new_store_api/models/payment_link_request.rb +101 -0
- data/lib/new_store_api/models/payment_link_response.rb +81 -0
- data/lib/new_store_api/models/payment_status_enum.rb +36 -0
- data/lib/new_store_api/models/percentage_discount.rb +169 -0
- data/lib/new_store_api/models/period_type_enum.rb +48 -0
- data/lib/new_store_api/models/permalink_response.rb +72 -0
- data/lib/new_store_api/models/permission.rb +88 -0
- data/lib/new_store_api/models/platform_event_dto.rb +125 -0
- data/lib/new_store_api/models/platform_status_enum.rb +44 -0
- data/lib/new_store_api/models/platform_status_response.rb +62 -0
- data/lib/new_store_api/models/posnet_online_command_log_v1_dto.rb +135 -0
- data/lib/new_store_api/models/posnet_online_counters_v1_dto.rb +166 -0
- data/lib/new_store_api/models/posnet_online_printer_model_enum.rb +44 -0
- data/lib/new_store_api/models/post_charge_request.rb +71 -0
- data/lib/new_store_api/models/post_charge_response.rb +62 -0
- data/lib/new_store_api/models/post_client_request.rb +90 -0
- data/lib/new_store_api/models/post_client_response.rb +86 -0
- data/lib/new_store_api/models/post_roles_request.rb +77 -0
- data/lib/new_store_api/models/post_support_users_request.rb +90 -0
- data/lib/new_store_api/models/post_users_request.rb +123 -0
- data/lib/new_store_api/models/presigned_url_request.rb +60 -0
- data/lib/new_store_api/models/presigned_url_response.rb +60 -0
- data/lib/new_store_api/models/price1.rb +87 -0
- data/lib/new_store_api/models/price_override.rb +88 -0
- data/lib/new_store_api/models/pricing.rb +83 -0
- data/lib/new_store_api/models/pricing_method_enum.rb +36 -0
- data/lib/new_store_api/models/problem.rb +161 -0
- data/lib/new_store_api/models/processor_metadata.rb +75 -0
- data/lib/new_store_api/models/product.rb +215 -0
- data/lib/new_store_api/models/product1.rb +274 -0
- data/lib/new_store_api/models/product_attributes.rb +116 -0
- data/lib/new_store_api/models/profile.rb +107 -0
- data/lib/new_store_api/models/profile_deleted.rb +79 -0
- data/lib/new_store_api/models/profile_deletion_request.rb +60 -0
- data/lib/new_store_api/models/profile_response.rb +176 -0
- data/lib/new_store_api/models/profiles.rb +77 -0
- data/lib/new_store_api/models/provider.rb +71 -0
- data/lib/new_store_api/models/provider1_enum.rb +36 -0
- data/lib/new_store_api/models/provider_rate_schema.rb +135 -0
- data/lib/new_store_api/models/provider_rate_shipping_type_enum.rb +40 -0
- data/lib/new_store_api/models/put_roles_by_id_request.rb +77 -0
- data/lib/new_store_api/models/put_routing_ruleset_response.rb +75 -0
- data/lib/new_store_api/models/put_routing_ruleset_response1.rb +75 -0
- data/lib/new_store_api/models/put_users_by_id_request.rb +105 -0
- data/lib/new_store_api/models/quotation_dto.rb +160 -0
- data/lib/new_store_api/models/quotation_item_dto.rb +264 -0
- data/lib/new_store_api/models/quotation_result_dto.rb +152 -0
- data/lib/new_store_api/models/quotation_tax_rate_dto.rb +117 -0
- data/lib/new_store_api/models/quotation_totals_dto.rb +154 -0
- data/lib/new_store_api/models/reason_code_init.rb +68 -0
- data/lib/new_store_api/models/reason_code_patch.rb +60 -0
- data/lib/new_store_api/models/reason_enum.rb +41 -0
- data/lib/new_store_api/models/reason_type_enum.rb +37 -0
- data/lib/new_store_api/models/recipients.rb +82 -0
- data/lib/new_store_api/models/registration_request.rb +98 -0
- data/lib/new_store_api/models/registration_response.rb +100 -0
- data/lib/new_store_api/models/rejected_rerouting_settings.rb +83 -0
- data/lib/new_store_api/models/remove.rb +88 -0
- data/lib/new_store_api/models/remove_item_response_body.rb +71 -0
- data/lib/new_store_api/models/replace_provider_rate_schema.rb +127 -0
- data/lib/new_store_api/models/request.rb +116 -0
- data/lib/new_store_api/models/request_context.rb +111 -0
- data/lib/new_store_api/models/request_create_bookings.rb +137 -0
- data/lib/new_store_api/models/request_create_manifest.rb +60 -0
- data/lib/new_store_api/models/request_package.rb +106 -0
- data/lib/new_store_api/models/request_package_customs.rb +73 -0
- data/lib/new_store_api/models/request_recipient_address.rb +167 -0
- data/lib/new_store_api/models/request_service_level_rates.rb +107 -0
- data/lib/new_store_api/models/request_shipping_option.rb +142 -0
- data/lib/new_store_api/models/rerouted.rb +75 -0
- data/lib/new_store_api/models/reservation.rb +100 -0
- data/lib/new_store_api/models/reservation_config_response.rb +84 -0
- data/lib/new_store_api/models/reservation_config_update.rb +92 -0
- data/lib/new_store_api/models/reservation_details_response_v1.rb +173 -0
- data/lib/new_store_api/models/reservation_details_response_v2.rb +185 -0
- data/lib/new_store_api/models/reservation_item_details_response.rb +106 -0
- data/lib/new_store_api/models/reservation_item_request.rb +60 -0
- data/lib/new_store_api/models/reservation_item_status_enum.rb +48 -0
- data/lib/new_store_api/models/reservation_item_summary_response.rb +68 -0
- data/lib/new_store_api/models/reservation_item_update.rb +81 -0
- data/lib/new_store_api/models/reservation_status_enum.rb +48 -0
- data/lib/new_store_api/models/reservation_summary_response_v1.rb +168 -0
- data/lib/new_store_api/models/reservation_summary_response_v2.rb +178 -0
- data/lib/new_store_api/models/reservation_update.rb +60 -0
- data/lib/new_store_api/models/reservations_pagination_info.rb +96 -0
- data/lib/new_store_api/models/response_booked_package.rb +194 -0
- data/lib/new_store_api/models/response_booked_package_transaction.rb +81 -0
- data/lib/new_store_api/models/response_create_bookings.rb +87 -0
- data/lib/new_store_api/models/response_create_manifest.rb +78 -0
- data/lib/new_store_api/models/response_createconfigurationbyname.rb +62 -0
- data/lib/new_store_api/models/response_createjob.rb +110 -0
- data/lib/new_store_api/models/response_delivery_window.rb +81 -0
- data/lib/new_store_api/models/response_service_level_rates.rb +69 -0
- data/lib/new_store_api/models/response_shipping_option.rb +155 -0
- data/lib/new_store_api/models/response_show_bookings.rb +77 -0
- data/lib/new_store_api/models/response_showconfigurationbyname.rb +62 -0
- data/lib/new_store_api/models/response_unit_item.rb +84 -0
- data/lib/new_store_api/models/retrieve_bulk_email_lookup_request.rb +60 -0
- data/lib/new_store_api/models/retrieve_bulk_email_lookup_response.rb +70 -0
- data/lib/new_store_api/models/return_processed_dto.rb +303 -0
- data/lib/new_store_api/models/return_receipt_response.rb +150 -0
- data/lib/new_store_api/models/reverse_calculation_quotation_item_dto.rb +336 -0
- data/lib/new_store_api/models/reverse_calculation_transaction_item_dto.rb +327 -0
- data/lib/new_store_api/models/role.rb +135 -0
- data/lib/new_store_api/models/role_item.rb +98 -0
- data/lib/new_store_api/models/route_to.rb +76 -0
- data/lib/new_store_api/models/routes.rb +85 -0
- data/lib/new_store_api/models/routes_v1.rb +75 -0
- data/lib/new_store_api/models/routing_decision_trace.rb +128 -0
- data/lib/new_store_api/models/routing_decision_trace_picked.rb +68 -0
- data/lib/new_store_api/models/routing_insights.rb +60 -0
- data/lib/new_store_api/models/routing_insights_activity.rb +141 -0
- data/lib/new_store_api/models/routing_insights_correlation.rb +163 -0
- data/lib/new_store_api/models/routing_insights_data.rb +128 -0
- data/lib/new_store_api/models/routing_insights_fulfillment_requests.rb +109 -0
- data/lib/new_store_api/models/routing_insights_routing_strategies.rb +85 -0
- data/lib/new_store_api/models/routing_insights_routing_strategy1.rb +86 -0
- data/lib/new_store_api/models/routing_insights_service_levels.rb +83 -0
- data/lib/new_store_api/models/routing_insights_strategy_type_enum.rb +44 -0
- data/lib/new_store_api/models/routing_options_request.rb +123 -0
- data/lib/new_store_api/models/routing_options_response.rb +92 -0
- data/lib/new_store_api/models/routing_ruleset.rb +95 -0
- data/lib/new_store_api/models/routing_ruleset1.rb +122 -0
- data/lib/new_store_api/models/routing_simulation_line_item.rb +80 -0
- data/lib/new_store_api/models/routing_simulation_request_payload.rb +98 -0
- data/lib/new_store_api/models/routing_simulation_response_payload.rb +111 -0
- data/lib/new_store_api/models/routing_status_enum.rb +72 -0
- data/lib/new_store_api/models/routing_strategy.rb +74 -0
- data/lib/new_store_api/models/routing_strategy1.rb +109 -0
- data/lib/new_store_api/models/rules.rb +81 -0
- data/lib/new_store_api/models/sales_order.rb +163 -0
- data/lib/new_store_api/models/sales_order_address.rb +207 -0
- data/lib/new_store_api/models/sales_order_cancellation_request.rb +70 -0
- data/lib/new_store_api/models/sales_order_cancellation_response.rb +77 -0
- data/lib/new_store_api/models/sales_order_channel_type_enum.rb +36 -0
- data/lib/new_store_api/models/sales_order_customer.rb +91 -0
- data/lib/new_store_api/models/sales_order_detail.rb +247 -0
- data/lib/new_store_api/models/sales_order_detail_response.rb +390 -0
- data/lib/new_store_api/models/sales_order_discount.rb +123 -0
- data/lib/new_store_api/models/sales_order_extended_attribute.rb +68 -0
- data/lib/new_store_api/models/sales_order_external_identifier.rb +71 -0
- data/lib/new_store_api/models/sales_order_fulfillment.rb +71 -0
- data/lib/new_store_api/models/sales_order_fulfillment_type_enum.rb +49 -0
- data/lib/new_store_api/models/sales_order_gift_wrapping.rb +90 -0
- data/lib/new_store_api/models/sales_order_item.rb +111 -0
- data/lib/new_store_api/models/sales_order_item_payment_history.rb +103 -0
- data/lib/new_store_api/models/sales_order_item_shipment.rb +107 -0
- data/lib/new_store_api/models/sales_order_item_status_enum.rb +54 -0
- data/lib/new_store_api/models/sales_order_item_v2.rb +134 -0
- data/lib/new_store_api/models/sales_order_items1.rb +127 -0
- data/lib/new_store_api/models/sales_order_list_response.rb +69 -0
- data/lib/new_store_api/models/sales_order_list_response_v2.rb +79 -0
- data/lib/new_store_api/models/sales_order_origin_enum.rb +36 -0
- data/lib/new_store_api/models/sales_order_payment_method_enum.rb +40 -0
- data/lib/new_store_api/models/sales_order_price1.rb +129 -0
- data/lib/new_store_api/models/sales_order_prices_request.rb +76 -0
- data/lib/new_store_api/models/sales_order_prices_response.rb +92 -0
- data/lib/new_store_api/models/sales_order_product_attributes.rb +114 -0
- data/lib/new_store_api/models/sales_order_serial_numbers_request.rb +69 -0
- data/lib/new_store_api/models/sales_order_serial_numbers_request_item.rb +80 -0
- data/lib/new_store_api/models/sales_order_serial_numbers_request_item_epc.rb +78 -0
- data/lib/new_store_api/models/sales_order_status_enum.rb +48 -0
- data/lib/new_store_api/models/sales_order_tax_line.rb +90 -0
- data/lib/new_store_api/models/sales_order_tax_method_enum.rb +36 -0
- data/lib/new_store_api/models/sales_order_totals.rb +121 -0
- data/lib/new_store_api/models/sales_order_v2.rb +247 -0
- data/lib/new_store_api/models/schema.rb +71 -0
- data/lib/new_store_api/models/schema_for_bulk_cancel_orders_request.rb +79 -0
- data/lib/new_store_api/models/schema_for_bulk_cancel_orders_response.rb +77 -0
- data/lib/new_store_api/models/section_enum.rb +44 -0
- data/lib/new_store_api/models/service_level_rate.rb +131 -0
- data/lib/new_store_api/models/service_levels.rb +73 -0
- data/lib/new_store_api/models/session_token_response.rb +96 -0
- data/lib/new_store_api/models/set_fix_service_level_shipping_price.rb +74 -0
- data/lib/new_store_api/models/settings_response.rb +69 -0
- data/lib/new_store_api/models/shipment_limits_request.rb +88 -0
- data/lib/new_store_api/models/shipment_limits_response.rb +69 -0
- data/lib/new_store_api/models/shipping_address.rb +111 -0
- data/lib/new_store_api/models/shipping_offer_update_settings.rb +82 -0
- data/lib/new_store_api/models/shipping_option_audit.rb +102 -0
- data/lib/new_store_api/models/shipping_type_enum.rb +44 -0
- data/lib/new_store_api/models/shop.rb +68 -0
- data/lib/new_store_api/models/shorting_model.rb +139 -0
- data/lib/new_store_api/models/shorting_type_enum.rb +36 -0
- data/lib/new_store_api/models/show_provider_rates_schema.rb +69 -0
- data/lib/new_store_api/models/signature_at_v1_dto.rb +257 -0
- data/lib/new_store_api/models/signature_be_v1_dto.rb +135 -0
- data/lib/new_store_api/models/signature_de_v1_dto.rb +257 -0
- data/lib/new_store_api/models/signature_dummy_v1_dto.rb +90 -0
- data/lib/new_store_api/models/signature_es_v1_dto.rb +105 -0
- data/lib/new_store_api/models/signature_fr_v1_dto.rb +295 -0
- data/lib/new_store_api/models/signature_ie_v1_dto.rb +165 -0
- data/lib/new_store_api/models/signature_in_v1_dto.rb +105 -0
- data/lib/new_store_api/models/signature_it_v1_dto.rb +182 -0
- data/lib/new_store_api/models/signature_item_at_v1_dto.rb +115 -0
- data/lib/new_store_api/models/signature_item_de_v1_dto.rb +115 -0
- data/lib/new_store_api/models/signature_item_fr_v1_dto.rb +115 -0
- data/lib/new_store_api/models/signature_no_v1_dto.rb +126 -0
- data/lib/new_store_api/models/signature_pl_v1_dto.rb +101 -0
- data/lib/new_store_api/models/signature_pr_v1_dto.rb +161 -0
- data/lib/new_store_api/models/signature_pt_v1_dto.rb +129 -0
- data/lib/new_store_api/models/signature_response_v1_dto.rb +208 -0
- data/lib/new_store_api/models/signature_se_v1_dto.rb +122 -0
- data/lib/new_store_api/models/signature_th_v1_dto.rb +105 -0
- data/lib/new_store_api/models/signature_version_ie_enum.rb +26 -0
- data/lib/new_store_api/models/simulation_routed_item.rb +80 -0
- data/lib/new_store_api/models/sort_options_enum.rb +44 -0
- data/lib/new_store_api/models/source_enum.rb +36 -0
- data/lib/new_store_api/models/state_enum.rb +37 -0
- data/lib/new_store_api/models/status11_enum.rb +50 -0
- data/lib/new_store_api/models/status1_enum.rb +52 -0
- data/lib/new_store_api/models/status21_enum.rb +40 -0
- data/lib/new_store_api/models/status2_enum.rb +49 -0
- data/lib/new_store_api/models/status_enum.rb +44 -0
- data/lib/new_store_api/models/stock_product_availability_request.rb +81 -0
- data/lib/new_store_api/models/stock_product_availability_response.rb +77 -0
- data/lib/new_store_api/models/stock_unallocated_items_request.rb +69 -0
- data/lib/new_store_api/models/stock_unallocated_items_response.rb +70 -0
- data/lib/new_store_api/models/store_config_create_dto.rb +173 -0
- data/lib/new_store_api/models/store_config_dto.rb +292 -0
- data/lib/new_store_api/models/store_config_list_dto.rb +89 -0
- data/lib/new_store_api/models/store_config_update_dto.rb +173 -0
- data/lib/new_store_api/models/store_config_update_it_v1_dto.rb +118 -0
- data/lib/new_store_api/models/store_config_update_pl_v1_dto.rb +111 -0
- data/lib/new_store_api/models/store_config_update_v1_dto.rb +95 -0
- data/lib/new_store_api/models/store_config_v1_dto.rb +80 -0
- data/lib/new_store_api/models/store_create_v1_dto.rb +98 -0
- data/lib/new_store_api/models/store_list_v1_dto.rb +83 -0
- data/lib/new_store_api/models/store_update_v1_dto.rb +97 -0
- data/lib/new_store_api/models/store_v1_dto.rb +126 -0
- data/lib/new_store_api/models/strategies.rb +71 -0
- data/lib/new_store_api/models/subscription.rb +72 -0
- data/lib/new_store_api/models/subscription_request.rb +88 -0
- data/lib/new_store_api/models/subscription_response.rb +91 -0
- data/lib/new_store_api/models/subscriptions_response.rb +71 -0
- data/lib/new_store_api/models/support_access_details.rb +99 -0
- data/lib/new_store_api/models/supported_identity_provider.rb +71 -0
- data/lib/new_store_api/models/supported_identity_providers.rb +71 -0
- data/lib/new_store_api/models/swap_to.rb +223 -0
- data/lib/new_store_api/models/swapped.rb +74 -0
- data/lib/new_store_api/models/sync_job_response.rb +136 -0
- data/lib/new_store_api/models/tag_response.rb +130 -0
- data/lib/new_store_api/models/task_package.rb +77 -0
- data/lib/new_store_api/models/task_package_item.rb +103 -0
- data/lib/new_store_api/models/tax_calculation_strategy_enum.rb +48 -0
- data/lib/new_store_api/models/tax_exemption.rb +75 -0
- data/lib/new_store_api/models/tax_exemption_classes_dto.rb +69 -0
- data/lib/new_store_api/models/tax_exemption_country_code_enum.rb +1013 -0
- data/lib/new_store_api/models/tax_information.rb +69 -0
- data/lib/new_store_api/models/tax_line.rb +116 -0
- data/lib/new_store_api/models/tax_rate_dto.rb +121 -0
- data/lib/new_store_api/models/tax_service_error_code_enum.rb +117 -0
- data/lib/new_store_api/models/tax_status_enum.rb +42 -0
- data/lib/new_store_api/models/tax_totals_dto.rb +149 -0
- data/lib/new_store_api/models/tenant_config_create_dto.rb +168 -0
- data/lib/new_store_api/models/tenant_config_dto.rb +230 -0
- data/lib/new_store_api/models/tenant_config_update_dto.rb +171 -0
- data/lib/new_store_api/models/tenant_config_v1_dto.rb +129 -0
- data/lib/new_store_api/models/timezone_enum.rb +2404 -0
- data/lib/new_store_api/models/token_request.rb +62 -0
- data/lib/new_store_api/models/token_response.rb +62 -0
- data/lib/new_store_api/models/tokens_request.rb +60 -0
- data/lib/new_store_api/models/tokens_response.rb +69 -0
- data/lib/new_store_api/models/total_price_currency_enum.rb +753 -0
- data/lib/new_store_api/models/tracking_status_enum.rb +64 -0
- data/lib/new_store_api/models/transaction_address_dto.rb +144 -0
- data/lib/new_store_api/models/transaction_dto.rb +193 -0
- data/lib/new_store_api/models/transaction_item_dto.rb +259 -0
- data/lib/new_store_api/models/transaction_min_v1_dto.rb +170 -0
- data/lib/new_store_api/models/transaction_signature_strategy_enum.rb +56 -0
- data/lib/new_store_api/models/transaction_state_enum.rb +40 -0
- data/lib/new_store_api/models/transaction_tax_rate_dto.rb +117 -0
- data/lib/new_store_api/models/transaction_type_enum.rb +36 -0
- data/lib/new_store_api/models/transaction_update_dto.rb +64 -0
- data/lib/new_store_api/models/transfer_document_response.rb +71 -0
- data/lib/new_store_api/models/transfer_transaction_line_item_response.rb +71 -0
- data/lib/new_store_api/models/type11_enum.rb +36 -0
- data/lib/new_store_api/models/type12_enum.rb +38 -0
- data/lib/new_store_api/models/type1_enum.rb +36 -0
- data/lib/new_store_api/models/type2_enum.rb +37 -0
- data/lib/new_store_api/models/update_address_request.rb +171 -0
- data/lib/new_store_api/models/update_identity_provider_request.rb +86 -0
- data/lib/new_store_api/models/update_oidc_identity_provider_config.rb +74 -0
- data/lib/new_store_api/models/update_package_type_request.rb +86 -0
- data/lib/new_store_api/models/update_profile_request.rb +160 -0
- data/lib/new_store_api/models/update_saml_identity_provider_config.rb +75 -0
- data/lib/new_store_api/models/update_service_level_request.rb +61 -0
- data/lib/new_store_api/models/update_tag_request.rb +72 -0
- data/lib/new_store_api/models/updated_item_status_enum.rb +36 -0
- data/lib/new_store_api/models/updated_reservation_status_enum.rb +36 -0
- data/lib/new_store_api/models/use_customizable_provider_rates.rb +74 -0
- data/lib/new_store_api/models/use_prioritized_provider_rates.rb +74 -0
- data/lib/new_store_api/models/user.rb +209 -0
- data/lib/new_store_api/models/v0_orders_request.rb +62 -0
- data/lib/new_store_api/models/value.rb +123 -0
- data/lib/new_store_api/models/vertex_administrative_origin_create_dto.rb +129 -0
- data/lib/new_store_api/models/vertex_administrative_origin_dto.rb +175 -0
- data/lib/new_store_api/models/vertex_administrative_origin_update_dto.rb +139 -0
- data/lib/new_store_api/models/vertex_auth_login_type_enum.rb +39 -0
- data/lib/new_store_api/models/vertex_config_create_dto.rb +227 -0
- data/lib/new_store_api/models/vertex_config_dto.rb +253 -0
- data/lib/new_store_api/models/vertex_config_update_dto.rb +230 -0
- data/lib/new_store_api/models/vertex_exemption_class_item_create_dto.rb +105 -0
- data/lib/new_store_api/models/vertex_exemption_class_item_dto.rb +131 -0
- data/lib/new_store_api/models/vertex_exemption_class_item_update_dto.rb +105 -0
- data/lib/new_store_api/models/vertex_flexible_field_config_create_dto.rb +95 -0
- data/lib/new_store_api/models/vertex_flexible_field_config_dto.rb +121 -0
- data/lib/new_store_api/models/vertex_flexible_field_config_update_dto.rb +99 -0
- data/lib/new_store_api/models/vertex_target_field_enum.rb +40 -0
- data/lib/new_store_api/models/warning.rb +85 -0
- data/lib/new_store_api/models/weight_unit_enum.rb +44 -0
- data/lib/new_store_api/models/write_accepted.rb +60 -0
- data/lib/new_store_api/models/zone_response.rb +68 -0
- data/lib/new_store_api/utilities/date_time_helper.rb +11 -0
- data/lib/new_store_api/utilities/file_wrapper.rb +28 -0
- data/lib/new_store_api/utilities/union_type_lookup.rb +578 -0
- data/lib/new_store_api.rb +850 -0
- metadata +903 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# new_store_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for NewStore by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module NewStoreApi
|
|
7
|
+
# Code for the current error state of the printer.
|
|
8
|
+
class FiscalPrinterErrorStateEnum
|
|
9
|
+
FISCAL_PRINTER_ERROR_STATE_ENUM = [
|
|
10
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_UNEXPECTED_ERROR
|
|
11
|
+
F11N_FISCAL_PRINTER_UNEXPECTED_ERROR = 'f11n_fiscal_printer_unexpected_error'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for
|
|
14
|
+
# F11N_FISCAL_PRINTER_REMOTE_EXECUTION_ERROR
|
|
15
|
+
F11N_FISCAL_PRINTER_REMOTE_EXECUTION_ERROR = 'f11n_fiscal_printer_remote_execution_error'.freeze,
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for
|
|
18
|
+
# F11N_FISCAL_PRINTER_REMOTE_EXECUTION_TIMEOUT
|
|
19
|
+
F11N_FISCAL_PRINTER_REMOTE_EXECUTION_TIMEOUT = 'f11n_fiscal_printer_remote_execution_timeout'.freeze,
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for
|
|
22
|
+
# F11N_FISCAL_PRINTER_COMMAND_EXECUTION_ERROR
|
|
23
|
+
F11N_FISCAL_PRINTER_COMMAND_EXECUTION_ERROR = 'f11n_fiscal_printer_command_execution_error'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for
|
|
26
|
+
# F11N_FISCAL_PRINTER_COMMAND_EXECUTION_FAILED
|
|
27
|
+
F11N_FISCAL_PRINTER_COMMAND_EXECUTION_FAILED = 'f11n_fiscal_printer_command_execution_failed'.freeze,
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for
|
|
30
|
+
# F11N_FISCAL_PRINTER_COMMAND_EXECUTION_TIMEOUT
|
|
31
|
+
F11N_FISCAL_PRINTER_COMMAND_EXECUTION_TIMEOUT = 'f11n_fiscal_printer_command_execution_timeout'.freeze,
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_CONNECTION_ERROR
|
|
34
|
+
F11N_FISCAL_PRINTER_CONNECTION_ERROR = 'f11n_fiscal_printer_connection_error'.freeze,
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for
|
|
37
|
+
# F11N_FISCAL_PRINTER_CONNECTION_TIMEOUT
|
|
38
|
+
F11N_FISCAL_PRINTER_CONNECTION_TIMEOUT = 'f11n_fiscal_printer_connection_timeout'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for
|
|
41
|
+
# F11N_FISCAL_PRINTER_MISSING_CONFIGURATION
|
|
42
|
+
F11N_FISCAL_PRINTER_MISSING_CONFIGURATION = 'f11n_fiscal_printer_missing_configuration'.freeze,
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for
|
|
45
|
+
# F11N_FISCAL_PRINTER_SERIAL_NUMBER_MISMATCH
|
|
46
|
+
F11N_FISCAL_PRINTER_SERIAL_NUMBER_MISMATCH = 'f11n_fiscal_printer_serial_number_mismatch'.freeze,
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for
|
|
49
|
+
# F11N_FISCAL_PRINTER_TRANSACTION_PENDING
|
|
50
|
+
F11N_FISCAL_PRINTER_TRANSACTION_PENDING = 'f11n_fiscal_printer_transaction_pending'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_PRINTOUT_PENDING
|
|
53
|
+
F11N_FISCAL_PRINTER_PRINTOUT_PENDING = 'f11n_fiscal_printer_printout_pending'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_MECHANISM_ERROR
|
|
56
|
+
F11N_FISCAL_PRINTER_MECHANISM_ERROR = 'f11n_fiscal_printer_mechanism_error'.freeze,
|
|
57
|
+
|
|
58
|
+
# TODO: Write general description for
|
|
59
|
+
# F11N_FISCAL_PRINTER_WAITING_FOR_USER_ACTION
|
|
60
|
+
F11N_FISCAL_PRINTER_WAITING_FOR_USER_ACTION = 'f11n_fiscal_printer_waiting_for_user_action'.freeze,
|
|
61
|
+
|
|
62
|
+
# TODO: Write general description for
|
|
63
|
+
# F11N_FISCAL_PRINTER_COMMAND_QUEUE_NOT_EMPTY
|
|
64
|
+
F11N_FISCAL_PRINTER_COMMAND_QUEUE_NOT_EMPTY = 'f11n_fiscal_printer_command_queue_not_empty'.freeze,
|
|
65
|
+
|
|
66
|
+
# TODO: Write general description for
|
|
67
|
+
# F11N_FISCAL_PRINTER_PAPER_RUNNING_OUT
|
|
68
|
+
F11N_FISCAL_PRINTER_PAPER_RUNNING_OUT = 'f11n_fiscal_printer_paper_running_out'.freeze,
|
|
69
|
+
|
|
70
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_OUT_OF_PAPER
|
|
71
|
+
F11N_FISCAL_PRINTER_OUT_OF_PAPER = 'f11n_fiscal_printer_out_of_paper'.freeze,
|
|
72
|
+
|
|
73
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_COVER_OPEN
|
|
74
|
+
F11N_FISCAL_PRINTER_COVER_OPEN = 'f11n_fiscal_printer_cover_open'.freeze,
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_POWER_FAILURE
|
|
77
|
+
F11N_FISCAL_PRINTER_POWER_FAILURE = 'f11n_fiscal_printer_power_failure'.freeze,
|
|
78
|
+
|
|
79
|
+
# TODO: Write general description for
|
|
80
|
+
# F11N_FISCAL_PRINTER_UNEXPECTED_TEMPRATURE
|
|
81
|
+
F11N_FISCAL_PRINTER_UNEXPECTED_TEMPRATURE = 'f11n_fiscal_printer_unexpected_temprature'.freeze,
|
|
82
|
+
|
|
83
|
+
# TODO: Write general description for
|
|
84
|
+
# F11N_FISCAL_PRINTER_NOT_IN_FISCAL_MODE
|
|
85
|
+
F11N_FISCAL_PRINTER_NOT_IN_FISCAL_MODE = 'f11n_fiscal_printer_not_in_fiscal_mode'.freeze,
|
|
86
|
+
|
|
87
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_IN_FISCAL_MODE
|
|
88
|
+
F11N_FISCAL_PRINTER_IN_FISCAL_MODE = 'f11n_fiscal_printer_in_fiscal_mode'.freeze,
|
|
89
|
+
|
|
90
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_AMOUNT_ERROR
|
|
91
|
+
F11N_FISCAL_PRINTER_AMOUNT_ERROR = 'f11n_fiscal_printer_amount_error'.freeze,
|
|
92
|
+
|
|
93
|
+
# TODO: Write general description for
|
|
94
|
+
# F11N_FISCAL_PRINTER_AUTHORIZATION_EXPIRED
|
|
95
|
+
F11N_FISCAL_PRINTER_AUTHORIZATION_EXPIRED = 'f11n_fiscal_printer_authorization_expired'.freeze,
|
|
96
|
+
|
|
97
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_CLOCK_ERROR
|
|
98
|
+
F11N_FISCAL_PRINTER_CLOCK_ERROR = 'f11n_fiscal_printer_clock_error'.freeze,
|
|
99
|
+
|
|
100
|
+
# TODO: Write general description for
|
|
101
|
+
# F11N_FISCAL_PRINTER_CONFIGURATION_ERROR
|
|
102
|
+
F11N_FISCAL_PRINTER_CONFIGURATION_ERROR = 'f11n_fiscal_printer_configuration_error'.freeze,
|
|
103
|
+
|
|
104
|
+
# TODO: Write general description for
|
|
105
|
+
# F11N_FISCAL_PRINTER_DISCOUNT_NOT_ALLOWED
|
|
106
|
+
F11N_FISCAL_PRINTER_DISCOUNT_NOT_ALLOWED = 'f11n_fiscal_printer_discount_not_allowed'.freeze,
|
|
107
|
+
|
|
108
|
+
# TODO: Write general description for
|
|
109
|
+
# F11N_FISCAL_PRINTER_FISCAL_MEMORY_ERROR
|
|
110
|
+
F11N_FISCAL_PRINTER_FISCAL_MEMORY_ERROR = 'f11n_fiscal_printer_fiscal_memory_error'.freeze,
|
|
111
|
+
|
|
112
|
+
# TODO: Write general description for
|
|
113
|
+
# F11N_FISCAL_PRINTER_FISCAL_MEMORY_FULL
|
|
114
|
+
F11N_FISCAL_PRINTER_FISCAL_MEMORY_FULL = 'f11n_fiscal_printer_fiscal_memory_full'.freeze,
|
|
115
|
+
|
|
116
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_ITEM_BLOCKED
|
|
117
|
+
F11N_FISCAL_PRINTER_ITEM_BLOCKED = 'f11n_fiscal_printer_item_blocked'.freeze,
|
|
118
|
+
|
|
119
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_LOW_BATTERY
|
|
120
|
+
F11N_FISCAL_PRINTER_LOW_BATTERY = 'f11n_fiscal_printer_low_battery'.freeze,
|
|
121
|
+
|
|
122
|
+
# TODO: Write general description for
|
|
123
|
+
# F11N_FISCAL_PRINTER_VAT_RATE_NOT_ALLOWED
|
|
124
|
+
F11N_FISCAL_PRINTER_VAT_RATE_NOT_ALLOWED = 'f11n_fiscal_printer_vat_rate_not_allowed'.freeze,
|
|
125
|
+
|
|
126
|
+
# TODO: Write general description for
|
|
127
|
+
# F11N_FISCAL_PRINTER_Z_REPORT_REQUIRED
|
|
128
|
+
F11N_FISCAL_PRINTER_Z_REPORT_REQUIRED = 'f11n_fiscal_printer_z_report_required'.freeze,
|
|
129
|
+
|
|
130
|
+
# TODO: Write general description for
|
|
131
|
+
# F11N_FISCAL_PRINTER_UNSUPPORTED_REPORT_TYPE
|
|
132
|
+
F11N_FISCAL_PRINTER_UNSUPPORTED_REPORT_TYPE = 'f11n_fiscal_printer_unsupported_report_type'.freeze,
|
|
133
|
+
|
|
134
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_PROTOCOL_ERROR
|
|
135
|
+
F11N_FISCAL_PRINTER_PROTOCOL_ERROR = 'f11n_fiscal_printer_protocol_error'.freeze,
|
|
136
|
+
|
|
137
|
+
# TODO: Write general description for
|
|
138
|
+
# F11N_FISCAL_PRINTER_INTERNAL_ERROR_RESTART_NEEDED
|
|
139
|
+
F11N_FISCAL_PRINTER_INTERNAL_ERROR_RESTART_NEEDED = 'f11n_fiscal_printer_internal_error_restart_needed'.freeze,
|
|
140
|
+
|
|
141
|
+
# TODO: Write general description for F11N_FISCAL_PRINTER_REJECTED_REQUEST
|
|
142
|
+
F11N_FISCAL_PRINTER_REJECTED_REQUEST = 'f11n_fiscal_printer_rejected_request'.freeze,
|
|
143
|
+
|
|
144
|
+
# TODO: Write general description for
|
|
145
|
+
# F11N_FISCAL_PRINTER_MAX_ALLOWED_OPERATIONS_EXCEEDED
|
|
146
|
+
F11N_FISCAL_PRINTER_MAX_ALLOWED_OPERATIONS_EXCEEDED = 'f11n_fiscal_printer_max_allowed_operations_exceeded'.freeze,
|
|
147
|
+
|
|
148
|
+
# TODO: Write general description for F11N_INVALID_LOTTERY_CODE
|
|
149
|
+
F11N_INVALID_LOTTERY_CODE = 'f11n_invalid_lottery_code'.freeze,
|
|
150
|
+
|
|
151
|
+
# TODO: Write general description for F11N_REPORT_NOT_GENERATED
|
|
152
|
+
F11N_REPORT_NOT_GENERATED = 'f11n_report_not_generated'.freeze
|
|
153
|
+
].freeze
|
|
154
|
+
|
|
155
|
+
def self.validate(value)
|
|
156
|
+
return false if value.nil?
|
|
157
|
+
|
|
158
|
+
FISCAL_PRINTER_ERROR_STATE_ENUM.include?(value)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def self.from_value(value, default_value = F11N_FISCAL_PRINTER_UNEXPECTED_ERROR)
|
|
162
|
+
return default_value if value.nil?
|
|
163
|
+
|
|
164
|
+
str = value.to_s.strip
|
|
165
|
+
|
|
166
|
+
case str.downcase
|
|
167
|
+
when 'f11n_fiscal_printer_unexpected_error' then F11N_FISCAL_PRINTER_UNEXPECTED_ERROR
|
|
168
|
+
when 'f11n_fiscal_printer_remote_execution_error' then F11N_FISCAL_PRINTER_REMOTE_EXECUTION_ERROR
|
|
169
|
+
when 'f11n_fiscal_printer_remote_execution_timeout' then F11N_FISCAL_PRINTER_REMOTE_EXECUTION_TIMEOUT
|
|
170
|
+
when 'f11n_fiscal_printer_command_execution_error' then F11N_FISCAL_PRINTER_COMMAND_EXECUTION_ERROR
|
|
171
|
+
when 'f11n_fiscal_printer_command_execution_failed' then F11N_FISCAL_PRINTER_COMMAND_EXECUTION_FAILED
|
|
172
|
+
when 'f11n_fiscal_printer_command_execution_timeout' then F11N_FISCAL_PRINTER_COMMAND_EXECUTION_TIMEOUT
|
|
173
|
+
when 'f11n_fiscal_printer_connection_error' then F11N_FISCAL_PRINTER_CONNECTION_ERROR
|
|
174
|
+
when 'f11n_fiscal_printer_connection_timeout' then F11N_FISCAL_PRINTER_CONNECTION_TIMEOUT
|
|
175
|
+
when 'f11n_fiscal_printer_missing_configuration' then F11N_FISCAL_PRINTER_MISSING_CONFIGURATION
|
|
176
|
+
when 'f11n_fiscal_printer_serial_number_mismatch' then F11N_FISCAL_PRINTER_SERIAL_NUMBER_MISMATCH
|
|
177
|
+
when 'f11n_fiscal_printer_transaction_pending' then F11N_FISCAL_PRINTER_TRANSACTION_PENDING
|
|
178
|
+
when 'f11n_fiscal_printer_printout_pending' then F11N_FISCAL_PRINTER_PRINTOUT_PENDING
|
|
179
|
+
when 'f11n_fiscal_printer_mechanism_error' then F11N_FISCAL_PRINTER_MECHANISM_ERROR
|
|
180
|
+
when 'f11n_fiscal_printer_waiting_for_user_action' then F11N_FISCAL_PRINTER_WAITING_FOR_USER_ACTION
|
|
181
|
+
when 'f11n_fiscal_printer_command_queue_not_empty' then F11N_FISCAL_PRINTER_COMMAND_QUEUE_NOT_EMPTY
|
|
182
|
+
when 'f11n_fiscal_printer_paper_running_out' then F11N_FISCAL_PRINTER_PAPER_RUNNING_OUT
|
|
183
|
+
when 'f11n_fiscal_printer_out_of_paper' then F11N_FISCAL_PRINTER_OUT_OF_PAPER
|
|
184
|
+
when 'f11n_fiscal_printer_cover_open' then F11N_FISCAL_PRINTER_COVER_OPEN
|
|
185
|
+
when 'f11n_fiscal_printer_power_failure' then F11N_FISCAL_PRINTER_POWER_FAILURE
|
|
186
|
+
when 'f11n_fiscal_printer_unexpected_temprature' then F11N_FISCAL_PRINTER_UNEXPECTED_TEMPRATURE
|
|
187
|
+
when 'f11n_fiscal_printer_not_in_fiscal_mode' then F11N_FISCAL_PRINTER_NOT_IN_FISCAL_MODE
|
|
188
|
+
when 'f11n_fiscal_printer_in_fiscal_mode' then F11N_FISCAL_PRINTER_IN_FISCAL_MODE
|
|
189
|
+
when 'f11n_fiscal_printer_amount_error' then F11N_FISCAL_PRINTER_AMOUNT_ERROR
|
|
190
|
+
when 'f11n_fiscal_printer_authorization_expired' then F11N_FISCAL_PRINTER_AUTHORIZATION_EXPIRED
|
|
191
|
+
when 'f11n_fiscal_printer_clock_error' then F11N_FISCAL_PRINTER_CLOCK_ERROR
|
|
192
|
+
when 'f11n_fiscal_printer_configuration_error' then F11N_FISCAL_PRINTER_CONFIGURATION_ERROR
|
|
193
|
+
when 'f11n_fiscal_printer_discount_not_allowed' then F11N_FISCAL_PRINTER_DISCOUNT_NOT_ALLOWED
|
|
194
|
+
when 'f11n_fiscal_printer_fiscal_memory_error' then F11N_FISCAL_PRINTER_FISCAL_MEMORY_ERROR
|
|
195
|
+
when 'f11n_fiscal_printer_fiscal_memory_full' then F11N_FISCAL_PRINTER_FISCAL_MEMORY_FULL
|
|
196
|
+
when 'f11n_fiscal_printer_item_blocked' then F11N_FISCAL_PRINTER_ITEM_BLOCKED
|
|
197
|
+
when 'f11n_fiscal_printer_low_battery' then F11N_FISCAL_PRINTER_LOW_BATTERY
|
|
198
|
+
when 'f11n_fiscal_printer_vat_rate_not_allowed' then F11N_FISCAL_PRINTER_VAT_RATE_NOT_ALLOWED
|
|
199
|
+
when 'f11n_fiscal_printer_z_report_required' then F11N_FISCAL_PRINTER_Z_REPORT_REQUIRED
|
|
200
|
+
when 'f11n_fiscal_printer_unsupported_report_type' then F11N_FISCAL_PRINTER_UNSUPPORTED_REPORT_TYPE
|
|
201
|
+
when 'f11n_fiscal_printer_protocol_error' then F11N_FISCAL_PRINTER_PROTOCOL_ERROR
|
|
202
|
+
when 'f11n_fiscal_printer_internal_error_restart_needed' then F11N_FISCAL_PRINTER_INTERNAL_ERROR_RESTART_NEEDED
|
|
203
|
+
when 'f11n_fiscal_printer_rejected_request' then F11N_FISCAL_PRINTER_REJECTED_REQUEST
|
|
204
|
+
when 'f11n_fiscal_printer_max_allowed_operations_exceeded' then F11N_FISCAL_PRINTER_MAX_ALLOWED_OPERATIONS_EXCEEDED
|
|
205
|
+
when 'f11n_invalid_lottery_code' then F11N_INVALID_LOTTERY_CODE
|
|
206
|
+
when 'f11n_report_not_generated' then F11N_REPORT_NOT_GENERATED
|
|
207
|
+
else
|
|
208
|
+
default_value
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# new_store_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for NewStore by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module NewStoreApi
|
|
7
|
+
# The fiscal provider id being used.
|
|
8
|
+
class FiscalProviderIdEnum
|
|
9
|
+
FISCAL_PROVIDER_ID_ENUM = [
|
|
10
|
+
# TODO: Write general description for AXENASE
|
|
11
|
+
AXENASE = 'axena-se'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for DUMMY
|
|
14
|
+
DUMMY = 'dummy'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for EPSONIT
|
|
17
|
+
EPSONIT = 'epson-it'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for FISKALTRUSTAT
|
|
20
|
+
FISKALTRUSTAT = 'fiskaltrust-at'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for FISKALTRUSTDE
|
|
23
|
+
FISKALTRUSTDE = 'fiskaltrust-de'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for FISKALTRUSTFR
|
|
26
|
+
FISKALTRUSTFR = 'fiskaltrust-fr'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for NEWSTOREIE
|
|
29
|
+
NEWSTOREIE = 'newstore-ie'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for NEWSTORENO
|
|
32
|
+
NEWSTORENO = 'newstore-no'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for POSNETPL
|
|
35
|
+
POSNETPL = 'posnet-pl'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for YCSPR
|
|
38
|
+
YCSPR = 'ycs-pr'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for NEWSTOREIN
|
|
41
|
+
NEWSTOREIN = 'newstore-in'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for NEWSTORETH
|
|
44
|
+
NEWSTORETH = 'newstore-th'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for NEWSTOREES
|
|
47
|
+
NEWSTOREES = 'newstore-es'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for NEWSTOREBE
|
|
50
|
+
NEWSTOREBE = 'newstore-be'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for EFSTAPT
|
|
53
|
+
EFSTAPT = 'efsta-pt'.freeze
|
|
54
|
+
].freeze
|
|
55
|
+
|
|
56
|
+
def self.validate(value)
|
|
57
|
+
return false if value.nil?
|
|
58
|
+
|
|
59
|
+
FISCAL_PROVIDER_ID_ENUM.include?(value)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def self.from_value(value, default_value = AXENASE)
|
|
63
|
+
return default_value if value.nil?
|
|
64
|
+
|
|
65
|
+
str = value.to_s.strip
|
|
66
|
+
|
|
67
|
+
case str.downcase
|
|
68
|
+
when 'axenase' then AXENASE
|
|
69
|
+
when 'dummy' then DUMMY
|
|
70
|
+
when 'epsonit' then EPSONIT
|
|
71
|
+
when 'fiskaltrustat' then FISKALTRUSTAT
|
|
72
|
+
when 'fiskaltrustde' then FISKALTRUSTDE
|
|
73
|
+
when 'fiskaltrustfr' then FISKALTRUSTFR
|
|
74
|
+
when 'newstoreie' then NEWSTOREIE
|
|
75
|
+
when 'newstoreno' then NEWSTORENO
|
|
76
|
+
when 'posnetpl' then POSNETPL
|
|
77
|
+
when 'ycspr' then YCSPR
|
|
78
|
+
when 'newstorein' then NEWSTOREIN
|
|
79
|
+
when 'newstoreth' then NEWSTORETH
|
|
80
|
+
when 'newstorees' then NEWSTOREES
|
|
81
|
+
when 'newstorebe' then NEWSTOREBE
|
|
82
|
+
when 'efstapt' then EFSTAPT
|
|
83
|
+
else
|
|
84
|
+
default_value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# new_store_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for NewStore by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module NewStoreApi
|
|
7
|
+
# FiscalReceiptResultV1Dto Model.
|
|
8
|
+
class FiscalReceiptResultV1Dto < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Fiscal receipt amount from the fiscal printer.
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :fiscal_receipt_amount
|
|
15
|
+
|
|
16
|
+
# Fiscal receipt number under the current Z-report number from the fiscal
|
|
17
|
+
# printer.
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
attr_accessor :fiscal_receipt_number
|
|
20
|
+
|
|
21
|
+
# Fiscal receipt ISO timestamp from the fiscal printer.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :fiscal_receipt_timestamp
|
|
24
|
+
|
|
25
|
+
# A mapping from model property names to API property names.
|
|
26
|
+
def self.names
|
|
27
|
+
@_hash = {} if @_hash.nil?
|
|
28
|
+
@_hash['fiscal_receipt_amount'] = 'fiscal_receipt_amount'
|
|
29
|
+
@_hash['fiscal_receipt_number'] = 'fiscal_receipt_number'
|
|
30
|
+
@_hash['fiscal_receipt_timestamp'] = 'fiscal_receipt_timestamp'
|
|
31
|
+
@_hash
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# An array for optional fields
|
|
35
|
+
def self.optionals
|
|
36
|
+
%w[
|
|
37
|
+
fiscal_receipt_amount
|
|
38
|
+
fiscal_receipt_number
|
|
39
|
+
fiscal_receipt_timestamp
|
|
40
|
+
]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for nullable fields
|
|
44
|
+
def self.nullables
|
|
45
|
+
[]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def initialize(fiscal_receipt_amount = SKIP, fiscal_receipt_number = SKIP,
|
|
49
|
+
fiscal_receipt_timestamp = SKIP)
|
|
50
|
+
@fiscal_receipt_amount = fiscal_receipt_amount unless fiscal_receipt_amount == SKIP
|
|
51
|
+
@fiscal_receipt_number = fiscal_receipt_number unless fiscal_receipt_number == SKIP
|
|
52
|
+
@fiscal_receipt_timestamp = fiscal_receipt_timestamp unless fiscal_receipt_timestamp == SKIP
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Creates an instance of the object from a hash.
|
|
56
|
+
def self.from_hash(hash)
|
|
57
|
+
return nil unless hash
|
|
58
|
+
|
|
59
|
+
# Extract variables from the hash.
|
|
60
|
+
fiscal_receipt_amount =
|
|
61
|
+
hash.key?('fiscal_receipt_amount') ? hash['fiscal_receipt_amount'] : SKIP
|
|
62
|
+
fiscal_receipt_number =
|
|
63
|
+
hash.key?('fiscal_receipt_number') ? hash['fiscal_receipt_number'] : SKIP
|
|
64
|
+
fiscal_receipt_timestamp =
|
|
65
|
+
hash.key?('fiscal_receipt_timestamp') ? hash['fiscal_receipt_timestamp'] : SKIP
|
|
66
|
+
|
|
67
|
+
# Create object from extracted values.
|
|
68
|
+
FiscalReceiptResultV1Dto.new(fiscal_receipt_amount,
|
|
69
|
+
fiscal_receipt_number,
|
|
70
|
+
fiscal_receipt_timestamp)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Validates an instance of the object from a given value.
|
|
74
|
+
# @param [FiscalReceiptResultV1Dto | Hash] The value against the validation is performed.
|
|
75
|
+
def self.validate(value)
|
|
76
|
+
return true if value.instance_of? self
|
|
77
|
+
|
|
78
|
+
return false unless value.instance_of? Hash
|
|
79
|
+
|
|
80
|
+
true
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Provides a human-readable string representation of the object.
|
|
84
|
+
def to_s
|
|
85
|
+
class_name = self.class.name.split('::').last
|
|
86
|
+
"<#{class_name} fiscal_receipt_amount: #{@fiscal_receipt_amount}, fiscal_receipt_number:"\
|
|
87
|
+
" #{@fiscal_receipt_number}, fiscal_receipt_timestamp: #{@fiscal_receipt_timestamp}>"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
91
|
+
def inspect
|
|
92
|
+
class_name = self.class.name.split('::').last
|
|
93
|
+
"<#{class_name} fiscal_receipt_amount: #{@fiscal_receipt_amount.inspect},"\
|
|
94
|
+
" fiscal_receipt_number: #{@fiscal_receipt_number.inspect}, fiscal_receipt_timestamp:"\
|
|
95
|
+
" #{@fiscal_receipt_timestamp.inspect}>"
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# new_store_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for NewStore by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module NewStoreApi
|
|
7
|
+
# A fixed monetary discount.
|
|
8
|
+
class FixedDiscount < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The discount amount applied to this line item, in the currency's minor
|
|
13
|
+
# unit. For a discount prorated from an order-level promotion, this is only
|
|
14
|
+
# this line's share.
|
|
15
|
+
# @return [Integer]
|
|
16
|
+
attr_accessor :applied_amount
|
|
17
|
+
|
|
18
|
+
# The coupon code that triggered the discount, when one was used.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :coupon_code
|
|
21
|
+
|
|
22
|
+
# Human-readable description of why the discount was applied.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :description
|
|
25
|
+
|
|
26
|
+
# To identify the discount in the external system.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :external_reference
|
|
29
|
+
|
|
30
|
+
# ID of the discount; shared across all lines from the same promotion so
|
|
31
|
+
# downstream can aggregate them.
|
|
32
|
+
# @return [UUID | String]
|
|
33
|
+
attr_accessor :id
|
|
34
|
+
|
|
35
|
+
# The fixed discount rule's full amount, in the currency's minor unit. For
|
|
36
|
+
# an item-level discount this equals `applied_amount`; for an order-level
|
|
37
|
+
# discount it is the entire promotion's amount (e.g. $10 off the order),
|
|
38
|
+
# while `applied_amount` is this line's prorated share of it.
|
|
39
|
+
# @return [Integer]
|
|
40
|
+
attr_accessor :original_amount
|
|
41
|
+
|
|
42
|
+
# Whether the discount was applied at the item level or prorated from an
|
|
43
|
+
# order-level discount.
|
|
44
|
+
# @return [LevelEnum]
|
|
45
|
+
attr_accessor :scope
|
|
46
|
+
|
|
47
|
+
# Discriminates a fixed monetary discount.
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_reader :type
|
|
50
|
+
|
|
51
|
+
# A mapping from model property names to API property names.
|
|
52
|
+
def self.names
|
|
53
|
+
@_hash = {} if @_hash.nil?
|
|
54
|
+
@_hash['applied_amount'] = 'applied_amount'
|
|
55
|
+
@_hash['coupon_code'] = 'coupon_code'
|
|
56
|
+
@_hash['description'] = 'description'
|
|
57
|
+
@_hash['external_reference'] = 'external_reference'
|
|
58
|
+
@_hash['id'] = 'id'
|
|
59
|
+
@_hash['original_amount'] = 'original_amount'
|
|
60
|
+
@_hash['scope'] = 'scope'
|
|
61
|
+
@_hash['type'] = 'type'
|
|
62
|
+
@_hash
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# An array for optional fields
|
|
66
|
+
def self.optionals
|
|
67
|
+
%w[
|
|
68
|
+
coupon_code
|
|
69
|
+
description
|
|
70
|
+
external_reference
|
|
71
|
+
]
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# An array for nullable fields
|
|
75
|
+
def self.nullables
|
|
76
|
+
%w[
|
|
77
|
+
coupon_code
|
|
78
|
+
description
|
|
79
|
+
external_reference
|
|
80
|
+
]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def initialize(applied_amount = nil, id = nil, original_amount = nil,
|
|
84
|
+
scope = nil, coupon_code = SKIP, description = SKIP,
|
|
85
|
+
external_reference = SKIP)
|
|
86
|
+
@applied_amount = applied_amount
|
|
87
|
+
@coupon_code = coupon_code unless coupon_code == SKIP
|
|
88
|
+
@description = description unless description == SKIP
|
|
89
|
+
@external_reference = external_reference unless external_reference == SKIP
|
|
90
|
+
@id = id
|
|
91
|
+
@original_amount = original_amount
|
|
92
|
+
@scope = scope
|
|
93
|
+
@type = 'fixed'
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Creates an instance of the object from a hash.
|
|
97
|
+
def self.from_hash(hash)
|
|
98
|
+
return nil unless hash
|
|
99
|
+
|
|
100
|
+
# Extract variables from the hash.
|
|
101
|
+
applied_amount =
|
|
102
|
+
hash.key?('applied_amount') ? hash['applied_amount'] : nil
|
|
103
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
104
|
+
original_amount =
|
|
105
|
+
hash.key?('original_amount') ? hash['original_amount'] : nil
|
|
106
|
+
scope = hash.key?('scope') ? hash['scope'] : nil
|
|
107
|
+
coupon_code = hash.key?('coupon_code') ? hash['coupon_code'] : SKIP
|
|
108
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
109
|
+
external_reference =
|
|
110
|
+
hash.key?('external_reference') ? hash['external_reference'] : SKIP
|
|
111
|
+
|
|
112
|
+
# Create object from extracted values.
|
|
113
|
+
FixedDiscount.new(applied_amount,
|
|
114
|
+
id,
|
|
115
|
+
original_amount,
|
|
116
|
+
scope,
|
|
117
|
+
coupon_code,
|
|
118
|
+
description,
|
|
119
|
+
external_reference)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Validates an instance of the object from a given value.
|
|
123
|
+
# @param [FixedDiscount | Hash] The value against the validation is performed.
|
|
124
|
+
def self.validate(value)
|
|
125
|
+
if value.instance_of? self
|
|
126
|
+
return (
|
|
127
|
+
APIHelper.valid_type?(value.applied_amount,
|
|
128
|
+
->(val) { val.instance_of? Integer }) and
|
|
129
|
+
APIHelper.valid_type?(value.id,
|
|
130
|
+
->(val) { val.instance_of? String }) and
|
|
131
|
+
APIHelper.valid_type?(value.original_amount,
|
|
132
|
+
->(val) { val.instance_of? Integer }) and
|
|
133
|
+
APIHelper.valid_type?(value.scope,
|
|
134
|
+
->(val) { LevelEnum.validate(val) }) and
|
|
135
|
+
APIHelper.valid_type?(value.type,
|
|
136
|
+
->(val) { val.instance_of? String })
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
return false unless value.instance_of? Hash
|
|
141
|
+
|
|
142
|
+
(
|
|
143
|
+
APIHelper.valid_type?(value['applied_amount'],
|
|
144
|
+
->(val) { val.instance_of? Integer }) and
|
|
145
|
+
APIHelper.valid_type?(value['id'],
|
|
146
|
+
->(val) { val.instance_of? String }) and
|
|
147
|
+
APIHelper.valid_type?(value['original_amount'],
|
|
148
|
+
->(val) { val.instance_of? Integer }) and
|
|
149
|
+
APIHelper.valid_type?(value['scope'],
|
|
150
|
+
->(val) { LevelEnum.validate(val) }) and
|
|
151
|
+
APIHelper.valid_type?(value['type'],
|
|
152
|
+
->(val) { val.instance_of? String })
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Provides a human-readable string representation of the object.
|
|
157
|
+
def to_s
|
|
158
|
+
class_name = self.class.name.split('::').last
|
|
159
|
+
"<#{class_name} applied_amount: #{@applied_amount}, coupon_code: #{@coupon_code},"\
|
|
160
|
+
" description: #{@description}, external_reference: #{@external_reference}, id: #{@id},"\
|
|
161
|
+
" original_amount: #{@original_amount}, scope: #{@scope}, type: #{@type}>"
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
165
|
+
def inspect
|
|
166
|
+
class_name = self.class.name.split('::').last
|
|
167
|
+
"<#{class_name} applied_amount: #{@applied_amount.inspect}, coupon_code:"\
|
|
168
|
+
" #{@coupon_code.inspect}, description: #{@description.inspect}, external_reference:"\
|
|
169
|
+
" #{@external_reference.inspect}, id: #{@id.inspect}, original_amount:"\
|
|
170
|
+
" #{@original_amount.inspect}, scope: #{@scope.inspect}, type: #{@type.inspect}>"
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# new_store_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for NewStore by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module NewStoreApi
|
|
7
|
+
# FixedRateConfigCreateDto Model.
|
|
8
|
+
class FixedRateConfigCreateDto < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# A list of supported exemption classes.
|
|
13
|
+
# @return [Array[ExemptionClassItemCreateDto]]
|
|
14
|
+
attr_accessor :exemption_classes
|
|
15
|
+
|
|
16
|
+
# Tax name to be used in the tax lines.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :tax_name
|
|
19
|
+
|
|
20
|
+
# Tax rate to be used as a fixed rate during tax calculations.
|
|
21
|
+
# * Allows up to 5 decimal points.
|
|
22
|
+
# @return [Float]
|
|
23
|
+
attr_accessor :tax_rate
|
|
24
|
+
|
|
25
|
+
# A mapping from model property names to API property names.
|
|
26
|
+
def self.names
|
|
27
|
+
@_hash = {} if @_hash.nil?
|
|
28
|
+
@_hash['exemption_classes'] = 'exemption_classes'
|
|
29
|
+
@_hash['tax_name'] = 'tax_name'
|
|
30
|
+
@_hash['tax_rate'] = 'tax_rate'
|
|
31
|
+
@_hash
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# An array for optional fields
|
|
35
|
+
def self.optionals
|
|
36
|
+
%w[
|
|
37
|
+
exemption_classes
|
|
38
|
+
tax_name
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(tax_rate = nil, exemption_classes = SKIP, tax_name = SKIP)
|
|
48
|
+
@exemption_classes = exemption_classes unless exemption_classes == SKIP
|
|
49
|
+
@tax_name = tax_name unless tax_name == SKIP
|
|
50
|
+
@tax_rate = tax_rate
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Creates an instance of the object from a hash.
|
|
54
|
+
def self.from_hash(hash)
|
|
55
|
+
return nil unless hash
|
|
56
|
+
|
|
57
|
+
# Extract variables from the hash.
|
|
58
|
+
tax_rate = hash.key?('tax_rate') ? hash['tax_rate'] : nil
|
|
59
|
+
# Parameter is an array, so we need to iterate through it
|
|
60
|
+
exemption_classes = nil
|
|
61
|
+
unless hash['exemption_classes'].nil?
|
|
62
|
+
exemption_classes = []
|
|
63
|
+
hash['exemption_classes'].each do |structure|
|
|
64
|
+
exemption_classes << (ExemptionClassItemCreateDto.from_hash(structure) if structure)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
exemption_classes = SKIP unless hash.key?('exemption_classes')
|
|
69
|
+
tax_name = hash.key?('tax_name') ? hash['tax_name'] : SKIP
|
|
70
|
+
|
|
71
|
+
# Create object from extracted values.
|
|
72
|
+
FixedRateConfigCreateDto.new(tax_rate,
|
|
73
|
+
exemption_classes,
|
|
74
|
+
tax_name)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Validates an instance of the object from a given value.
|
|
78
|
+
# @param [FixedRateConfigCreateDto | Hash] The value against the validation is performed.
|
|
79
|
+
def self.validate(value)
|
|
80
|
+
if value.instance_of? self
|
|
81
|
+
return APIHelper.valid_type?(value.tax_rate,
|
|
82
|
+
->(val) { val.instance_of? Float })
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
return false unless value.instance_of? Hash
|
|
86
|
+
|
|
87
|
+
APIHelper.valid_type?(value['tax_rate'],
|
|
88
|
+
->(val) { val.instance_of? Float })
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Provides a human-readable string representation of the object.
|
|
92
|
+
def to_s
|
|
93
|
+
class_name = self.class.name.split('::').last
|
|
94
|
+
"<#{class_name} exemption_classes: #{@exemption_classes}, tax_name: #{@tax_name}, tax_rate:"\
|
|
95
|
+
" #{@tax_rate}>"
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
99
|
+
def inspect
|
|
100
|
+
class_name = self.class.name.split('::').last
|
|
101
|
+
"<#{class_name} exemption_classes: #{@exemption_classes.inspect}, tax_name:"\
|
|
102
|
+
" #{@tax_name.inspect}, tax_rate: #{@tax_rate.inspect}>"
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|