wallee-ruby-sdk 2.0.1 → 3.0.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 +4 -4
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +3 -3
- data/lib/wallee-ruby-sdk.rb +128 -11
- data/lib/wallee-ruby-sdk/api/account_service_api.rb +35 -39
- data/lib/wallee-ruby-sdk/api/application_user_service_api.rb +35 -39
- data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +18 -22
- data/lib/wallee-ruby-sdk/api/charge_attempt_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_flow_level_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/charge_flow_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/api/condition_type_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/country_service_api.rb +5 -9
- data/lib/wallee-ruby-sdk/api/country_state_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/currency_service_api.rb +5 -9
- 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 +87 -91
- data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/delivery_indication_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/document_template_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/document_template_type_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/human_user_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/installment_payment_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/api/installment_payment_slice_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/installment_plan_calculation_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/installment_plan_configuration_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/installment_plan_slice_configuration_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/label_description_group_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/label_description_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/language_service_api.rb +5 -9
- data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +17 -21
- data/lib/wallee-ruby-sdk/api/manual_task_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +8 -12
- data/lib/wallee-ruby-sdk/api/payment_connector_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/payment_connector_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/payment_link_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/api/payment_method_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/payment_method_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/payment_processor_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/payment_processor_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/wallee-ruby-sdk/api/permission_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +49 -53
- data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_service_api.rb +56 -60
- 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 +275 -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/api/space_service_api.rb +35 -39
- data/lib/wallee-ruby-sdk/api/static_value_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +44 -48
- data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_charge_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/subscription_ledger_entry_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_metric_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_metric_usage_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_period_bill_service_api.rb +26 -30
- data/lib/wallee-ruby-sdk/api/subscription_product_component_group_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_component_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_fee_tier_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_metered_fee_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_period_fee_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_retirement_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_product_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/subscription_product_setup_fee_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_version_retirement_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_product_version_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +177 -114
- data/lib/wallee-ruby-sdk/api/subscription_suspension_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/subscription_version_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +237 -52
- data/lib/wallee-ruby-sdk/api/token_version_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +49 -53
- data/lib/wallee-ruby-sdk/api/transaction_completion_service_api.rb +48 -52
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +49 -53
- data/lib/wallee-ruby-sdk/api/transaction_invoice_service_api.rb +64 -68
- 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 +6 -10
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/transaction_service_api.rb +141 -135
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
- data/lib/wallee-ruby-sdk/api/transaction_void_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/user_account_role_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/user_space_role_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
- data/lib/wallee-ruby-sdk/api/webhook_listener_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/webhook_url_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api_client.rb +9 -8
- 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 +36 -6
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +16 -5
- 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 +1 -5
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +61 -5
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +31 -20
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +46 -5
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +25 -5
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +27 -6
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +31 -5
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +120 -6
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +40 -5
- data/lib/wallee-ruby-sdk/models/account.rb +76 -6
- data/lib/wallee-ruby-sdk/models/account_create.rb +36 -6
- data/lib/wallee-ruby-sdk/models/account_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/account_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/account_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/address.rb +236 -15
- data/lib/wallee-ruby-sdk/models/address_create.rb +236 -15
- data/lib/wallee-ruby-sdk/models/application_user.rb +16 -5
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +16 -5
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
- data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +358 -0
- data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device_state.rb → bank_account_state.rb} +6 -11
- data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
- data/lib/wallee-ruby-sdk/models/charge.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +37 -6
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +14 -6
- 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 +0 -4
- data/lib/wallee-ruby-sdk/models/charge_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/client_error.rb +1 -5
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +16 -5
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +20 -5
- data/lib/wallee-ruby-sdk/models/condition.rb +16 -5
- data/lib/wallee-ruby-sdk/models/condition_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +1 -5
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +0 -4
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +0 -4
- data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
- 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/{payment_terminal_reference.rb → customer_address.rb} +41 -45
- 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 +0 -4
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +1 -5
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +16 -5
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +2 -6
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +2 -6
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +46 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +0 -4
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +25 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +16 -5
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +1 -5
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +1 -5
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/document_template.rb +16 -5
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/environment.rb +0 -4
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device.rb → external_transfer_bank_transaction.rb} +38 -62
- data/lib/wallee-ruby-sdk/models/failure_category.rb +0 -4
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +1 -5
- data/lib/wallee-ruby-sdk/models/feature.rb +12 -6
- data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/wallee-ruby-sdk/models/gender.rb +0 -4
- data/lib/wallee-ruby-sdk/models/human_user.rb +61 -5
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +61 -5
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +61 -5
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +1 -5
- data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/wallee-ruby-sdk/models/label.rb +1 -5
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +1 -5
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +0 -4
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +1 -5
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +1 -5
- data/lib/wallee-ruby-sdk/models/line_item.rb +55 -5
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +31 -5
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +39 -5
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +63 -5
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +16 -5
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +20 -5
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/localized_string.rb +1 -5
- data/lib/wallee-ruby-sdk/models/manual_task.rb +1 -5
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +1 -5
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +0 -4
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +1 -5
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +29 -6
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +2 -6
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +1 -5
- 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 +32 -21
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +31 -20
- data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +32 -21
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +31 -20
- data/lib/wallee-ruby-sdk/models/payment_method.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +27 -16
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +86 -15
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +12 -6
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +23 -22
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_type.rb +5 -21
- data/lib/wallee-ruby-sdk/models/permission.rb +15 -9
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +1 -5
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +0 -4
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
- data/lib/wallee-ruby-sdk/models/refund.rb +76 -6
- data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +16 -5
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/refund_create.rb +53 -9
- data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/wallee-ruby-sdk/models/refund_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/refund_type.rb +2 -6
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
- data/lib/wallee-ruby-sdk/models/resource_path.rb +25 -5
- data/lib/wallee-ruby-sdk/models/resource_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +0 -4
- data/lib/wallee-ruby-sdk/models/rest_country.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_language.rb +1 -5
- data/lib/wallee-ruby-sdk/models/role.rb +2 -6
- data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/wallee-ruby-sdk/models/scope.rb +57 -6
- data/lib/wallee-ruby-sdk/models/server_error.rb +1 -5
- 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/{payment_terminal_device_model.rb → shopify_subscriber.rb} +50 -56
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -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 +375 -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 +363 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_tax_line.rb +201 -0
- 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/{unencrypted_card_data_create.rb → shopify_subscription_suspension_create.rb} +38 -42
- 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 +463 -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/{payment_terminal_device_manufacturer.rb → shopify_tax_line.rb} +20 -44
- 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 +76 -6
- data/lib/wallee-ruby-sdk/models/space_address.rb +116 -15
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +116 -15
- data/lib/wallee-ruby-sdk/models/space_create.rb +36 -6
- data/lib/wallee-ruby-sdk/models/space_reference.rb +1 -5
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/space_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/space_view.rb +25 -5
- data/lib/wallee-ruby-sdk/models/static_value.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscriber.rb +47 -6
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +47 -6
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscription.rb +62 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +50 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +59 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +50 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +50 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +25 -5
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +25 -5
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +14 -6
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +65 -6
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +65 -6
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +0 -4
- 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 +15 -7
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +37 -7
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +30 -6
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +42 -16
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +42 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +27 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +33 -7
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +33 -7
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +46 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +27 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +15 -9
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +1 -4
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +27 -6
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +14 -6
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/tax.rb +25 -5
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/tax_class.rb +16 -5
- data/lib/wallee-ruby-sdk/models/tax_create.rb +29 -5
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +16 -5
- data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/wallee-ruby-sdk/models/token.rb +32 -6
- data/lib/wallee-ruby-sdk/models/token_create.rb +32 -6
- data/lib/wallee-ruby-sdk/models/token_update.rb +31 -5
- data/lib/wallee-ruby-sdk/models/token_version.rb +54 -6
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → tokenized_card_data.rb} +24 -38
- data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +348 -0
- data/lib/wallee-ruby-sdk/models/transaction.rb +257 -9
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +51 -6
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +55 -6
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +154 -6
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +51 -6
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +44 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +120 -6
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +1 -4
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/two_factor_authentication_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +1 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +51 -6
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +40 -5
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +40 -5
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/condition_type_service_test.rb +22 -0
- data/test/transaction_create_service_test.rb +2 -2
- data/test/transaction_payment_page_service_test.rb +3 -3
- data/wallee-ruby-sdk.gemspec +4 -7
- metadata +161 -19
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
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
|
|
@@ -130,15 +126,30 @@ module Wallee
|
|
|
130
126
|
# @return Array for valid properties with the reasons
|
|
131
127
|
def list_invalid_properties
|
|
132
128
|
invalid_properties = Array.new
|
|
129
|
+
if !@name.nil? && @name.to_s.length > 256
|
|
130
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
|
131
|
+
end
|
|
132
|
+
|
|
133
133
|
invalid_properties
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
# Check to see if the all the properties in the model are valid
|
|
137
137
|
# @return true if the model is valid
|
|
138
138
|
def valid?
|
|
139
|
+
return false if !@name.nil? && @name.to_s.length > 256
|
|
139
140
|
true
|
|
140
141
|
end
|
|
141
142
|
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] name Value to be assigned
|
|
145
|
+
def name=(name)
|
|
146
|
+
if !name.nil? && name.to_s.length > 256
|
|
147
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@name = name
|
|
151
|
+
end
|
|
152
|
+
|
|
142
153
|
# Checks equality by comparing each attribute.
|
|
143
154
|
# @param [Object] Object to be compared
|
|
144
155
|
def ==(o)
|
|
@@ -174,7 +185,7 @@ module Wallee
|
|
|
174
185
|
return nil unless attributes.is_a?(Hash)
|
|
175
186
|
self.class.swagger_types.each_pair do |key, type|
|
|
176
187
|
if type =~ /\AArray<(.*)>/i
|
|
177
|
-
# check to ensure the input is an array given that the
|
|
188
|
+
# check to ensure the input is an array given that the attribute
|
|
178
189
|
# is documented as an array but the input is not
|
|
179
190
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
180
191
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
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
|
|
@@ -85,6 +81,10 @@ module Wallee
|
|
|
85
81
|
# @return Array for valid properties with the reasons
|
|
86
82
|
def list_invalid_properties
|
|
87
83
|
invalid_properties = Array.new
|
|
84
|
+
if !@name.nil? && @name.to_s.length > 256
|
|
85
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
88
|
if @primary_account.nil?
|
|
89
89
|
invalid_properties.push('invalid value for "primary_account", primary_account cannot be nil.')
|
|
90
90
|
end
|
|
@@ -95,10 +95,21 @@ module Wallee
|
|
|
95
95
|
# Check to see if the all the properties in the model are valid
|
|
96
96
|
# @return true if the model is valid
|
|
97
97
|
def valid?
|
|
98
|
+
return false if !@name.nil? && @name.to_s.length > 256
|
|
98
99
|
return false if @primary_account.nil?
|
|
99
100
|
true
|
|
100
101
|
end
|
|
101
102
|
|
|
103
|
+
# Custom attribute writer method with validation
|
|
104
|
+
# @param [Object] name Value to be assigned
|
|
105
|
+
def name=(name)
|
|
106
|
+
if !name.nil? && name.to_s.length > 256
|
|
107
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
@name = name
|
|
111
|
+
end
|
|
112
|
+
|
|
102
113
|
# Checks equality by comparing each attribute.
|
|
103
114
|
# @param [Object] Object to be compared
|
|
104
115
|
def ==(o)
|
|
@@ -129,7 +140,7 @@ module Wallee
|
|
|
129
140
|
return nil unless attributes.is_a?(Hash)
|
|
130
141
|
self.class.swagger_types.each_pair do |key, type|
|
|
131
142
|
if type =~ /\AArray<(.*)>/i
|
|
132
|
-
# check to ensure the input is an array given that the
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
133
144
|
# is documented as an array but the input is not
|
|
134
145
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
135
146
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
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
|
|
@@ -139,15 +135,30 @@ module Wallee
|
|
|
139
135
|
# @return Array for valid properties with the reasons
|
|
140
136
|
def list_invalid_properties
|
|
141
137
|
invalid_properties = Array.new
|
|
138
|
+
if !@name.nil? && @name.to_s.length > 256
|
|
139
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
142
|
invalid_properties
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
# Check to see if the all the properties in the model are valid
|
|
146
146
|
# @return true if the model is valid
|
|
147
147
|
def valid?
|
|
148
|
+
return false if !@name.nil? && @name.to_s.length > 256
|
|
148
149
|
true
|
|
149
150
|
end
|
|
150
151
|
|
|
152
|
+
# Custom attribute writer method with validation
|
|
153
|
+
# @param [Object] name Value to be assigned
|
|
154
|
+
def name=(name)
|
|
155
|
+
if !name.nil? && name.to_s.length > 256
|
|
156
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@name = name
|
|
160
|
+
end
|
|
161
|
+
|
|
151
162
|
# Checks equality by comparing each attribute.
|
|
152
163
|
# @param [Object] Object to be compared
|
|
153
164
|
def ==(o)
|
|
@@ -184,7 +195,7 @@ module Wallee
|
|
|
184
195
|
return nil unless attributes.is_a?(Hash)
|
|
185
196
|
self.class.swagger_types.each_pair do |key, type|
|
|
186
197
|
if type =~ /\AArray<(.*)>/i
|
|
187
|
-
# check to ensure the input is an array given that the
|
|
198
|
+
# check to ensure the input is an array given that the attribute
|
|
188
199
|
# is documented as an array but the input is not
|
|
189
200
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
190
201
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
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
|
|
@@ -94,6 +90,10 @@ module Wallee
|
|
|
94
90
|
# @return Array for valid properties with the reasons
|
|
95
91
|
def list_invalid_properties
|
|
96
92
|
invalid_properties = Array.new
|
|
93
|
+
if !@name.nil? && @name.to_s.length > 256
|
|
94
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
97
|
if @id.nil?
|
|
98
98
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
99
99
|
end
|
|
@@ -108,11 +108,22 @@ module Wallee
|
|
|
108
108
|
# Check to see if the all the properties in the model are valid
|
|
109
109
|
# @return true if the model is valid
|
|
110
110
|
def valid?
|
|
111
|
+
return false if !@name.nil? && @name.to_s.length > 256
|
|
111
112
|
return false if @id.nil?
|
|
112
113
|
return false if @version.nil?
|
|
113
114
|
true
|
|
114
115
|
end
|
|
115
116
|
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param [Object] name Value to be assigned
|
|
119
|
+
def name=(name)
|
|
120
|
+
if !name.nil? && name.to_s.length > 256
|
|
121
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
@name = name
|
|
125
|
+
end
|
|
126
|
+
|
|
116
127
|
# Checks equality by comparing each attribute.
|
|
117
128
|
# @param [Object] Object to be compared
|
|
118
129
|
def ==(o)
|
|
@@ -144,7 +155,7 @@ module Wallee
|
|
|
144
155
|
return nil unless attributes.is_a?(Hash)
|
|
145
156
|
self.class.swagger_types.each_pair do |key, type|
|
|
146
157
|
if type =~ /\AArray<(.*)>/i
|
|
147
|
-
# check to ensure the input is an array given that the
|
|
158
|
+
# check to ensure the input is an array given that the attribute
|
|
148
159
|
# is documented as an array but the input is not
|
|
149
160
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
150
161
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -0,0 +1,221 @@
|
|
|
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
|
+
# This model holds the card data and optional cardholder authentication details.
|
|
22
|
+
class AuthenticatedCardData
|
|
23
|
+
# The additional authentication value used to secure the tokenized card transactions.
|
|
24
|
+
attr_accessor :cryptogram
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
attr_accessor :recurring_indicator
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
attr_accessor :token_requestor_id
|
|
31
|
+
|
|
32
|
+
# The cardholder authentication information. The authentication is optional and can be provided if the cardholder has been already authenticated (e.g. in 3-D Secure system).
|
|
33
|
+
attr_accessor :cardholder_authentication
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
def self.attribute_map
|
|
37
|
+
{
|
|
38
|
+
:'cryptogram' => :'cryptogram',
|
|
39
|
+
:'recurring_indicator' => :'recurringIndicator',
|
|
40
|
+
:'token_requestor_id' => :'tokenRequestorId',
|
|
41
|
+
:'cardholder_authentication' => :'cardholderAuthentication'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.swagger_types
|
|
47
|
+
{
|
|
48
|
+
:'cryptogram' => :'CardCryptogram',
|
|
49
|
+
:'recurring_indicator' => :'RecurringIndicator',
|
|
50
|
+
:'token_requestor_id' => :'String',
|
|
51
|
+
:'cardholder_authentication' => :'CardholderAuthentication'
|
|
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?(:'cryptogram')
|
|
64
|
+
self.cryptogram = attributes[:'cryptogram']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.has_key?(:'recurringIndicator')
|
|
68
|
+
self.recurring_indicator = attributes[:'recurringIndicator']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'tokenRequestorId')
|
|
72
|
+
self.token_requestor_id = attributes[:'tokenRequestorId']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'cardholderAuthentication')
|
|
76
|
+
self.cardholder_authentication = attributes[:'cardholderAuthentication']
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
|
+
# @return Array for valid properties with the reasons
|
|
82
|
+
def list_invalid_properties
|
|
83
|
+
invalid_properties = Array.new
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Checks equality by comparing each attribute.
|
|
94
|
+
# @param [Object] Object to be compared
|
|
95
|
+
def ==(o)
|
|
96
|
+
return true if self.equal?(o)
|
|
97
|
+
self.class == o.class &&
|
|
98
|
+
cryptogram == o.cryptogram &&
|
|
99
|
+
recurring_indicator == o.recurring_indicator &&
|
|
100
|
+
token_requestor_id == o.token_requestor_id &&
|
|
101
|
+
cardholder_authentication == o.cardholder_authentication
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[cryptogram, recurring_indicator, token_requestor_id, cardholder_authentication].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = Wallee.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|
|
@@ -0,0 +1,358 @@
|
|
|
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
|
+
# This model holds the card data and optional cardholder authentication details.
|
|
22
|
+
class AuthenticatedCardDataCreate
|
|
23
|
+
# The card holder name is the name printed onto the card. It identifies the person who owns the card.
|
|
24
|
+
attr_accessor :card_holder_name
|
|
25
|
+
|
|
26
|
+
# The card verification code (CVC) is a 3 to 4 digit code typically printed on the back of the card. It helps to ensure that the card holder is authorizing the transaction. For card not-present transactions this field is optional.
|
|
27
|
+
attr_accessor :card_verification_code
|
|
28
|
+
|
|
29
|
+
# The cardholder authentication information. The authentication is optional and can be provided if the cardholder has been already authenticated (e.g. in 3-D Secure system).
|
|
30
|
+
attr_accessor :cardholder_authentication
|
|
31
|
+
|
|
32
|
+
# The additional authentication value used to secure the tokenized card transactions.
|
|
33
|
+
attr_accessor :cryptogram
|
|
34
|
+
|
|
35
|
+
# The card expiry date indicates when the card expires. The format is the format yyyy-mm where yyyy is the year (e.g. 2019) and the mm is the month (e.g. 09).
|
|
36
|
+
attr_accessor :expiry_date
|
|
37
|
+
|
|
38
|
+
# The primary account number (PAN) identifies the card. The number is numeric and typically printed on the front of the card.
|
|
39
|
+
attr_accessor :primary_account_number
|
|
40
|
+
|
|
41
|
+
#
|
|
42
|
+
attr_accessor :recurring_indicator
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
attr_accessor :scheme_transaction_reference
|
|
46
|
+
|
|
47
|
+
#
|
|
48
|
+
attr_accessor :token_requestor_id
|
|
49
|
+
|
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
|
+
def self.attribute_map
|
|
52
|
+
{
|
|
53
|
+
:'card_holder_name' => :'cardHolderName',
|
|
54
|
+
:'card_verification_code' => :'cardVerificationCode',
|
|
55
|
+
:'cardholder_authentication' => :'cardholderAuthentication',
|
|
56
|
+
:'cryptogram' => :'cryptogram',
|
|
57
|
+
:'expiry_date' => :'expiryDate',
|
|
58
|
+
:'primary_account_number' => :'primaryAccountNumber',
|
|
59
|
+
:'recurring_indicator' => :'recurringIndicator',
|
|
60
|
+
:'scheme_transaction_reference' => :'schemeTransactionReference',
|
|
61
|
+
:'token_requestor_id' => :'tokenRequestorId'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Attribute type mapping.
|
|
66
|
+
def self.swagger_types
|
|
67
|
+
{
|
|
68
|
+
:'card_holder_name' => :'String',
|
|
69
|
+
:'card_verification_code' => :'String',
|
|
70
|
+
:'cardholder_authentication' => :'CardholderAuthenticationCreate',
|
|
71
|
+
:'cryptogram' => :'CardCryptogramCreate',
|
|
72
|
+
:'expiry_date' => :'String',
|
|
73
|
+
:'primary_account_number' => :'String',
|
|
74
|
+
:'recurring_indicator' => :'RecurringIndicator',
|
|
75
|
+
:'scheme_transaction_reference' => :'String',
|
|
76
|
+
:'token_requestor_id' => :'String'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Initializes the object
|
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
82
|
+
def initialize(attributes = {})
|
|
83
|
+
return unless attributes.is_a?(Hash)
|
|
84
|
+
|
|
85
|
+
# convert string to symbol for hash key
|
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
87
|
+
|
|
88
|
+
if attributes.has_key?(:'cardHolderName')
|
|
89
|
+
self.card_holder_name = attributes[:'cardHolderName']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.has_key?(:'cardVerificationCode')
|
|
93
|
+
self.card_verification_code = attributes[:'cardVerificationCode']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.has_key?(:'cardholderAuthentication')
|
|
97
|
+
self.cardholder_authentication = attributes[:'cardholderAuthentication']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.has_key?(:'cryptogram')
|
|
101
|
+
self.cryptogram = attributes[:'cryptogram']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.has_key?(:'expiryDate')
|
|
105
|
+
self.expiry_date = attributes[:'expiryDate']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.has_key?(:'primaryAccountNumber')
|
|
109
|
+
self.primary_account_number = attributes[:'primaryAccountNumber']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.has_key?(:'recurringIndicator')
|
|
113
|
+
self.recurring_indicator = attributes[:'recurringIndicator']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.has_key?(:'schemeTransactionReference')
|
|
117
|
+
self.scheme_transaction_reference = attributes[:'schemeTransactionReference']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.has_key?(:'tokenRequestorId')
|
|
121
|
+
self.token_requestor_id = attributes[:'tokenRequestorId']
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
126
|
+
# @return Array for valid properties with the reasons
|
|
127
|
+
def list_invalid_properties
|
|
128
|
+
invalid_properties = Array.new
|
|
129
|
+
if !@card_holder_name.nil? && @card_holder_name.to_s.length > 100
|
|
130
|
+
invalid_properties.push('invalid value for "card_holder_name", the character length must be smaller than or equal to 100.')
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if !@card_verification_code.nil? && @card_verification_code.to_s.length > 4
|
|
134
|
+
invalid_properties.push('invalid value for "card_verification_code", the character length must be smaller than or equal to 4.')
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if !@card_verification_code.nil? && @card_verification_code.to_s.length < 3
|
|
138
|
+
invalid_properties.push('invalid value for "card_verification_code", the character length must be great than or equal to 3.')
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if @primary_account_number.nil?
|
|
142
|
+
invalid_properties.push('invalid value for "primary_account_number", primary_account_number cannot be nil.')
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if @primary_account_number.to_s.length > 30
|
|
146
|
+
invalid_properties.push('invalid value for "primary_account_number", the character length must be smaller than or equal to 30.')
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if @primary_account_number.to_s.length < 10
|
|
150
|
+
invalid_properties.push('invalid value for "primary_account_number", the character length must be great than or equal to 10.')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
|
|
154
|
+
invalid_properties.push('invalid value for "scheme_transaction_reference", the character length must be smaller than or equal to 100.')
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
invalid_properties
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Check to see if the all the properties in the model are valid
|
|
161
|
+
# @return true if the model is valid
|
|
162
|
+
def valid?
|
|
163
|
+
return false if !@card_holder_name.nil? && @card_holder_name.to_s.length > 100
|
|
164
|
+
return false if !@card_verification_code.nil? && @card_verification_code.to_s.length > 4
|
|
165
|
+
return false if !@card_verification_code.nil? && @card_verification_code.to_s.length < 3
|
|
166
|
+
return false if @primary_account_number.nil?
|
|
167
|
+
return false if @primary_account_number.to_s.length > 30
|
|
168
|
+
return false if @primary_account_number.to_s.length < 10
|
|
169
|
+
return false if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
|
|
170
|
+
true
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Custom attribute writer method with validation
|
|
174
|
+
# @param [Object] card_holder_name Value to be assigned
|
|
175
|
+
def card_holder_name=(card_holder_name)
|
|
176
|
+
if !card_holder_name.nil? && card_holder_name.to_s.length > 100
|
|
177
|
+
fail ArgumentError, 'invalid value for "card_holder_name", the character length must be smaller than or equal to 100.'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
@card_holder_name = card_holder_name
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Custom attribute writer method with validation
|
|
184
|
+
# @param [Object] card_verification_code Value to be assigned
|
|
185
|
+
def card_verification_code=(card_verification_code)
|
|
186
|
+
if !card_verification_code.nil? && card_verification_code.to_s.length > 4
|
|
187
|
+
fail ArgumentError, 'invalid value for "card_verification_code", the character length must be smaller than or equal to 4.'
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if !card_verification_code.nil? && card_verification_code.to_s.length < 3
|
|
191
|
+
fail ArgumentError, 'invalid value for "card_verification_code", the character length must be great than or equal to 3.'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
@card_verification_code = card_verification_code
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Custom attribute writer method with validation
|
|
198
|
+
# @param [Object] primary_account_number Value to be assigned
|
|
199
|
+
def primary_account_number=(primary_account_number)
|
|
200
|
+
if primary_account_number.nil?
|
|
201
|
+
fail ArgumentError, 'primary_account_number cannot be nil'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if primary_account_number.to_s.length > 30
|
|
205
|
+
fail ArgumentError, 'invalid value for "primary_account_number", the character length must be smaller than or equal to 30.'
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if primary_account_number.to_s.length < 10
|
|
209
|
+
fail ArgumentError, 'invalid value for "primary_account_number", the character length must be great than or equal to 10.'
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
@primary_account_number = primary_account_number
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Custom attribute writer method with validation
|
|
216
|
+
# @param [Object] scheme_transaction_reference Value to be assigned
|
|
217
|
+
def scheme_transaction_reference=(scheme_transaction_reference)
|
|
218
|
+
if !scheme_transaction_reference.nil? && scheme_transaction_reference.to_s.length > 100
|
|
219
|
+
fail ArgumentError, 'invalid value for "scheme_transaction_reference", the character length must be smaller than or equal to 100.'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
@scheme_transaction_reference = scheme_transaction_reference
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Checks equality by comparing each attribute.
|
|
226
|
+
# @param [Object] Object to be compared
|
|
227
|
+
def ==(o)
|
|
228
|
+
return true if self.equal?(o)
|
|
229
|
+
self.class == o.class &&
|
|
230
|
+
card_holder_name == o.card_holder_name &&
|
|
231
|
+
card_verification_code == o.card_verification_code &&
|
|
232
|
+
cardholder_authentication == o.cardholder_authentication &&
|
|
233
|
+
cryptogram == o.cryptogram &&
|
|
234
|
+
expiry_date == o.expiry_date &&
|
|
235
|
+
primary_account_number == o.primary_account_number &&
|
|
236
|
+
recurring_indicator == o.recurring_indicator &&
|
|
237
|
+
scheme_transaction_reference == o.scheme_transaction_reference &&
|
|
238
|
+
token_requestor_id == o.token_requestor_id
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# @see the `==` method
|
|
242
|
+
# @param [Object] Object to be compared
|
|
243
|
+
def eql?(o)
|
|
244
|
+
self == o
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Calculates hash code according to all attributes.
|
|
248
|
+
# @return [Fixnum] Hash code
|
|
249
|
+
def hash
|
|
250
|
+
[card_holder_name, card_verification_code, cardholder_authentication, cryptogram, expiry_date, primary_account_number, recurring_indicator, scheme_transaction_reference, token_requestor_id].hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Builds the object from hash
|
|
254
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
255
|
+
# @return [Object] Returns the model itself
|
|
256
|
+
def build_from_hash(attributes)
|
|
257
|
+
return nil unless attributes.is_a?(Hash)
|
|
258
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
259
|
+
if type =~ /\AArray<(.*)>/i
|
|
260
|
+
# check to ensure the input is an array given that the attribute
|
|
261
|
+
# is documented as an array but the input is not
|
|
262
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
263
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
264
|
+
end
|
|
265
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
266
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
267
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
self
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Deserializes the data based on type
|
|
274
|
+
# @param string type Data type
|
|
275
|
+
# @param string value Value to be deserialized
|
|
276
|
+
# @return [Object] Deserialized data
|
|
277
|
+
def _deserialize(type, value)
|
|
278
|
+
case type.to_sym
|
|
279
|
+
when :DateTime
|
|
280
|
+
DateTime.parse(value)
|
|
281
|
+
when :Date
|
|
282
|
+
Date.parse(value)
|
|
283
|
+
when :String
|
|
284
|
+
value.to_s
|
|
285
|
+
when :Integer
|
|
286
|
+
value.to_i
|
|
287
|
+
when :Float
|
|
288
|
+
value.to_f
|
|
289
|
+
when :BOOLEAN
|
|
290
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
291
|
+
true
|
|
292
|
+
else
|
|
293
|
+
false
|
|
294
|
+
end
|
|
295
|
+
when :Object
|
|
296
|
+
# generic object (usually a Hash), return directly
|
|
297
|
+
value
|
|
298
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
299
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
300
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
301
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
302
|
+
k_type = Regexp.last_match[:k_type]
|
|
303
|
+
v_type = Regexp.last_match[:v_type]
|
|
304
|
+
{}.tap do |hash|
|
|
305
|
+
value.each do |k, v|
|
|
306
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
else # model
|
|
310
|
+
temp_model = Wallee.const_get(type).new
|
|
311
|
+
temp_model.build_from_hash(value)
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Returns the string representation of the object
|
|
316
|
+
# @return [String] String presentation of the object
|
|
317
|
+
def to_s
|
|
318
|
+
to_hash.to_s
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
322
|
+
# @return [Hash] Returns the object in the form of hash
|
|
323
|
+
def to_body
|
|
324
|
+
to_hash
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Returns the object in the form of hash
|
|
328
|
+
# @return [Hash] Returns the object in the form of hash
|
|
329
|
+
def to_hash
|
|
330
|
+
hash = {}
|
|
331
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
332
|
+
value = self.send(attr)
|
|
333
|
+
next if value.nil?
|
|
334
|
+
hash[param] = _to_hash(value)
|
|
335
|
+
end
|
|
336
|
+
hash
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Outputs non-array value in the form of hash
|
|
340
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
341
|
+
# @param [Object] value Any valid value
|
|
342
|
+
# @return [Hash] Returns the value in the form of hash
|
|
343
|
+
def _to_hash(value)
|
|
344
|
+
if value.is_a?(Array)
|
|
345
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
346
|
+
elsif value.is_a?(Hash)
|
|
347
|
+
{}.tap do |hash|
|
|
348
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
349
|
+
end
|
|
350
|
+
elsif value.respond_to? :to_hash
|
|
351
|
+
value.to_hash
|
|
352
|
+
else
|
|
353
|
+
value
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
end
|
|
358
|
+
end
|