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,179 @@
|
|
|
1
|
+
# new_store_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for NewStore by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module NewStoreApi
|
|
8
|
+
# A cash payment.
|
|
9
|
+
class CashPayment < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Payment amount, in the currency's minor unit. The instruments' amounts
|
|
14
|
+
# must add up to the order total: the sum of each line item's `price` —
|
|
15
|
+
# already net of its discounts — plus its `price_tax` under `TAX_EXCLUDED`
|
|
16
|
+
# pricing, plus any fulfillment charges.
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :amount
|
|
19
|
+
|
|
20
|
+
# Billing address for this payment instrument. Optional. When supplied on
|
|
21
|
+
# more than one instrument, all must be identical (the platform currently
|
|
22
|
+
# supports a single billing address per order).
|
|
23
|
+
# @return [Address1]
|
|
24
|
+
attr_accessor :billing_address
|
|
25
|
+
|
|
26
|
+
# Cash-specific details.
|
|
27
|
+
# @return [CashDetails]
|
|
28
|
+
attr_accessor :cash
|
|
29
|
+
|
|
30
|
+
# The currency of the payment.
|
|
31
|
+
# @return [Currency1Enum]
|
|
32
|
+
attr_accessor :currency
|
|
33
|
+
|
|
34
|
+
# The payment method.
|
|
35
|
+
# @return [String]
|
|
36
|
+
attr_reader :payment_method
|
|
37
|
+
|
|
38
|
+
# The payment provider for a cash payment; always `cash`.
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_reader :payment_provider
|
|
41
|
+
|
|
42
|
+
# When the payment was processed, as an RFC 3339 (ISO 8601) date-time
|
|
43
|
+
# including date, time and timezone.
|
|
44
|
+
# @return [DateTime]
|
|
45
|
+
attr_accessor :processed_at
|
|
46
|
+
|
|
47
|
+
# Whether the payment is already authorized or already captured.
|
|
48
|
+
# @return [PaymentStatusEnum]
|
|
49
|
+
attr_accessor :status
|
|
50
|
+
|
|
51
|
+
# A mapping from model property names to API property names.
|
|
52
|
+
def self.names
|
|
53
|
+
@_hash = {} if @_hash.nil?
|
|
54
|
+
@_hash['amount'] = 'amount'
|
|
55
|
+
@_hash['billing_address'] = 'billing_address'
|
|
56
|
+
@_hash['cash'] = 'cash'
|
|
57
|
+
@_hash['currency'] = 'currency'
|
|
58
|
+
@_hash['payment_method'] = 'payment_method'
|
|
59
|
+
@_hash['payment_provider'] = 'payment_provider'
|
|
60
|
+
@_hash['processed_at'] = 'processed_at'
|
|
61
|
+
@_hash['status'] = 'status'
|
|
62
|
+
@_hash
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# An array for optional fields
|
|
66
|
+
def self.optionals
|
|
67
|
+
%w[
|
|
68
|
+
billing_address
|
|
69
|
+
]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# An array for nullable fields
|
|
73
|
+
def self.nullables
|
|
74
|
+
%w[
|
|
75
|
+
billing_address
|
|
76
|
+
]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def initialize(amount = nil, cash = nil, currency = nil, processed_at = nil,
|
|
80
|
+
status = nil, billing_address = SKIP)
|
|
81
|
+
@amount = amount
|
|
82
|
+
@billing_address = billing_address unless billing_address == SKIP
|
|
83
|
+
@cash = cash
|
|
84
|
+
@currency = currency
|
|
85
|
+
@payment_method = 'cash'
|
|
86
|
+
@payment_provider = 'cash'
|
|
87
|
+
@processed_at = processed_at
|
|
88
|
+
@status = status
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Creates an instance of the object from a hash.
|
|
92
|
+
def self.from_hash(hash)
|
|
93
|
+
return nil unless hash
|
|
94
|
+
|
|
95
|
+
# Extract variables from the hash.
|
|
96
|
+
amount = hash.key?('amount') ? hash['amount'] : nil
|
|
97
|
+
cash = CashDetails.from_hash(hash['cash']) if hash['cash']
|
|
98
|
+
currency = hash.key?('currency') ? hash['currency'] : nil
|
|
99
|
+
processed_at = if hash.key?('processed_at')
|
|
100
|
+
(DateTimeHelper.from_rfc3339(hash['processed_at']) if hash['processed_at'])
|
|
101
|
+
end
|
|
102
|
+
status = hash.key?('status') ? hash['status'] : nil
|
|
103
|
+
billing_address = Address1.from_hash(hash['billing_address']) if hash['billing_address']
|
|
104
|
+
|
|
105
|
+
# Create object from extracted values.
|
|
106
|
+
CashPayment.new(amount,
|
|
107
|
+
cash,
|
|
108
|
+
currency,
|
|
109
|
+
processed_at,
|
|
110
|
+
status,
|
|
111
|
+
billing_address)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def to_custom_processed_at
|
|
115
|
+
DateTimeHelper.to_rfc3339(processed_at)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Validates an instance of the object from a given value.
|
|
119
|
+
# @param [CashPayment | Hash] The value against the validation is performed.
|
|
120
|
+
def self.validate(value)
|
|
121
|
+
if value.instance_of? self
|
|
122
|
+
return (
|
|
123
|
+
APIHelper.valid_type?(value.amount,
|
|
124
|
+
->(val) { val.instance_of? Integer }) and
|
|
125
|
+
APIHelper.valid_type?(value.cash,
|
|
126
|
+
->(val) { CashDetails.validate(val) },
|
|
127
|
+
is_model_hash: true) and
|
|
128
|
+
APIHelper.valid_type?(value.currency,
|
|
129
|
+
->(val) { Currency1Enum.validate(val) }) and
|
|
130
|
+
APIHelper.valid_type?(value.payment_method,
|
|
131
|
+
->(val) { val.instance_of? String }) and
|
|
132
|
+
APIHelper.valid_type?(value.payment_provider,
|
|
133
|
+
->(val) { val.instance_of? String }) and
|
|
134
|
+
APIHelper.valid_type?(value.processed_at,
|
|
135
|
+
->(val) { val.instance_of? DateTime }) and
|
|
136
|
+
APIHelper.valid_type?(value.status,
|
|
137
|
+
->(val) { PaymentStatusEnum.validate(val) })
|
|
138
|
+
)
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
return false unless value.instance_of? Hash
|
|
142
|
+
|
|
143
|
+
(
|
|
144
|
+
APIHelper.valid_type?(value['amount'],
|
|
145
|
+
->(val) { val.instance_of? Integer }) and
|
|
146
|
+
APIHelper.valid_type?(value['cash'],
|
|
147
|
+
->(val) { CashDetails.validate(val) },
|
|
148
|
+
is_model_hash: true) and
|
|
149
|
+
APIHelper.valid_type?(value['currency'],
|
|
150
|
+
->(val) { Currency1Enum.validate(val) }) and
|
|
151
|
+
APIHelper.valid_type?(value['payment_method'],
|
|
152
|
+
->(val) { val.instance_of? String }) and
|
|
153
|
+
APIHelper.valid_type?(value['payment_provider'],
|
|
154
|
+
->(val) { val.instance_of? String }) and
|
|
155
|
+
APIHelper.valid_type?(value['processed_at'],
|
|
156
|
+
->(val) { val.instance_of? String }) and
|
|
157
|
+
APIHelper.valid_type?(value['status'],
|
|
158
|
+
->(val) { PaymentStatusEnum.validate(val) })
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Provides a human-readable string representation of the object.
|
|
163
|
+
def to_s
|
|
164
|
+
class_name = self.class.name.split('::').last
|
|
165
|
+
"<#{class_name} amount: #{@amount}, billing_address: #{@billing_address}, cash: #{@cash},"\
|
|
166
|
+
" currency: #{@currency}, payment_method: #{@payment_method}, payment_provider:"\
|
|
167
|
+
" #{@payment_provider}, processed_at: #{@processed_at}, status: #{@status}>"
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
171
|
+
def inspect
|
|
172
|
+
class_name = self.class.name.split('::').last
|
|
173
|
+
"<#{class_name} amount: #{@amount.inspect}, billing_address: #{@billing_address.inspect},"\
|
|
174
|
+
" cash: #{@cash.inspect}, currency: #{@currency.inspect}, payment_method:"\
|
|
175
|
+
" #{@payment_method.inspect}, payment_provider: #{@payment_provider.inspect}, processed_at:"\
|
|
176
|
+
" #{@processed_at.inspect}, status: #{@status.inspect}>"
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
@@ -0,0 +1,283 @@
|
|
|
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
|
+
# CashboxConfigAxenaSeV1Dto Model.
|
|
8
|
+
class CashboxConfigAxenaSeV1Dto < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Address of the store.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :address
|
|
15
|
+
|
|
16
|
+
# Axena (Srv4pos) activation data.
|
|
17
|
+
# * Can be optionally set during fiscal activations by providing a
|
|
18
|
+
# previously registered activation.
|
|
19
|
+
# * If a value is not provided during an activation, a new Cash Registry
|
|
20
|
+
# will be registered in Axena (Srv4pos) by using the `/activations-advanced`
|
|
21
|
+
# endpoint.
|
|
22
|
+
# @return [AxenaActivationDataV1Dto]
|
|
23
|
+
attr_accessor :axena_activation_data
|
|
24
|
+
|
|
25
|
+
# Cash Register name to be used with the Axena (Srv4pos) API.
|
|
26
|
+
# * The name is generated by getting the short SHA256 hash of the cashbox
|
|
27
|
+
# identifier and appending an environment prefix.
|
|
28
|
+
# * Ref: https://dev.srv4pos.com/site/rest.html#cashRegisterNameType
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :cash_register_name
|
|
31
|
+
|
|
32
|
+
# City where the store is located.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :city
|
|
35
|
+
|
|
36
|
+
# Control unit address.
|
|
37
|
+
# * Can be optionally set during fiscal activations by providing a the
|
|
38
|
+
# control unit address retrieved from Axena (Srv4pos).
|
|
39
|
+
# * If a value is not provided during an activation, the default control
|
|
40
|
+
# unit information will be used.
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :control_unit_address
|
|
43
|
+
|
|
44
|
+
# Control unit journal address.
|
|
45
|
+
# * Can be optionally set during fiscal activations by providing a the
|
|
46
|
+
# control unit journal address retrieved from Axena (Srv4pos).
|
|
47
|
+
# * If a value is not provided during an activation, the default control
|
|
48
|
+
# unit information will be used.
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :control_unit_journal_address
|
|
51
|
+
|
|
52
|
+
# Control unit manufacturer.
|
|
53
|
+
# * Can be optionally set during fiscal activations by providing a the
|
|
54
|
+
# control unit manufacturer retrieved from Axena (Srv4pos).
|
|
55
|
+
# * If a value is not provided during an activation, the default control
|
|
56
|
+
# unit information will be used.
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :control_unit_manufacturer
|
|
59
|
+
|
|
60
|
+
# Control unit model.
|
|
61
|
+
# * Can be optionally set during fiscal activations by providing a the
|
|
62
|
+
# control unit model retrieved from Axena (Srv4pos).
|
|
63
|
+
# * If a value is not provided during an activation, the default control
|
|
64
|
+
# unit information will be used.
|
|
65
|
+
# @return [String]
|
|
66
|
+
attr_accessor :control_unit_model
|
|
67
|
+
|
|
68
|
+
# Control unit serial number.
|
|
69
|
+
# * Can be optionally set during fiscal activations by providing a the
|
|
70
|
+
# control unit serial number retrieved from Axena (Srv4pos).
|
|
71
|
+
# * If a value is not provided during an activation, the default control
|
|
72
|
+
# unit serial number will be used.
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :control_unit_serial
|
|
75
|
+
|
|
76
|
+
# Control unit type.
|
|
77
|
+
# * Can be optionally set during fiscal activations by providing a the
|
|
78
|
+
# control unit type retrieved from Axena (Srv4pos).
|
|
79
|
+
# * If a value is not provided during an activation, the default control
|
|
80
|
+
# unit information will be used.
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :control_unit_type
|
|
83
|
+
|
|
84
|
+
# Corporate identifier that represents particular tenant/merchant in Axena
|
|
85
|
+
# (Srv4pos).
|
|
86
|
+
# @return [String]
|
|
87
|
+
attr_accessor :corporate_id
|
|
88
|
+
|
|
89
|
+
# Flag for enabling late signing mode.
|
|
90
|
+
# * When enabled:
|
|
91
|
+
# * Transactions will be allowed when Axena (Srv4pos) is not reachable.
|
|
92
|
+
# * Receipt printing will be blocked until the transaction is proceesed by
|
|
93
|
+
# Axena (Srv4pos).
|
|
94
|
+
# * When not enabled:
|
|
95
|
+
# * Transaction processing will be blocked when Axena (Srv4pos) is not
|
|
96
|
+
# reachable.
|
|
97
|
+
# @return [TrueClass | FalseClass]
|
|
98
|
+
attr_accessor :late_signing_enabled
|
|
99
|
+
|
|
100
|
+
# Legal entity name of the tenant in Sweden.
|
|
101
|
+
# @return [String]
|
|
102
|
+
attr_accessor :legal_entity
|
|
103
|
+
|
|
104
|
+
# Postal code of the store.
|
|
105
|
+
# @return [String]
|
|
106
|
+
attr_accessor :postal_code
|
|
107
|
+
|
|
108
|
+
# A mapping from model property names to API property names.
|
|
109
|
+
def self.names
|
|
110
|
+
@_hash = {} if @_hash.nil?
|
|
111
|
+
@_hash['address'] = 'address'
|
|
112
|
+
@_hash['axena_activation_data'] = 'axena_activation_data'
|
|
113
|
+
@_hash['cash_register_name'] = 'cash_register_name'
|
|
114
|
+
@_hash['city'] = 'city'
|
|
115
|
+
@_hash['control_unit_address'] = 'control_unit_address'
|
|
116
|
+
@_hash['control_unit_journal_address'] = 'control_unit_journal_address'
|
|
117
|
+
@_hash['control_unit_manufacturer'] = 'control_unit_manufacturer'
|
|
118
|
+
@_hash['control_unit_model'] = 'control_unit_model'
|
|
119
|
+
@_hash['control_unit_serial'] = 'control_unit_serial'
|
|
120
|
+
@_hash['control_unit_type'] = 'control_unit_type'
|
|
121
|
+
@_hash['corporate_id'] = 'corporate_id'
|
|
122
|
+
@_hash['late_signing_enabled'] = 'late_signing_enabled'
|
|
123
|
+
@_hash['legal_entity'] = 'legal_entity'
|
|
124
|
+
@_hash['postal_code'] = 'postal_code'
|
|
125
|
+
@_hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# An array for optional fields
|
|
129
|
+
def self.optionals
|
|
130
|
+
%w[
|
|
131
|
+
axena_activation_data
|
|
132
|
+
cash_register_name
|
|
133
|
+
control_unit_address
|
|
134
|
+
control_unit_journal_address
|
|
135
|
+
control_unit_manufacturer
|
|
136
|
+
control_unit_model
|
|
137
|
+
control_unit_serial
|
|
138
|
+
control_unit_type
|
|
139
|
+
late_signing_enabled
|
|
140
|
+
]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# An array for nullable fields
|
|
144
|
+
def self.nullables
|
|
145
|
+
[]
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def initialize(address = nil, city = nil, corporate_id = nil,
|
|
149
|
+
legal_entity = nil, postal_code = nil,
|
|
150
|
+
axena_activation_data = SKIP, cash_register_name = SKIP,
|
|
151
|
+
control_unit_address = SKIP,
|
|
152
|
+
control_unit_journal_address = SKIP,
|
|
153
|
+
control_unit_manufacturer = SKIP, control_unit_model = SKIP,
|
|
154
|
+
control_unit_serial = SKIP, control_unit_type = SKIP,
|
|
155
|
+
late_signing_enabled = false)
|
|
156
|
+
@address = address
|
|
157
|
+
@axena_activation_data = axena_activation_data unless axena_activation_data == SKIP
|
|
158
|
+
@cash_register_name = cash_register_name unless cash_register_name == SKIP
|
|
159
|
+
@city = city
|
|
160
|
+
@control_unit_address = control_unit_address unless control_unit_address == SKIP
|
|
161
|
+
unless control_unit_journal_address == SKIP
|
|
162
|
+
@control_unit_journal_address =
|
|
163
|
+
control_unit_journal_address
|
|
164
|
+
end
|
|
165
|
+
unless control_unit_manufacturer == SKIP
|
|
166
|
+
@control_unit_manufacturer =
|
|
167
|
+
control_unit_manufacturer
|
|
168
|
+
end
|
|
169
|
+
@control_unit_model = control_unit_model unless control_unit_model == SKIP
|
|
170
|
+
@control_unit_serial = control_unit_serial unless control_unit_serial == SKIP
|
|
171
|
+
@control_unit_type = control_unit_type unless control_unit_type == SKIP
|
|
172
|
+
@corporate_id = corporate_id
|
|
173
|
+
@late_signing_enabled = late_signing_enabled unless late_signing_enabled == SKIP
|
|
174
|
+
@legal_entity = legal_entity
|
|
175
|
+
@postal_code = postal_code
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Creates an instance of the object from a hash.
|
|
179
|
+
def self.from_hash(hash)
|
|
180
|
+
return nil unless hash
|
|
181
|
+
|
|
182
|
+
# Extract variables from the hash.
|
|
183
|
+
address = hash.key?('address') ? hash['address'] : nil
|
|
184
|
+
city = hash.key?('city') ? hash['city'] : nil
|
|
185
|
+
corporate_id = hash.key?('corporate_id') ? hash['corporate_id'] : nil
|
|
186
|
+
legal_entity = hash.key?('legal_entity') ? hash['legal_entity'] : nil
|
|
187
|
+
postal_code = hash.key?('postal_code') ? hash['postal_code'] : nil
|
|
188
|
+
axena_activation_data = AxenaActivationDataV1Dto.from_hash(hash['axena_activation_data']) if
|
|
189
|
+
hash['axena_activation_data']
|
|
190
|
+
cash_register_name =
|
|
191
|
+
hash.key?('cash_register_name') ? hash['cash_register_name'] : SKIP
|
|
192
|
+
control_unit_address =
|
|
193
|
+
hash.key?('control_unit_address') ? hash['control_unit_address'] : SKIP
|
|
194
|
+
control_unit_journal_address =
|
|
195
|
+
hash.key?('control_unit_journal_address') ? hash['control_unit_journal_address'] : SKIP
|
|
196
|
+
control_unit_manufacturer =
|
|
197
|
+
hash.key?('control_unit_manufacturer') ? hash['control_unit_manufacturer'] : SKIP
|
|
198
|
+
control_unit_model =
|
|
199
|
+
hash.key?('control_unit_model') ? hash['control_unit_model'] : SKIP
|
|
200
|
+
control_unit_serial =
|
|
201
|
+
hash.key?('control_unit_serial') ? hash['control_unit_serial'] : SKIP
|
|
202
|
+
control_unit_type =
|
|
203
|
+
hash.key?('control_unit_type') ? hash['control_unit_type'] : SKIP
|
|
204
|
+
late_signing_enabled = hash['late_signing_enabled'] ||= false
|
|
205
|
+
|
|
206
|
+
# Create object from extracted values.
|
|
207
|
+
CashboxConfigAxenaSeV1Dto.new(address,
|
|
208
|
+
city,
|
|
209
|
+
corporate_id,
|
|
210
|
+
legal_entity,
|
|
211
|
+
postal_code,
|
|
212
|
+
axena_activation_data,
|
|
213
|
+
cash_register_name,
|
|
214
|
+
control_unit_address,
|
|
215
|
+
control_unit_journal_address,
|
|
216
|
+
control_unit_manufacturer,
|
|
217
|
+
control_unit_model,
|
|
218
|
+
control_unit_serial,
|
|
219
|
+
control_unit_type,
|
|
220
|
+
late_signing_enabled)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Validates an instance of the object from a given value.
|
|
224
|
+
# @param [CashboxConfigAxenaSeV1Dto | Hash] The value against the validation is performed.
|
|
225
|
+
def self.validate(value)
|
|
226
|
+
if value.instance_of? self
|
|
227
|
+
return (
|
|
228
|
+
APIHelper.valid_type?(value.address,
|
|
229
|
+
->(val) { val.instance_of? String }) and
|
|
230
|
+
APIHelper.valid_type?(value.city,
|
|
231
|
+
->(val) { val.instance_of? String }) and
|
|
232
|
+
APIHelper.valid_type?(value.corporate_id,
|
|
233
|
+
->(val) { val.instance_of? String }) and
|
|
234
|
+
APIHelper.valid_type?(value.legal_entity,
|
|
235
|
+
->(val) { val.instance_of? String }) and
|
|
236
|
+
APIHelper.valid_type?(value.postal_code,
|
|
237
|
+
->(val) { val.instance_of? String })
|
|
238
|
+
)
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
return false unless value.instance_of? Hash
|
|
242
|
+
|
|
243
|
+
(
|
|
244
|
+
APIHelper.valid_type?(value['address'],
|
|
245
|
+
->(val) { val.instance_of? String }) and
|
|
246
|
+
APIHelper.valid_type?(value['city'],
|
|
247
|
+
->(val) { val.instance_of? String }) and
|
|
248
|
+
APIHelper.valid_type?(value['corporate_id'],
|
|
249
|
+
->(val) { val.instance_of? String }) and
|
|
250
|
+
APIHelper.valid_type?(value['legal_entity'],
|
|
251
|
+
->(val) { val.instance_of? String }) and
|
|
252
|
+
APIHelper.valid_type?(value['postal_code'],
|
|
253
|
+
->(val) { val.instance_of? String })
|
|
254
|
+
)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Provides a human-readable string representation of the object.
|
|
258
|
+
def to_s
|
|
259
|
+
class_name = self.class.name.split('::').last
|
|
260
|
+
"<#{class_name} address: #{@address}, axena_activation_data: #{@axena_activation_data},"\
|
|
261
|
+
" cash_register_name: #{@cash_register_name}, city: #{@city}, control_unit_address:"\
|
|
262
|
+
" #{@control_unit_address}, control_unit_journal_address: #{@control_unit_journal_address},"\
|
|
263
|
+
" control_unit_manufacturer: #{@control_unit_manufacturer}, control_unit_model:"\
|
|
264
|
+
" #{@control_unit_model}, control_unit_serial: #{@control_unit_serial}, control_unit_type:"\
|
|
265
|
+
" #{@control_unit_type}, corporate_id: #{@corporate_id}, late_signing_enabled:"\
|
|
266
|
+
" #{@late_signing_enabled}, legal_entity: #{@legal_entity}, postal_code: #{@postal_code}>"
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
270
|
+
def inspect
|
|
271
|
+
class_name = self.class.name.split('::').last
|
|
272
|
+
"<#{class_name} address: #{@address.inspect}, axena_activation_data:"\
|
|
273
|
+
" #{@axena_activation_data.inspect}, cash_register_name: #{@cash_register_name.inspect},"\
|
|
274
|
+
" city: #{@city.inspect}, control_unit_address: #{@control_unit_address.inspect},"\
|
|
275
|
+
" control_unit_journal_address: #{@control_unit_journal_address.inspect},"\
|
|
276
|
+
" control_unit_manufacturer: #{@control_unit_manufacturer.inspect}, control_unit_model:"\
|
|
277
|
+
" #{@control_unit_model.inspect}, control_unit_serial: #{@control_unit_serial.inspect},"\
|
|
278
|
+
" control_unit_type: #{@control_unit_type.inspect}, corporate_id: #{@corporate_id.inspect},"\
|
|
279
|
+
" late_signing_enabled: #{@late_signing_enabled.inspect}, legal_entity:"\
|
|
280
|
+
" #{@legal_entity.inspect}, postal_code: #{@postal_code.inspect}>"
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
# CashboxConfigEfstaPtV1Dto Model.
|
|
8
|
+
class CashboxConfigEfstaPtV1Dto < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Address of the store, will be used in SAF-T report
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :address
|
|
15
|
+
|
|
16
|
+
# City of the store, will be used in SAF-T report
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :city
|
|
19
|
+
|
|
20
|
+
# Location short name, will be used in SAF-T report
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :label
|
|
23
|
+
|
|
24
|
+
# Unique identifier of the store (EFSTA location ID) that will be used in
|
|
25
|
+
# receipts. Limited up to 10 characters
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :location_id
|
|
28
|
+
|
|
29
|
+
# Postal Code of the store, will be used in SAF-T report
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :postal_code
|
|
32
|
+
|
|
33
|
+
# A mapping from model property names to API property names.
|
|
34
|
+
def self.names
|
|
35
|
+
@_hash = {} if @_hash.nil?
|
|
36
|
+
@_hash['address'] = 'address'
|
|
37
|
+
@_hash['city'] = 'city'
|
|
38
|
+
@_hash['label'] = 'label'
|
|
39
|
+
@_hash['location_id'] = 'location_id'
|
|
40
|
+
@_hash['postal_code'] = 'postal_code'
|
|
41
|
+
@_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# An array for optional fields
|
|
45
|
+
def self.optionals
|
|
46
|
+
[]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An array for nullable fields
|
|
50
|
+
def self.nullables
|
|
51
|
+
[]
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def initialize(address = nil, city = nil, label = nil, location_id = nil,
|
|
55
|
+
postal_code = nil)
|
|
56
|
+
@address = address
|
|
57
|
+
@city = city
|
|
58
|
+
@label = label
|
|
59
|
+
@location_id = location_id
|
|
60
|
+
@postal_code = postal_code
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Creates an instance of the object from a hash.
|
|
64
|
+
def self.from_hash(hash)
|
|
65
|
+
return nil unless hash
|
|
66
|
+
|
|
67
|
+
# Extract variables from the hash.
|
|
68
|
+
address = hash.key?('address') ? hash['address'] : nil
|
|
69
|
+
city = hash.key?('city') ? hash['city'] : nil
|
|
70
|
+
label = hash.key?('label') ? hash['label'] : nil
|
|
71
|
+
location_id = hash.key?('location_id') ? hash['location_id'] : nil
|
|
72
|
+
postal_code = hash.key?('postal_code') ? hash['postal_code'] : nil
|
|
73
|
+
|
|
74
|
+
# Create object from extracted values.
|
|
75
|
+
CashboxConfigEfstaPtV1Dto.new(address,
|
|
76
|
+
city,
|
|
77
|
+
label,
|
|
78
|
+
location_id,
|
|
79
|
+
postal_code)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Validates an instance of the object from a given value.
|
|
83
|
+
# @param [CashboxConfigEfstaPtV1Dto | Hash] The value against the validation is performed.
|
|
84
|
+
def self.validate(value)
|
|
85
|
+
if value.instance_of? self
|
|
86
|
+
return (
|
|
87
|
+
APIHelper.valid_type?(value.address,
|
|
88
|
+
->(val) { val.instance_of? String }) and
|
|
89
|
+
APIHelper.valid_type?(value.city,
|
|
90
|
+
->(val) { val.instance_of? String }) and
|
|
91
|
+
APIHelper.valid_type?(value.label,
|
|
92
|
+
->(val) { val.instance_of? String }) and
|
|
93
|
+
APIHelper.valid_type?(value.location_id,
|
|
94
|
+
->(val) { val.instance_of? String }) and
|
|
95
|
+
APIHelper.valid_type?(value.postal_code,
|
|
96
|
+
->(val) { val.instance_of? String })
|
|
97
|
+
)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
return false unless value.instance_of? Hash
|
|
101
|
+
|
|
102
|
+
(
|
|
103
|
+
APIHelper.valid_type?(value['address'],
|
|
104
|
+
->(val) { val.instance_of? String }) and
|
|
105
|
+
APIHelper.valid_type?(value['city'],
|
|
106
|
+
->(val) { val.instance_of? String }) and
|
|
107
|
+
APIHelper.valid_type?(value['label'],
|
|
108
|
+
->(val) { val.instance_of? String }) and
|
|
109
|
+
APIHelper.valid_type?(value['location_id'],
|
|
110
|
+
->(val) { val.instance_of? String }) and
|
|
111
|
+
APIHelper.valid_type?(value['postal_code'],
|
|
112
|
+
->(val) { val.instance_of? String })
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Provides a human-readable string representation of the object.
|
|
117
|
+
def to_s
|
|
118
|
+
class_name = self.class.name.split('::').last
|
|
119
|
+
"<#{class_name} address: #{@address}, city: #{@city}, label: #{@label}, location_id:"\
|
|
120
|
+
" #{@location_id}, postal_code: #{@postal_code}>"
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
124
|
+
def inspect
|
|
125
|
+
class_name = self.class.name.split('::').last
|
|
126
|
+
"<#{class_name} address: #{@address.inspect}, city: #{@city.inspect}, label:"\
|
|
127
|
+
" #{@label.inspect}, location_id: #{@location_id.inspect}, postal_code:"\
|
|
128
|
+
" #{@postal_code.inspect}>"
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|