diff --git a/lib/checkout_sdk/disputes/disputes_client.rb b/lib/checkout_sdk/disputes/disputes_client.rb index 09e0c99..96cdcfd 100644 --- a/lib/checkout_sdk/disputes/disputes_client.rb +++ b/lib/checkout_sdk/disputes/disputes_client.rb @@ -7,6 +7,7 @@ class DisputesClient < Client FILES = 'files' ACCEPT = 'accept' EVIDENCE = 'evidence' + SUBMITTED = 'submitted' SCHEME_FILES = 'schemefiles' private_constant :DISPUTES, :FILES, :ACCEPT, :EVIDENCE, :SCHEME_FILES @@ -47,6 +48,11 @@ def submit_evidence(dispute_id) api_client.invoke_post(build_path(DISPUTES, dispute_id, EVIDENCE), sdk_authorization) end + # @param [String] dispute_id + def get_compiled_submitted_evidence(dispute_id) + api_client.invoke_get(build_path(DISPUTES, dispute_id, EVIDENCE, SUBMITTED), sdk_authorization) + end + # @param [String] dispute_id def get_dispute_scheme_files(dispute_id) api_client.invoke_get(build_path(DISPUTES, dispute_id, SCHEME_FILES), sdk_authorization) diff --git a/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb b/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb index ff19347..4c62674 100644 --- a/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb +++ b/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb @@ -28,6 +28,8 @@ module Payments # @return [ProcessingSettings] # @!attribute allow_payment_methods # @return [Array(CheckoutSdk::Common::PaymentSourceType)] + # @!attribute disabled_payment_methods + # @return [Array(CheckoutSdk::Common::PaymentSourceType)] # @!attribute products # @return [Array(CheckoutSdk::Common::Product)] # @!attribute risk @@ -66,6 +68,7 @@ class HostedPaymentsSession :recipient, :processing, :allow_payment_methods, + :disabled_payment_methods, :products, :risk, :success_url, diff --git a/spec/checkout_sdk/disputes/disputes_integration_spec.rb b/spec/checkout_sdk/disputes/disputes_integration_spec.rb index 27934cd..bd0dfdf 100644 --- a/spec/checkout_sdk/disputes/disputes_integration_spec.rb +++ b/spec/checkout_sdk/disputes/disputes_integration_spec.rb @@ -123,6 +123,13 @@ expect(response.http_metadata.status_code).to eq 204 end + it 'should compiled submitted evidence successfully' do + response = default_sdk.disputes.get_compiled_submitted_evidence(@dispute.id, request) + + expect(response).not_to be nil + expect(response).file_id.not_to be nil + end + it 'should have new values for updated fields' do response = default_sdk.disputes.get_evidence(@dispute.id)