wallee-ruby-sdk 1.0.1 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +107 -34
- data/lib/wallee-ruby-sdk.rb +260 -99
- data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +42 -46
- data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
- data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
- data/lib/wallee-ruby-sdk/api/customer_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb +796 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +94 -41
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +33 -37
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +9 -13
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
- data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +96 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/payment_link_service_api.rb} +68 -72
- data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/payment_terminal_service_api.rb} +36 -40
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
- data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +125 -61
- data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +46 -50
- data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +38 -42
- data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +28 -32
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +245 -115
- data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
- data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +164 -44
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +186 -59
- data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +273 -326
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +30 -34
- data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/api_client.rb +7 -7
- data/lib/wallee-ruby-sdk/api_error.rb +0 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -6
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
- data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +262 -0
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +246 -0
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +136 -16
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
- data/lib/wallee-ruby-sdk/models/account.rb +90 -13
- data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
- data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
- data/lib/wallee-ruby-sdk/models/address.rb +240 -22
- data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
- data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
- data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
- data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
- data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
- data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
- data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -23
- data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
- data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/wallee-ruby-sdk/models/customer_address.rb +261 -0
- data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
- data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
- data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
- data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +495 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +303 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +338 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +225 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +40 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +293 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +305 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +215 -0
- data/lib/wallee-ruby-sdk/models/{email_sender.rb → debt_collector_condition.rb} +34 -46
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +310 -0
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -25
- data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +208 -0
- data/lib/wallee-ruby-sdk/models/entity_query.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +15 -12
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
- data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
- data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
- data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +225 -0
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +30 -15
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +355 -0
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → payment_contract_type.rb} +9 -16
- data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
- data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
- data/lib/wallee-ruby-sdk/models/payment_link.rb +414 -0
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +350 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +373 -0
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/payment_method.rb +20 -15
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +31 -13
- data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +51 -79
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +456 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +313 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_contact_address.rb} +105 -27
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +286 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → payment_terminal_type.rb} +33 -28
- data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/refund.rb +130 -13
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
- data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
- data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +203 -0
- data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
- data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +227 -0
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +43 -0
- data/lib/wallee-ruby-sdk/models/rest_country.rb +16 -13
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
- data/lib/wallee-ruby-sdk/models/role.rb +16 -13
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
- data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +281 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +365 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
- data/lib/wallee-ruby-sdk/models/shopify_tax_line.rb +231 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/space.rb +91 -14
- data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
- data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
- data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
- data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscription.rb +86 -13
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +333 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +27 -17
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +22 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +29 -12
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -15
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +38 -15
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
- data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
- data/lib/wallee-ruby-sdk/models/token.rb +59 -12
- data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
- data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
- data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +37 -0
- data/lib/wallee-ruby-sdk/models/transaction.rb +291 -16
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +200 -15
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +85 -13
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +137 -16
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/{email_template_type.rb → two_factor_authentication_type.rb} +18 -71
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +284 -0
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +293 -0
- data/lib/wallee-ruby-sdk/models/user.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +7 -24
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
- data/test/transaction_payment_page_service_test.rb +91 -0
- data/wallee-ruby-sdk.gemspec +5 -8
- metadata +262 -87
- data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
- data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
- data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
|
@@ -0,0 +1,398 @@
|
|
|
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 "uri"
|
|
19
|
+
|
|
20
|
+
module Wallee
|
|
21
|
+
class CustomerService
|
|
22
|
+
attr_accessor :api_client
|
|
23
|
+
|
|
24
|
+
def initialize(api_client = ApiClient.default)
|
|
25
|
+
@api_client = api_client
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Count
|
|
29
|
+
# Counts the number of items in the database as restricted by the given filter.
|
|
30
|
+
# @param space_id
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
|
33
|
+
# @return [Integer]
|
|
34
|
+
def count(space_id, opts = {})
|
|
35
|
+
data, _status_code, _headers = count_with_http_info(space_id, opts)
|
|
36
|
+
return data
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Count
|
|
40
|
+
# Counts the number of items in the database as restricted by the given filter.
|
|
41
|
+
# @param space_id
|
|
42
|
+
# @param [Hash] opts the optional parameters
|
|
43
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
|
44
|
+
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
|
|
45
|
+
def count_with_http_info(space_id, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug "Calling API: CustomerService.count ..."
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'space_id' is set
|
|
50
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling CustomerService.count" if space_id.nil?
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = "/customer/count".sub('{format}','json')
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = {}
|
|
56
|
+
query_params[:'spaceId'] = space_id
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = {}
|
|
60
|
+
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
63
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
64
|
+
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
67
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
68
|
+
|
|
69
|
+
# form parameters
|
|
70
|
+
form_params = {}
|
|
71
|
+
|
|
72
|
+
# http body (model)
|
|
73
|
+
post_body = @api_client.object_to_http_body(opts[:'filter'])
|
|
74
|
+
auth_names = []
|
|
75
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
76
|
+
:header_params => header_params,
|
|
77
|
+
:query_params => query_params,
|
|
78
|
+
:form_params => form_params,
|
|
79
|
+
:body => post_body,
|
|
80
|
+
:auth_names => auth_names,
|
|
81
|
+
:return_type => 'Integer')
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: CustomerService#count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Create
|
|
89
|
+
# Creates the entity with the given properties.
|
|
90
|
+
# @param space_id
|
|
91
|
+
# @param entity The customer object which should be created.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Customer]
|
|
94
|
+
def create(space_id, entity, opts = {})
|
|
95
|
+
data, _status_code, _headers = create_with_http_info(space_id, entity, opts)
|
|
96
|
+
return data
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Create
|
|
100
|
+
# Creates the entity with the given properties.
|
|
101
|
+
# @param space_id
|
|
102
|
+
# @param entity The customer object which should be created.
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(Customer, Fixnum, Hash)>] Customer data, response status code and response headers
|
|
105
|
+
def create_with_http_info(space_id, entity, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug "Calling API: CustomerService.create ..."
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'space_id' is set
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling CustomerService.create" if space_id.nil?
|
|
111
|
+
# verify the required parameter 'entity' is set
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'entity' when calling CustomerService.create" if entity.nil?
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = "/customer/create".sub('{format}','json')
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = {}
|
|
118
|
+
query_params[:'spaceId'] = space_id
|
|
119
|
+
|
|
120
|
+
# header parameters
|
|
121
|
+
header_params = {}
|
|
122
|
+
|
|
123
|
+
# HTTP header 'Accept' (if needed)
|
|
124
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
125
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
126
|
+
|
|
127
|
+
# HTTP header 'Content-Type'
|
|
128
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
129
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = {}
|
|
133
|
+
|
|
134
|
+
# http body (model)
|
|
135
|
+
post_body = @api_client.object_to_http_body(entity)
|
|
136
|
+
auth_names = []
|
|
137
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => 'Customer')
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug "API called: CustomerService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
|
+
end
|
|
147
|
+
return data, status_code, headers
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Delete
|
|
151
|
+
# Deletes the entity with the given id.
|
|
152
|
+
# @param space_id
|
|
153
|
+
# @param id
|
|
154
|
+
# @param [Hash] opts the optional parameters
|
|
155
|
+
# @return [nil]
|
|
156
|
+
def delete(space_id, id, opts = {})
|
|
157
|
+
delete_with_http_info(space_id, id, opts)
|
|
158
|
+
return nil
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Delete
|
|
162
|
+
# Deletes the entity with the given id.
|
|
163
|
+
# @param space_id
|
|
164
|
+
# @param id
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
167
|
+
def delete_with_http_info(space_id, id, opts = {})
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug "Calling API: CustomerService.delete ..."
|
|
170
|
+
end
|
|
171
|
+
# verify the required parameter 'space_id' is set
|
|
172
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling CustomerService.delete" if space_id.nil?
|
|
173
|
+
# verify the required parameter 'id' is set
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CustomerService.delete" if id.nil?
|
|
175
|
+
# resource path
|
|
176
|
+
local_var_path = "/customer/delete".sub('{format}','json')
|
|
177
|
+
|
|
178
|
+
# query parameters
|
|
179
|
+
query_params = {}
|
|
180
|
+
query_params[:'spaceId'] = space_id
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = {}
|
|
184
|
+
|
|
185
|
+
# HTTP header 'Accept' (if needed)
|
|
186
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
187
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
188
|
+
|
|
189
|
+
# HTTP header 'Content-Type'
|
|
190
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
191
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
192
|
+
|
|
193
|
+
# form parameters
|
|
194
|
+
form_params = {}
|
|
195
|
+
|
|
196
|
+
# http body (model)
|
|
197
|
+
post_body = @api_client.object_to_http_body(id)
|
|
198
|
+
auth_names = []
|
|
199
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
200
|
+
:header_params => header_params,
|
|
201
|
+
:query_params => query_params,
|
|
202
|
+
:form_params => form_params,
|
|
203
|
+
:body => post_body,
|
|
204
|
+
:auth_names => auth_names)
|
|
205
|
+
if @api_client.config.debugging
|
|
206
|
+
@api_client.config.logger.debug "API called: CustomerService#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
207
|
+
end
|
|
208
|
+
return data, status_code, headers
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Read
|
|
212
|
+
# Reads the entity with the given 'id' and returns it.
|
|
213
|
+
# @param space_id
|
|
214
|
+
# @param id The id of the customer which should be returned.
|
|
215
|
+
# @param [Hash] opts the optional parameters
|
|
216
|
+
# @return [Customer]
|
|
217
|
+
def read(space_id, id, opts = {})
|
|
218
|
+
data, _status_code, _headers = read_with_http_info(space_id, id, opts)
|
|
219
|
+
return data
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Read
|
|
223
|
+
# Reads the entity with the given 'id' and returns it.
|
|
224
|
+
# @param space_id
|
|
225
|
+
# @param id The id of the customer which should be returned.
|
|
226
|
+
# @param [Hash] opts the optional parameters
|
|
227
|
+
# @return [Array<(Customer, Fixnum, Hash)>] Customer data, response status code and response headers
|
|
228
|
+
def read_with_http_info(space_id, id, opts = {})
|
|
229
|
+
if @api_client.config.debugging
|
|
230
|
+
@api_client.config.logger.debug "Calling API: CustomerService.read ..."
|
|
231
|
+
end
|
|
232
|
+
# verify the required parameter 'space_id' is set
|
|
233
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling CustomerService.read" if space_id.nil?
|
|
234
|
+
# verify the required parameter 'id' is set
|
|
235
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CustomerService.read" if id.nil?
|
|
236
|
+
# resource path
|
|
237
|
+
local_var_path = "/customer/read".sub('{format}','json')
|
|
238
|
+
|
|
239
|
+
# query parameters
|
|
240
|
+
query_params = {}
|
|
241
|
+
query_params[:'spaceId'] = space_id
|
|
242
|
+
query_params[:'id'] = id
|
|
243
|
+
|
|
244
|
+
# header parameters
|
|
245
|
+
header_params = {}
|
|
246
|
+
|
|
247
|
+
# HTTP header 'Accept' (if needed)
|
|
248
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
249
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
250
|
+
|
|
251
|
+
# HTTP header 'Content-Type'
|
|
252
|
+
local_header_content_type = ['*/*']
|
|
253
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
254
|
+
|
|
255
|
+
# form parameters
|
|
256
|
+
form_params = {}
|
|
257
|
+
|
|
258
|
+
# http body (model)
|
|
259
|
+
post_body = nil
|
|
260
|
+
auth_names = []
|
|
261
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
262
|
+
:header_params => header_params,
|
|
263
|
+
:query_params => query_params,
|
|
264
|
+
:form_params => form_params,
|
|
265
|
+
:body => post_body,
|
|
266
|
+
:auth_names => auth_names,
|
|
267
|
+
:return_type => 'Customer')
|
|
268
|
+
if @api_client.config.debugging
|
|
269
|
+
@api_client.config.logger.debug "API called: CustomerService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
270
|
+
end
|
|
271
|
+
return data, status_code, headers
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Search
|
|
275
|
+
# Searches for the entities as specified by the given query.
|
|
276
|
+
# @param space_id
|
|
277
|
+
# @param query The query restricts the customers which are returned by the search.
|
|
278
|
+
# @param [Hash] opts the optional parameters
|
|
279
|
+
# @return [Array<Customer>]
|
|
280
|
+
def search(space_id, query, opts = {})
|
|
281
|
+
data, _status_code, _headers = search_with_http_info(space_id, query, opts)
|
|
282
|
+
return data
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Search
|
|
286
|
+
# Searches for the entities as specified by the given query.
|
|
287
|
+
# @param space_id
|
|
288
|
+
# @param query The query restricts the customers which are returned by the search.
|
|
289
|
+
# @param [Hash] opts the optional parameters
|
|
290
|
+
# @return [Array<(Array<Customer>, Fixnum, Hash)>] Array<Customer> data, response status code and response headers
|
|
291
|
+
def search_with_http_info(space_id, query, opts = {})
|
|
292
|
+
if @api_client.config.debugging
|
|
293
|
+
@api_client.config.logger.debug "Calling API: CustomerService.search ..."
|
|
294
|
+
end
|
|
295
|
+
# verify the required parameter 'space_id' is set
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling CustomerService.search" if space_id.nil?
|
|
297
|
+
# verify the required parameter 'query' is set
|
|
298
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling CustomerService.search" if query.nil?
|
|
299
|
+
# resource path
|
|
300
|
+
local_var_path = "/customer/search".sub('{format}','json')
|
|
301
|
+
|
|
302
|
+
# query parameters
|
|
303
|
+
query_params = {}
|
|
304
|
+
query_params[:'spaceId'] = space_id
|
|
305
|
+
|
|
306
|
+
# header parameters
|
|
307
|
+
header_params = {}
|
|
308
|
+
|
|
309
|
+
# HTTP header 'Accept' (if needed)
|
|
310
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
311
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
312
|
+
|
|
313
|
+
# HTTP header 'Content-Type'
|
|
314
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
315
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
316
|
+
|
|
317
|
+
# form parameters
|
|
318
|
+
form_params = {}
|
|
319
|
+
|
|
320
|
+
# http body (model)
|
|
321
|
+
post_body = @api_client.object_to_http_body(query)
|
|
322
|
+
auth_names = []
|
|
323
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
324
|
+
:header_params => header_params,
|
|
325
|
+
:query_params => query_params,
|
|
326
|
+
:form_params => form_params,
|
|
327
|
+
:body => post_body,
|
|
328
|
+
:auth_names => auth_names,
|
|
329
|
+
:return_type => 'Array<Customer>')
|
|
330
|
+
if @api_client.config.debugging
|
|
331
|
+
@api_client.config.logger.debug "API called: CustomerService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
332
|
+
end
|
|
333
|
+
return data, status_code, headers
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Update
|
|
337
|
+
# This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity.
|
|
338
|
+
# @param space_id
|
|
339
|
+
# @param entity The customer object with the properties which should be updated.
|
|
340
|
+
# @param [Hash] opts the optional parameters
|
|
341
|
+
# @return [Customer]
|
|
342
|
+
def update(space_id, entity, opts = {})
|
|
343
|
+
data, _status_code, _headers = update_with_http_info(space_id, entity, opts)
|
|
344
|
+
return data
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Update
|
|
348
|
+
# This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity.
|
|
349
|
+
# @param space_id
|
|
350
|
+
# @param entity The customer object with the properties which should be updated.
|
|
351
|
+
# @param [Hash] opts the optional parameters
|
|
352
|
+
# @return [Array<(Customer, Fixnum, Hash)>] Customer data, response status code and response headers
|
|
353
|
+
def update_with_http_info(space_id, entity, opts = {})
|
|
354
|
+
if @api_client.config.debugging
|
|
355
|
+
@api_client.config.logger.debug "Calling API: CustomerService.update ..."
|
|
356
|
+
end
|
|
357
|
+
# verify the required parameter 'space_id' is set
|
|
358
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling CustomerService.update" if space_id.nil?
|
|
359
|
+
# verify the required parameter 'entity' is set
|
|
360
|
+
fail ArgumentError, "Missing the required parameter 'entity' when calling CustomerService.update" if entity.nil?
|
|
361
|
+
# resource path
|
|
362
|
+
local_var_path = "/customer/update".sub('{format}','json')
|
|
363
|
+
|
|
364
|
+
# query parameters
|
|
365
|
+
query_params = {}
|
|
366
|
+
query_params[:'spaceId'] = space_id
|
|
367
|
+
|
|
368
|
+
# header parameters
|
|
369
|
+
header_params = {}
|
|
370
|
+
|
|
371
|
+
# HTTP header 'Accept' (if needed)
|
|
372
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
373
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
374
|
+
|
|
375
|
+
# HTTP header 'Content-Type'
|
|
376
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
377
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
378
|
+
|
|
379
|
+
# form parameters
|
|
380
|
+
form_params = {}
|
|
381
|
+
|
|
382
|
+
# http body (model)
|
|
383
|
+
post_body = @api_client.object_to_http_body(entity)
|
|
384
|
+
auth_names = []
|
|
385
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
386
|
+
:header_params => header_params,
|
|
387
|
+
:query_params => query_params,
|
|
388
|
+
:form_params => form_params,
|
|
389
|
+
:body => post_body,
|
|
390
|
+
:auth_names => auth_names,
|
|
391
|
+
:return_type => 'Customer')
|
|
392
|
+
if @api_client.config.debugging
|
|
393
|
+
@api_client.config.logger.debug "API called: CustomerService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
394
|
+
end
|
|
395
|
+
return data, status_code, headers
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
end
|
|
@@ -0,0 +1,796 @@
|
|
|
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 "uri"
|
|
19
|
+
|
|
20
|
+
module Wallee
|
|
21
|
+
class DebtCollectionCaseService
|
|
22
|
+
attr_accessor :api_client
|
|
23
|
+
|
|
24
|
+
def initialize(api_client = ApiClient.default)
|
|
25
|
+
@api_client = api_client
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Add Collected Amount
|
|
29
|
+
# Adds a new collected amount to the case, creating a new payment receipt.
|
|
30
|
+
# @param space_id
|
|
31
|
+
# @param id The id of the debt collection case for which the amount should be added.
|
|
32
|
+
# @param collected_amount The amount that has been collected.
|
|
33
|
+
# @param external_id The unique external id of this payment receipt.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @return [DebtCollectionReceipt]
|
|
36
|
+
def add_collected_amount(space_id, id, collected_amount, external_id, opts = {})
|
|
37
|
+
data, _status_code, _headers = add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts)
|
|
38
|
+
return data
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Add Collected Amount
|
|
42
|
+
# Adds a new collected amount to the case, creating a new payment receipt.
|
|
43
|
+
# @param space_id
|
|
44
|
+
# @param id The id of the debt collection case for which the amount should be added.
|
|
45
|
+
# @param collected_amount The amount that has been collected.
|
|
46
|
+
# @param external_id The unique external id of this payment receipt.
|
|
47
|
+
# @param [Hash] opts the optional parameters
|
|
48
|
+
# @return [Array<(DebtCollectionReceipt, Fixnum, Hash)>] DebtCollectionReceipt data, response status code and response headers
|
|
49
|
+
def add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts = {})
|
|
50
|
+
if @api_client.config.debugging
|
|
51
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.add_collected_amount ..."
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'space_id' is set
|
|
54
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.add_collected_amount" if space_id.nil?
|
|
55
|
+
# verify the required parameter 'id' is set
|
|
56
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.add_collected_amount" if id.nil?
|
|
57
|
+
# verify the required parameter 'collected_amount' is set
|
|
58
|
+
fail ArgumentError, "Missing the required parameter 'collected_amount' when calling DebtCollectionCaseService.add_collected_amount" if collected_amount.nil?
|
|
59
|
+
# verify the required parameter 'external_id' is set
|
|
60
|
+
fail ArgumentError, "Missing the required parameter 'external_id' when calling DebtCollectionCaseService.add_collected_amount" if external_id.nil?
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = "/debt-collection-case/addCollectedAmount".sub('{format}','json')
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = {}
|
|
66
|
+
query_params[:'spaceId'] = space_id
|
|
67
|
+
query_params[:'id'] = id
|
|
68
|
+
query_params[:'collectedAmount'] = collected_amount
|
|
69
|
+
query_params[:'externalId'] = external_id
|
|
70
|
+
|
|
71
|
+
# header parameters
|
|
72
|
+
header_params = {}
|
|
73
|
+
|
|
74
|
+
# HTTP header 'Accept' (if needed)
|
|
75
|
+
local_header_accept = []
|
|
76
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
77
|
+
|
|
78
|
+
# HTTP header 'Content-Type'
|
|
79
|
+
local_header_content_type = []
|
|
80
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
81
|
+
|
|
82
|
+
# form parameters
|
|
83
|
+
form_params = {}
|
|
84
|
+
|
|
85
|
+
# http body (model)
|
|
86
|
+
post_body = nil
|
|
87
|
+
auth_names = []
|
|
88
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
89
|
+
:header_params => header_params,
|
|
90
|
+
:query_params => query_params,
|
|
91
|
+
:form_params => form_params,
|
|
92
|
+
:body => post_body,
|
|
93
|
+
:auth_names => auth_names,
|
|
94
|
+
:return_type => 'DebtCollectionReceipt')
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#add_collected_amount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
97
|
+
end
|
|
98
|
+
return data, status_code, headers
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Attach Document
|
|
102
|
+
# Attach an additional supporting document to the case.
|
|
103
|
+
# @param space_id
|
|
104
|
+
# @param id The id of the debt collection case.
|
|
105
|
+
# @param file_name The file name of the document that is uploaded.
|
|
106
|
+
# @param content_base64 The BASE64 encoded contents of the document.
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [DebtCollectionCaseDocument]
|
|
109
|
+
def attach_document(space_id, id, file_name, content_base64, opts = {})
|
|
110
|
+
data, _status_code, _headers = attach_document_with_http_info(space_id, id, file_name, content_base64, opts)
|
|
111
|
+
return data
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Attach Document
|
|
115
|
+
# Attach an additional supporting document to the case.
|
|
116
|
+
# @param space_id
|
|
117
|
+
# @param id The id of the debt collection case.
|
|
118
|
+
# @param file_name The file name of the document that is uploaded.
|
|
119
|
+
# @param content_base64 The BASE64 encoded contents of the document.
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @return [Array<(DebtCollectionCaseDocument, Fixnum, Hash)>] DebtCollectionCaseDocument data, response status code and response headers
|
|
122
|
+
def attach_document_with_http_info(space_id, id, file_name, content_base64, opts = {})
|
|
123
|
+
if @api_client.config.debugging
|
|
124
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.attach_document ..."
|
|
125
|
+
end
|
|
126
|
+
# verify the required parameter 'space_id' is set
|
|
127
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.attach_document" if space_id.nil?
|
|
128
|
+
# verify the required parameter 'id' is set
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.attach_document" if id.nil?
|
|
130
|
+
# verify the required parameter 'file_name' is set
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling DebtCollectionCaseService.attach_document" if file_name.nil?
|
|
132
|
+
# verify the required parameter 'content_base64' is set
|
|
133
|
+
fail ArgumentError, "Missing the required parameter 'content_base64' when calling DebtCollectionCaseService.attach_document" if content_base64.nil?
|
|
134
|
+
# resource path
|
|
135
|
+
local_var_path = "/debt-collection-case/attachDocument".sub('{format}','json')
|
|
136
|
+
|
|
137
|
+
# query parameters
|
|
138
|
+
query_params = {}
|
|
139
|
+
query_params[:'spaceId'] = space_id
|
|
140
|
+
query_params[:'id'] = id
|
|
141
|
+
query_params[:'fileName'] = file_name
|
|
142
|
+
query_params[:'contentBase64'] = content_base64
|
|
143
|
+
|
|
144
|
+
# header parameters
|
|
145
|
+
header_params = {}
|
|
146
|
+
|
|
147
|
+
# HTTP header 'Accept' (if needed)
|
|
148
|
+
local_header_accept = []
|
|
149
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
150
|
+
|
|
151
|
+
# HTTP header 'Content-Type'
|
|
152
|
+
local_header_content_type = []
|
|
153
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
154
|
+
|
|
155
|
+
# form parameters
|
|
156
|
+
form_params = {}
|
|
157
|
+
|
|
158
|
+
# http body (model)
|
|
159
|
+
post_body = nil
|
|
160
|
+
auth_names = []
|
|
161
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
162
|
+
:header_params => header_params,
|
|
163
|
+
:query_params => query_params,
|
|
164
|
+
:form_params => form_params,
|
|
165
|
+
:body => post_body,
|
|
166
|
+
:auth_names => auth_names,
|
|
167
|
+
:return_type => 'DebtCollectionCaseDocument')
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#attach_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
170
|
+
end
|
|
171
|
+
return data, status_code, headers
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Close
|
|
175
|
+
# Closes the debt collection case, meaning no further money can be collected.
|
|
176
|
+
# @param space_id
|
|
177
|
+
# @param id The id of the debt collection case which should be closed.
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @return [DebtCollectionCase]
|
|
180
|
+
def close(space_id, id, opts = {})
|
|
181
|
+
data, _status_code, _headers = close_with_http_info(space_id, id, opts)
|
|
182
|
+
return data
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Close
|
|
186
|
+
# Closes the debt collection case, meaning no further money can be collected.
|
|
187
|
+
# @param space_id
|
|
188
|
+
# @param id The id of the debt collection case which should be closed.
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
|
|
191
|
+
def close_with_http_info(space_id, id, opts = {})
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.close ..."
|
|
194
|
+
end
|
|
195
|
+
# verify the required parameter 'space_id' is set
|
|
196
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.close" if space_id.nil?
|
|
197
|
+
# verify the required parameter 'id' is set
|
|
198
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.close" if id.nil?
|
|
199
|
+
# resource path
|
|
200
|
+
local_var_path = "/debt-collection-case/close".sub('{format}','json')
|
|
201
|
+
|
|
202
|
+
# query parameters
|
|
203
|
+
query_params = {}
|
|
204
|
+
query_params[:'spaceId'] = space_id
|
|
205
|
+
query_params[:'id'] = id
|
|
206
|
+
|
|
207
|
+
# header parameters
|
|
208
|
+
header_params = {}
|
|
209
|
+
|
|
210
|
+
# HTTP header 'Accept' (if needed)
|
|
211
|
+
local_header_accept = []
|
|
212
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
213
|
+
|
|
214
|
+
# HTTP header 'Content-Type'
|
|
215
|
+
local_header_content_type = []
|
|
216
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
217
|
+
|
|
218
|
+
# form parameters
|
|
219
|
+
form_params = {}
|
|
220
|
+
|
|
221
|
+
# http body (model)
|
|
222
|
+
post_body = nil
|
|
223
|
+
auth_names = []
|
|
224
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
225
|
+
:header_params => header_params,
|
|
226
|
+
:query_params => query_params,
|
|
227
|
+
:form_params => form_params,
|
|
228
|
+
:body => post_body,
|
|
229
|
+
:auth_names => auth_names,
|
|
230
|
+
:return_type => 'DebtCollectionCase')
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#close\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
233
|
+
end
|
|
234
|
+
return data, status_code, headers
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Count
|
|
238
|
+
# Counts the number of items in the database as restricted by the given filter.
|
|
239
|
+
# @param space_id
|
|
240
|
+
# @param [Hash] opts the optional parameters
|
|
241
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
|
242
|
+
# @return [Integer]
|
|
243
|
+
def count(space_id, opts = {})
|
|
244
|
+
data, _status_code, _headers = count_with_http_info(space_id, opts)
|
|
245
|
+
return data
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Count
|
|
249
|
+
# Counts the number of items in the database as restricted by the given filter.
|
|
250
|
+
# @param space_id
|
|
251
|
+
# @param [Hash] opts the optional parameters
|
|
252
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
|
253
|
+
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
|
|
254
|
+
def count_with_http_info(space_id, opts = {})
|
|
255
|
+
if @api_client.config.debugging
|
|
256
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.count ..."
|
|
257
|
+
end
|
|
258
|
+
# verify the required parameter 'space_id' is set
|
|
259
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.count" if space_id.nil?
|
|
260
|
+
# resource path
|
|
261
|
+
local_var_path = "/debt-collection-case/count".sub('{format}','json')
|
|
262
|
+
|
|
263
|
+
# query parameters
|
|
264
|
+
query_params = {}
|
|
265
|
+
query_params[:'spaceId'] = space_id
|
|
266
|
+
|
|
267
|
+
# header parameters
|
|
268
|
+
header_params = {}
|
|
269
|
+
|
|
270
|
+
# HTTP header 'Accept' (if needed)
|
|
271
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
272
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
273
|
+
|
|
274
|
+
# HTTP header 'Content-Type'
|
|
275
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
276
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
277
|
+
|
|
278
|
+
# form parameters
|
|
279
|
+
form_params = {}
|
|
280
|
+
|
|
281
|
+
# http body (model)
|
|
282
|
+
post_body = @api_client.object_to_http_body(opts[:'filter'])
|
|
283
|
+
auth_names = []
|
|
284
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
285
|
+
:header_params => header_params,
|
|
286
|
+
:query_params => query_params,
|
|
287
|
+
:form_params => form_params,
|
|
288
|
+
:body => post_body,
|
|
289
|
+
:auth_names => auth_names,
|
|
290
|
+
:return_type => 'Integer')
|
|
291
|
+
if @api_client.config.debugging
|
|
292
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
293
|
+
end
|
|
294
|
+
return data, status_code, headers
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Create
|
|
298
|
+
# Creates the entity with the given properties.
|
|
299
|
+
# @param space_id
|
|
300
|
+
# @param entity The debt collection case object with the properties which should be created.
|
|
301
|
+
# @param [Hash] opts the optional parameters
|
|
302
|
+
# @return [DebtCollectionCase]
|
|
303
|
+
def create(space_id, entity, opts = {})
|
|
304
|
+
data, _status_code, _headers = create_with_http_info(space_id, entity, opts)
|
|
305
|
+
return data
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Create
|
|
309
|
+
# Creates the entity with the given properties.
|
|
310
|
+
# @param space_id
|
|
311
|
+
# @param entity The debt collection case object with the properties which should be created.
|
|
312
|
+
# @param [Hash] opts the optional parameters
|
|
313
|
+
# @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
|
|
314
|
+
def create_with_http_info(space_id, entity, opts = {})
|
|
315
|
+
if @api_client.config.debugging
|
|
316
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.create ..."
|
|
317
|
+
end
|
|
318
|
+
# verify the required parameter 'space_id' is set
|
|
319
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.create" if space_id.nil?
|
|
320
|
+
# verify the required parameter 'entity' is set
|
|
321
|
+
fail ArgumentError, "Missing the required parameter 'entity' when calling DebtCollectionCaseService.create" if entity.nil?
|
|
322
|
+
# resource path
|
|
323
|
+
local_var_path = "/debt-collection-case/create".sub('{format}','json')
|
|
324
|
+
|
|
325
|
+
# query parameters
|
|
326
|
+
query_params = {}
|
|
327
|
+
query_params[:'spaceId'] = space_id
|
|
328
|
+
|
|
329
|
+
# header parameters
|
|
330
|
+
header_params = {}
|
|
331
|
+
|
|
332
|
+
# HTTP header 'Accept' (if needed)
|
|
333
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
334
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
335
|
+
|
|
336
|
+
# HTTP header 'Content-Type'
|
|
337
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
338
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
339
|
+
|
|
340
|
+
# form parameters
|
|
341
|
+
form_params = {}
|
|
342
|
+
|
|
343
|
+
# http body (model)
|
|
344
|
+
post_body = @api_client.object_to_http_body(entity)
|
|
345
|
+
auth_names = []
|
|
346
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
347
|
+
:header_params => header_params,
|
|
348
|
+
:query_params => query_params,
|
|
349
|
+
:form_params => form_params,
|
|
350
|
+
:body => post_body,
|
|
351
|
+
:auth_names => auth_names,
|
|
352
|
+
:return_type => 'DebtCollectionCase')
|
|
353
|
+
if @api_client.config.debugging
|
|
354
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
355
|
+
end
|
|
356
|
+
return data, status_code, headers
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Delete
|
|
360
|
+
# Deletes the entity with the given id.
|
|
361
|
+
# @param space_id
|
|
362
|
+
# @param id
|
|
363
|
+
# @param [Hash] opts the optional parameters
|
|
364
|
+
# @return [nil]
|
|
365
|
+
def delete(space_id, id, opts = {})
|
|
366
|
+
delete_with_http_info(space_id, id, opts)
|
|
367
|
+
return nil
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Delete
|
|
371
|
+
# Deletes the entity with the given id.
|
|
372
|
+
# @param space_id
|
|
373
|
+
# @param id
|
|
374
|
+
# @param [Hash] opts the optional parameters
|
|
375
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
376
|
+
def delete_with_http_info(space_id, id, opts = {})
|
|
377
|
+
if @api_client.config.debugging
|
|
378
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.delete ..."
|
|
379
|
+
end
|
|
380
|
+
# verify the required parameter 'space_id' is set
|
|
381
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.delete" if space_id.nil?
|
|
382
|
+
# verify the required parameter 'id' is set
|
|
383
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.delete" if id.nil?
|
|
384
|
+
# resource path
|
|
385
|
+
local_var_path = "/debt-collection-case/delete".sub('{format}','json')
|
|
386
|
+
|
|
387
|
+
# query parameters
|
|
388
|
+
query_params = {}
|
|
389
|
+
query_params[:'spaceId'] = space_id
|
|
390
|
+
|
|
391
|
+
# header parameters
|
|
392
|
+
header_params = {}
|
|
393
|
+
|
|
394
|
+
# HTTP header 'Accept' (if needed)
|
|
395
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
396
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
397
|
+
|
|
398
|
+
# HTTP header 'Content-Type'
|
|
399
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
400
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
401
|
+
|
|
402
|
+
# form parameters
|
|
403
|
+
form_params = {}
|
|
404
|
+
|
|
405
|
+
# http body (model)
|
|
406
|
+
post_body = @api_client.object_to_http_body(id)
|
|
407
|
+
auth_names = []
|
|
408
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
409
|
+
:header_params => header_params,
|
|
410
|
+
:query_params => query_params,
|
|
411
|
+
:form_params => form_params,
|
|
412
|
+
:body => post_body,
|
|
413
|
+
:auth_names => auth_names)
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
416
|
+
end
|
|
417
|
+
return data, status_code, headers
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Documents
|
|
421
|
+
# Returns all documents that are attached to a debt collection case.
|
|
422
|
+
# @param space_id
|
|
423
|
+
# @param id The id of the debt collection case for which the attached documents are returned.
|
|
424
|
+
# @param [Hash] opts the optional parameters
|
|
425
|
+
# @return [Array<DebtCollectionCaseDocument>]
|
|
426
|
+
def documents(space_id, id, opts = {})
|
|
427
|
+
data, _status_code, _headers = documents_with_http_info(space_id, id, opts)
|
|
428
|
+
return data
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Documents
|
|
432
|
+
# Returns all documents that are attached to a debt collection case.
|
|
433
|
+
# @param space_id
|
|
434
|
+
# @param id The id of the debt collection case for which the attached documents are returned.
|
|
435
|
+
# @param [Hash] opts the optional parameters
|
|
436
|
+
# @return [Array<(Array<DebtCollectionCaseDocument>, Fixnum, Hash)>] Array<DebtCollectionCaseDocument> data, response status code and response headers
|
|
437
|
+
def documents_with_http_info(space_id, id, opts = {})
|
|
438
|
+
if @api_client.config.debugging
|
|
439
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.documents ..."
|
|
440
|
+
end
|
|
441
|
+
# verify the required parameter 'space_id' is set
|
|
442
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.documents" if space_id.nil?
|
|
443
|
+
# verify the required parameter 'id' is set
|
|
444
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.documents" if id.nil?
|
|
445
|
+
# resource path
|
|
446
|
+
local_var_path = "/debt-collection-case/documents".sub('{format}','json')
|
|
447
|
+
|
|
448
|
+
# query parameters
|
|
449
|
+
query_params = {}
|
|
450
|
+
query_params[:'spaceId'] = space_id
|
|
451
|
+
query_params[:'id'] = id
|
|
452
|
+
|
|
453
|
+
# header parameters
|
|
454
|
+
header_params = {}
|
|
455
|
+
|
|
456
|
+
# HTTP header 'Accept' (if needed)
|
|
457
|
+
local_header_accept = []
|
|
458
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
459
|
+
|
|
460
|
+
# HTTP header 'Content-Type'
|
|
461
|
+
local_header_content_type = []
|
|
462
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
463
|
+
|
|
464
|
+
# form parameters
|
|
465
|
+
form_params = {}
|
|
466
|
+
|
|
467
|
+
# http body (model)
|
|
468
|
+
post_body = nil
|
|
469
|
+
auth_names = []
|
|
470
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
471
|
+
:header_params => header_params,
|
|
472
|
+
:query_params => query_params,
|
|
473
|
+
:form_params => form_params,
|
|
474
|
+
:body => post_body,
|
|
475
|
+
:auth_names => auth_names,
|
|
476
|
+
:return_type => 'Array<DebtCollectionCaseDocument>')
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
+
end
|
|
480
|
+
return data, status_code, headers
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Mark Case As Prepared
|
|
484
|
+
# This operation will mark a debt collection case as prepared and allow the collection process to proceed.
|
|
485
|
+
# @param space_id
|
|
486
|
+
# @param id The id of the debt collection case which should be marked as prepared.
|
|
487
|
+
# @param [Hash] opts the optional parameters
|
|
488
|
+
# @return [DebtCollectionCase]
|
|
489
|
+
def mark_as_prepared(space_id, id, opts = {})
|
|
490
|
+
data, _status_code, _headers = mark_as_prepared_with_http_info(space_id, id, opts)
|
|
491
|
+
return data
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Mark Case As Prepared
|
|
495
|
+
# This operation will mark a debt collection case as prepared and allow the collection process to proceed.
|
|
496
|
+
# @param space_id
|
|
497
|
+
# @param id The id of the debt collection case which should be marked as prepared.
|
|
498
|
+
# @param [Hash] opts the optional parameters
|
|
499
|
+
# @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
|
|
500
|
+
def mark_as_prepared_with_http_info(space_id, id, opts = {})
|
|
501
|
+
if @api_client.config.debugging
|
|
502
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.mark_as_prepared ..."
|
|
503
|
+
end
|
|
504
|
+
# verify the required parameter 'space_id' is set
|
|
505
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.mark_as_prepared" if space_id.nil?
|
|
506
|
+
# verify the required parameter 'id' is set
|
|
507
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.mark_as_prepared" if id.nil?
|
|
508
|
+
# resource path
|
|
509
|
+
local_var_path = "/debt-collection-case/markAsPrepared".sub('{format}','json')
|
|
510
|
+
|
|
511
|
+
# query parameters
|
|
512
|
+
query_params = {}
|
|
513
|
+
query_params[:'spaceId'] = space_id
|
|
514
|
+
query_params[:'id'] = id
|
|
515
|
+
|
|
516
|
+
# header parameters
|
|
517
|
+
header_params = {}
|
|
518
|
+
|
|
519
|
+
# HTTP header 'Accept' (if needed)
|
|
520
|
+
local_header_accept = []
|
|
521
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
522
|
+
|
|
523
|
+
# HTTP header 'Content-Type'
|
|
524
|
+
local_header_content_type = []
|
|
525
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
526
|
+
|
|
527
|
+
# form parameters
|
|
528
|
+
form_params = {}
|
|
529
|
+
|
|
530
|
+
# http body (model)
|
|
531
|
+
post_body = nil
|
|
532
|
+
auth_names = []
|
|
533
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
534
|
+
:header_params => header_params,
|
|
535
|
+
:query_params => query_params,
|
|
536
|
+
:form_params => form_params,
|
|
537
|
+
:body => post_body,
|
|
538
|
+
:auth_names => auth_names,
|
|
539
|
+
:return_type => 'DebtCollectionCase')
|
|
540
|
+
if @api_client.config.debugging
|
|
541
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#mark_as_prepared\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
542
|
+
end
|
|
543
|
+
return data, status_code, headers
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# Mark Case As Reviewed
|
|
547
|
+
# This operation will mark a debt collection case as reviewed and allow the collection process to proceed.
|
|
548
|
+
# @param space_id
|
|
549
|
+
# @param id The id of the debt collection case which should be reviewed.
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @return [DebtCollectionCase]
|
|
552
|
+
def mark_as_reviewed(space_id, id, opts = {})
|
|
553
|
+
data, _status_code, _headers = mark_as_reviewed_with_http_info(space_id, id, opts)
|
|
554
|
+
return data
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# Mark Case As Reviewed
|
|
558
|
+
# This operation will mark a debt collection case as reviewed and allow the collection process to proceed.
|
|
559
|
+
# @param space_id
|
|
560
|
+
# @param id The id of the debt collection case which should be reviewed.
|
|
561
|
+
# @param [Hash] opts the optional parameters
|
|
562
|
+
# @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
|
|
563
|
+
def mark_as_reviewed_with_http_info(space_id, id, opts = {})
|
|
564
|
+
if @api_client.config.debugging
|
|
565
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.mark_as_reviewed ..."
|
|
566
|
+
end
|
|
567
|
+
# verify the required parameter 'space_id' is set
|
|
568
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.mark_as_reviewed" if space_id.nil?
|
|
569
|
+
# verify the required parameter 'id' is set
|
|
570
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.mark_as_reviewed" if id.nil?
|
|
571
|
+
# resource path
|
|
572
|
+
local_var_path = "/debt-collection-case/markAsReviewed".sub('{format}','json')
|
|
573
|
+
|
|
574
|
+
# query parameters
|
|
575
|
+
query_params = {}
|
|
576
|
+
query_params[:'spaceId'] = space_id
|
|
577
|
+
query_params[:'id'] = id
|
|
578
|
+
|
|
579
|
+
# header parameters
|
|
580
|
+
header_params = {}
|
|
581
|
+
|
|
582
|
+
# HTTP header 'Accept' (if needed)
|
|
583
|
+
local_header_accept = []
|
|
584
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
585
|
+
|
|
586
|
+
# HTTP header 'Content-Type'
|
|
587
|
+
local_header_content_type = []
|
|
588
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
589
|
+
|
|
590
|
+
# form parameters
|
|
591
|
+
form_params = {}
|
|
592
|
+
|
|
593
|
+
# http body (model)
|
|
594
|
+
post_body = nil
|
|
595
|
+
auth_names = []
|
|
596
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
597
|
+
:header_params => header_params,
|
|
598
|
+
:query_params => query_params,
|
|
599
|
+
:form_params => form_params,
|
|
600
|
+
:body => post_body,
|
|
601
|
+
:auth_names => auth_names,
|
|
602
|
+
:return_type => 'DebtCollectionCase')
|
|
603
|
+
if @api_client.config.debugging
|
|
604
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#mark_as_reviewed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
605
|
+
end
|
|
606
|
+
return data, status_code, headers
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# Read
|
|
610
|
+
# Reads the entity with the given 'id' and returns it.
|
|
611
|
+
# @param space_id
|
|
612
|
+
# @param id The id of the debt collection case which should be returned.
|
|
613
|
+
# @param [Hash] opts the optional parameters
|
|
614
|
+
# @return [DebtCollectionCase]
|
|
615
|
+
def read(space_id, id, opts = {})
|
|
616
|
+
data, _status_code, _headers = read_with_http_info(space_id, id, opts)
|
|
617
|
+
return data
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Read
|
|
621
|
+
# Reads the entity with the given 'id' and returns it.
|
|
622
|
+
# @param space_id
|
|
623
|
+
# @param id The id of the debt collection case which should be returned.
|
|
624
|
+
# @param [Hash] opts the optional parameters
|
|
625
|
+
# @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
|
|
626
|
+
def read_with_http_info(space_id, id, opts = {})
|
|
627
|
+
if @api_client.config.debugging
|
|
628
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.read ..."
|
|
629
|
+
end
|
|
630
|
+
# verify the required parameter 'space_id' is set
|
|
631
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.read" if space_id.nil?
|
|
632
|
+
# verify the required parameter 'id' is set
|
|
633
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.read" if id.nil?
|
|
634
|
+
# resource path
|
|
635
|
+
local_var_path = "/debt-collection-case/read".sub('{format}','json')
|
|
636
|
+
|
|
637
|
+
# query parameters
|
|
638
|
+
query_params = {}
|
|
639
|
+
query_params[:'spaceId'] = space_id
|
|
640
|
+
query_params[:'id'] = id
|
|
641
|
+
|
|
642
|
+
# header parameters
|
|
643
|
+
header_params = {}
|
|
644
|
+
|
|
645
|
+
# HTTP header 'Accept' (if needed)
|
|
646
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
647
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
648
|
+
|
|
649
|
+
# HTTP header 'Content-Type'
|
|
650
|
+
local_header_content_type = ['*/*']
|
|
651
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = nil
|
|
658
|
+
auth_names = []
|
|
659
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
660
|
+
:header_params => header_params,
|
|
661
|
+
:query_params => query_params,
|
|
662
|
+
:form_params => form_params,
|
|
663
|
+
:body => post_body,
|
|
664
|
+
:auth_names => auth_names,
|
|
665
|
+
:return_type => 'DebtCollectionCase')
|
|
666
|
+
if @api_client.config.debugging
|
|
667
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
668
|
+
end
|
|
669
|
+
return data, status_code, headers
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
# Search
|
|
673
|
+
# Searches for the entities as specified by the given query.
|
|
674
|
+
# @param space_id
|
|
675
|
+
# @param query The query restricts the cases which are returned by the search.
|
|
676
|
+
# @param [Hash] opts the optional parameters
|
|
677
|
+
# @return [Array<DebtCollectionCase>]
|
|
678
|
+
def search(space_id, query, opts = {})
|
|
679
|
+
data, _status_code, _headers = search_with_http_info(space_id, query, opts)
|
|
680
|
+
return data
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
# Search
|
|
684
|
+
# Searches for the entities as specified by the given query.
|
|
685
|
+
# @param space_id
|
|
686
|
+
# @param query The query restricts the cases which are returned by the search.
|
|
687
|
+
# @param [Hash] opts the optional parameters
|
|
688
|
+
# @return [Array<(Array<DebtCollectionCase>, Fixnum, Hash)>] Array<DebtCollectionCase> data, response status code and response headers
|
|
689
|
+
def search_with_http_info(space_id, query, opts = {})
|
|
690
|
+
if @api_client.config.debugging
|
|
691
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.search ..."
|
|
692
|
+
end
|
|
693
|
+
# verify the required parameter 'space_id' is set
|
|
694
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.search" if space_id.nil?
|
|
695
|
+
# verify the required parameter 'query' is set
|
|
696
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling DebtCollectionCaseService.search" if query.nil?
|
|
697
|
+
# resource path
|
|
698
|
+
local_var_path = "/debt-collection-case/search".sub('{format}','json')
|
|
699
|
+
|
|
700
|
+
# query parameters
|
|
701
|
+
query_params = {}
|
|
702
|
+
query_params[:'spaceId'] = space_id
|
|
703
|
+
|
|
704
|
+
# header parameters
|
|
705
|
+
header_params = {}
|
|
706
|
+
|
|
707
|
+
# HTTP header 'Accept' (if needed)
|
|
708
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
709
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
710
|
+
|
|
711
|
+
# HTTP header 'Content-Type'
|
|
712
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
713
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
714
|
+
|
|
715
|
+
# form parameters
|
|
716
|
+
form_params = {}
|
|
717
|
+
|
|
718
|
+
# http body (model)
|
|
719
|
+
post_body = @api_client.object_to_http_body(query)
|
|
720
|
+
auth_names = []
|
|
721
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
722
|
+
:header_params => header_params,
|
|
723
|
+
:query_params => query_params,
|
|
724
|
+
:form_params => form_params,
|
|
725
|
+
:body => post_body,
|
|
726
|
+
:auth_names => auth_names,
|
|
727
|
+
:return_type => 'Array<DebtCollectionCase>')
|
|
728
|
+
if @api_client.config.debugging
|
|
729
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
730
|
+
end
|
|
731
|
+
return data, status_code, headers
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Update
|
|
735
|
+
# This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity.
|
|
736
|
+
# @param space_id
|
|
737
|
+
# @param entity The object with all the properties which should be updated. The id and the version are required properties.
|
|
738
|
+
# @param [Hash] opts the optional parameters
|
|
739
|
+
# @return [DebtCollectionCase]
|
|
740
|
+
def update(space_id, entity, opts = {})
|
|
741
|
+
data, _status_code, _headers = update_with_http_info(space_id, entity, opts)
|
|
742
|
+
return data
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
# Update
|
|
746
|
+
# This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity.
|
|
747
|
+
# @param space_id
|
|
748
|
+
# @param entity The object with all the properties which should be updated. The id and the version are required properties.
|
|
749
|
+
# @param [Hash] opts the optional parameters
|
|
750
|
+
# @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
|
|
751
|
+
def update_with_http_info(space_id, entity, opts = {})
|
|
752
|
+
if @api_client.config.debugging
|
|
753
|
+
@api_client.config.logger.debug "Calling API: DebtCollectionCaseService.update ..."
|
|
754
|
+
end
|
|
755
|
+
# verify the required parameter 'space_id' is set
|
|
756
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.update" if space_id.nil?
|
|
757
|
+
# verify the required parameter 'entity' is set
|
|
758
|
+
fail ArgumentError, "Missing the required parameter 'entity' when calling DebtCollectionCaseService.update" if entity.nil?
|
|
759
|
+
# resource path
|
|
760
|
+
local_var_path = "/debt-collection-case/update".sub('{format}','json')
|
|
761
|
+
|
|
762
|
+
# query parameters
|
|
763
|
+
query_params = {}
|
|
764
|
+
query_params[:'spaceId'] = space_id
|
|
765
|
+
|
|
766
|
+
# header parameters
|
|
767
|
+
header_params = {}
|
|
768
|
+
|
|
769
|
+
# HTTP header 'Accept' (if needed)
|
|
770
|
+
local_header_accept = ['application/json;charset=utf-8']
|
|
771
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
772
|
+
|
|
773
|
+
# HTTP header 'Content-Type'
|
|
774
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
|
775
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
776
|
+
|
|
777
|
+
# form parameters
|
|
778
|
+
form_params = {}
|
|
779
|
+
|
|
780
|
+
# http body (model)
|
|
781
|
+
post_body = @api_client.object_to_http_body(entity)
|
|
782
|
+
auth_names = []
|
|
783
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
784
|
+
:header_params => header_params,
|
|
785
|
+
:query_params => query_params,
|
|
786
|
+
:form_params => form_params,
|
|
787
|
+
:body => post_body,
|
|
788
|
+
:auth_names => auth_names,
|
|
789
|
+
:return_type => 'DebtCollectionCase')
|
|
790
|
+
if @api_client.config.debugging
|
|
791
|
+
@api_client.config.logger.debug "API called: DebtCollectionCaseService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
792
|
+
end
|
|
793
|
+
return data, status_code, headers
|
|
794
|
+
end
|
|
795
|
+
end
|
|
796
|
+
end
|