wallee-ruby-sdk 1.0.1 → 2.2.4
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 +5 -5
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +107 -34
- data/lib/wallee-ruby-sdk.rb +260 -99
- data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +42 -46
- data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
- data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
- data/lib/wallee-ruby-sdk/api/customer_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb +796 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +94 -41
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +33 -37
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +9 -13
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
- data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +96 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/payment_link_service_api.rb} +68 -72
- data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/payment_terminal_service_api.rb} +36 -40
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
- data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +125 -61
- data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +46 -50
- data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +38 -42
- data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +28 -32
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +245 -115
- data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
- data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +164 -44
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +186 -59
- data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +273 -326
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +30 -34
- data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/api_client.rb +7 -7
- data/lib/wallee-ruby-sdk/api_error.rb +0 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -6
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
- data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +262 -0
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +246 -0
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +136 -16
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
- data/lib/wallee-ruby-sdk/models/account.rb +90 -13
- data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
- data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
- data/lib/wallee-ruby-sdk/models/address.rb +240 -22
- data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
- data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
- data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
- data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
- data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
- data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
- data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -23
- data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
- data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/wallee-ruby-sdk/models/customer_address.rb +261 -0
- data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
- data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
- data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
- data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +495 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +303 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +338 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +225 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +40 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +293 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +305 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +215 -0
- data/lib/wallee-ruby-sdk/models/{email_sender.rb → debt_collector_condition.rb} +34 -46
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +310 -0
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -25
- data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +208 -0
- data/lib/wallee-ruby-sdk/models/entity_query.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +15 -12
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
- data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
- data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
- data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +225 -0
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +30 -15
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +355 -0
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → payment_contract_type.rb} +9 -16
- data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
- data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
- data/lib/wallee-ruby-sdk/models/payment_link.rb +414 -0
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +350 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +373 -0
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/payment_method.rb +20 -15
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +31 -13
- data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +51 -79
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +456 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +313 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_contact_address.rb} +105 -27
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +286 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → payment_terminal_type.rb} +33 -28
- data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/refund.rb +130 -13
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
- data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
- data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +203 -0
- data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
- data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +227 -0
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +43 -0
- data/lib/wallee-ruby-sdk/models/rest_country.rb +16 -13
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
- data/lib/wallee-ruby-sdk/models/role.rb +16 -13
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
- data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +281 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +365 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
- data/lib/wallee-ruby-sdk/models/shopify_tax_line.rb +231 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/space.rb +91 -14
- data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
- data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
- data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
- data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscription.rb +86 -13
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +333 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +27 -17
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +22 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +29 -12
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -15
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +38 -15
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
- data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
- data/lib/wallee-ruby-sdk/models/token.rb +59 -12
- data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
- data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
- data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +37 -0
- data/lib/wallee-ruby-sdk/models/transaction.rb +291 -16
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +200 -15
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +85 -13
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +137 -16
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/{email_template_type.rb → two_factor_authentication_type.rb} +18 -71
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +284 -0
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +293 -0
- data/lib/wallee-ruby-sdk/models/user.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +7 -24
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
- data/test/transaction_payment_page_service_test.rb +91 -0
- data/wallee-ruby-sdk.gemspec +5 -8
- metadata +262 -87
- data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
- data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
- data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
|
|
16
|
+
=end
|
|
17
|
+
|
|
18
|
+
require 'date'
|
|
19
|
+
|
|
20
|
+
module Wallee
|
|
21
|
+
# The metric usage provides details about the consumption of a particular metric.
|
|
22
|
+
class MetricUsage
|
|
23
|
+
# The consumed units provide the value of how much has been consumed of the particular metric.
|
|
24
|
+
attr_accessor :consumed_units
|
|
25
|
+
|
|
26
|
+
# The metric description describes the metric.
|
|
27
|
+
attr_accessor :metric_description
|
|
28
|
+
|
|
29
|
+
# The metric ID identifies the metric for consumed units.
|
|
30
|
+
attr_accessor :metric_id
|
|
31
|
+
|
|
32
|
+
# The metric name defines the name of the consumed units.
|
|
33
|
+
attr_accessor :metric_name
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
def self.attribute_map
|
|
37
|
+
{
|
|
38
|
+
:'consumed_units' => :'consumedUnits',
|
|
39
|
+
:'metric_description' => :'metricDescription',
|
|
40
|
+
:'metric_id' => :'metricId',
|
|
41
|
+
:'metric_name' => :'metricName'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.swagger_types
|
|
47
|
+
{
|
|
48
|
+
:'consumed_units' => :'Float',
|
|
49
|
+
:'metric_description' => :'Hash<String, String>',
|
|
50
|
+
:'metric_id' => :'Integer',
|
|
51
|
+
:'metric_name' => :'Hash<String, String>'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
return unless attributes.is_a?(Hash)
|
|
59
|
+
|
|
60
|
+
# convert string to symbol for hash key
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
62
|
+
|
|
63
|
+
if attributes.has_key?(:'consumedUnits')
|
|
64
|
+
self.consumed_units = attributes[:'consumedUnits']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.has_key?(:'metricDescription')
|
|
68
|
+
if (value = attributes[:'metricDescription']).is_a?(Hash)
|
|
69
|
+
self.metric_description = value
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.has_key?(:'metricId')
|
|
74
|
+
self.metric_id = attributes[:'metricId']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'metricName')
|
|
78
|
+
if (value = attributes[:'metricName']).is_a?(Hash)
|
|
79
|
+
self.metric_name = value
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def ==(o)
|
|
100
|
+
return true if self.equal?(o)
|
|
101
|
+
self.class == o.class &&
|
|
102
|
+
consumed_units == o.consumed_units &&
|
|
103
|
+
metric_description == o.metric_description &&
|
|
104
|
+
metric_id == o.metric_id &&
|
|
105
|
+
metric_name == o.metric_name
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# @see the `==` method
|
|
109
|
+
# @param [Object] Object to be compared
|
|
110
|
+
def eql?(o)
|
|
111
|
+
self == o
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Calculates hash code according to all attributes.
|
|
115
|
+
# @return [Fixnum] Hash code
|
|
116
|
+
def hash
|
|
117
|
+
[consumed_units, metric_description, metric_id, metric_name].hash
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Builds the object from hash
|
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
122
|
+
# @return [Object] Returns the model itself
|
|
123
|
+
def build_from_hash(attributes)
|
|
124
|
+
return nil unless attributes.is_a?(Hash)
|
|
125
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
126
|
+
if type =~ /\AArray<(.*)>/i
|
|
127
|
+
# check to ensure the input is an array given that the attribute
|
|
128
|
+
# is documented as an array but the input is not
|
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
131
|
+
end
|
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
134
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
self
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Deserializes the data based on type
|
|
141
|
+
# @param string type Data type
|
|
142
|
+
# @param string value Value to be deserialized
|
|
143
|
+
# @return [Object] Deserialized data
|
|
144
|
+
def _deserialize(type, value)
|
|
145
|
+
case type.to_sym
|
|
146
|
+
when :DateTime
|
|
147
|
+
DateTime.parse(value)
|
|
148
|
+
when :Date
|
|
149
|
+
Date.parse(value)
|
|
150
|
+
when :String
|
|
151
|
+
value.to_s
|
|
152
|
+
when :Integer
|
|
153
|
+
value.to_i
|
|
154
|
+
when :Float
|
|
155
|
+
value.to_f
|
|
156
|
+
when :BOOLEAN
|
|
157
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
158
|
+
true
|
|
159
|
+
else
|
|
160
|
+
false
|
|
161
|
+
end
|
|
162
|
+
when :Object
|
|
163
|
+
# generic object (usually a Hash), return directly
|
|
164
|
+
value
|
|
165
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
166
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
167
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
168
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
169
|
+
k_type = Regexp.last_match[:k_type]
|
|
170
|
+
v_type = Regexp.last_match[:v_type]
|
|
171
|
+
{}.tap do |hash|
|
|
172
|
+
value.each do |k, v|
|
|
173
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
else # model
|
|
177
|
+
temp_model = Wallee.const_get(type).new
|
|
178
|
+
temp_model.build_from_hash(value)
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the string representation of the object
|
|
183
|
+
# @return [String] String presentation of the object
|
|
184
|
+
def to_s
|
|
185
|
+
to_hash.to_s
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
def to_body
|
|
191
|
+
to_hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the object in the form of hash
|
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
|
196
|
+
def to_hash
|
|
197
|
+
hash = {}
|
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
199
|
+
value = self.send(attr)
|
|
200
|
+
next if value.nil?
|
|
201
|
+
hash[param] = _to_hash(value)
|
|
202
|
+
end
|
|
203
|
+
hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Outputs non-array value in the form of hash
|
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
208
|
+
# @param [Object] value Any valid value
|
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
|
210
|
+
def _to_hash(value)
|
|
211
|
+
if value.is_a?(Array)
|
|
212
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
213
|
+
elsif value.is_a?(Hash)
|
|
214
|
+
{}.tap do |hash|
|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
216
|
+
end
|
|
217
|
+
elsif value.respond_to? :to_hash
|
|
218
|
+
value.to_hash
|
|
219
|
+
else
|
|
220
|
+
value
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
end
|
|
225
|
+
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -24,21 +20,17 @@ require 'date'
|
|
|
24
20
|
module Wallee
|
|
25
21
|
class OneClickPaymentMode
|
|
26
22
|
|
|
27
|
-
DISABLED =
|
|
28
|
-
ALLOW =
|
|
29
|
-
FORCE =
|
|
30
|
-
|
|
31
|
-
# Builds the
|
|
32
|
-
# @param [
|
|
33
|
-
# @return [
|
|
23
|
+
DISABLED = 'DISABLED'.freeze
|
|
24
|
+
ALLOW = 'ALLOW'.freeze
|
|
25
|
+
FORCE = 'FORCE'.freeze
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
34
30
|
def build_from_hash(value)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
raise "Invalid ENUM value #{value} for class #OneClickPaymentMode" if consantValues.empty?
|
|
38
|
-
|
|
31
|
+
constantValues = OneClickPaymentMode.constants.select { |c| OneClickPaymentMode::const_get(c) == value }
|
|
32
|
+
raise "Invalid ENUM value #{value} for class #OneClickPaymentMode" if constantValues.empty?
|
|
39
33
|
value
|
|
40
|
-
|
|
41
34
|
end
|
|
42
35
|
end
|
|
43
|
-
|
|
44
36
|
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -27,6 +23,12 @@ module Wallee
|
|
|
27
23
|
#
|
|
28
24
|
attr_accessor :data_collection_type
|
|
29
25
|
|
|
26
|
+
#
|
|
27
|
+
attr_accessor :deprecated
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
attr_accessor :deprecation_reason
|
|
31
|
+
|
|
30
32
|
#
|
|
31
33
|
attr_accessor :description
|
|
32
34
|
|
|
@@ -57,11 +59,12 @@ module Wallee
|
|
|
57
59
|
#
|
|
58
60
|
attr_accessor :supported_features
|
|
59
61
|
|
|
60
|
-
|
|
61
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
63
|
def self.attribute_map
|
|
63
64
|
{
|
|
64
65
|
:'data_collection_type' => :'dataCollectionType',
|
|
66
|
+
:'deprecated' => :'deprecated',
|
|
67
|
+
:'deprecation_reason' => :'deprecationReason',
|
|
65
68
|
:'description' => :'description',
|
|
66
69
|
:'feature' => :'feature',
|
|
67
70
|
:'id' => :'id',
|
|
@@ -79,6 +82,8 @@ module Wallee
|
|
|
79
82
|
def self.swagger_types
|
|
80
83
|
{
|
|
81
84
|
:'data_collection_type' => :'DataCollectionType',
|
|
85
|
+
:'deprecated' => :'BOOLEAN',
|
|
86
|
+
:'deprecation_reason' => :'Hash<String, String>',
|
|
82
87
|
:'description' => :'Hash<String, String>',
|
|
83
88
|
:'feature' => :'Feature',
|
|
84
89
|
:'id' => :'Integer',
|
|
@@ -98,14 +103,24 @@ module Wallee
|
|
|
98
103
|
return unless attributes.is_a?(Hash)
|
|
99
104
|
|
|
100
105
|
# convert string to symbol for hash key
|
|
101
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
106
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
102
107
|
|
|
103
108
|
if attributes.has_key?(:'dataCollectionType')
|
|
104
109
|
self.data_collection_type = attributes[:'dataCollectionType']
|
|
105
110
|
end
|
|
106
111
|
|
|
112
|
+
if attributes.has_key?(:'deprecated')
|
|
113
|
+
self.deprecated = attributes[:'deprecated']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.has_key?(:'deprecationReason')
|
|
117
|
+
if (value = attributes[:'deprecationReason']).is_a?(Hash)
|
|
118
|
+
self.deprecation_reason = value
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
107
122
|
if attributes.has_key?(:'description')
|
|
108
|
-
if (value = attributes[:'description']).is_a?(
|
|
123
|
+
if (value = attributes[:'description']).is_a?(Hash)
|
|
109
124
|
self.description = value
|
|
110
125
|
end
|
|
111
126
|
end
|
|
@@ -119,7 +134,7 @@ module Wallee
|
|
|
119
134
|
end
|
|
120
135
|
|
|
121
136
|
if attributes.has_key?(:'name')
|
|
122
|
-
if (value = attributes[:'name']).is_a?(
|
|
137
|
+
if (value = attributes[:'name']).is_a?(Hash)
|
|
123
138
|
self.name = value
|
|
124
139
|
end
|
|
125
140
|
end
|
|
@@ -151,20 +166,19 @@ module Wallee
|
|
|
151
166
|
self.supported_features = value
|
|
152
167
|
end
|
|
153
168
|
end
|
|
154
|
-
|
|
155
169
|
end
|
|
156
170
|
|
|
157
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
158
|
-
# @return Array for valid
|
|
172
|
+
# @return Array for valid properties with the reasons
|
|
159
173
|
def list_invalid_properties
|
|
160
174
|
invalid_properties = Array.new
|
|
161
|
-
|
|
175
|
+
invalid_properties
|
|
162
176
|
end
|
|
163
177
|
|
|
164
178
|
# Check to see if the all the properties in the model are valid
|
|
165
179
|
# @return true if the model is valid
|
|
166
180
|
def valid?
|
|
167
|
-
|
|
181
|
+
true
|
|
168
182
|
end
|
|
169
183
|
|
|
170
184
|
# Checks equality by comparing each attribute.
|
|
@@ -173,6 +187,8 @@ module Wallee
|
|
|
173
187
|
return true if self.equal?(o)
|
|
174
188
|
self.class == o.class &&
|
|
175
189
|
data_collection_type == o.data_collection_type &&
|
|
190
|
+
deprecated == o.deprecated &&
|
|
191
|
+
deprecation_reason == o.deprecation_reason &&
|
|
176
192
|
description == o.description &&
|
|
177
193
|
feature == o.feature &&
|
|
178
194
|
id == o.id &&
|
|
@@ -194,7 +210,7 @@ module Wallee
|
|
|
194
210
|
# Calculates hash code according to all attributes.
|
|
195
211
|
# @return [Fixnum] Hash code
|
|
196
212
|
def hash
|
|
197
|
-
[data_collection_type, description, feature, id, name, payment_method, payment_method_brand, primary_risk_taker, processor, supported_customers_presences, supported_features].hash
|
|
213
|
+
[data_collection_type, deprecated, deprecation_reason, description, feature, id, name, payment_method, payment_method_brand, primary_risk_taker, processor, supported_customers_presences, supported_features].hash
|
|
198
214
|
end
|
|
199
215
|
|
|
200
216
|
# Builds the object from hash
|
|
@@ -204,7 +220,7 @@ module Wallee
|
|
|
204
220
|
return nil unless attributes.is_a?(Hash)
|
|
205
221
|
self.class.swagger_types.each_pair do |key, type|
|
|
206
222
|
if type =~ /\AArray<(.*)>/i
|
|
207
|
-
# check to ensure the input is an array given that the
|
|
223
|
+
# check to ensure the input is an array given that the attribute
|
|
208
224
|
# is documented as an array but the input is not
|
|
209
225
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
210
226
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -302,5 +318,4 @@ module Wallee
|
|
|
302
318
|
end
|
|
303
319
|
|
|
304
320
|
end
|
|
305
|
-
|
|
306
321
|
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -33,6 +29,9 @@ module Wallee
|
|
|
33
29
|
#
|
|
34
30
|
attr_accessor :connector
|
|
35
31
|
|
|
32
|
+
# Defines the sales channels the connector configuration is enabled for. In case the set is empty, the connector configuration is enabled for all sales channels.
|
|
33
|
+
attr_accessor :enabled_sales_channels
|
|
34
|
+
|
|
36
35
|
# The connector configuration is only enabled for the selected space views. In case the set is empty the connector configuration is enabled for all space views.
|
|
37
36
|
attr_accessor :enabled_space_views
|
|
38
37
|
|
|
@@ -63,13 +62,13 @@ module Wallee
|
|
|
63
62
|
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
|
64
63
|
attr_accessor :version
|
|
65
64
|
|
|
66
|
-
|
|
67
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
66
|
def self.attribute_map
|
|
69
67
|
{
|
|
70
68
|
:'applicable_for_transaction_processing' => :'applicableForTransactionProcessing',
|
|
71
69
|
:'conditions' => :'conditions',
|
|
72
70
|
:'connector' => :'connector',
|
|
71
|
+
:'enabled_sales_channels' => :'enabledSalesChannels',
|
|
73
72
|
:'enabled_space_views' => :'enabledSpaceViews',
|
|
74
73
|
:'id' => :'id',
|
|
75
74
|
:'linked_space_id' => :'linkedSpaceId',
|
|
@@ -89,6 +88,7 @@ module Wallee
|
|
|
89
88
|
:'applicable_for_transaction_processing' => :'BOOLEAN',
|
|
90
89
|
:'conditions' => :'Array<Integer>',
|
|
91
90
|
:'connector' => :'Integer',
|
|
91
|
+
:'enabled_sales_channels' => :'Array<SalesChannel>',
|
|
92
92
|
:'enabled_space_views' => :'Array<Integer>',
|
|
93
93
|
:'id' => :'Integer',
|
|
94
94
|
:'linked_space_id' => :'Integer',
|
|
@@ -108,7 +108,7 @@ module Wallee
|
|
|
108
108
|
return unless attributes.is_a?(Hash)
|
|
109
109
|
|
|
110
110
|
# convert string to symbol for hash key
|
|
111
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
112
112
|
|
|
113
113
|
if attributes.has_key?(:'applicableForTransactionProcessing')
|
|
114
114
|
self.applicable_for_transaction_processing = attributes[:'applicableForTransactionProcessing']
|
|
@@ -124,6 +124,12 @@ module Wallee
|
|
|
124
124
|
self.connector = attributes[:'connector']
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
+
if attributes.has_key?(:'enabledSalesChannels')
|
|
128
|
+
if (value = attributes[:'enabledSalesChannels']).is_a?(Array)
|
|
129
|
+
self.enabled_sales_channels = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
127
133
|
if attributes.has_key?(:'enabledSpaceViews')
|
|
128
134
|
if (value = attributes[:'enabledSpaceViews']).is_a?(Array)
|
|
129
135
|
self.enabled_space_views = value
|
|
@@ -165,20 +171,34 @@ module Wallee
|
|
|
165
171
|
if attributes.has_key?(:'version')
|
|
166
172
|
self.version = attributes[:'version']
|
|
167
173
|
end
|
|
168
|
-
|
|
169
174
|
end
|
|
170
175
|
|
|
171
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
172
|
-
# @return Array for valid
|
|
177
|
+
# @return Array for valid properties with the reasons
|
|
173
178
|
def list_invalid_properties
|
|
174
179
|
invalid_properties = Array.new
|
|
175
|
-
|
|
180
|
+
if !@name.nil? && @name.to_s.length > 100
|
|
181
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
invalid_properties
|
|
176
185
|
end
|
|
177
186
|
|
|
178
187
|
# Check to see if the all the properties in the model are valid
|
|
179
188
|
# @return true if the model is valid
|
|
180
189
|
def valid?
|
|
181
|
-
return
|
|
190
|
+
return false if !@name.nil? && @name.to_s.length > 100
|
|
191
|
+
true
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] name Value to be assigned
|
|
196
|
+
def name=(name)
|
|
197
|
+
if !name.nil? && name.to_s.length > 100
|
|
198
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@name = name
|
|
182
202
|
end
|
|
183
203
|
|
|
184
204
|
# Checks equality by comparing each attribute.
|
|
@@ -189,6 +209,7 @@ module Wallee
|
|
|
189
209
|
applicable_for_transaction_processing == o.applicable_for_transaction_processing &&
|
|
190
210
|
conditions == o.conditions &&
|
|
191
211
|
connector == o.connector &&
|
|
212
|
+
enabled_sales_channels == o.enabled_sales_channels &&
|
|
192
213
|
enabled_space_views == o.enabled_space_views &&
|
|
193
214
|
id == o.id &&
|
|
194
215
|
linked_space_id == o.linked_space_id &&
|
|
@@ -210,7 +231,7 @@ module Wallee
|
|
|
210
231
|
# Calculates hash code according to all attributes.
|
|
211
232
|
# @return [Fixnum] Hash code
|
|
212
233
|
def hash
|
|
213
|
-
[applicable_for_transaction_processing, conditions, connector, enabled_space_views, id, linked_space_id, name, payment_method_configuration, planned_purge_date, priority, processor_configuration, state, version].hash
|
|
234
|
+
[applicable_for_transaction_processing, conditions, connector, enabled_sales_channels, enabled_space_views, id, linked_space_id, name, payment_method_configuration, planned_purge_date, priority, processor_configuration, state, version].hash
|
|
214
235
|
end
|
|
215
236
|
|
|
216
237
|
# Builds the object from hash
|
|
@@ -220,7 +241,7 @@ module Wallee
|
|
|
220
241
|
return nil unless attributes.is_a?(Hash)
|
|
221
242
|
self.class.swagger_types.each_pair do |key, type|
|
|
222
243
|
if type =~ /\AArray<(.*)>/i
|
|
223
|
-
# check to ensure the input is an array given that the
|
|
244
|
+
# check to ensure the input is an array given that the attribute
|
|
224
245
|
# is documented as an array but the input is not
|
|
225
246
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
226
247
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -318,5 +339,4 @@ module Wallee
|
|
|
318
339
|
end
|
|
319
340
|
|
|
320
341
|
end
|
|
321
|
-
|
|
322
342
|
end
|