wallee-ruby-sdk 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/{wallee/models/line_item_attribute.rb → wallee-ruby-sdk/models/abstract_account_update.rb} +17 -17
- data/lib/{wallee/models/line_item_attribute_create.rb → wallee-ruby-sdk/models/abstract_application_user_update.rb} +16 -16
- data/lib/{wallee/models/user.rb → wallee-ruby-sdk/models/abstract_human_user_update.rb} +41 -41
- data/lib/{wallee/models/condition.rb → wallee-ruby-sdk/models/abstract_space_update.rb} +39 -47
- data/lib/{wallee/models/subscriber.rb → wallee-ruby-sdk/models/abstract_subscriber_update.rb} +16 -64
- data/lib/{wallee/models/persistable_currency_amount.rb → wallee-ruby-sdk/models/abstract_subscription_metric_update.rb} +15 -15
- data/lib/{wallee/models/subscription_product.rb → wallee-ruby-sdk/models/abstract_subscription_product_active.rb} +6 -66
- data/lib/{wallee/models/token.rb → wallee-ruby-sdk/models/abstract_token_update.rb} +12 -72
- data/lib/{wallee/models/token_version.rb → wallee-ruby-sdk/models/abstract_transaction_pending.rb} +111 -105
- data/lib/{wallee/models/entity_query_order_by.rb → wallee-ruby-sdk/models/abstract_webhook_listener_update.rb} +16 -16
- data/lib/{wallee/models/webhook_listener_entity.rb → wallee-ruby-sdk/models/abstract_webhook_url_update.rb} +20 -22
- data/lib/wallee-ruby-sdk/models/account_create.rb +8 -98
- data/lib/wallee-ruby-sdk/models/account_update.rb +8 -78
- data/lib/wallee-ruby-sdk/models/address.rb +1 -1
- data/lib/wallee-ruby-sdk/models/address_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +8 -68
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +18 -58
- data/lib/wallee-ruby-sdk/models/charge.rb +11 -1
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +1 -23
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +1 -11
- data/lib/wallee-ruby-sdk/models/human_user.rb +11 -61
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +21 -91
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +31 -81
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +10 -0
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +4 -64
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +35 -1
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +24 -44
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +24 -24
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +24 -44
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +24 -44
- data/lib/wallee-ruby-sdk/models/refund_create.rb +4 -214
- data/lib/{wallee/models/tax_class.rb → wallee-ruby-sdk/models/role.rb} +26 -24
- data/lib/{wallee/models/space_address.rb → wallee-ruby-sdk/models/space_address_create.rb} +1 -1
- data/lib/wallee-ruby-sdk/models/space_create.rb +9 -94
- data/lib/wallee-ruby-sdk/models/space_update.rb +12 -72
- data/lib/wallee-ruby-sdk/models/subscriber.rb +13 -1
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +33 -51
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +17 -55
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +33 -61
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +4 -136
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +4 -104
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +20 -60
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +4 -64
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +20 -60
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +4 -64
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +17 -97
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -51
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +11 -21
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +24 -34
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +8 -68
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +4 -44
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +24 -24
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +4 -44
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +4 -104
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +17 -127
- data/lib/wallee-ruby-sdk/models/token.rb +11 -1
- data/lib/wallee-ruby-sdk/models/token_create.rb +25 -75
- data/lib/wallee-ruby-sdk/models/token_update.rb +18 -58
- data/lib/wallee-ruby-sdk/models/token_version.rb +21 -1
- data/lib/{wallee/models/email_sender_type.rb → wallee-ruby-sdk/models/token_version_type.rb} +2 -2
- data/lib/wallee-ruby-sdk/models/transaction.rb +53 -3
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +43 -278
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +19 -259
- data/lib/{wallee/models/label.rb → wallee-ruby-sdk/models/user_account_role.rb} +34 -24
- data/lib/{wallee/models/tenant_database.rb → wallee-ruby-sdk/models/user_space_role.rb} +29 -9
- data/lib/wallee-ruby-sdk/models/user_type.rb +1 -0
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +24 -79
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +11 -1
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +8 -80
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +4 -59
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +11 -31
- data/lib/wallee-ruby-sdk/services/token_service_api.rb +3 -3
- data/lib/wallee-ruby-sdk/services/user_account_role_service_api.rb +223 -0
- data/lib/wallee-ruby-sdk/services/user_space_role_service_api.rb +220 -0
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee-ruby-sdk.rb +18 -11
- data/test/transactioncreate.rb +5 -9
- metadata +21 -293
- data/Gemfile.lock +0 -31
- data/lib/wallee/api_client.rb +0 -403
- data/lib/wallee/api_error.rb +0 -47
- data/lib/wallee/configuration.rb +0 -144
- data/lib/wallee/models/account.rb +0 -298
- data/lib/wallee/models/account_create.rb +0 -308
- data/lib/wallee/models/account_state.rb +0 -47
- data/lib/wallee/models/account_type.rb +0 -44
- data/lib/wallee/models/account_update.rb +0 -308
- data/lib/wallee/models/address.rb +0 -388
- data/lib/wallee/models/address_create.rb +0 -388
- data/lib/wallee/models/application_user.rb +0 -268
- data/lib/wallee/models/application_user_create.rb +0 -283
- data/lib/wallee/models/application_user_create_with_mac_key.rb +0 -278
- data/lib/wallee/models/application_user_update.rb +0 -278
- data/lib/wallee/models/attachment_resource.rb +0 -210
- data/lib/wallee/models/charge.rb +0 -318
- data/lib/wallee/models/charge_attempt.rb +0 -420
- data/lib/wallee/models/charge_attempt_environment.rb +0 -43
- data/lib/wallee/models/charge_attempt_state.rb +0 -44
- data/lib/wallee/models/charge_flow.rb +0 -270
- data/lib/wallee/models/charge_flow_level.rb +0 -318
- data/lib/wallee/models/charge_flow_level_configuration.rb +0 -288
- data/lib/wallee/models/charge_flow_level_configuration_type.rb +0 -222
- data/lib/wallee/models/charge_flow_level_state.rb +0 -44
- data/lib/wallee/models/charge_state.rb +0 -44
- data/lib/wallee/models/charge_type.rb +0 -44
- data/lib/wallee/models/client_error.rb +0 -238
- data/lib/wallee/models/client_error_type.rb +0 -44
- data/lib/wallee/models/condition_type.rb +0 -222
- data/lib/wallee/models/connector_invocation.rb +0 -278
- data/lib/wallee/models/connector_invocation_stage.rb +0 -45
- data/lib/wallee/models/creation_entity_state.rb +0 -46
- data/lib/wallee/models/criteria_operator.rb +0 -50
- data/lib/wallee/models/customers_presence.rb +0 -44
- data/lib/wallee/models/data_collection_type.rb +0 -43
- data/lib/wallee/models/database_translated_string.rb +0 -222
- data/lib/wallee/models/database_translated_string_create.rb +0 -222
- data/lib/wallee/models/database_translated_string_item.rb +0 -218
- data/lib/wallee/models/database_translated_string_item_create.rb +0 -223
- data/lib/wallee/models/delivery_indication.rb +0 -318
- data/lib/wallee/models/delivery_indication_decision_reason.rb +0 -222
- data/lib/wallee/models/delivery_indication_state.rb +0 -45
- data/lib/wallee/models/document_template.rb +0 -278
- data/lib/wallee/models/document_template_type.rb +0 -242
- data/lib/wallee/models/email_sender.rb +0 -278
- data/lib/wallee/models/email_template.rb +0 -324
- data/lib/wallee/models/email_template_type.rb +0 -288
- data/lib/wallee/models/entity_query.rb +0 -240
- data/lib/wallee/models/entity_query_filter.rb +0 -245
- data/lib/wallee/models/entity_query_filter_type.rb +0 -44
- data/lib/wallee/models/entity_query_order_by_type.rb +0 -43
- data/lib/wallee/models/entity_reference.rb +0 -188
- data/lib/wallee/models/failure_category.rb +0 -46
- data/lib/wallee/models/failure_reason.rb +0 -244
- data/lib/wallee/models/feature.rb +0 -274
- data/lib/wallee/models/gender.rb +0 -43
- data/lib/wallee/models/human_user.rb +0 -318
- data/lib/wallee/models/human_user_create.rb +0 -328
- data/lib/wallee/models/human_user_update.rb +0 -328
- data/lib/wallee/models/installment_calculated_plan.rb +0 -242
- data/lib/wallee/models/installment_calculated_slice.rb +0 -220
- data/lib/wallee/models/installment_payment.rb +0 -280
- data/lib/wallee/models/installment_payment_slice.rb +0 -300
- data/lib/wallee/models/installment_payment_slice_state.rb +0 -48
- data/lib/wallee/models/installment_payment_state.rb +0 -49
- data/lib/wallee/models/installment_plan_configuration.rb +0 -362
- data/lib/wallee/models/installment_plan_slice_configuration.rb +0 -288
- data/lib/wallee/models/label_descriptor.rb +0 -274
- data/lib/wallee/models/label_descriptor_category.rb +0 -43
- data/lib/wallee/models/label_descriptor_group.rb +0 -232
- data/lib/wallee/models/label_descriptor_type.rb +0 -222
- data/lib/wallee/models/legal_organization_form.rb +0 -242
- data/lib/wallee/models/line_item.rb +0 -342
- data/lib/wallee/models/line_item_create.rb +0 -367
- data/lib/wallee/models/line_item_reduction.rb +0 -218
- data/lib/wallee/models/line_item_reduction_create.rb +0 -233
- data/lib/wallee/models/line_item_type.rb +0 -45
- data/lib/wallee/models/localized_string.rb +0 -218
- data/lib/wallee/models/manual_task.rb +0 -290
- data/lib/wallee/models/manual_task_action.rb +0 -230
- data/lib/wallee/models/manual_task_action_style.rb +0 -44
- data/lib/wallee/models/manual_task_state.rb +0 -44
- data/lib/wallee/models/manual_task_type.rb +0 -234
- data/lib/wallee/models/one_click_payment_mode.rb +0 -44
- data/lib/wallee/models/payment_connector.rb +0 -306
- data/lib/wallee/models/payment_connector_configuration.rb +0 -322
- data/lib/wallee/models/payment_connector_feature.rb +0 -218
- data/lib/wallee/models/payment_method.rb +0 -256
- data/lib/wallee/models/payment_method_brand.rb +0 -252
- data/lib/wallee/models/payment_method_configuration.rb +0 -328
- data/lib/wallee/models/payment_primary_risk_taker.rb +0 -44
- data/lib/wallee/models/payment_processor.rb +0 -278
- data/lib/wallee/models/payment_processor_configuration.rb +0 -258
- data/lib/wallee/models/permission.rb +0 -286
- data/lib/wallee/models/persistable_currency_amount_update.rb +0 -208
- data/lib/wallee/models/product_fee_type.rb +0 -44
- data/lib/wallee/models/product_metered_fee.rb +0 -278
- data/lib/wallee/models/product_metered_fee_update.rb +0 -288
- data/lib/wallee/models/product_metered_tier_fee.rb +0 -240
- data/lib/wallee/models/product_metered_tier_fee_update.rb +0 -250
- data/lib/wallee/models/product_metered_tier_pricing.rb +0 -43
- data/lib/wallee/models/product_period_fee.rb +0 -280
- data/lib/wallee/models/product_period_fee_update.rb +0 -290
- data/lib/wallee/models/product_setup_fee.rb +0 -294
- data/lib/wallee/models/product_setup_fee_update.rb +0 -304
- data/lib/wallee/models/refund.rb +0 -450
- data/lib/wallee/models/refund_create.rb +0 -470
- data/lib/wallee/models/refund_state.rb +0 -46
- data/lib/wallee/models/refund_type.rb +0 -45
- data/lib/wallee/models/rendered_document.rb +0 -230
- data/lib/wallee/models/resource_path.rb +0 -258
- data/lib/wallee/models/resource_state.rb +0 -44
- data/lib/wallee/models/rest_country.rb +0 -240
- data/lib/wallee/models/rest_country_state.rb +0 -228
- data/lib/wallee/models/rest_currency.rb +0 -218
- data/lib/wallee/models/rest_language.rb +0 -248
- data/lib/wallee/models/scope.rb +0 -302
- data/lib/wallee/models/server_error.rb +0 -218
- data/lib/wallee/models/space.rb +0 -330
- data/lib/wallee/models/space_address_setter.rb +0 -318
- data/lib/wallee/models/space_create.rb +0 -350
- data/lib/wallee/models/space_reference.rb +0 -258
- data/lib/wallee/models/space_reference_state.rb +0 -46
- data/lib/wallee/models/space_update.rb +0 -340
- data/lib/wallee/models/space_view.rb +0 -258
- data/lib/wallee/models/static_value.rb +0 -234
- data/lib/wallee/models/subscriber_active.rb +0 -342
- data/lib/wallee/models/subscriber_create.rb +0 -347
- data/lib/wallee/models/subscriber_update.rb +0 -342
- data/lib/wallee/models/subscription.rb +0 -338
- data/lib/wallee/models/subscription_change_request.rb +0 -250
- data/lib/wallee/models/subscription_charge.rb +0 -390
- data/lib/wallee/models/subscription_charge_create.rb +0 -405
- data/lib/wallee/models/subscription_charge_processing_type.rb +0 -43
- data/lib/wallee/models/subscription_charge_state.rb +0 -46
- data/lib/wallee/models/subscription_charge_type.rb +0 -43
- data/lib/wallee/models/subscription_create_request.rb +0 -245
- data/lib/wallee/models/subscription_ledger_entry.rb +0 -350
- data/lib/wallee/models/subscription_ledger_entry_create.rb +0 -375
- data/lib/wallee/models/subscription_ledger_entry_state.rb +0 -44
- data/lib/wallee/models/subscription_metric.rb +0 -268
- data/lib/wallee/models/subscription_metric_active.rb +0 -278
- data/lib/wallee/models/subscription_metric_create.rb +0 -288
- data/lib/wallee/models/subscription_metric_type.rb +0 -232
- data/lib/wallee/models/subscription_metric_update.rb +0 -278
- data/lib/wallee/models/subscription_metric_usage_report.rb +0 -298
- data/lib/wallee/models/subscription_metric_usage_report_create.rb +0 -318
- data/lib/wallee/models/subscription_pending.rb +0 -348
- data/lib/wallee/models/subscription_period_bill.rb +0 -298
- data/lib/wallee/models/subscription_period_bill_state.rb +0 -43
- data/lib/wallee/models/subscription_product_active.rb +0 -310
- data/lib/wallee/models/subscription_product_component.rb +0 -298
- data/lib/wallee/models/subscription_product_component_group.rb +0 -258
- data/lib/wallee/models/subscription_product_component_group_update.rb +0 -268
- data/lib/wallee/models/subscription_product_component_reference.rb +0 -258
- data/lib/wallee/models/subscription_product_component_reference_state.rb +0 -45
- data/lib/wallee/models/subscription_product_component_update.rb +0 -308
- data/lib/wallee/models/subscription_product_create.rb +0 -315
- data/lib/wallee/models/subscription_product_retirement.rb +0 -258
- data/lib/wallee/models/subscription_product_retirement_create.rb +0 -263
- data/lib/wallee/models/subscription_product_state.rb +0 -46
- data/lib/wallee/models/subscription_product_version.rb +0 -390
- data/lib/wallee/models/subscription_product_version_pending.rb +0 -310
- data/lib/wallee/models/subscription_product_version_retirement.rb +0 -258
- data/lib/wallee/models/subscription_product_version_retirement_create.rb +0 -263
- data/lib/wallee/models/subscription_product_version_state.rb +0 -46
- data/lib/wallee/models/subscription_state.rb +0 -48
- data/lib/wallee/models/subscription_suspension.rb +0 -328
- data/lib/wallee/models/subscription_suspension_action.rb +0 -43
- data/lib/wallee/models/subscription_suspension_create.rb +0 -343
- data/lib/wallee/models/subscription_suspension_reason.rb +0 -44
- data/lib/wallee/models/subscription_suspension_running.rb +0 -328
- data/lib/wallee/models/subscription_suspension_state.rb +0 -43
- data/lib/wallee/models/subscription_update.rb +0 -348
- data/lib/wallee/models/subscription_version.rb +0 -370
- data/lib/wallee/models/subscription_version_state.rb +0 -47
- data/lib/wallee/models/tax.rb +0 -208
- data/lib/wallee/models/tax_create.rb +0 -218
- data/lib/wallee/models/token_create.rb +0 -323
- data/lib/wallee/models/token_update.rb +0 -318
- data/lib/wallee/models/token_version_state.rb +0 -44
- data/lib/wallee/models/transaction.rb +0 -626
- data/lib/wallee/models/transaction_aware_entity.rb +0 -218
- data/lib/wallee/models/transaction_completion.rb +0 -390
- data/lib/wallee/models/transaction_completion_mode.rb +0 -44
- data/lib/wallee/models/transaction_completion_state.rb +0 -45
- data/lib/wallee/models/transaction_create.rb +0 -646
- data/lib/wallee/models/transaction_group.rb +0 -268
- data/lib/wallee/models/transaction_group_state.rb +0 -44
- data/lib/wallee/models/transaction_invoice.rb +0 -380
- data/lib/wallee/models/transaction_invoice_replacement.rb +0 -250
- data/lib/wallee/models/transaction_invoice_state.rb +0 -48
- data/lib/wallee/models/transaction_line_item_update_request.rb +0 -215
- data/lib/wallee/models/transaction_line_item_version.rb +0 -320
- data/lib/wallee/models/transaction_pending.rb +0 -636
- data/lib/wallee/models/transaction_state.rb +0 -51
- data/lib/wallee/models/transaction_user_interface_type.rb +0 -44
- data/lib/wallee/models/transaction_void.rb +0 -380
- data/lib/wallee/models/transaction_void_mode.rb +0 -43
- data/lib/wallee/models/transaction_void_state.rb +0 -45
- data/lib/wallee/models/user_type.rb +0 -45
- data/lib/wallee/models/webhook_identity.rb +0 -248
- data/lib/wallee/models/webhook_listener.rb +0 -300
- data/lib/wallee/models/webhook_listener_create.rb +0 -330
- data/lib/wallee/models/webhook_listener_update.rb +0 -310
- data/lib/wallee/models/webhook_url.rb +0 -258
- data/lib/wallee/models/webhook_url_create.rb +0 -273
- data/lib/wallee/models/webhook_url_update.rb +0 -268
- data/lib/wallee/services/account_service_api.rb +0 -372
- data/lib/wallee/services/application_user_service_api.rb +0 -372
- data/lib/wallee/services/charge_attempt_service_api.rb +0 -217
- data/lib/wallee/services/charge_flow_level_service_api.rb +0 -280
- data/lib/wallee/services/charge_flow_service_api.rb +0 -352
- data/lib/wallee/services/condition_type_service_api.rb +0 -143
- data/lib/wallee/services/country_service_api.rb +0 -85
- data/lib/wallee/services/country_state_service_api.rb +0 -143
- data/lib/wallee/services/currency_service_api.rb +0 -85
- data/lib/wallee/services/delivery_indication_service_api.rb +0 -341
- data/lib/wallee/services/document_template_service_api.rb +0 -217
- data/lib/wallee/services/document_template_type_service_api.rb +0 -143
- data/lib/wallee/services/email_sender_service_api.rb +0 -219
- data/lib/wallee/services/email_sender_type_service_api.rb +0 -143
- data/lib/wallee/services/email_template_service_api.rb +0 -217
- data/lib/wallee/services/email_template_type_service_api.rb +0 -143
- data/lib/wallee/services/human_user_service_api.rb +0 -372
- data/lib/wallee/services/installment_payment_service_api.rb +0 -287
- data/lib/wallee/services/installment_payment_slice_service_api.rb +0 -219
- data/lib/wallee/services/installment_plan_calculation_service_api.rb +0 -95
- data/lib/wallee/services/installment_plan_configuration_service_api.rb +0 -219
- data/lib/wallee/services/installment_plan_slice_configuration_service_api.rb +0 -219
- data/lib/wallee/services/label_description_group_service_api.rb +0 -143
- data/lib/wallee/services/label_description_service_api.rb +0 -143
- data/lib/wallee/services/language_service_api.rb +0 -85
- data/lib/wallee/services/manual_task_service_api.rb +0 -217
- data/lib/wallee/services/payment_connector_configuration_service_api.rb +0 -217
- data/lib/wallee/services/payment_connector_service_api.rb +0 -143
- data/lib/wallee/services/payment_method_configuration_service_api.rb +0 -217
- data/lib/wallee/services/payment_method_service_api.rb +0 -143
- data/lib/wallee/services/payment_processor_configuration_service_api.rb +0 -217
- data/lib/wallee/services/payment_processor_service_api.rb +0 -143
- data/lib/wallee/services/permission_service_api.rb +0 -143
- data/lib/wallee/services/refund_service_api.rb +0 -468
- data/lib/wallee/services/space_service_api.rb +0 -372
- data/lib/wallee/services/static_value_service_api.rb +0 -143
- data/lib/wallee/services/subscriber_service_api.rb +0 -402
- data/lib/wallee/services/subscription_charge_service_api.rb +0 -342
- data/lib/wallee/services/subscription_ledger_entry_service_api.rb +0 -279
- data/lib/wallee/services/subscription_metric_service_api.rb +0 -402
- data/lib/wallee/services/subscription_metric_usage_service_api.rb +0 -279
- data/lib/wallee/services/subscription_period_bill_service_api.rb +0 -217
- data/lib/wallee/services/subscription_product_component_group_service_api.rb +0 -402
- data/lib/wallee/services/subscription_product_component_service_api.rb +0 -402
- data/lib/wallee/services/subscription_product_fee_tier_service_api.rb +0 -402
- data/lib/wallee/services/subscription_product_metered_fee_service_api.rb +0 -402
- data/lib/wallee/services/subscription_product_period_fee_service_api.rb +0 -402
- data/lib/wallee/services/subscription_product_retirement_service_api.rb +0 -279
- data/lib/wallee/services/subscription_product_service_api.rb +0 -341
- data/lib/wallee/services/subscription_product_setup_fee_service_api.rb +0 -402
- data/lib/wallee/services/subscription_product_version_retirement_service_api.rb +0 -279
- data/lib/wallee/services/subscription_product_version_service_api.rb +0 -404
- data/lib/wallee/services/subscription_service_api.rb +0 -608
- data/lib/wallee/services/subscription_suspension_service_api.rb +0 -342
- data/lib/wallee/services/subscription_version_service_api.rb +0 -217
- data/lib/wallee/services/token_service_api.rb +0 -402
- data/lib/wallee/services/token_version_service_api.rb +0 -280
- data/lib/wallee/services/transaction_completion_service_api.rb +0 -343
- data/lib/wallee/services/transaction_invoice_service_api.rb +0 -473
- data/lib/wallee/services/transaction_service_api.rb +0 -1263
- data/lib/wallee/services/transaction_void_service_api.rb +0 -343
- data/lib/wallee/services/webhook_listener_service_api.rb +0 -402
- data/lib/wallee/services/webhook_url_service_api.rb +0 -402
- data/lib/wallee/version.rb +0 -24
- data/lib/wallee.rb +0 -332
@@ -1,308 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Wallee API: 1.0.0
|
3
|
-
|
4
|
-
The wallee API allows an easy interaction with the wallee web service.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
-
you may not use this file except in compliance with the License.
|
10
|
-
You may obtain a copy of the License at
|
11
|
-
|
12
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
|
14
|
-
Unless required by applicable law or agreed to in writing, software
|
15
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
See the License for the specific language governing permissions and
|
18
|
-
limitations under the License.
|
19
|
-
|
20
|
-
=end
|
21
|
-
|
22
|
-
require 'date'
|
23
|
-
|
24
|
-
module Wallee
|
25
|
-
#
|
26
|
-
class AccountUpdate
|
27
|
-
# Active means that this account and all accounts in the hierarchy are active.
|
28
|
-
attr_accessor :active
|
29
|
-
|
30
|
-
# This property is true when all accounts in the hierarchy are active or restricted active.
|
31
|
-
attr_accessor :active_or_restricted_active
|
32
|
-
|
33
|
-
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
34
|
-
attr_accessor :id
|
35
|
-
|
36
|
-
# The name of the account identifies the account within the administrative interface.
|
37
|
-
attr_accessor :name
|
38
|
-
|
39
|
-
# The account which is responsible for administering the account.
|
40
|
-
attr_accessor :parent_account
|
41
|
-
|
42
|
-
# The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
|
43
|
-
attr_accessor :planned_purge_date
|
44
|
-
|
45
|
-
# Restricted active means that at least one account in the hierarchy is only restricted active, but all are either restricted active or active.
|
46
|
-
attr_accessor :restricted_active
|
47
|
-
|
48
|
-
#
|
49
|
-
attr_accessor :state
|
50
|
-
|
51
|
-
# This property restricts the number of subaccounts which can be created within this account.
|
52
|
-
attr_accessor :subaccount_limit
|
53
|
-
|
54
|
-
# The account type defines which role and capabilities it has.
|
55
|
-
attr_accessor :type
|
56
|
-
|
57
|
-
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
58
|
-
attr_accessor :version
|
59
|
-
|
60
|
-
|
61
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
62
|
-
def self.attribute_map
|
63
|
-
{
|
64
|
-
:'active' => :'active',
|
65
|
-
:'active_or_restricted_active' => :'activeOrRestrictedActive',
|
66
|
-
:'id' => :'id',
|
67
|
-
:'name' => :'name',
|
68
|
-
:'parent_account' => :'parentAccount',
|
69
|
-
:'planned_purge_date' => :'plannedPurgeDate',
|
70
|
-
:'restricted_active' => :'restrictedActive',
|
71
|
-
:'state' => :'state',
|
72
|
-
:'subaccount_limit' => :'subaccountLimit',
|
73
|
-
:'type' => :'type',
|
74
|
-
:'version' => :'version'
|
75
|
-
}
|
76
|
-
end
|
77
|
-
|
78
|
-
# Attribute type mapping.
|
79
|
-
def self.swagger_types
|
80
|
-
{
|
81
|
-
:'active' => :'BOOLEAN',
|
82
|
-
:'active_or_restricted_active' => :'BOOLEAN',
|
83
|
-
:'id' => :'Integer',
|
84
|
-
:'name' => :'String',
|
85
|
-
:'parent_account' => :'Account',
|
86
|
-
:'planned_purge_date' => :'DateTime',
|
87
|
-
:'restricted_active' => :'BOOLEAN',
|
88
|
-
:'state' => :'AccountState',
|
89
|
-
:'subaccount_limit' => :'Integer',
|
90
|
-
:'type' => :'AccountType',
|
91
|
-
:'version' => :'Integer'
|
92
|
-
}
|
93
|
-
end
|
94
|
-
|
95
|
-
# Initializes the object
|
96
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
97
|
-
def initialize(attributes = {})
|
98
|
-
return unless attributes.is_a?(Hash)
|
99
|
-
|
100
|
-
# convert string to symbol for hash key
|
101
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
102
|
-
|
103
|
-
if attributes.has_key?(:'active')
|
104
|
-
self.active = attributes[:'active']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.has_key?(:'activeOrRestrictedActive')
|
108
|
-
self.active_or_restricted_active = attributes[:'activeOrRestrictedActive']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.has_key?(:'id')
|
112
|
-
self.id = attributes[:'id']
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.has_key?(:'name')
|
116
|
-
self.name = attributes[:'name']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.has_key?(:'parentAccount')
|
120
|
-
self.parent_account = attributes[:'parentAccount']
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes.has_key?(:'plannedPurgeDate')
|
124
|
-
self.planned_purge_date = attributes[:'plannedPurgeDate']
|
125
|
-
end
|
126
|
-
|
127
|
-
if attributes.has_key?(:'restrictedActive')
|
128
|
-
self.restricted_active = attributes[:'restrictedActive']
|
129
|
-
end
|
130
|
-
|
131
|
-
if attributes.has_key?(:'state')
|
132
|
-
self.state = attributes[:'state']
|
133
|
-
end
|
134
|
-
|
135
|
-
if attributes.has_key?(:'subaccountLimit')
|
136
|
-
self.subaccount_limit = attributes[:'subaccountLimit']
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.has_key?(:'type')
|
140
|
-
self.type = attributes[:'type']
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes.has_key?(:'version')
|
144
|
-
self.version = attributes[:'version']
|
145
|
-
end
|
146
|
-
|
147
|
-
end
|
148
|
-
|
149
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
150
|
-
# @return Array for valid properies with the reasons
|
151
|
-
def list_invalid_properties
|
152
|
-
invalid_properties = Array.new
|
153
|
-
if @id.nil?
|
154
|
-
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
155
|
-
end
|
156
|
-
|
157
|
-
if @version.nil?
|
158
|
-
invalid_properties.push("invalid value for 'version', version cannot be nil.")
|
159
|
-
end
|
160
|
-
|
161
|
-
return invalid_properties
|
162
|
-
end
|
163
|
-
|
164
|
-
# Check to see if the all the properties in the model are valid
|
165
|
-
# @return true if the model is valid
|
166
|
-
def valid?
|
167
|
-
return false if @id.nil?
|
168
|
-
return false if @version.nil?
|
169
|
-
return true
|
170
|
-
end
|
171
|
-
|
172
|
-
# Checks equality by comparing each attribute.
|
173
|
-
# @param [Object] Object to be compared
|
174
|
-
def ==(o)
|
175
|
-
return true if self.equal?(o)
|
176
|
-
self.class == o.class &&
|
177
|
-
active == o.active &&
|
178
|
-
active_or_restricted_active == o.active_or_restricted_active &&
|
179
|
-
id == o.id &&
|
180
|
-
name == o.name &&
|
181
|
-
parent_account == o.parent_account &&
|
182
|
-
planned_purge_date == o.planned_purge_date &&
|
183
|
-
restricted_active == o.restricted_active &&
|
184
|
-
state == o.state &&
|
185
|
-
subaccount_limit == o.subaccount_limit &&
|
186
|
-
type == o.type &&
|
187
|
-
version == o.version
|
188
|
-
end
|
189
|
-
|
190
|
-
# @see the `==` method
|
191
|
-
# @param [Object] Object to be compared
|
192
|
-
def eql?(o)
|
193
|
-
self == o
|
194
|
-
end
|
195
|
-
|
196
|
-
# Calculates hash code according to all attributes.
|
197
|
-
# @return [Fixnum] Hash code
|
198
|
-
def hash
|
199
|
-
[active, active_or_restricted_active, id, name, parent_account, planned_purge_date, restricted_active, state, subaccount_limit, type, version].hash
|
200
|
-
end
|
201
|
-
|
202
|
-
# Builds the object from hash
|
203
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
-
# @return [Object] Returns the model itself
|
205
|
-
def build_from_hash(attributes)
|
206
|
-
return nil unless attributes.is_a?(Hash)
|
207
|
-
self.class.swagger_types.each_pair do |key, type|
|
208
|
-
if type =~ /\AArray<(.*)>/i
|
209
|
-
# check to ensure the input is an array given that the the attribute
|
210
|
-
# is documented as an array but the input is not
|
211
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
213
|
-
end
|
214
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
216
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
217
|
-
end
|
218
|
-
|
219
|
-
self
|
220
|
-
end
|
221
|
-
|
222
|
-
# Deserializes the data based on type
|
223
|
-
# @param string type Data type
|
224
|
-
# @param string value Value to be deserialized
|
225
|
-
# @return [Object] Deserialized data
|
226
|
-
def _deserialize(type, value)
|
227
|
-
case type.to_sym
|
228
|
-
when :DateTime
|
229
|
-
DateTime.parse(value)
|
230
|
-
when :Date
|
231
|
-
Date.parse(value)
|
232
|
-
when :String
|
233
|
-
value.to_s
|
234
|
-
when :Integer
|
235
|
-
value.to_i
|
236
|
-
when :Float
|
237
|
-
value.to_f
|
238
|
-
when :BOOLEAN
|
239
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
240
|
-
true
|
241
|
-
else
|
242
|
-
false
|
243
|
-
end
|
244
|
-
when :Object
|
245
|
-
# generic object (usually a Hash), return directly
|
246
|
-
value
|
247
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
248
|
-
inner_type = Regexp.last_match[:inner_type]
|
249
|
-
value.map { |v| _deserialize(inner_type, v) }
|
250
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
251
|
-
k_type = Regexp.last_match[:k_type]
|
252
|
-
v_type = Regexp.last_match[:v_type]
|
253
|
-
{}.tap do |hash|
|
254
|
-
value.each do |k, v|
|
255
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
256
|
-
end
|
257
|
-
end
|
258
|
-
else # model
|
259
|
-
temp_model = Wallee.const_get(type).new
|
260
|
-
temp_model.build_from_hash(value)
|
261
|
-
end
|
262
|
-
end
|
263
|
-
|
264
|
-
# Returns the string representation of the object
|
265
|
-
# @return [String] String presentation of the object
|
266
|
-
def to_s
|
267
|
-
to_hash.to_s
|
268
|
-
end
|
269
|
-
|
270
|
-
# to_body is an alias to to_hash (backward compatibility)
|
271
|
-
# @return [Hash] Returns the object in the form of hash
|
272
|
-
def to_body
|
273
|
-
to_hash
|
274
|
-
end
|
275
|
-
|
276
|
-
# Returns the object in the form of hash
|
277
|
-
# @return [Hash] Returns the object in the form of hash
|
278
|
-
def to_hash
|
279
|
-
hash = {}
|
280
|
-
self.class.attribute_map.each_pair do |attr, param|
|
281
|
-
value = self.send(attr)
|
282
|
-
next if value.nil?
|
283
|
-
hash[param] = _to_hash(value)
|
284
|
-
end
|
285
|
-
hash
|
286
|
-
end
|
287
|
-
|
288
|
-
# Outputs non-array value in the form of hash
|
289
|
-
# For object, use to_hash. Otherwise, just return the value
|
290
|
-
# @param [Object] value Any valid value
|
291
|
-
# @return [Hash] Returns the value in the form of hash
|
292
|
-
def _to_hash(value)
|
293
|
-
if value.is_a?(Array)
|
294
|
-
value.compact.map{ |v| _to_hash(v) }
|
295
|
-
elsif value.is_a?(Hash)
|
296
|
-
{}.tap do |hash|
|
297
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
298
|
-
end
|
299
|
-
elsif value.respond_to? :to_hash
|
300
|
-
value.to_hash
|
301
|
-
else
|
302
|
-
value
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
end
|
307
|
-
|
308
|
-
end
|
@@ -1,388 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Wallee API: 1.0.0
|
3
|
-
|
4
|
-
The wallee API allows an easy interaction with the wallee web service.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
-
you may not use this file except in compliance with the License.
|
10
|
-
You may obtain a copy of the License at
|
11
|
-
|
12
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
|
14
|
-
Unless required by applicable law or agreed to in writing, software
|
15
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
See the License for the specific language governing permissions and
|
18
|
-
limitations under the License.
|
19
|
-
|
20
|
-
=end
|
21
|
-
|
22
|
-
require 'date'
|
23
|
-
|
24
|
-
module Wallee
|
25
|
-
#
|
26
|
-
class Address
|
27
|
-
#
|
28
|
-
attr_accessor :city
|
29
|
-
|
30
|
-
#
|
31
|
-
attr_accessor :commercial_register_number
|
32
|
-
|
33
|
-
#
|
34
|
-
attr_accessor :country
|
35
|
-
|
36
|
-
#
|
37
|
-
attr_accessor :date_of_birth
|
38
|
-
|
39
|
-
#
|
40
|
-
attr_accessor :dependent_locality
|
41
|
-
|
42
|
-
#
|
43
|
-
attr_accessor :email_address
|
44
|
-
|
45
|
-
#
|
46
|
-
attr_accessor :family_name
|
47
|
-
|
48
|
-
#
|
49
|
-
attr_accessor :gender
|
50
|
-
|
51
|
-
#
|
52
|
-
attr_accessor :given_name
|
53
|
-
|
54
|
-
#
|
55
|
-
attr_accessor :legal_organization_form
|
56
|
-
|
57
|
-
#
|
58
|
-
attr_accessor :mobile_phone_number
|
59
|
-
|
60
|
-
#
|
61
|
-
attr_accessor :organization_name
|
62
|
-
|
63
|
-
#
|
64
|
-
attr_accessor :phone_number
|
65
|
-
|
66
|
-
#
|
67
|
-
attr_accessor :post_code
|
68
|
-
|
69
|
-
#
|
70
|
-
attr_accessor :postal_state
|
71
|
-
|
72
|
-
#
|
73
|
-
attr_accessor :sales_tax_number
|
74
|
-
|
75
|
-
#
|
76
|
-
attr_accessor :salutation
|
77
|
-
|
78
|
-
#
|
79
|
-
attr_accessor :social_security_number
|
80
|
-
|
81
|
-
# The sorting code identifies the post office at which the post box is located in.
|
82
|
-
attr_accessor :sorting_code
|
83
|
-
|
84
|
-
#
|
85
|
-
attr_accessor :street
|
86
|
-
|
87
|
-
|
88
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
89
|
-
def self.attribute_map
|
90
|
-
{
|
91
|
-
:'city' => :'city',
|
92
|
-
:'commercial_register_number' => :'commercialRegisterNumber',
|
93
|
-
:'country' => :'country',
|
94
|
-
:'date_of_birth' => :'dateOfBirth',
|
95
|
-
:'dependent_locality' => :'dependentLocality',
|
96
|
-
:'email_address' => :'emailAddress',
|
97
|
-
:'family_name' => :'familyName',
|
98
|
-
:'gender' => :'gender',
|
99
|
-
:'given_name' => :'givenName',
|
100
|
-
:'legal_organization_form' => :'legalOrganizationForm',
|
101
|
-
:'mobile_phone_number' => :'mobilePhoneNumber',
|
102
|
-
:'organization_name' => :'organizationName',
|
103
|
-
:'phone_number' => :'phoneNumber',
|
104
|
-
:'post_code' => :'postCode',
|
105
|
-
:'postal_state' => :'postalState',
|
106
|
-
:'sales_tax_number' => :'salesTaxNumber',
|
107
|
-
:'salutation' => :'salutation',
|
108
|
-
:'social_security_number' => :'socialSecurityNumber',
|
109
|
-
:'sorting_code' => :'sortingCode',
|
110
|
-
:'street' => :'street'
|
111
|
-
}
|
112
|
-
end
|
113
|
-
|
114
|
-
# Attribute type mapping.
|
115
|
-
def self.swagger_types
|
116
|
-
{
|
117
|
-
:'city' => :'String',
|
118
|
-
:'commercial_register_number' => :'String',
|
119
|
-
:'country' => :'String',
|
120
|
-
:'date_of_birth' => :'DateTime',
|
121
|
-
:'dependent_locality' => :'String',
|
122
|
-
:'email_address' => :'String',
|
123
|
-
:'family_name' => :'String',
|
124
|
-
:'gender' => :'Gender',
|
125
|
-
:'given_name' => :'String',
|
126
|
-
:'legal_organization_form' => :'LegalOrganizationForm',
|
127
|
-
:'mobile_phone_number' => :'String',
|
128
|
-
:'organization_name' => :'String',
|
129
|
-
:'phone_number' => :'String',
|
130
|
-
:'post_code' => :'String',
|
131
|
-
:'postal_state' => :'String',
|
132
|
-
:'sales_tax_number' => :'String',
|
133
|
-
:'salutation' => :'String',
|
134
|
-
:'social_security_number' => :'String',
|
135
|
-
:'sorting_code' => :'String',
|
136
|
-
:'street' => :'String'
|
137
|
-
}
|
138
|
-
end
|
139
|
-
|
140
|
-
# Initializes the object
|
141
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
-
def initialize(attributes = {})
|
143
|
-
return unless attributes.is_a?(Hash)
|
144
|
-
|
145
|
-
# convert string to symbol for hash key
|
146
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
147
|
-
|
148
|
-
if attributes.has_key?(:'city')
|
149
|
-
self.city = attributes[:'city']
|
150
|
-
end
|
151
|
-
|
152
|
-
if attributes.has_key?(:'commercialRegisterNumber')
|
153
|
-
self.commercial_register_number = attributes[:'commercialRegisterNumber']
|
154
|
-
end
|
155
|
-
|
156
|
-
if attributes.has_key?(:'country')
|
157
|
-
self.country = attributes[:'country']
|
158
|
-
end
|
159
|
-
|
160
|
-
if attributes.has_key?(:'dateOfBirth')
|
161
|
-
self.date_of_birth = attributes[:'dateOfBirth']
|
162
|
-
end
|
163
|
-
|
164
|
-
if attributes.has_key?(:'dependentLocality')
|
165
|
-
self.dependent_locality = attributes[:'dependentLocality']
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.has_key?(:'emailAddress')
|
169
|
-
self.email_address = attributes[:'emailAddress']
|
170
|
-
end
|
171
|
-
|
172
|
-
if attributes.has_key?(:'familyName')
|
173
|
-
self.family_name = attributes[:'familyName']
|
174
|
-
end
|
175
|
-
|
176
|
-
if attributes.has_key?(:'gender')
|
177
|
-
self.gender = attributes[:'gender']
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.has_key?(:'givenName')
|
181
|
-
self.given_name = attributes[:'givenName']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.has_key?(:'legalOrganizationForm')
|
185
|
-
self.legal_organization_form = attributes[:'legalOrganizationForm']
|
186
|
-
end
|
187
|
-
|
188
|
-
if attributes.has_key?(:'mobilePhoneNumber')
|
189
|
-
self.mobile_phone_number = attributes[:'mobilePhoneNumber']
|
190
|
-
end
|
191
|
-
|
192
|
-
if attributes.has_key?(:'organizationName')
|
193
|
-
self.organization_name = attributes[:'organizationName']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.has_key?(:'phoneNumber')
|
197
|
-
self.phone_number = attributes[:'phoneNumber']
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.has_key?(:'postCode')
|
201
|
-
self.post_code = attributes[:'postCode']
|
202
|
-
end
|
203
|
-
|
204
|
-
if attributes.has_key?(:'postalState')
|
205
|
-
self.postal_state = attributes[:'postalState']
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.has_key?(:'salesTaxNumber')
|
209
|
-
self.sales_tax_number = attributes[:'salesTaxNumber']
|
210
|
-
end
|
211
|
-
|
212
|
-
if attributes.has_key?(:'salutation')
|
213
|
-
self.salutation = attributes[:'salutation']
|
214
|
-
end
|
215
|
-
|
216
|
-
if attributes.has_key?(:'socialSecurityNumber')
|
217
|
-
self.social_security_number = attributes[:'socialSecurityNumber']
|
218
|
-
end
|
219
|
-
|
220
|
-
if attributes.has_key?(:'sortingCode')
|
221
|
-
self.sorting_code = attributes[:'sortingCode']
|
222
|
-
end
|
223
|
-
|
224
|
-
if attributes.has_key?(:'street')
|
225
|
-
self.street = attributes[:'street']
|
226
|
-
end
|
227
|
-
|
228
|
-
end
|
229
|
-
|
230
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
231
|
-
# @return Array for valid properies with the reasons
|
232
|
-
def list_invalid_properties
|
233
|
-
invalid_properties = Array.new
|
234
|
-
return invalid_properties
|
235
|
-
end
|
236
|
-
|
237
|
-
# Check to see if the all the properties in the model are valid
|
238
|
-
# @return true if the model is valid
|
239
|
-
def valid?
|
240
|
-
return true
|
241
|
-
end
|
242
|
-
|
243
|
-
# Checks equality by comparing each attribute.
|
244
|
-
# @param [Object] Object to be compared
|
245
|
-
def ==(o)
|
246
|
-
return true if self.equal?(o)
|
247
|
-
self.class == o.class &&
|
248
|
-
city == o.city &&
|
249
|
-
commercial_register_number == o.commercial_register_number &&
|
250
|
-
country == o.country &&
|
251
|
-
date_of_birth == o.date_of_birth &&
|
252
|
-
dependent_locality == o.dependent_locality &&
|
253
|
-
email_address == o.email_address &&
|
254
|
-
family_name == o.family_name &&
|
255
|
-
gender == o.gender &&
|
256
|
-
given_name == o.given_name &&
|
257
|
-
legal_organization_form == o.legal_organization_form &&
|
258
|
-
mobile_phone_number == o.mobile_phone_number &&
|
259
|
-
organization_name == o.organization_name &&
|
260
|
-
phone_number == o.phone_number &&
|
261
|
-
post_code == o.post_code &&
|
262
|
-
postal_state == o.postal_state &&
|
263
|
-
sales_tax_number == o.sales_tax_number &&
|
264
|
-
salutation == o.salutation &&
|
265
|
-
social_security_number == o.social_security_number &&
|
266
|
-
sorting_code == o.sorting_code &&
|
267
|
-
street == o.street
|
268
|
-
end
|
269
|
-
|
270
|
-
# @see the `==` method
|
271
|
-
# @param [Object] Object to be compared
|
272
|
-
def eql?(o)
|
273
|
-
self == o
|
274
|
-
end
|
275
|
-
|
276
|
-
# Calculates hash code according to all attributes.
|
277
|
-
# @return [Fixnum] Hash code
|
278
|
-
def hash
|
279
|
-
[city, commercial_register_number, country, date_of_birth, dependent_locality, email_address, family_name, gender, given_name, legal_organization_form, mobile_phone_number, organization_name, phone_number, post_code, postal_state, sales_tax_number, salutation, social_security_number, sorting_code, street].hash
|
280
|
-
end
|
281
|
-
|
282
|
-
# Builds the object from hash
|
283
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
284
|
-
# @return [Object] Returns the model itself
|
285
|
-
def build_from_hash(attributes)
|
286
|
-
return nil unless attributes.is_a?(Hash)
|
287
|
-
self.class.swagger_types.each_pair do |key, type|
|
288
|
-
if type =~ /\AArray<(.*)>/i
|
289
|
-
# check to ensure the input is an array given that the the attribute
|
290
|
-
# is documented as an array but the input is not
|
291
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
292
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
293
|
-
end
|
294
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
295
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
296
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
297
|
-
end
|
298
|
-
|
299
|
-
self
|
300
|
-
end
|
301
|
-
|
302
|
-
# Deserializes the data based on type
|
303
|
-
# @param string type Data type
|
304
|
-
# @param string value Value to be deserialized
|
305
|
-
# @return [Object] Deserialized data
|
306
|
-
def _deserialize(type, value)
|
307
|
-
case type.to_sym
|
308
|
-
when :DateTime
|
309
|
-
DateTime.parse(value)
|
310
|
-
when :Date
|
311
|
-
Date.parse(value)
|
312
|
-
when :String
|
313
|
-
value.to_s
|
314
|
-
when :Integer
|
315
|
-
value.to_i
|
316
|
-
when :Float
|
317
|
-
value.to_f
|
318
|
-
when :BOOLEAN
|
319
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
320
|
-
true
|
321
|
-
else
|
322
|
-
false
|
323
|
-
end
|
324
|
-
when :Object
|
325
|
-
# generic object (usually a Hash), return directly
|
326
|
-
value
|
327
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
328
|
-
inner_type = Regexp.last_match[:inner_type]
|
329
|
-
value.map { |v| _deserialize(inner_type, v) }
|
330
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
331
|
-
k_type = Regexp.last_match[:k_type]
|
332
|
-
v_type = Regexp.last_match[:v_type]
|
333
|
-
{}.tap do |hash|
|
334
|
-
value.each do |k, v|
|
335
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
336
|
-
end
|
337
|
-
end
|
338
|
-
else # model
|
339
|
-
temp_model = Wallee.const_get(type).new
|
340
|
-
temp_model.build_from_hash(value)
|
341
|
-
end
|
342
|
-
end
|
343
|
-
|
344
|
-
# Returns the string representation of the object
|
345
|
-
# @return [String] String presentation of the object
|
346
|
-
def to_s
|
347
|
-
to_hash.to_s
|
348
|
-
end
|
349
|
-
|
350
|
-
# to_body is an alias to to_hash (backward compatibility)
|
351
|
-
# @return [Hash] Returns the object in the form of hash
|
352
|
-
def to_body
|
353
|
-
to_hash
|
354
|
-
end
|
355
|
-
|
356
|
-
# Returns the object in the form of hash
|
357
|
-
# @return [Hash] Returns the object in the form of hash
|
358
|
-
def to_hash
|
359
|
-
hash = {}
|
360
|
-
self.class.attribute_map.each_pair do |attr, param|
|
361
|
-
value = self.send(attr)
|
362
|
-
next if value.nil?
|
363
|
-
hash[param] = _to_hash(value)
|
364
|
-
end
|
365
|
-
hash
|
366
|
-
end
|
367
|
-
|
368
|
-
# Outputs non-array value in the form of hash
|
369
|
-
# For object, use to_hash. Otherwise, just return the value
|
370
|
-
# @param [Object] value Any valid value
|
371
|
-
# @return [Hash] Returns the value in the form of hash
|
372
|
-
def _to_hash(value)
|
373
|
-
if value.is_a?(Array)
|
374
|
-
value.compact.map{ |v| _to_hash(v) }
|
375
|
-
elsif value.is_a?(Hash)
|
376
|
-
{}.tap do |hash|
|
377
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
378
|
-
end
|
379
|
-
elsif value.respond_to? :to_hash
|
380
|
-
value.to_hash
|
381
|
-
else
|
382
|
-
value
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
|
-
end
|
387
|
-
|
388
|
-
end
|