wallee-ruby-sdk 1.0.1 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +107 -34
- data/lib/wallee-ruby-sdk.rb +260 -99
- data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +42 -46
- data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
- data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
- data/lib/wallee-ruby-sdk/api/customer_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb +796 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +94 -41
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +33 -37
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +9 -13
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
- data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +96 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/payment_link_service_api.rb} +68 -72
- data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/payment_terminal_service_api.rb} +36 -40
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
- data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +125 -61
- data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +46 -50
- data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +38 -42
- data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +28 -32
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +245 -115
- data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
- data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +164 -44
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +186 -59
- data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +273 -326
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +30 -34
- data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/api_client.rb +7 -7
- data/lib/wallee-ruby-sdk/api_error.rb +0 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -6
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
- data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +262 -0
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +246 -0
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +136 -16
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
- data/lib/wallee-ruby-sdk/models/account.rb +90 -13
- data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
- data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
- data/lib/wallee-ruby-sdk/models/address.rb +240 -22
- data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
- data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
- data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
- data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
- data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
- data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
- data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -23
- data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
- data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/wallee-ruby-sdk/models/customer_address.rb +261 -0
- data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
- data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
- data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
- data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +495 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +303 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +338 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +225 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +40 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +293 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +305 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +215 -0
- data/lib/wallee-ruby-sdk/models/{email_sender.rb → debt_collector_condition.rb} +34 -46
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +310 -0
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -25
- data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +208 -0
- data/lib/wallee-ruby-sdk/models/entity_query.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +15 -12
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
- data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
- data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
- data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +225 -0
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +30 -15
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +355 -0
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → payment_contract_type.rb} +9 -16
- data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
- data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
- data/lib/wallee-ruby-sdk/models/payment_link.rb +414 -0
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +350 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +373 -0
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/payment_method.rb +20 -15
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +31 -13
- data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +51 -79
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +456 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +313 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_contact_address.rb} +105 -27
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +286 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → payment_terminal_type.rb} +33 -28
- data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/refund.rb +130 -13
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
- data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
- data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +203 -0
- data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
- data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +227 -0
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +43 -0
- data/lib/wallee-ruby-sdk/models/rest_country.rb +16 -13
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
- data/lib/wallee-ruby-sdk/models/role.rb +16 -13
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
- data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +281 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +365 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
- data/lib/wallee-ruby-sdk/models/shopify_tax_line.rb +231 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/space.rb +91 -14
- data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
- data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
- data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
- data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscription.rb +86 -13
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +333 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +27 -17
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +22 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +29 -12
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -15
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +38 -15
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
- data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
- data/lib/wallee-ruby-sdk/models/token.rb +59 -12
- data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
- data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
- data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +37 -0
- data/lib/wallee-ruby-sdk/models/transaction.rb +291 -16
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +200 -15
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +85 -13
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +137 -16
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/{email_template_type.rb → two_factor_authentication_type.rb} +18 -71
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +284 -0
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +293 -0
- data/lib/wallee-ruby-sdk/models/user.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +7 -24
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
- data/test/transaction_payment_page_service_test.rb +91 -0
- data/wallee-ruby-sdk.gemspec +5 -8
- metadata +262 -87
- data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
- data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
- data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
@@ -0,0 +1,36 @@
|
|
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
|
+
class TransactionCompletionBehavior
|
22
|
+
|
23
|
+
COMPLETE_IMMEDIATELY = 'COMPLETE_IMMEDIATELY'.freeze
|
24
|
+
COMPLETE_DEFERRED = 'COMPLETE_DEFERRED'.freeze
|
25
|
+
USE_CONFIGURATION = 'USE_CONFIGURATION'.freeze
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
constantValues = TransactionCompletionBehavior.constants.select { |c| TransactionCompletionBehavior::const_get(c) == value }
|
32
|
+
raise "Invalid ENUM value #{value} for class #TransactionCompletionBehavior" if constantValues.empty?
|
33
|
+
value
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -1,10 +1,6 @@
|
|
1
1
|
=begin
|
2
|
-
Wallee API: 1.0.0
|
3
|
-
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
5
3
|
|
6
|
-
|
7
|
-
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
9
5
|
you may not use this file except in compliance with the License.
|
10
6
|
You may obtain a copy of the License at
|
@@ -24,21 +20,17 @@ require 'date'
|
|
24
20
|
module Wallee
|
25
21
|
class TransactionCompletionMode
|
26
22
|
|
27
|
-
DIRECT =
|
28
|
-
ONLINE =
|
29
|
-
OFFLINE =
|
30
|
-
|
31
|
-
# Builds the
|
32
|
-
# @param [
|
33
|
-
# @return [
|
23
|
+
DIRECT = 'DIRECT'.freeze
|
24
|
+
ONLINE = 'ONLINE'.freeze
|
25
|
+
OFFLINE = 'OFFLINE'.freeze
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
34
30
|
def build_from_hash(value)
|
35
|
-
|
36
|
-
|
37
|
-
raise "Invalid ENUM value #{value} for class #TransactionCompletionMode" if consantValues.empty?
|
38
|
-
|
31
|
+
constantValues = TransactionCompletionMode.constants.select { |c| TransactionCompletionMode::const_get(c) == value }
|
32
|
+
raise "Invalid ENUM value #{value} for class #TransactionCompletionMode" if constantValues.empty?
|
39
33
|
value
|
40
|
-
|
41
34
|
end
|
42
35
|
end
|
43
|
-
|
44
36
|
end
|
@@ -0,0 +1,291 @@
|
|
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
|
+
#
|
22
|
+
class TransactionCompletionRequest
|
23
|
+
# The external ID helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
|
24
|
+
attr_accessor :external_id
|
25
|
+
|
26
|
+
#
|
27
|
+
attr_accessor :invoice_merchant_reference
|
28
|
+
|
29
|
+
# The last completion flag indicates if this is the last completion. After the last completion is created no further completions can be issued.
|
30
|
+
attr_accessor :last_completion
|
31
|
+
|
32
|
+
# The line items which will be used to complete the transaction.
|
33
|
+
attr_accessor :line_items
|
34
|
+
|
35
|
+
# The ID of the transaction which should be completed.
|
36
|
+
attr_accessor :transaction_id
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'external_id' => :'externalId',
|
42
|
+
:'invoice_merchant_reference' => :'invoiceMerchantReference',
|
43
|
+
:'last_completion' => :'lastCompletion',
|
44
|
+
:'line_items' => :'lineItems',
|
45
|
+
:'transaction_id' => :'transactionId'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'external_id' => :'String',
|
53
|
+
:'invoice_merchant_reference' => :'String',
|
54
|
+
:'last_completion' => :'BOOLEAN',
|
55
|
+
:'line_items' => :'Array<CompletionLineItemCreate>',
|
56
|
+
:'transaction_id' => :'Integer'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
+
|
68
|
+
if attributes.has_key?(:'externalId')
|
69
|
+
self.external_id = attributes[:'externalId']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'invoiceMerchantReference')
|
73
|
+
self.invoice_merchant_reference = attributes[:'invoiceMerchantReference']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'lastCompletion')
|
77
|
+
self.last_completion = attributes[:'lastCompletion']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'lineItems')
|
81
|
+
if (value = attributes[:'lineItems']).is_a?(Array)
|
82
|
+
self.line_items = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'transactionId')
|
87
|
+
self.transaction_id = attributes[:'transactionId']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
+
# @return Array for valid properties with the reasons
|
93
|
+
def list_invalid_properties
|
94
|
+
invalid_properties = Array.new
|
95
|
+
if @external_id.nil?
|
96
|
+
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if @external_id.to_s.length > 100
|
100
|
+
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @external_id.to_s.length < 1
|
104
|
+
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
108
|
+
invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
|
109
|
+
end
|
110
|
+
|
111
|
+
if @last_completion.nil?
|
112
|
+
invalid_properties.push('invalid value for "last_completion", last_completion cannot be nil.')
|
113
|
+
end
|
114
|
+
|
115
|
+
if @transaction_id.nil?
|
116
|
+
invalid_properties.push('invalid value for "transaction_id", transaction_id cannot be nil.')
|
117
|
+
end
|
118
|
+
|
119
|
+
invalid_properties
|
120
|
+
end
|
121
|
+
|
122
|
+
# Check to see if the all the properties in the model are valid
|
123
|
+
# @return true if the model is valid
|
124
|
+
def valid?
|
125
|
+
return false if @external_id.nil?
|
126
|
+
return false if @external_id.to_s.length > 100
|
127
|
+
return false if @external_id.to_s.length < 1
|
128
|
+
return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
129
|
+
return false if @last_completion.nil?
|
130
|
+
return false if @transaction_id.nil?
|
131
|
+
true
|
132
|
+
end
|
133
|
+
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] external_id Value to be assigned
|
136
|
+
def external_id=(external_id)
|
137
|
+
if external_id.nil?
|
138
|
+
fail ArgumentError, 'external_id cannot be nil'
|
139
|
+
end
|
140
|
+
|
141
|
+
if external_id.to_s.length > 100
|
142
|
+
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
143
|
+
end
|
144
|
+
|
145
|
+
if external_id.to_s.length < 1
|
146
|
+
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
147
|
+
end
|
148
|
+
|
149
|
+
@external_id = external_id
|
150
|
+
end
|
151
|
+
|
152
|
+
# Custom attribute writer method with validation
|
153
|
+
# @param [Object] invoice_merchant_reference Value to be assigned
|
154
|
+
def invoice_merchant_reference=(invoice_merchant_reference)
|
155
|
+
if !invoice_merchant_reference.nil? && invoice_merchant_reference.to_s.length > 100
|
156
|
+
fail ArgumentError, 'invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.'
|
157
|
+
end
|
158
|
+
|
159
|
+
@invoice_merchant_reference = invoice_merchant_reference
|
160
|
+
end
|
161
|
+
|
162
|
+
# Checks equality by comparing each attribute.
|
163
|
+
# @param [Object] Object to be compared
|
164
|
+
def ==(o)
|
165
|
+
return true if self.equal?(o)
|
166
|
+
self.class == o.class &&
|
167
|
+
external_id == o.external_id &&
|
168
|
+
invoice_merchant_reference == o.invoice_merchant_reference &&
|
169
|
+
last_completion == o.last_completion &&
|
170
|
+
line_items == o.line_items &&
|
171
|
+
transaction_id == o.transaction_id
|
172
|
+
end
|
173
|
+
|
174
|
+
# @see the `==` method
|
175
|
+
# @param [Object] Object to be compared
|
176
|
+
def eql?(o)
|
177
|
+
self == o
|
178
|
+
end
|
179
|
+
|
180
|
+
# Calculates hash code according to all attributes.
|
181
|
+
# @return [Fixnum] Hash code
|
182
|
+
def hash
|
183
|
+
[external_id, invoice_merchant_reference, last_completion, line_items, transaction_id].hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Builds the object from hash
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
188
|
+
# @return [Object] Returns the model itself
|
189
|
+
def build_from_hash(attributes)
|
190
|
+
return nil unless attributes.is_a?(Hash)
|
191
|
+
self.class.swagger_types.each_pair do |key, type|
|
192
|
+
if type =~ /\AArray<(.*)>/i
|
193
|
+
# check to ensure the input is an array given that the attribute
|
194
|
+
# is documented as an array but the input is not
|
195
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
196
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
197
|
+
end
|
198
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
199
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
200
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
201
|
+
end
|
202
|
+
|
203
|
+
self
|
204
|
+
end
|
205
|
+
|
206
|
+
# Deserializes the data based on type
|
207
|
+
# @param string type Data type
|
208
|
+
# @param string value Value to be deserialized
|
209
|
+
# @return [Object] Deserialized data
|
210
|
+
def _deserialize(type, value)
|
211
|
+
case type.to_sym
|
212
|
+
when :DateTime
|
213
|
+
DateTime.parse(value)
|
214
|
+
when :Date
|
215
|
+
Date.parse(value)
|
216
|
+
when :String
|
217
|
+
value.to_s
|
218
|
+
when :Integer
|
219
|
+
value.to_i
|
220
|
+
when :Float
|
221
|
+
value.to_f
|
222
|
+
when :BOOLEAN
|
223
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
224
|
+
true
|
225
|
+
else
|
226
|
+
false
|
227
|
+
end
|
228
|
+
when :Object
|
229
|
+
# generic object (usually a Hash), return directly
|
230
|
+
value
|
231
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
232
|
+
inner_type = Regexp.last_match[:inner_type]
|
233
|
+
value.map { |v| _deserialize(inner_type, v) }
|
234
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
235
|
+
k_type = Regexp.last_match[:k_type]
|
236
|
+
v_type = Regexp.last_match[:v_type]
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each do |k, v|
|
239
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
else # model
|
243
|
+
temp_model = Wallee.const_get(type).new
|
244
|
+
temp_model.build_from_hash(value)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
# Returns the string representation of the object
|
249
|
+
# @return [String] String presentation of the object
|
250
|
+
def to_s
|
251
|
+
to_hash.to_s
|
252
|
+
end
|
253
|
+
|
254
|
+
# to_body is an alias to to_hash (backward compatibility)
|
255
|
+
# @return [Hash] Returns the object in the form of hash
|
256
|
+
def to_body
|
257
|
+
to_hash
|
258
|
+
end
|
259
|
+
|
260
|
+
# Returns the object in the form of hash
|
261
|
+
# @return [Hash] Returns the object in the form of hash
|
262
|
+
def to_hash
|
263
|
+
hash = {}
|
264
|
+
self.class.attribute_map.each_pair do |attr, param|
|
265
|
+
value = self.send(attr)
|
266
|
+
next if value.nil?
|
267
|
+
hash[param] = _to_hash(value)
|
268
|
+
end
|
269
|
+
hash
|
270
|
+
end
|
271
|
+
|
272
|
+
# Outputs non-array value in the form of hash
|
273
|
+
# For object, use to_hash. Otherwise, just return the value
|
274
|
+
# @param [Object] value Any valid value
|
275
|
+
# @return [Hash] Returns the value in the form of hash
|
276
|
+
def _to_hash(value)
|
277
|
+
if value.is_a?(Array)
|
278
|
+
value.compact.map{ |v| _to_hash(v) }
|
279
|
+
elsif value.is_a?(Hash)
|
280
|
+
{}.tap do |hash|
|
281
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
282
|
+
end
|
283
|
+
elsif value.respond_to? :to_hash
|
284
|
+
value.to_hash
|
285
|
+
else
|
286
|
+
value
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
end
|
291
|
+
end
|
@@ -1,10 +1,6 @@
|
|
1
1
|
=begin
|
2
|
-
Wallee API: 1.0.0
|
3
|
-
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
5
3
|
|
6
|
-
|
7
|
-
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
9
5
|
you may not use this file except in compliance with the License.
|
10
6
|
You may obtain a copy of the License at
|
@@ -24,22 +20,19 @@ require 'date'
|
|
24
20
|
module Wallee
|
25
21
|
class TransactionCompletionState
|
26
22
|
|
27
|
-
CREATE =
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
#
|
34
|
-
# @
|
23
|
+
CREATE = 'CREATE'.freeze
|
24
|
+
SCHEDULED = 'SCHEDULED'.freeze
|
25
|
+
PENDING = 'PENDING'.freeze
|
26
|
+
FAILED = 'FAILED'.freeze
|
27
|
+
SUCCESSFUL = 'SUCCESSFUL'.freeze
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
35
32
|
def build_from_hash(value)
|
36
|
-
|
37
|
-
|
38
|
-
raise "Invalid ENUM value #{value} for class #TransactionCompletionState" if consantValues.empty?
|
39
|
-
|
33
|
+
constantValues = TransactionCompletionState.constants.select { |c| TransactionCompletionState::const_get(c) == value }
|
34
|
+
raise "Invalid ENUM value #{value} for class #TransactionCompletionState" if constantValues.empty?
|
40
35
|
value
|
41
|
-
|
42
36
|
end
|
43
37
|
end
|
44
|
-
|
45
38
|
end
|
@@ -1,10 +1,6 @@
|
|
1
1
|
=begin
|
2
|
-
Wallee API: 1.0.0
|
3
|
-
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
5
3
|
|
6
|
-
|
7
|
-
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
9
5
|
you may not use this file except in compliance with the License.
|
10
6
|
You may obtain a copy of the License at
|
@@ -33,6 +29,9 @@ module Wallee
|
|
33
29
|
#
|
34
30
|
attr_accessor :billing_address
|
35
31
|
|
32
|
+
# The completion behavior controls when the transaction is completed.
|
33
|
+
attr_accessor :completion_behavior
|
34
|
+
|
36
35
|
#
|
37
36
|
attr_accessor :currency
|
38
37
|
|
@@ -75,6 +74,9 @@ module Wallee
|
|
75
74
|
#
|
76
75
|
attr_accessor :token
|
77
76
|
|
77
|
+
# The tokenization mode controls if and how the tokenization of payment information is applied to the transaction.
|
78
|
+
attr_accessor :tokenization_mode
|
79
|
+
|
78
80
|
# When auto confirmation is enabled the transaction can be confirmed by the user and does not require an explicit confirmation through the web service API.
|
79
81
|
attr_accessor :auto_confirmation_enabled
|
80
82
|
|
@@ -84,9 +86,20 @@ module Wallee
|
|
84
86
|
# The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.
|
85
87
|
attr_accessor :customers_presence
|
86
88
|
|
89
|
+
# The device session identifier links the transaction with the session identifier provided in the URL of the device data JavaScript. This allows to link the transaction with the collected device data of the buyer.
|
90
|
+
attr_accessor :device_session_identifier
|
91
|
+
|
92
|
+
# Flag indicating whether email sending is disabled for this particular transaction. Defaults to false.
|
93
|
+
attr_accessor :emails_disabled
|
94
|
+
|
87
95
|
#
|
88
|
-
attr_accessor :
|
96
|
+
attr_accessor :environment
|
89
97
|
|
98
|
+
# The environment selection strategy determines how the environment (test or production) for processing the transaction is selected.
|
99
|
+
attr_accessor :environment_selection_strategy
|
100
|
+
|
101
|
+
#
|
102
|
+
attr_accessor :space_view_id
|
90
103
|
|
91
104
|
# Attribute mapping from ruby-style variable name to JSON key.
|
92
105
|
def self.attribute_map
|
@@ -94,6 +107,7 @@ module Wallee
|
|
94
107
|
:'allowed_payment_method_brands' => :'allowedPaymentMethodBrands',
|
95
108
|
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
96
109
|
:'billing_address' => :'billingAddress',
|
110
|
+
:'completion_behavior' => :'completionBehavior',
|
97
111
|
:'currency' => :'currency',
|
98
112
|
:'customer_email_address' => :'customerEmailAddress',
|
99
113
|
:'customer_id' => :'customerId',
|
@@ -108,9 +122,14 @@ module Wallee
|
|
108
122
|
:'success_url' => :'successUrl',
|
109
123
|
:'time_zone' => :'timeZone',
|
110
124
|
:'token' => :'token',
|
125
|
+
:'tokenization_mode' => :'tokenizationMode',
|
111
126
|
:'auto_confirmation_enabled' => :'autoConfirmationEnabled',
|
112
127
|
:'charge_retry_enabled' => :'chargeRetryEnabled',
|
113
128
|
:'customers_presence' => :'customersPresence',
|
129
|
+
:'device_session_identifier' => :'deviceSessionIdentifier',
|
130
|
+
:'emails_disabled' => :'emailsDisabled',
|
131
|
+
:'environment' => :'environment',
|
132
|
+
:'environment_selection_strategy' => :'environmentSelectionStrategy',
|
114
133
|
:'space_view_id' => :'spaceViewId'
|
115
134
|
}
|
116
135
|
end
|
@@ -121,6 +140,7 @@ module Wallee
|
|
121
140
|
:'allowed_payment_method_brands' => :'Array<PaymentMethodBrand>',
|
122
141
|
:'allowed_payment_method_configurations' => :'Array<Integer>',
|
123
142
|
:'billing_address' => :'AddressCreate',
|
143
|
+
:'completion_behavior' => :'TransactionCompletionBehavior',
|
124
144
|
:'currency' => :'String',
|
125
145
|
:'customer_email_address' => :'String',
|
126
146
|
:'customer_id' => :'String',
|
@@ -135,9 +155,14 @@ module Wallee
|
|
135
155
|
:'success_url' => :'String',
|
136
156
|
:'time_zone' => :'String',
|
137
157
|
:'token' => :'Integer',
|
158
|
+
:'tokenization_mode' => :'TokenizationMode',
|
138
159
|
:'auto_confirmation_enabled' => :'BOOLEAN',
|
139
160
|
:'charge_retry_enabled' => :'BOOLEAN',
|
140
161
|
:'customers_presence' => :'CustomersPresence',
|
162
|
+
:'device_session_identifier' => :'String',
|
163
|
+
:'emails_disabled' => :'BOOLEAN',
|
164
|
+
:'environment' => :'Environment',
|
165
|
+
:'environment_selection_strategy' => :'TransactionEnvironmentSelectionStrategy',
|
141
166
|
:'space_view_id' => :'Integer'
|
142
167
|
}
|
143
168
|
end
|
@@ -148,7 +173,7 @@ module Wallee
|
|
148
173
|
return unless attributes.is_a?(Hash)
|
149
174
|
|
150
175
|
# convert string to symbol for hash key
|
151
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
176
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
152
177
|
|
153
178
|
if attributes.has_key?(:'allowedPaymentMethodBrands')
|
154
179
|
if (value = attributes[:'allowedPaymentMethodBrands']).is_a?(Array)
|
@@ -166,6 +191,10 @@ module Wallee
|
|
166
191
|
self.billing_address = attributes[:'billingAddress']
|
167
192
|
end
|
168
193
|
|
194
|
+
if attributes.has_key?(:'completionBehavior')
|
195
|
+
self.completion_behavior = attributes[:'completionBehavior']
|
196
|
+
end
|
197
|
+
|
169
198
|
if attributes.has_key?(:'currency')
|
170
199
|
self.currency = attributes[:'currency']
|
171
200
|
end
|
@@ -201,7 +230,7 @@ module Wallee
|
|
201
230
|
end
|
202
231
|
|
203
232
|
if attributes.has_key?(:'metaData')
|
204
|
-
if (value = attributes[:'metaData']).is_a?(
|
233
|
+
if (value = attributes[:'metaData']).is_a?(Hash)
|
205
234
|
self.meta_data = value
|
206
235
|
end
|
207
236
|
end
|
@@ -226,6 +255,10 @@ module Wallee
|
|
226
255
|
self.token = attributes[:'token']
|
227
256
|
end
|
228
257
|
|
258
|
+
if attributes.has_key?(:'tokenizationMode')
|
259
|
+
self.tokenization_mode = attributes[:'tokenizationMode']
|
260
|
+
end
|
261
|
+
|
229
262
|
if attributes.has_key?(:'autoConfirmationEnabled')
|
230
263
|
self.auto_confirmation_enabled = attributes[:'autoConfirmationEnabled']
|
231
264
|
end
|
@@ -238,28 +271,175 @@ module Wallee
|
|
238
271
|
self.customers_presence = attributes[:'customersPresence']
|
239
272
|
end
|
240
273
|
|
274
|
+
if attributes.has_key?(:'deviceSessionIdentifier')
|
275
|
+
self.device_session_identifier = attributes[:'deviceSessionIdentifier']
|
276
|
+
end
|
277
|
+
|
278
|
+
if attributes.has_key?(:'emailsDisabled')
|
279
|
+
self.emails_disabled = attributes[:'emailsDisabled']
|
280
|
+
end
|
281
|
+
|
282
|
+
if attributes.has_key?(:'environment')
|
283
|
+
self.environment = attributes[:'environment']
|
284
|
+
end
|
285
|
+
|
286
|
+
if attributes.has_key?(:'environmentSelectionStrategy')
|
287
|
+
self.environment_selection_strategy = attributes[:'environmentSelectionStrategy']
|
288
|
+
end
|
289
|
+
|
241
290
|
if attributes.has_key?(:'spaceViewId')
|
242
291
|
self.space_view_id = attributes[:'spaceViewId']
|
243
292
|
end
|
244
|
-
|
245
293
|
end
|
246
294
|
|
247
295
|
# Show invalid properties with the reasons. Usually used together with valid?
|
248
|
-
# @return Array for valid
|
296
|
+
# @return Array for valid properties with the reasons
|
249
297
|
def list_invalid_properties
|
250
298
|
invalid_properties = Array.new
|
299
|
+
if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
|
300
|
+
invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 254.')
|
301
|
+
end
|
302
|
+
|
303
|
+
if !@failed_url.nil? && @failed_url.to_s.length > 1000
|
304
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 1000.')
|
305
|
+
end
|
306
|
+
|
307
|
+
if !@failed_url.nil? && @failed_url.to_s.length < 9
|
308
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
|
309
|
+
end
|
310
|
+
|
311
|
+
if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
312
|
+
invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
|
313
|
+
end
|
314
|
+
|
251
315
|
if @line_items.nil?
|
252
|
-
invalid_properties.push(
|
316
|
+
invalid_properties.push('invalid value for "line_items", line_items cannot be nil.')
|
317
|
+
end
|
318
|
+
|
319
|
+
if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
|
320
|
+
invalid_properties.push('invalid value for "merchant_reference", the character length must be smaller than or equal to 100.')
|
321
|
+
end
|
322
|
+
|
323
|
+
if !@shipping_method.nil? && @shipping_method.to_s.length > 200
|
324
|
+
invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
|
325
|
+
end
|
326
|
+
|
327
|
+
if !@success_url.nil? && @success_url.to_s.length > 1000
|
328
|
+
invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 1000.')
|
329
|
+
end
|
330
|
+
|
331
|
+
if !@success_url.nil? && @success_url.to_s.length < 9
|
332
|
+
invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
|
253
333
|
end
|
254
334
|
|
255
|
-
|
335
|
+
if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
|
336
|
+
invalid_properties.push('invalid value for "device_session_identifier", the character length must be smaller than or equal to 40.')
|
337
|
+
end
|
338
|
+
|
339
|
+
if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
|
340
|
+
invalid_properties.push('invalid value for "device_session_identifier", the character length must be great than or equal to 10.')
|
341
|
+
end
|
342
|
+
|
343
|
+
invalid_properties
|
256
344
|
end
|
257
345
|
|
258
346
|
# Check to see if the all the properties in the model are valid
|
259
347
|
# @return true if the model is valid
|
260
348
|
def valid?
|
349
|
+
return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
|
350
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length > 1000
|
351
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length < 9
|
352
|
+
return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
261
353
|
return false if @line_items.nil?
|
262
|
-
return
|
354
|
+
return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
|
355
|
+
return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
|
356
|
+
return false if !@success_url.nil? && @success_url.to_s.length > 1000
|
357
|
+
return false if !@success_url.nil? && @success_url.to_s.length < 9
|
358
|
+
return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
|
359
|
+
return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
|
360
|
+
true
|
361
|
+
end
|
362
|
+
|
363
|
+
# Custom attribute writer method with validation
|
364
|
+
# @param [Object] customer_email_address Value to be assigned
|
365
|
+
def customer_email_address=(customer_email_address)
|
366
|
+
if !customer_email_address.nil? && customer_email_address.to_s.length > 254
|
367
|
+
fail ArgumentError, 'invalid value for "customer_email_address", the character length must be smaller than or equal to 254.'
|
368
|
+
end
|
369
|
+
|
370
|
+
@customer_email_address = customer_email_address
|
371
|
+
end
|
372
|
+
|
373
|
+
# Custom attribute writer method with validation
|
374
|
+
# @param [Object] failed_url Value to be assigned
|
375
|
+
def failed_url=(failed_url)
|
376
|
+
if !failed_url.nil? && failed_url.to_s.length > 1000
|
377
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 1000.'
|
378
|
+
end
|
379
|
+
|
380
|
+
if !failed_url.nil? && failed_url.to_s.length < 9
|
381
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
|
382
|
+
end
|
383
|
+
|
384
|
+
@failed_url = failed_url
|
385
|
+
end
|
386
|
+
|
387
|
+
# Custom attribute writer method with validation
|
388
|
+
# @param [Object] invoice_merchant_reference Value to be assigned
|
389
|
+
def invoice_merchant_reference=(invoice_merchant_reference)
|
390
|
+
if !invoice_merchant_reference.nil? && invoice_merchant_reference.to_s.length > 100
|
391
|
+
fail ArgumentError, 'invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.'
|
392
|
+
end
|
393
|
+
|
394
|
+
@invoice_merchant_reference = invoice_merchant_reference
|
395
|
+
end
|
396
|
+
|
397
|
+
# Custom attribute writer method with validation
|
398
|
+
# @param [Object] merchant_reference Value to be assigned
|
399
|
+
def merchant_reference=(merchant_reference)
|
400
|
+
if !merchant_reference.nil? && merchant_reference.to_s.length > 100
|
401
|
+
fail ArgumentError, 'invalid value for "merchant_reference", the character length must be smaller than or equal to 100.'
|
402
|
+
end
|
403
|
+
|
404
|
+
@merchant_reference = merchant_reference
|
405
|
+
end
|
406
|
+
|
407
|
+
# Custom attribute writer method with validation
|
408
|
+
# @param [Object] shipping_method Value to be assigned
|
409
|
+
def shipping_method=(shipping_method)
|
410
|
+
if !shipping_method.nil? && shipping_method.to_s.length > 200
|
411
|
+
fail ArgumentError, 'invalid value for "shipping_method", the character length must be smaller than or equal to 200.'
|
412
|
+
end
|
413
|
+
|
414
|
+
@shipping_method = shipping_method
|
415
|
+
end
|
416
|
+
|
417
|
+
# Custom attribute writer method with validation
|
418
|
+
# @param [Object] success_url Value to be assigned
|
419
|
+
def success_url=(success_url)
|
420
|
+
if !success_url.nil? && success_url.to_s.length > 1000
|
421
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 1000.'
|
422
|
+
end
|
423
|
+
|
424
|
+
if !success_url.nil? && success_url.to_s.length < 9
|
425
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
|
426
|
+
end
|
427
|
+
|
428
|
+
@success_url = success_url
|
429
|
+
end
|
430
|
+
|
431
|
+
# Custom attribute writer method with validation
|
432
|
+
# @param [Object] device_session_identifier Value to be assigned
|
433
|
+
def device_session_identifier=(device_session_identifier)
|
434
|
+
if !device_session_identifier.nil? && device_session_identifier.to_s.length > 40
|
435
|
+
fail ArgumentError, 'invalid value for "device_session_identifier", the character length must be smaller than or equal to 40.'
|
436
|
+
end
|
437
|
+
|
438
|
+
if !device_session_identifier.nil? && device_session_identifier.to_s.length < 10
|
439
|
+
fail ArgumentError, 'invalid value for "device_session_identifier", the character length must be great than or equal to 10.'
|
440
|
+
end
|
441
|
+
|
442
|
+
@device_session_identifier = device_session_identifier
|
263
443
|
end
|
264
444
|
|
265
445
|
# Checks equality by comparing each attribute.
|
@@ -270,6 +450,7 @@ module Wallee
|
|
270
450
|
allowed_payment_method_brands == o.allowed_payment_method_brands &&
|
271
451
|
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
272
452
|
billing_address == o.billing_address &&
|
453
|
+
completion_behavior == o.completion_behavior &&
|
273
454
|
currency == o.currency &&
|
274
455
|
customer_email_address == o.customer_email_address &&
|
275
456
|
customer_id == o.customer_id &&
|
@@ -284,9 +465,14 @@ module Wallee
|
|
284
465
|
success_url == o.success_url &&
|
285
466
|
time_zone == o.time_zone &&
|
286
467
|
token == o.token &&
|
468
|
+
tokenization_mode == o.tokenization_mode &&
|
287
469
|
auto_confirmation_enabled == o.auto_confirmation_enabled &&
|
288
470
|
charge_retry_enabled == o.charge_retry_enabled &&
|
289
471
|
customers_presence == o.customers_presence &&
|
472
|
+
device_session_identifier == o.device_session_identifier &&
|
473
|
+
emails_disabled == o.emails_disabled &&
|
474
|
+
environment == o.environment &&
|
475
|
+
environment_selection_strategy == o.environment_selection_strategy &&
|
290
476
|
space_view_id == o.space_view_id
|
291
477
|
end
|
292
478
|
|
@@ -299,7 +485,7 @@ module Wallee
|
|
299
485
|
# Calculates hash code according to all attributes.
|
300
486
|
# @return [Fixnum] Hash code
|
301
487
|
def hash
|
302
|
-
[allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, auto_confirmation_enabled, charge_retry_enabled, customers_presence, space_view_id].hash
|
488
|
+
[allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, completion_behavior, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, tokenization_mode, auto_confirmation_enabled, charge_retry_enabled, customers_presence, device_session_identifier, emails_disabled, environment, environment_selection_strategy, space_view_id].hash
|
303
489
|
end
|
304
490
|
|
305
491
|
# Builds the object from hash
|
@@ -309,7 +495,7 @@ module Wallee
|
|
309
495
|
return nil unless attributes.is_a?(Hash)
|
310
496
|
self.class.swagger_types.each_pair do |key, type|
|
311
497
|
if type =~ /\AArray<(.*)>/i
|
312
|
-
# check to ensure the input is an array given that the
|
498
|
+
# check to ensure the input is an array given that the attribute
|
313
499
|
# is documented as an array but the input is not
|
314
500
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
315
501
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
@@ -407,5 +593,4 @@ module Wallee
|
|
407
593
|
end
|
408
594
|
|
409
595
|
end
|
410
|
-
|
411
596
|
end
|