wallee-ruby-sdk 1.0.3 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +101 -38
- data/lib/wallee-ruby-sdk.rb +153 -113
- data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/card_processing_service_api.rb +3 -3
- data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/debt_collection_case_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/debt_collector_configuration_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/debt_collector_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/legal_organization_form_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/mertic_usage_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_link_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +468 -0
- data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +70 -2
- data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_affiliate_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +69 -2
- data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/token_service_api.rb +64 -1
- data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +468 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +125 -1
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +95 -0
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +468 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +132 -1
- data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +90 -0
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +95 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +16 -200
- data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +1 -1
- data/lib/wallee-ruby-sdk/api_client.rb +1 -1
- data/lib/wallee-ruby-sdk/api_error.rb +1 -1
- data/lib/wallee-ruby-sdk/configuration.rb +1 -1
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +5 -9
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +16 -10
- data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +5 -9
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +27 -11
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +5 -9
- data/lib/wallee-ruby-sdk/models/{entity_reference.rb → abstract_refund_comment_active.rb} +16 -10
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +17 -11
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +6 -10
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +6 -10
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -9
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +5 -9
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +5 -9
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +194 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +194 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +8 -12
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +28 -10
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +5 -9
- data/lib/wallee-ruby-sdk/models/account.rb +16 -9
- data/lib/wallee-ruby-sdk/models/account_create.rb +22 -10
- data/lib/wallee-ruby-sdk/models/account_state.rb +13 -17
- data/lib/wallee-ruby-sdk/models/account_type.rb +10 -14
- data/lib/wallee-ruby-sdk/models/account_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/address.rb +5 -8
- data/lib/wallee-ruby-sdk/models/address_create.rb +5 -8
- data/lib/wallee-ruby-sdk/models/application_user.rb +17 -10
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +17 -10
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +16 -9
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +18 -11
- data/lib/wallee-ruby-sdk/models/charge.rb +16 -9
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +26 -9
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +9 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -8
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -8
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +5 -8
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/charge_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/charge_type.rb +11 -14
- data/lib/wallee-ruby-sdk/models/client_error.rb +5 -8
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +10 -14
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +215 -0
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +230 -0
- data/lib/wallee-ruby-sdk/models/condition.rb +5 -8
- data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -8
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +11 -15
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +12 -16
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +19 -21
- data/lib/wallee-ruby-sdk/models/customers_presence.rb +10 -14
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +9 -13
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -8
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -8
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +5 -8
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +5 -8
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +7 -10
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +5 -8
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +7 -10
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +14 -18
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +9 -13
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +5 -8
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +7 -10
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +7 -10
- data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +5 -8
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +5 -8
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -9
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -10
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +11 -15
- data/lib/wallee-ruby-sdk/models/document_template.rb +26 -9
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -11
- data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → document_template_type_group.rb} +24 -27
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +6 -9
- data/lib/wallee-ruby-sdk/models/entity_query.rb +5 -8
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -9
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +10 -14
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +7 -10
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +9 -13
- data/lib/wallee-ruby-sdk/models/environment.rb +9 -13
- data/lib/wallee-ruby-sdk/models/failure_category.rb +12 -16
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -10
- data/lib/wallee-ruby-sdk/models/feature.rb +7 -10
- data/lib/wallee-ruby-sdk/models/gender.rb +9 -13
- data/lib/wallee-ruby-sdk/models/human_user.rb +47 -10
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +26 -9
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +28 -11
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -8
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -8
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -8
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -8
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +14 -18
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +15 -19
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +5 -8
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -8
- data/lib/wallee-ruby-sdk/models/label.rb +5 -8
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -10
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +9 -13
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -10
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -8
- data/lib/wallee-ruby-sdk/models/line_item.rb +67 -10
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +5 -8
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +7 -10
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +22 -15
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +5 -8
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +8 -11
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +11 -15
- data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -8
- data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -8
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -9
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +10 -14
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +7 -10
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +10 -14
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +8 -11
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +5 -8
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -8
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +5 -8
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +12 -16
- data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/payment_link.rb +5 -8
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +7 -10
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +9 -13
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/payment_method.rb +8 -11
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -10
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +7 -10
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +10 -14
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -13
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +5 -8
- data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +43 -72
- data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_address.rb} +28 -21
- data/lib/wallee-ruby-sdk/models/{email_sender.rb → payment_terminal_configuration.rb} +19 -42
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +41 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +317 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +42 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_device.rb +275 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_device_manufacturer.rb +255 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_device_model.rb +287 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_device_state.rb +42 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +265 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +41 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +285 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +42 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_reference.rb +265 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +42 -0
- data/lib/wallee-ruby-sdk/models/{email_template_type.rb → payment_terminal_type.rb} +16 -73
- data/lib/wallee-ruby-sdk/models/permission.rb +20 -13
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -8
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -8
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +10 -14
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -8
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -8
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +9 -13
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -9
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -11
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -8
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/refund.rb +46 -9
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +285 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +225 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +210 -0
- data/lib/wallee-ruby-sdk/models/refund_create.rb +19 -17
- data/lib/wallee-ruby-sdk/models/refund_state.rb +13 -16
- data/lib/wallee-ruby-sdk/models/refund_type.rb +11 -15
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -8
- data/lib/wallee-ruby-sdk/models/resource_path.rb +5 -8
- data/lib/wallee-ruby-sdk/models/resource_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +5 -8
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +17 -21
- data/lib/wallee-ruby-sdk/models/rest_country.rb +5 -8
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -8
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -8
- data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -8
- data/lib/wallee-ruby-sdk/models/role.rb +16 -9
- data/lib/wallee-ruby-sdk/models/scope.rb +5 -8
- data/lib/wallee-ruby-sdk/models/server_error.rb +5 -8
- data/lib/wallee-ruby-sdk/models/space.rb +17 -10
- data/lib/wallee-ruby-sdk/models/space_address.rb +5 -8
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +5 -8
- data/lib/wallee-ruby-sdk/models/space_create.rb +18 -11
- data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -8
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +12 -16
- data/lib/wallee-ruby-sdk/models/space_update.rb +19 -12
- data/lib/wallee-ruby-sdk/models/space_view.rb +5 -8
- data/lib/wallee-ruby-sdk/models/static_value.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscriber.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscription.rb +16 -9
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +12 -10
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +16 -9
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +9 -13
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +12 -16
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +9 -13
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +10 -13
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +9 -12
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +9 -13
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +11 -15
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +12 -16
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +12 -16
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -18
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +9 -13
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +8 -11
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +10 -14
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +9 -13
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +5 -8
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +13 -17
- data/lib/wallee-ruby-sdk/models/tax.rb +5 -8
- data/lib/wallee-ruby-sdk/models/tax_class.rb +5 -8
- data/lib/wallee-ruby-sdk/models/tax_create.rb +7 -10
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +5 -8
- data/lib/wallee-ruby-sdk/models/token.rb +5 -8
- data/lib/wallee-ruby-sdk/models/token_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/token_update.rb +7 -10
- data/lib/wallee-ruby-sdk/models/token_version.rb +26 -9
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -10
- data/lib/wallee-ruby-sdk/models/{tokenizationn_mode.rb → tokenization_mode.rb} +12 -15
- data/lib/wallee-ruby-sdk/models/transaction.rb +29 -12
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -8
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +285 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +225 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +210 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +102 -9
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +10 -14
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +242 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +12 -15
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +9 -12
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +10 -13
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +5 -8
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +10 -14
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +27 -10
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +285 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +225 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +210 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +19 -12
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +14 -18
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -9
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -8
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +10 -13
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +17 -21
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -14
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -8
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +9 -13
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +11 -15
- data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → two_factor_authentication_type.rb} +19 -12
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +5 -8
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +6 -9
- data/lib/wallee-ruby-sdk/models/user.rb +5 -8
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -8
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -8
- data/lib/wallee-ruby-sdk/models/user_type.rb +12 -16
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +5 -8
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +5 -8
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +30 -38
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +6 -9
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +30 -11
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +5 -8
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +5 -8
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +7 -10
- data/lib/wallee-ruby-sdk/version.rb +2 -2
- data/test/{transactioncreate.rb → transaction_create_service_test.rb} +0 -0
- data/test/transaction_payment_page_service_test.rb +91 -0
- data/wallee-ruby-sdk.gemspec +2 -2
- metadata +117 -86
- 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_service_api.rb +0 -217
- data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
|
|
2
|
+
wallee API: 2.0.1
|
|
3
3
|
|
|
4
4
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
5
|
|
|
@@ -152,6 +152,74 @@ module Wallee
|
|
|
152
152
|
return data, status_code, headers
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
+
# getInvoiceDocumentWithTargetMediaType
|
|
156
|
+
# Returns the PDF document for the transaction invoice with given id and target media type id.
|
|
157
|
+
# @param space_id
|
|
158
|
+
# @param id The id of the transaction invoice to get the document for.
|
|
159
|
+
# @param target_media_type_id The id of the target media type for which the invoice should be generated for.
|
|
160
|
+
# @param [Hash] opts the optional parameters
|
|
161
|
+
# @return [RenderedDocument]
|
|
162
|
+
def transaction_invoice_service_get_invoice_document_with_target_media_type(space_id, id, target_media_type_id, opts = {})
|
|
163
|
+
data, _status_code, _headers = transaction_invoice_service_get_invoice_document_with_target_media_type_with_http_info(space_id, id, target_media_type_id, opts)
|
|
164
|
+
return data
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# getInvoiceDocumentWithTargetMediaType
|
|
168
|
+
# Returns the PDF document for the transaction invoice with given id and target media type id.
|
|
169
|
+
# @param space_id
|
|
170
|
+
# @param id The id of the transaction invoice to get the document for.
|
|
171
|
+
# @param target_media_type_id The id of the target media type for which the invoice should be generated for.
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @return [Array<(RenderedDocument, Fixnum, Hash)>] RenderedDocument data, response status code and response headers
|
|
174
|
+
def transaction_invoice_service_get_invoice_document_with_target_media_type_with_http_info(space_id, id, target_media_type_id, opts = {})
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_get_invoice_document_with_target_media_type ..."
|
|
177
|
+
end
|
|
178
|
+
# verify the required parameter 'space_id' is set
|
|
179
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_get_invoice_document_with_target_media_type" if space_id.nil?
|
|
180
|
+
# verify the required parameter 'id' is set
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_get_invoice_document_with_target_media_type" if id.nil?
|
|
182
|
+
# verify the required parameter 'target_media_type_id' is set
|
|
183
|
+
fail ArgumentError, "Missing the required parameter 'target_media_type_id' when calling TransactionInvoiceService.transaction_invoice_service_get_invoice_document_with_target_media_type" if target_media_type_id.nil?
|
|
184
|
+
# resource path
|
|
185
|
+
local_var_path = "/transaction-invoice/getInvoiceDocumentWithTargetMediaType".sub('{format}','json')
|
|
186
|
+
|
|
187
|
+
# query parameters
|
|
188
|
+
query_params = {}
|
|
189
|
+
query_params[:'spaceId'] = space_id
|
|
190
|
+
query_params[:'id'] = id
|
|
191
|
+
query_params[:'targetMediaTypeId'] = target_media_type_id
|
|
192
|
+
|
|
193
|
+
# header parameters
|
|
194
|
+
header_params = {}
|
|
195
|
+
|
|
196
|
+
# HTTP header 'Accept' (if needed)
|
|
197
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
198
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
199
|
+
|
|
200
|
+
# HTTP header 'Content-Type'
|
|
201
|
+
local_header_content_type = ['*/*']
|
|
202
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
203
|
+
|
|
204
|
+
# form parameters
|
|
205
|
+
form_params = {}
|
|
206
|
+
|
|
207
|
+
# http body (model)
|
|
208
|
+
post_body = nil
|
|
209
|
+
auth_names = []
|
|
210
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
211
|
+
:header_params => header_params,
|
|
212
|
+
:query_params => query_params,
|
|
213
|
+
:form_params => form_params,
|
|
214
|
+
:body => post_body,
|
|
215
|
+
:auth_names => auth_names,
|
|
216
|
+
:return_type => 'RenderedDocument')
|
|
217
|
+
if @api_client.config.debugging
|
|
218
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_get_invoice_document_with_target_media_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
219
|
+
end
|
|
220
|
+
return data, status_code, headers
|
|
221
|
+
end
|
|
222
|
+
|
|
155
223
|
# isReplacementPossible
|
|
156
224
|
# Returns whether the transaction invoice with the given id can be replaced.
|
|
157
225
|
# @param space_id
|
|
@@ -215,6 +283,69 @@ module Wallee
|
|
|
215
283
|
return data, status_code, headers
|
|
216
284
|
end
|
|
217
285
|
|
|
286
|
+
# Mark as Derecognized
|
|
287
|
+
# Marks the transaction invoice with the given id as derecognized.
|
|
288
|
+
# @param space_id
|
|
289
|
+
# @param id The id of the transaction invoice which should be marked as derecognized.
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @return [TransactionInvoice]
|
|
292
|
+
def transaction_invoice_service_mark_as_derecognized(space_id, id, opts = {})
|
|
293
|
+
data, _status_code, _headers = transaction_invoice_service_mark_as_derecognized_with_http_info(space_id, id, opts)
|
|
294
|
+
return data
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Mark as Derecognized
|
|
298
|
+
# Marks the transaction invoice with the given id as derecognized.
|
|
299
|
+
# @param space_id
|
|
300
|
+
# @param id The id of the transaction invoice which should be marked as derecognized.
|
|
301
|
+
# @param [Hash] opts the optional parameters
|
|
302
|
+
# @return [Array<(TransactionInvoice, Fixnum, Hash)>] TransactionInvoice data, response status code and response headers
|
|
303
|
+
def transaction_invoice_service_mark_as_derecognized_with_http_info(space_id, id, opts = {})
|
|
304
|
+
if @api_client.config.debugging
|
|
305
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_mark_as_derecognized ..."
|
|
306
|
+
end
|
|
307
|
+
# verify the required parameter 'space_id' is set
|
|
308
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_mark_as_derecognized" if space_id.nil?
|
|
309
|
+
# verify the required parameter 'id' is set
|
|
310
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_mark_as_derecognized" if id.nil?
|
|
311
|
+
# resource path
|
|
312
|
+
local_var_path = "/transaction-invoice/markAsDerecognized".sub('{format}','json')
|
|
313
|
+
|
|
314
|
+
# query parameters
|
|
315
|
+
query_params = {}
|
|
316
|
+
query_params[:'spaceId'] = space_id
|
|
317
|
+
query_params[:'id'] = id
|
|
318
|
+
|
|
319
|
+
# header parameters
|
|
320
|
+
header_params = {}
|
|
321
|
+
|
|
322
|
+
# HTTP header 'Accept' (if needed)
|
|
323
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
324
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
325
|
+
|
|
326
|
+
# HTTP header 'Content-Type'
|
|
327
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
328
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
329
|
+
|
|
330
|
+
# form parameters
|
|
331
|
+
form_params = {}
|
|
332
|
+
|
|
333
|
+
# http body (model)
|
|
334
|
+
post_body = nil
|
|
335
|
+
auth_names = []
|
|
336
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
337
|
+
:header_params => header_params,
|
|
338
|
+
:query_params => query_params,
|
|
339
|
+
:form_params => form_params,
|
|
340
|
+
:body => post_body,
|
|
341
|
+
:auth_names => auth_names,
|
|
342
|
+
:return_type => 'TransactionInvoice')
|
|
343
|
+
if @api_client.config.debugging
|
|
344
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_mark_as_derecognized\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
345
|
+
end
|
|
346
|
+
return data, status_code, headers
|
|
347
|
+
end
|
|
348
|
+
|
|
218
349
|
# Mark as Paid
|
|
219
350
|
# Marks the transaction invoice with the given id as paid.
|
|
220
351
|
# @param space_id
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
wallee API: 2.0.1
|
|
3
|
+
|
|
4
|
+
The wallee API allows an easy interaction with the wallee web service.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
19
|
+
|
|
20
|
+
=end
|
|
21
|
+
|
|
22
|
+
require "uri"
|
|
23
|
+
|
|
24
|
+
module Wallee
|
|
25
|
+
class TransactionMobileSdkService
|
|
26
|
+
attr_accessor :api_client
|
|
27
|
+
|
|
28
|
+
def initialize(api_client = ApiClient.default)
|
|
29
|
+
@api_client = api_client
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Build Mobile SDK URL
|
|
33
|
+
# This operation builds the URL which is used to load the payment form within a WebView on a mobile device. This operation is typically called through the mobile SDK.
|
|
34
|
+
# @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [String]
|
|
37
|
+
def transaction_mobile_sdk_service_payment_form_url(credentials, opts = {})
|
|
38
|
+
data, _status_code, _headers = transaction_mobile_sdk_service_payment_form_url_with_http_info(credentials, opts)
|
|
39
|
+
return data
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Build Mobile SDK URL
|
|
43
|
+
# This operation builds the URL which is used to load the payment form within a WebView on a mobile device. This operation is typically called through the mobile SDK.
|
|
44
|
+
# @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
|
|
45
|
+
# @param [Hash] opts the optional parameters
|
|
46
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
47
|
+
def transaction_mobile_sdk_service_payment_form_url_with_http_info(credentials, opts = {})
|
|
48
|
+
if @api_client.config.debugging
|
|
49
|
+
@api_client.config.logger.debug "Calling API: TransactionMobileSdkService.transaction_mobile_sdk_service_payment_form_url ..."
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'credentials' is set
|
|
52
|
+
fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionMobileSdkService.transaction_mobile_sdk_service_payment_form_url" if credentials.nil?
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = "/transaction-mobile-sdk/payment-form-url".sub('{format}','json')
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = {}
|
|
58
|
+
query_params[:'credentials'] = credentials
|
|
59
|
+
|
|
60
|
+
# header parameters
|
|
61
|
+
header_params = {}
|
|
62
|
+
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
local_header_accept = ['application/json', 'text/plain;charset=utf-8']
|
|
65
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
66
|
+
|
|
67
|
+
# HTTP header 'Content-Type'
|
|
68
|
+
local_header_content_type = []
|
|
69
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
70
|
+
|
|
71
|
+
# form parameters
|
|
72
|
+
form_params = {}
|
|
73
|
+
|
|
74
|
+
# http body (model)
|
|
75
|
+
post_body = nil
|
|
76
|
+
auth_names = []
|
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
78
|
+
:header_params => header_params,
|
|
79
|
+
:query_params => query_params,
|
|
80
|
+
:form_params => form_params,
|
|
81
|
+
:body => post_body,
|
|
82
|
+
:auth_names => auth_names,
|
|
83
|
+
:return_type => 'String')
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: TransactionMobileSdkService#transaction_mobile_sdk_service_payment_form_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
wallee API: 2.0.1
|
|
3
|
+
|
|
4
|
+
The wallee API allows an easy interaction with the wallee web service.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
19
|
+
|
|
20
|
+
=end
|
|
21
|
+
|
|
22
|
+
require "uri"
|
|
23
|
+
|
|
24
|
+
module Wallee
|
|
25
|
+
class TransactionPaymentPageService
|
|
26
|
+
attr_accessor :api_client
|
|
27
|
+
|
|
28
|
+
def initialize(api_client = ApiClient.default)
|
|
29
|
+
@api_client = api_client
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Build Payment Page URL
|
|
33
|
+
# This operation creates the URL to which the user should be redirected to when the payment page should be used.
|
|
34
|
+
# @param space_id
|
|
35
|
+
# @param id The id of the transaction which should be returned.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [String]
|
|
38
|
+
def transaction_payment_page_service_payment_page_url(space_id, id, opts = {})
|
|
39
|
+
data, _status_code, _headers = transaction_payment_page_service_payment_page_url_with_http_info(space_id, id, opts)
|
|
40
|
+
return data
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Build Payment Page URL
|
|
44
|
+
# This operation creates the URL to which the user should be redirected to when the payment page should be used.
|
|
45
|
+
# @param space_id
|
|
46
|
+
# @param id The id of the transaction which should be returned.
|
|
47
|
+
# @param [Hash] opts the optional parameters
|
|
48
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
49
|
+
def transaction_payment_page_service_payment_page_url_with_http_info(space_id, id, opts = {})
|
|
50
|
+
if @api_client.config.debugging
|
|
51
|
+
@api_client.config.logger.debug "Calling API: TransactionPaymentPageService.transaction_payment_page_service_payment_page_url ..."
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'space_id' is set
|
|
54
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionPaymentPageService.transaction_payment_page_service_payment_page_url" if space_id.nil?
|
|
55
|
+
# verify the required parameter 'id' is set
|
|
56
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionPaymentPageService.transaction_payment_page_service_payment_page_url" if id.nil?
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = "/transaction-payment-page/payment-page-url".sub('{format}','json')
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = {}
|
|
62
|
+
query_params[:'spaceId'] = space_id
|
|
63
|
+
query_params[:'id'] = id
|
|
64
|
+
|
|
65
|
+
# header parameters
|
|
66
|
+
header_params = {}
|
|
67
|
+
|
|
68
|
+
# HTTP header 'Accept' (if needed)
|
|
69
|
+
local_header_accept = ['application/json', 'text/plain;charset=utf-8']
|
|
70
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
71
|
+
|
|
72
|
+
# HTTP header 'Content-Type'
|
|
73
|
+
local_header_content_type = []
|
|
74
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
75
|
+
|
|
76
|
+
# form parameters
|
|
77
|
+
form_params = {}
|
|
78
|
+
|
|
79
|
+
# http body (model)
|
|
80
|
+
post_body = nil
|
|
81
|
+
auth_names = []
|
|
82
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
83
|
+
:header_params => header_params,
|
|
84
|
+
:query_params => query_params,
|
|
85
|
+
:form_params => form_params,
|
|
86
|
+
:body => post_body,
|
|
87
|
+
:auth_names => auth_names,
|
|
88
|
+
:return_type => 'String')
|
|
89
|
+
if @api_client.config.debugging
|
|
90
|
+
@api_client.config.logger.debug "API called: TransactionPaymentPageService#transaction_payment_page_service_payment_page_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
|
+
end
|
|
92
|
+
return data, status_code, headers
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
|
|
2
|
+
wallee API: 2.0.1
|
|
3
3
|
|
|
4
4
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
5
|
|
|
@@ -29,190 +29,6 @@ module Wallee
|
|
|
29
29
|
@api_client = api_client
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# Build JavaScript URL
|
|
33
|
-
# This operation creates the URL which can be used to embed the JavaScript for handling the iFrame checkout flow.
|
|
34
|
-
# @param space_id
|
|
35
|
-
# @param id The id of the transaction which should be returned.
|
|
36
|
-
# @param [Hash] opts the optional parameters
|
|
37
|
-
# @return [String]
|
|
38
|
-
def transaction_service_build_java_script_url(space_id, id, opts = {})
|
|
39
|
-
data, _status_code, _headers = transaction_service_build_java_script_url_with_http_info(space_id, id, opts)
|
|
40
|
-
return data
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Build JavaScript URL
|
|
44
|
-
# This operation creates the URL which can be used to embed the JavaScript for handling the iFrame checkout flow.
|
|
45
|
-
# @param space_id
|
|
46
|
-
# @param id The id of the transaction which should be returned.
|
|
47
|
-
# @param [Hash] opts the optional parameters
|
|
48
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
49
|
-
def transaction_service_build_java_script_url_with_http_info(space_id, id, opts = {})
|
|
50
|
-
if @api_client.config.debugging
|
|
51
|
-
@api_client.config.logger.debug "Calling API: TransactionService.transaction_service_build_java_script_url ..."
|
|
52
|
-
end
|
|
53
|
-
# verify the required parameter 'space_id' is set
|
|
54
|
-
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_build_java_script_url" if space_id.nil?
|
|
55
|
-
# verify the required parameter 'id' is set
|
|
56
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_build_java_script_url" if id.nil?
|
|
57
|
-
# resource path
|
|
58
|
-
local_var_path = "/transaction/buildJavaScriptUrl".sub('{format}','json')
|
|
59
|
-
|
|
60
|
-
# query parameters
|
|
61
|
-
query_params = {}
|
|
62
|
-
query_params[:'spaceId'] = space_id
|
|
63
|
-
query_params[:'id'] = id
|
|
64
|
-
|
|
65
|
-
# header parameters
|
|
66
|
-
header_params = {}
|
|
67
|
-
|
|
68
|
-
# HTTP header 'Accept' (if needed)
|
|
69
|
-
local_header_accept = []
|
|
70
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
71
|
-
|
|
72
|
-
# HTTP header 'Content-Type'
|
|
73
|
-
local_header_content_type = []
|
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
75
|
-
|
|
76
|
-
# form parameters
|
|
77
|
-
form_params = {}
|
|
78
|
-
|
|
79
|
-
# http body (model)
|
|
80
|
-
post_body = nil
|
|
81
|
-
auth_names = []
|
|
82
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
83
|
-
:header_params => header_params,
|
|
84
|
-
:query_params => query_params,
|
|
85
|
-
:form_params => form_params,
|
|
86
|
-
:body => post_body,
|
|
87
|
-
:auth_names => auth_names,
|
|
88
|
-
:return_type => 'String')
|
|
89
|
-
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "API called: TransactionService#transaction_service_build_java_script_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
|
-
end
|
|
92
|
-
return data, status_code, headers
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
# Build Mobile SDK URL with Credentials
|
|
96
|
-
# This operation builds the URL which is used to load the payment form within a WebView on a mobile device. This operation is typically called through the mobile SDK.
|
|
97
|
-
# @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
|
|
98
|
-
# @param [Hash] opts the optional parameters
|
|
99
|
-
# @return [String]
|
|
100
|
-
def transaction_service_build_mobile_sdk_url_with_credentials(credentials, opts = {})
|
|
101
|
-
data, _status_code, _headers = transaction_service_build_mobile_sdk_url_with_credentials_with_http_info(credentials, opts)
|
|
102
|
-
return data
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
# Build Mobile SDK URL with Credentials
|
|
106
|
-
# This operation builds the URL which is used to load the payment form within a WebView on a mobile device. This operation is typically called through the mobile SDK.
|
|
107
|
-
# @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
|
|
108
|
-
# @param [Hash] opts the optional parameters
|
|
109
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
110
|
-
def transaction_service_build_mobile_sdk_url_with_credentials_with_http_info(credentials, opts = {})
|
|
111
|
-
if @api_client.config.debugging
|
|
112
|
-
@api_client.config.logger.debug "Calling API: TransactionService.transaction_service_build_mobile_sdk_url_with_credentials ..."
|
|
113
|
-
end
|
|
114
|
-
# verify the required parameter 'credentials' is set
|
|
115
|
-
fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_build_mobile_sdk_url_with_credentials" if credentials.nil?
|
|
116
|
-
# resource path
|
|
117
|
-
local_var_path = "/transaction/buildMobileSdkUrlWithCredentials".sub('{format}','json')
|
|
118
|
-
|
|
119
|
-
# query parameters
|
|
120
|
-
query_params = {}
|
|
121
|
-
query_params[:'credentials'] = credentials
|
|
122
|
-
|
|
123
|
-
# header parameters
|
|
124
|
-
header_params = {}
|
|
125
|
-
|
|
126
|
-
# HTTP header 'Accept' (if needed)
|
|
127
|
-
local_header_accept = []
|
|
128
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
129
|
-
|
|
130
|
-
# HTTP header 'Content-Type'
|
|
131
|
-
local_header_content_type = []
|
|
132
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
133
|
-
|
|
134
|
-
# form parameters
|
|
135
|
-
form_params = {}
|
|
136
|
-
|
|
137
|
-
# http body (model)
|
|
138
|
-
post_body = nil
|
|
139
|
-
auth_names = []
|
|
140
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
141
|
-
:header_params => header_params,
|
|
142
|
-
:query_params => query_params,
|
|
143
|
-
:form_params => form_params,
|
|
144
|
-
:body => post_body,
|
|
145
|
-
:auth_names => auth_names,
|
|
146
|
-
:return_type => 'String')
|
|
147
|
-
if @api_client.config.debugging
|
|
148
|
-
@api_client.config.logger.debug "API called: TransactionService#transaction_service_build_mobile_sdk_url_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
-
end
|
|
150
|
-
return data, status_code, headers
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# Build Payment Page URL
|
|
154
|
-
# This operation creates the URL to which the user should be redirected to when the payment page should be used.
|
|
155
|
-
# @param space_id
|
|
156
|
-
# @param id The id of the transaction which should be returned.
|
|
157
|
-
# @param [Hash] opts the optional parameters
|
|
158
|
-
# @return [String]
|
|
159
|
-
def transaction_service_build_payment_page_url(space_id, id, opts = {})
|
|
160
|
-
data, _status_code, _headers = transaction_service_build_payment_page_url_with_http_info(space_id, id, opts)
|
|
161
|
-
return data
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
# Build Payment Page URL
|
|
165
|
-
# This operation creates the URL to which the user should be redirected to when the payment page should be used.
|
|
166
|
-
# @param space_id
|
|
167
|
-
# @param id The id of the transaction which should be returned.
|
|
168
|
-
# @param [Hash] opts the optional parameters
|
|
169
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
170
|
-
def transaction_service_build_payment_page_url_with_http_info(space_id, id, opts = {})
|
|
171
|
-
if @api_client.config.debugging
|
|
172
|
-
@api_client.config.logger.debug "Calling API: TransactionService.transaction_service_build_payment_page_url ..."
|
|
173
|
-
end
|
|
174
|
-
# verify the required parameter 'space_id' is set
|
|
175
|
-
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_build_payment_page_url" if space_id.nil?
|
|
176
|
-
# verify the required parameter 'id' is set
|
|
177
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_build_payment_page_url" if id.nil?
|
|
178
|
-
# resource path
|
|
179
|
-
local_var_path = "/transaction/buildPaymentPageUrl".sub('{format}','json')
|
|
180
|
-
|
|
181
|
-
# query parameters
|
|
182
|
-
query_params = {}
|
|
183
|
-
query_params[:'spaceId'] = space_id
|
|
184
|
-
query_params[:'id'] = id
|
|
185
|
-
|
|
186
|
-
# header parameters
|
|
187
|
-
header_params = {}
|
|
188
|
-
|
|
189
|
-
# HTTP header 'Accept' (if needed)
|
|
190
|
-
local_header_accept = []
|
|
191
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
192
|
-
|
|
193
|
-
# HTTP header 'Content-Type'
|
|
194
|
-
local_header_content_type = []
|
|
195
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
196
|
-
|
|
197
|
-
# form parameters
|
|
198
|
-
form_params = {}
|
|
199
|
-
|
|
200
|
-
# http body (model)
|
|
201
|
-
post_body = nil
|
|
202
|
-
auth_names = []
|
|
203
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
204
|
-
:header_params => header_params,
|
|
205
|
-
:query_params => query_params,
|
|
206
|
-
:form_params => form_params,
|
|
207
|
-
:body => post_body,
|
|
208
|
-
:auth_names => auth_names,
|
|
209
|
-
:return_type => 'String')
|
|
210
|
-
if @api_client.config.debugging
|
|
211
|
-
@api_client.config.logger.debug "API called: TransactionService#transaction_service_build_payment_page_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
212
|
-
end
|
|
213
|
-
return data, status_code, headers
|
|
214
|
-
end
|
|
215
|
-
|
|
216
32
|
# Confirm
|
|
217
33
|
# The confirm operation marks the transaction as confirmed. Once the transaction is confirmed no more changes can be applied.
|
|
218
34
|
# @param space_id
|
|
@@ -253,7 +69,7 @@ module Wallee
|
|
|
253
69
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
254
70
|
|
|
255
71
|
# HTTP header 'Content-Type'
|
|
256
|
-
local_header_content_type = []
|
|
72
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
257
73
|
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
258
74
|
|
|
259
75
|
# form parameters
|
|
@@ -953,32 +769,32 @@ module Wallee
|
|
|
953
769
|
end
|
|
954
770
|
|
|
955
771
|
# Process One-Click Token with Credentials
|
|
956
|
-
# This operation assigns the given token to the transaction and process it.
|
|
772
|
+
# This operation assigns the given token to the transaction and process it. This method will return an URL where the customer has to be redirect to complete the transaction.
|
|
957
773
|
# @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
|
|
958
774
|
# @param token_id The token ID is used to load the corresponding token and to process the transaction with it.
|
|
959
775
|
# @param [Hash] opts the optional parameters
|
|
960
|
-
# @return [
|
|
961
|
-
def
|
|
962
|
-
data, _status_code, _headers =
|
|
776
|
+
# @return [String]
|
|
777
|
+
def transaction_service_process_one_click_token_and_redirect_with_credentials(credentials, token_id, opts = {})
|
|
778
|
+
data, _status_code, _headers = transaction_service_process_one_click_token_and_redirect_with_credentials_with_http_info(credentials, token_id, opts)
|
|
963
779
|
return data
|
|
964
780
|
end
|
|
965
781
|
|
|
966
782
|
# Process One-Click Token with Credentials
|
|
967
|
-
# This operation assigns the given token to the transaction and process it.
|
|
783
|
+
# This operation assigns the given token to the transaction and process it. This method will return an URL where the customer has to be redirect to complete the transaction.
|
|
968
784
|
# @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
|
|
969
785
|
# @param token_id The token ID is used to load the corresponding token and to process the transaction with it.
|
|
970
786
|
# @param [Hash] opts the optional parameters
|
|
971
|
-
# @return [Array<(
|
|
972
|
-
def
|
|
787
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
788
|
+
def transaction_service_process_one_click_token_and_redirect_with_credentials_with_http_info(credentials, token_id, opts = {})
|
|
973
789
|
if @api_client.config.debugging
|
|
974
|
-
@api_client.config.logger.debug "Calling API: TransactionService.
|
|
790
|
+
@api_client.config.logger.debug "Calling API: TransactionService.transaction_service_process_one_click_token_and_redirect_with_credentials ..."
|
|
975
791
|
end
|
|
976
792
|
# verify the required parameter 'credentials' is set
|
|
977
|
-
fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.
|
|
793
|
+
fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_process_one_click_token_and_redirect_with_credentials" if credentials.nil?
|
|
978
794
|
# verify the required parameter 'token_id' is set
|
|
979
|
-
fail ArgumentError, "Missing the required parameter 'token_id' when calling TransactionService.
|
|
795
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling TransactionService.transaction_service_process_one_click_token_and_redirect_with_credentials" if token_id.nil?
|
|
980
796
|
# resource path
|
|
981
|
-
local_var_path = "/transaction/
|
|
797
|
+
local_var_path = "/transaction/processOneClickTokenAndRedirectWithCredentials".sub('{format}','json')
|
|
982
798
|
|
|
983
799
|
# query parameters
|
|
984
800
|
query_params = {}
|
|
@@ -1008,9 +824,9 @@ module Wallee
|
|
|
1008
824
|
:form_params => form_params,
|
|
1009
825
|
:body => post_body,
|
|
1010
826
|
:auth_names => auth_names,
|
|
1011
|
-
:return_type => '
|
|
827
|
+
:return_type => 'String')
|
|
1012
828
|
if @api_client.config.debugging
|
|
1013
|
-
@api_client.config.logger.debug "API called: TransactionService#
|
|
829
|
+
@api_client.config.logger.debug "API called: TransactionService#transaction_service_process_one_click_token_and_redirect_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1014
830
|
end
|
|
1015
831
|
return data, status_code, headers
|
|
1016
832
|
end
|
|
@@ -1363,7 +1179,7 @@ module Wallee
|
|
|
1363
1179
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1364
1180
|
|
|
1365
1181
|
# HTTP header 'Content-Type'
|
|
1366
|
-
local_header_content_type = []
|
|
1182
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
1367
1183
|
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1368
1184
|
|
|
1369
1185
|
# form parameters
|