postfinancecheckout-ruby-sdk 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/LICENSE +201 -0
- data/README.md +137 -0
- data/Rakefile +13 -0
- data/lib/.DS_Store +0 -0
- data/lib/postfinancecheckout-ruby-sdk.rb +392 -0
- data/lib/postfinancecheckout-ruby-sdk/api/account_service_api.rb +368 -0
- data/lib/postfinancecheckout-ruby-sdk/api/application_user_service_api.rb +368 -0
- data/lib/postfinancecheckout-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_attempt_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_service_api.rb +348 -0
- data/lib/postfinancecheckout-ruby-sdk/api/condition_type_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/country_service_api.rb +81 -0
- data/lib/postfinancecheckout-ruby-sdk/api/country_state_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/currency_service_api.rb +81 -0
- data/lib/postfinancecheckout-ruby-sdk/api/customer_address_service_api.rb +460 -0
- data/lib/postfinancecheckout-ruby-sdk/api/customer_comment_service_api.rb +522 -0
- data/lib/postfinancecheckout-ruby-sdk/api/customer_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api/delivery_indication_service_api.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/api/document_template_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/document_template_type_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/human_user_service_api.rb +425 -0
- data/lib/postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/label_description_group_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/label_description_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/language_service_api.rb +81 -0
- data/lib/postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
- data/lib/postfinancecheckout-ruby-sdk/api/manual_task_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_link_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/postfinancecheckout-ruby-sdk/api/permission_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_comment_service_api.rb +464 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_service_api.rb +532 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/space_service_api.rb +368 -0
- data/lib/postfinancecheckout-ruby-sdk/api/static_value_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/token_service_api.rb +650 -0
- data/lib/postfinancecheckout-ruby-sdk/api/token_version_service_api.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_completion_service_api.rb +463 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api.rb +600 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_service_api.rb +1210 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_void_service_api.rb +339 -0
- data/lib/postfinancecheckout-ruby-sdk/api/user_account_role_service_api.rb +219 -0
- data/lib/postfinancecheckout-ruby-sdk/api/user_space_role_service_api.rb +216 -0
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_listener_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_url_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api_client.rb +405 -0
- data/lib/postfinancecheckout-ruby-sdk/api_error.rb +43 -0
- data/lib/postfinancecheckout-ruby-sdk/configuration.rb +140 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_account_update.rb +234 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_application_user_update.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_active.rb +312 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_human_user_update.rb +320 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_space_update.rb +286 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_token_update.rb +270 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_pending.rb +486 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_listener_update.rb +237 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_url_update.rb +249 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account.rb +375 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_create.rb +260 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_update.rb +265 -0
- data/lib/postfinancecheckout-ruby-sdk/models/address.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/address_create.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user.rb +286 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_create.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_create_with_mac_key.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_update.rb +256 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt.rb +468 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_environment.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level.rb +311 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration_type.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_type.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/client_error.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/client_error_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item_create.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/condition.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/condition_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation.rb +271 -0
- data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation_stage.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/creation_entity_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb +45 -0
- data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer.rb +353 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address.rb +261 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_active.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_create.rb +216 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_create.rb +313 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address_create.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customers_presence.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/data_collection_type.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string_item.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication.rb +321 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_decision_reason.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_group.rb +203 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_export_request.rb +208 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter.rb +238 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by_type.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/environment.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/failure_category.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/failure_reason.rb +237 -0
- data/lib/postfinancecheckout-ruby-sdk/models/feature.rb +277 -0
- data/lib/postfinancecheckout-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/gender.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user.rb +361 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_create.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_update.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor.rb +267 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_category.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item.rb +449 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute_create.rb +249 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_create.rb +372 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction_create.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_type.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/localized_string.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task.rb +283 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action.rb +223 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action_style.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_type.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/one_click_payment_mode.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector.rb +321 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration.rb +342 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_feature.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_type.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash_type.rb +203 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link.rb +390 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_active.rb +350 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_create.rb +345 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_update.rb +340 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method.rb +261 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration.rb +370 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_primary_risk_taker.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor.rb +271 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address.rb +396 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version.rb +323 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/permission.rb +299 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund.rb +567 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_create.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_type.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_document.rb +223 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
- data/lib/postfinancecheckout-ruby-sdk/models/resource_path.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/models/resource_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format_field.rb +43 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_country.rb +243 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_country_state.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_currency.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_language.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +350 -0
- data/lib/postfinancecheckout-ruby-sdk/models/server_error.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber.rb +281 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription.rb +375 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_tax_line.rb +201 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version.rb +463 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_tax_line.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space.rb +407 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_address.rb +416 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_address_create.rb +416 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_create.rb +302 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_update.rb +317 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_view.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/models/static_value.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tax.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tax_create.rb +239 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tenant_database.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token.rb +341 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_create.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_update.rb +301 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version.rb +445 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_type.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tokenization_mode.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction.rb +1011 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_aware_entity.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +528 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_mode.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_request.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_create.rb +596 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_group.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_group_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice.rb +452 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_replacement.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_state.rb +40 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_update_request.rb +208 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version.rb +313 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_pending.rb +517 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_state.rb +43 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_user_interface_type.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void.rb +373 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_mode.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/two_factor_authentication_type.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_account_role.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_space_role.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_type.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_identity.rb +256 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener.rb +308 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_create.rb +278 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_entity.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_update.rb +268 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url.rb +300 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_create.rb +250 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_update.rb +280 -0
- data/lib/postfinancecheckout-ruby-sdk/version.rb +20 -0
- data/postfinancecheckout-ruby-sdk.gemspec +44 -0
- data/test/condition_type_service_test.rb +22 -0
- data/test/transaction_create_service_test.rb +89 -0
- data/test/transaction_payment_page_service_test.rb +91 -0
- metadata +469 -0
@@ -0,0 +1,276 @@
|
|
1
|
+
=begin
|
2
|
+
The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout 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 PostFinanceCheckout
|
21
|
+
class TokenVersionService
|
22
|
+
attr_accessor :api_client
|
23
|
+
|
24
|
+
def initialize(api_client = ApiClient.default)
|
25
|
+
@api_client = api_client
|
26
|
+
end
|
27
|
+
|
28
|
+
# Active Version
|
29
|
+
# Returns the token version which is currently active given by the token id. In case no token version is active the method will return null.
|
30
|
+
# @param space_id
|
31
|
+
# @param id The id of a token for which you want to look up the current active token version.
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [TokenVersion]
|
34
|
+
def active_version(space_id, id, opts = {})
|
35
|
+
data, _status_code, _headers = active_version_with_http_info(space_id, id, opts)
|
36
|
+
return data
|
37
|
+
end
|
38
|
+
|
39
|
+
# Active Version
|
40
|
+
# Returns the token version which is currently active given by the token id. In case no token version is active the method will return null.
|
41
|
+
# @param space_id
|
42
|
+
# @param id The id of a token for which you want to look up the current active token version.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(TokenVersion, Fixnum, Hash)>] TokenVersion data, response status code and response headers
|
45
|
+
def active_version_with_http_info(space_id, id, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug "Calling API: TokenVersionService.active_version ..."
|
48
|
+
end
|
49
|
+
# verify the required parameter 'space_id' is set
|
50
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenVersionService.active_version" if space_id.nil?
|
51
|
+
# verify the required parameter 'id' is set
|
52
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TokenVersionService.active_version" if id.nil?
|
53
|
+
# resource path
|
54
|
+
local_var_path = "/token-version/active-version".sub('{format}','json')
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = {}
|
58
|
+
query_params[:'spaceId'] = space_id
|
59
|
+
query_params[:'id'] = id
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json;charset=utf-8']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['*/*']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = nil
|
77
|
+
auth_names = []
|
78
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => 'TokenVersion')
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: TokenVersionService#active_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Count
|
92
|
+
# Counts the number of items in the database as restricted by the given filter.
|
93
|
+
# @param space_id
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
96
|
+
# @return [Integer]
|
97
|
+
def count(space_id, opts = {})
|
98
|
+
data, _status_code, _headers = count_with_http_info(space_id, opts)
|
99
|
+
return data
|
100
|
+
end
|
101
|
+
|
102
|
+
# Count
|
103
|
+
# Counts the number of items in the database as restricted by the given filter.
|
104
|
+
# @param space_id
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
107
|
+
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
|
108
|
+
def count_with_http_info(space_id, opts = {})
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug "Calling API: TokenVersionService.count ..."
|
111
|
+
end
|
112
|
+
# verify the required parameter 'space_id' is set
|
113
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenVersionService.count" if space_id.nil?
|
114
|
+
# resource path
|
115
|
+
local_var_path = "/token-version/count".sub('{format}','json')
|
116
|
+
|
117
|
+
# query parameters
|
118
|
+
query_params = {}
|
119
|
+
query_params[:'spaceId'] = space_id
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = {}
|
123
|
+
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
local_header_accept = ['application/json;charset=utf-8']
|
126
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
127
|
+
|
128
|
+
# HTTP header 'Content-Type'
|
129
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = @api_client.object_to_http_body(opts[:'filter'])
|
137
|
+
auth_names = []
|
138
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => 'Integer')
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: TokenVersionService#count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# Read
|
152
|
+
# Reads the entity with the given 'id' and returns it.
|
153
|
+
# @param space_id
|
154
|
+
# @param id The id of the token version which should be returned.
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @return [TokenVersion]
|
157
|
+
def read(space_id, id, opts = {})
|
158
|
+
data, _status_code, _headers = read_with_http_info(space_id, id, opts)
|
159
|
+
return data
|
160
|
+
end
|
161
|
+
|
162
|
+
# Read
|
163
|
+
# Reads the entity with the given 'id' and returns it.
|
164
|
+
# @param space_id
|
165
|
+
# @param id The id of the token version which should be returned.
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @return [Array<(TokenVersion, Fixnum, Hash)>] TokenVersion data, response status code and response headers
|
168
|
+
def read_with_http_info(space_id, id, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug "Calling API: TokenVersionService.read ..."
|
171
|
+
end
|
172
|
+
# verify the required parameter 'space_id' is set
|
173
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenVersionService.read" if space_id.nil?
|
174
|
+
# verify the required parameter 'id' is set
|
175
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TokenVersionService.read" if id.nil?
|
176
|
+
# resource path
|
177
|
+
local_var_path = "/token-version/read".sub('{format}','json')
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = {}
|
181
|
+
query_params[:'spaceId'] = space_id
|
182
|
+
query_params[:'id'] = id
|
183
|
+
|
184
|
+
# header parameters
|
185
|
+
header_params = {}
|
186
|
+
|
187
|
+
# HTTP header 'Accept' (if needed)
|
188
|
+
local_header_accept = ['application/json;charset=utf-8']
|
189
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
190
|
+
|
191
|
+
# HTTP header 'Content-Type'
|
192
|
+
local_header_content_type = ['*/*']
|
193
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
194
|
+
|
195
|
+
# form parameters
|
196
|
+
form_params = {}
|
197
|
+
|
198
|
+
# http body (model)
|
199
|
+
post_body = nil
|
200
|
+
auth_names = []
|
201
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
202
|
+
:header_params => header_params,
|
203
|
+
:query_params => query_params,
|
204
|
+
:form_params => form_params,
|
205
|
+
:body => post_body,
|
206
|
+
:auth_names => auth_names,
|
207
|
+
:return_type => 'TokenVersion')
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug "API called: TokenVersionService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
210
|
+
end
|
211
|
+
return data, status_code, headers
|
212
|
+
end
|
213
|
+
|
214
|
+
# Search
|
215
|
+
# Searches for the entities as specified by the given query.
|
216
|
+
# @param space_id
|
217
|
+
# @param query The query restricts the token versions which are returned by the search.
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [Array<TokenVersion>]
|
220
|
+
def search(space_id, query, opts = {})
|
221
|
+
data, _status_code, _headers = search_with_http_info(space_id, query, opts)
|
222
|
+
return data
|
223
|
+
end
|
224
|
+
|
225
|
+
# Search
|
226
|
+
# Searches for the entities as specified by the given query.
|
227
|
+
# @param space_id
|
228
|
+
# @param query The query restricts the token versions which are returned by the search.
|
229
|
+
# @param [Hash] opts the optional parameters
|
230
|
+
# @return [Array<(Array<TokenVersion>, Fixnum, Hash)>] Array<TokenVersion> data, response status code and response headers
|
231
|
+
def search_with_http_info(space_id, query, opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug "Calling API: TokenVersionService.search ..."
|
234
|
+
end
|
235
|
+
# verify the required parameter 'space_id' is set
|
236
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenVersionService.search" if space_id.nil?
|
237
|
+
# verify the required parameter 'query' is set
|
238
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling TokenVersionService.search" if query.nil?
|
239
|
+
# resource path
|
240
|
+
local_var_path = "/token-version/search".sub('{format}','json')
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = {}
|
244
|
+
query_params[:'spaceId'] = space_id
|
245
|
+
|
246
|
+
# header parameters
|
247
|
+
header_params = {}
|
248
|
+
|
249
|
+
# HTTP header 'Accept' (if needed)
|
250
|
+
local_header_accept = ['application/json;charset=utf-8']
|
251
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
252
|
+
|
253
|
+
# HTTP header 'Content-Type'
|
254
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
255
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
256
|
+
|
257
|
+
# form parameters
|
258
|
+
form_params = {}
|
259
|
+
|
260
|
+
# http body (model)
|
261
|
+
post_body = @api_client.object_to_http_body(query)
|
262
|
+
auth_names = []
|
263
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
264
|
+
:header_params => header_params,
|
265
|
+
:query_params => query_params,
|
266
|
+
:form_params => form_params,
|
267
|
+
:body => post_body,
|
268
|
+
:auth_names => auth_names,
|
269
|
+
:return_type => 'Array<TokenVersion>')
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug "API called: TokenVersionService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
272
|
+
end
|
273
|
+
return data, status_code, headers
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
@@ -0,0 +1,464 @@
|
|
1
|
+
=begin
|
2
|
+
The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout 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 PostFinanceCheckout
|
21
|
+
class TransactionCommentService
|
22
|
+
attr_accessor :api_client
|
23
|
+
|
24
|
+
def initialize(api_client = ApiClient.default)
|
25
|
+
@api_client = api_client
|
26
|
+
end
|
27
|
+
|
28
|
+
# Find by transaction
|
29
|
+
# Returns all comments of the transaction.
|
30
|
+
# @param space_id
|
31
|
+
# @param transaction_id
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [Array<TransactionComment>]
|
34
|
+
def all(space_id, transaction_id, opts = {})
|
35
|
+
data, _status_code, _headers = all_with_http_info(space_id, transaction_id, opts)
|
36
|
+
return data
|
37
|
+
end
|
38
|
+
|
39
|
+
# Find by transaction
|
40
|
+
# Returns all comments of the transaction.
|
41
|
+
# @param space_id
|
42
|
+
# @param transaction_id
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(Array<TransactionComment>, Fixnum, Hash)>] Array<TransactionComment> data, response status code and response headers
|
45
|
+
def all_with_http_info(space_id, transaction_id, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.all ..."
|
48
|
+
end
|
49
|
+
# verify the required parameter 'space_id' is set
|
50
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.all" if space_id.nil?
|
51
|
+
# verify the required parameter 'transaction_id' is set
|
52
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionCommentService.all" if transaction_id.nil?
|
53
|
+
# resource path
|
54
|
+
local_var_path = "/transaction-comment/all".sub('{format}','json')
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = {}
|
58
|
+
query_params[:'spaceId'] = space_id
|
59
|
+
query_params[:'transactionId'] = transaction_id
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json;charset=utf-8']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = nil
|
77
|
+
auth_names = []
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => 'Array<TransactionComment>')
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Create
|
92
|
+
# Creates the comment with the given properties.
|
93
|
+
# @param space_id
|
94
|
+
# @param entity
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [TransactionComment]
|
97
|
+
def create(space_id, entity, opts = {})
|
98
|
+
data, _status_code, _headers = create_with_http_info(space_id, entity, opts)
|
99
|
+
return data
|
100
|
+
end
|
101
|
+
|
102
|
+
# Create
|
103
|
+
# Creates the comment with the given properties.
|
104
|
+
# @param space_id
|
105
|
+
# @param entity
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @return [Array<(TransactionComment, Fixnum, Hash)>] TransactionComment data, response status code and response headers
|
108
|
+
def create_with_http_info(space_id, entity, opts = {})
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.create ..."
|
111
|
+
end
|
112
|
+
# verify the required parameter 'space_id' is set
|
113
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.create" if space_id.nil?
|
114
|
+
# verify the required parameter 'entity' is set
|
115
|
+
fail ArgumentError, "Missing the required parameter 'entity' when calling TransactionCommentService.create" if entity.nil?
|
116
|
+
# resource path
|
117
|
+
local_var_path = "/transaction-comment/create".sub('{format}','json')
|
118
|
+
|
119
|
+
# query parameters
|
120
|
+
query_params = {}
|
121
|
+
query_params[:'spaceId'] = space_id
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = {}
|
125
|
+
|
126
|
+
# HTTP header 'Accept' (if needed)
|
127
|
+
local_header_accept = ['application/json;charset=utf-8']
|
128
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
129
|
+
|
130
|
+
# HTTP header 'Content-Type'
|
131
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
132
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
133
|
+
|
134
|
+
# form parameters
|
135
|
+
form_params = {}
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
post_body = @api_client.object_to_http_body(entity)
|
139
|
+
auth_names = []
|
140
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => 'TransactionComment')
|
147
|
+
if @api_client.config.debugging
|
148
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
|
+
end
|
150
|
+
return data, status_code, headers
|
151
|
+
end
|
152
|
+
|
153
|
+
# Delete
|
154
|
+
# Deletes the comment with the given id.
|
155
|
+
# @param space_id
|
156
|
+
# @param id
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [nil]
|
159
|
+
def delete(space_id, id, opts = {})
|
160
|
+
delete_with_http_info(space_id, id, opts)
|
161
|
+
return nil
|
162
|
+
end
|
163
|
+
|
164
|
+
# Delete
|
165
|
+
# Deletes the comment with the given id.
|
166
|
+
# @param space_id
|
167
|
+
# @param id
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
170
|
+
def delete_with_http_info(space_id, id, opts = {})
|
171
|
+
if @api_client.config.debugging
|
172
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.delete ..."
|
173
|
+
end
|
174
|
+
# verify the required parameter 'space_id' is set
|
175
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.delete" if space_id.nil?
|
176
|
+
# verify the required parameter 'id' is set
|
177
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCommentService.delete" if id.nil?
|
178
|
+
# resource path
|
179
|
+
local_var_path = "/transaction-comment/delete".sub('{format}','json')
|
180
|
+
|
181
|
+
# query parameters
|
182
|
+
query_params = {}
|
183
|
+
query_params[:'spaceId'] = space_id
|
184
|
+
query_params[:'id'] = id
|
185
|
+
|
186
|
+
# header parameters
|
187
|
+
header_params = {}
|
188
|
+
|
189
|
+
# HTTP header 'Accept' (if needed)
|
190
|
+
local_header_accept = ['application/json;charset=utf-8']
|
191
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
192
|
+
|
193
|
+
# HTTP header 'Content-Type'
|
194
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
195
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
196
|
+
|
197
|
+
# form parameters
|
198
|
+
form_params = {}
|
199
|
+
|
200
|
+
# http body (model)
|
201
|
+
post_body = nil
|
202
|
+
auth_names = []
|
203
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
204
|
+
:header_params => header_params,
|
205
|
+
:query_params => query_params,
|
206
|
+
:form_params => form_params,
|
207
|
+
:body => post_body,
|
208
|
+
:auth_names => auth_names)
|
209
|
+
if @api_client.config.debugging
|
210
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
|
+
end
|
212
|
+
return data, status_code, headers
|
213
|
+
end
|
214
|
+
|
215
|
+
# Pin
|
216
|
+
# Pins the comment to the top.
|
217
|
+
# @param space_id
|
218
|
+
# @param id
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [nil]
|
221
|
+
def pin(space_id, id, opts = {})
|
222
|
+
pin_with_http_info(space_id, id, opts)
|
223
|
+
return nil
|
224
|
+
end
|
225
|
+
|
226
|
+
# Pin
|
227
|
+
# Pins the comment to the top.
|
228
|
+
# @param space_id
|
229
|
+
# @param id
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
232
|
+
def pin_with_http_info(space_id, id, opts = {})
|
233
|
+
if @api_client.config.debugging
|
234
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.pin ..."
|
235
|
+
end
|
236
|
+
# verify the required parameter 'space_id' is set
|
237
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.pin" if space_id.nil?
|
238
|
+
# verify the required parameter 'id' is set
|
239
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCommentService.pin" if id.nil?
|
240
|
+
# resource path
|
241
|
+
local_var_path = "/transaction-comment/pin".sub('{format}','json')
|
242
|
+
|
243
|
+
# query parameters
|
244
|
+
query_params = {}
|
245
|
+
query_params[:'spaceId'] = space_id
|
246
|
+
query_params[:'id'] = id
|
247
|
+
|
248
|
+
# header parameters
|
249
|
+
header_params = {}
|
250
|
+
|
251
|
+
# HTTP header 'Accept' (if needed)
|
252
|
+
local_header_accept = ['application/json;charset=utf-8']
|
253
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
254
|
+
|
255
|
+
# HTTP header 'Content-Type'
|
256
|
+
local_header_content_type = ['*/*']
|
257
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
258
|
+
|
259
|
+
# form parameters
|
260
|
+
form_params = {}
|
261
|
+
|
262
|
+
# http body (model)
|
263
|
+
post_body = nil
|
264
|
+
auth_names = []
|
265
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
266
|
+
:header_params => header_params,
|
267
|
+
:query_params => query_params,
|
268
|
+
:form_params => form_params,
|
269
|
+
:body => post_body,
|
270
|
+
:auth_names => auth_names)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#pin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
|
277
|
+
# Read
|
278
|
+
# Reads the comment with the given 'id' and returns it.
|
279
|
+
# @param space_id
|
280
|
+
# @param id
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @return [TransactionComment]
|
283
|
+
def read(space_id, id, opts = {})
|
284
|
+
data, _status_code, _headers = read_with_http_info(space_id, id, opts)
|
285
|
+
return data
|
286
|
+
end
|
287
|
+
|
288
|
+
# Read
|
289
|
+
# Reads the comment with the given 'id' and returns it.
|
290
|
+
# @param space_id
|
291
|
+
# @param id
|
292
|
+
# @param [Hash] opts the optional parameters
|
293
|
+
# @return [Array<(TransactionComment, Fixnum, Hash)>] TransactionComment data, response status code and response headers
|
294
|
+
def read_with_http_info(space_id, id, opts = {})
|
295
|
+
if @api_client.config.debugging
|
296
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.read ..."
|
297
|
+
end
|
298
|
+
# verify the required parameter 'space_id' is set
|
299
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.read" if space_id.nil?
|
300
|
+
# verify the required parameter 'id' is set
|
301
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCommentService.read" if id.nil?
|
302
|
+
# resource path
|
303
|
+
local_var_path = "/transaction-comment/read".sub('{format}','json')
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = {}
|
307
|
+
query_params[:'spaceId'] = space_id
|
308
|
+
query_params[:'id'] = id
|
309
|
+
|
310
|
+
# header parameters
|
311
|
+
header_params = {}
|
312
|
+
|
313
|
+
# HTTP header 'Accept' (if needed)
|
314
|
+
local_header_accept = ['application/json;charset=utf-8']
|
315
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
316
|
+
|
317
|
+
# HTTP header 'Content-Type'
|
318
|
+
local_header_content_type = ['*/*']
|
319
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
320
|
+
|
321
|
+
# form parameters
|
322
|
+
form_params = {}
|
323
|
+
|
324
|
+
# http body (model)
|
325
|
+
post_body = nil
|
326
|
+
auth_names = []
|
327
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
328
|
+
:header_params => header_params,
|
329
|
+
:query_params => query_params,
|
330
|
+
:form_params => form_params,
|
331
|
+
:body => post_body,
|
332
|
+
:auth_names => auth_names,
|
333
|
+
:return_type => 'TransactionComment')
|
334
|
+
if @api_client.config.debugging
|
335
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
|
+
end
|
337
|
+
return data, status_code, headers
|
338
|
+
end
|
339
|
+
|
340
|
+
# Unpin
|
341
|
+
# Unpins the comment from the top.
|
342
|
+
# @param space_id
|
343
|
+
# @param id
|
344
|
+
# @param [Hash] opts the optional parameters
|
345
|
+
# @return [nil]
|
346
|
+
def unpin(space_id, id, opts = {})
|
347
|
+
unpin_with_http_info(space_id, id, opts)
|
348
|
+
return nil
|
349
|
+
end
|
350
|
+
|
351
|
+
# Unpin
|
352
|
+
# Unpins the comment from the top.
|
353
|
+
# @param space_id
|
354
|
+
# @param id
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
357
|
+
def unpin_with_http_info(space_id, id, opts = {})
|
358
|
+
if @api_client.config.debugging
|
359
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.unpin ..."
|
360
|
+
end
|
361
|
+
# verify the required parameter 'space_id' is set
|
362
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.unpin" if space_id.nil?
|
363
|
+
# verify the required parameter 'id' is set
|
364
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCommentService.unpin" if id.nil?
|
365
|
+
# resource path
|
366
|
+
local_var_path = "/transaction-comment/unpin".sub('{format}','json')
|
367
|
+
|
368
|
+
# query parameters
|
369
|
+
query_params = {}
|
370
|
+
query_params[:'spaceId'] = space_id
|
371
|
+
query_params[:'id'] = id
|
372
|
+
|
373
|
+
# header parameters
|
374
|
+
header_params = {}
|
375
|
+
|
376
|
+
# HTTP header 'Accept' (if needed)
|
377
|
+
local_header_accept = ['application/json;charset=utf-8']
|
378
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
379
|
+
|
380
|
+
# HTTP header 'Content-Type'
|
381
|
+
local_header_content_type = ['*/*']
|
382
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
383
|
+
|
384
|
+
# form parameters
|
385
|
+
form_params = {}
|
386
|
+
|
387
|
+
# http body (model)
|
388
|
+
post_body = nil
|
389
|
+
auth_names = []
|
390
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
391
|
+
:header_params => header_params,
|
392
|
+
:query_params => query_params,
|
393
|
+
:form_params => form_params,
|
394
|
+
:body => post_body,
|
395
|
+
:auth_names => auth_names)
|
396
|
+
if @api_client.config.debugging
|
397
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#unpin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
398
|
+
end
|
399
|
+
return data, status_code, headers
|
400
|
+
end
|
401
|
+
|
402
|
+
# Update
|
403
|
+
# This updates the comment with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the comment.
|
404
|
+
# @param space_id
|
405
|
+
# @param entity
|
406
|
+
# @param [Hash] opts the optional parameters
|
407
|
+
# @return [TransactionComment]
|
408
|
+
def update(space_id, entity, opts = {})
|
409
|
+
data, _status_code, _headers = update_with_http_info(space_id, entity, opts)
|
410
|
+
return data
|
411
|
+
end
|
412
|
+
|
413
|
+
# Update
|
414
|
+
# This updates the comment with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the comment.
|
415
|
+
# @param space_id
|
416
|
+
# @param entity
|
417
|
+
# @param [Hash] opts the optional parameters
|
418
|
+
# @return [Array<(TransactionComment, Fixnum, Hash)>] TransactionComment data, response status code and response headers
|
419
|
+
def update_with_http_info(space_id, entity, opts = {})
|
420
|
+
if @api_client.config.debugging
|
421
|
+
@api_client.config.logger.debug "Calling API: TransactionCommentService.update ..."
|
422
|
+
end
|
423
|
+
# verify the required parameter 'space_id' is set
|
424
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCommentService.update" if space_id.nil?
|
425
|
+
# verify the required parameter 'entity' is set
|
426
|
+
fail ArgumentError, "Missing the required parameter 'entity' when calling TransactionCommentService.update" if entity.nil?
|
427
|
+
# resource path
|
428
|
+
local_var_path = "/transaction-comment/update".sub('{format}','json')
|
429
|
+
|
430
|
+
# query parameters
|
431
|
+
query_params = {}
|
432
|
+
query_params[:'spaceId'] = space_id
|
433
|
+
|
434
|
+
# header parameters
|
435
|
+
header_params = {}
|
436
|
+
|
437
|
+
# HTTP header 'Accept' (if needed)
|
438
|
+
local_header_accept = ['application/json;charset=utf-8']
|
439
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
440
|
+
|
441
|
+
# HTTP header 'Content-Type'
|
442
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
443
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
444
|
+
|
445
|
+
# form parameters
|
446
|
+
form_params = {}
|
447
|
+
|
448
|
+
# http body (model)
|
449
|
+
post_body = @api_client.object_to_http_body(entity)
|
450
|
+
auth_names = []
|
451
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
452
|
+
:header_params => header_params,
|
453
|
+
:query_params => query_params,
|
454
|
+
:form_params => form_params,
|
455
|
+
:body => post_body,
|
456
|
+
:auth_names => auth_names,
|
457
|
+
:return_type => 'TransactionComment')
|
458
|
+
if @api_client.config.debugging
|
459
|
+
@api_client.config.logger.debug "API called: TransactionCommentService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
460
|
+
end
|
461
|
+
return data, status_code, headers
|
462
|
+
end
|
463
|
+
end
|
464
|
+
end
|