Class: Stripe::TestHelpers::Issuing::DisputeService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::TestHelpers::Issuing::DisputeService
- Defined in:
- lib/stripe/services/test_helpers/issuing/dispute_service.rb
Instance Method Summary collapse
-
#close(dispute, params = {}, opts = {}) ⇒ Object
Test helper: closes a test-mode Issuing dispute as won or lost.
-
#simulate_network_lifecycle_dispute_response(dispute, params = {}, opts = {}) ⇒ Object
Test helper: populates network_lifecycle.dispute_response on a test-mode Visa Issuing Dispute using placeholder file tokens.
-
#simulate_network_lifecycle_pre_arbitration_response(dispute, params = {}, opts = {}) ⇒ Object
Test helper: populates network_lifecycle.pre_arbitration_response on a test-mode Visa Issuing Dispute using placeholder file tokens.
-
#simulate_network_lifecycle_pre_arbitration_submission(dispute, params = {}, opts = {}) ⇒ Object
Test helper: populates network_lifecycle.pre_arbitration_submission on a test-mode Visa Issuing Dispute using placeholder file tokens.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#close(dispute, params = {}, opts = {}) ⇒ Object
Test helper: closes a test-mode Issuing dispute as won or lost.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/test_helpers/issuing/dispute_service.rb', line 9 def close(dispute, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/disputes/%<dispute>s/close", { dispute: CGI.escape(dispute) }), params: params, opts: opts, base_address: :api ) end |
#simulate_network_lifecycle_dispute_response(dispute, params = {}, opts = {}) ⇒ Object
Test helper: populates network_lifecycle.dispute_response on a test-mode Visa Issuing Dispute using placeholder file tokens. Only supported for Visa disputes.
20 21 22 23 24 25 26 27 28 |
# File 'lib/stripe/services/test_helpers/issuing/dispute_service.rb', line 20 def simulate_network_lifecycle_dispute_response(dispute, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/disputes/%<dispute>s/simulate_network_lifecycle_dispute_response", { dispute: CGI.escape(dispute) }), params: params, opts: opts, base_address: :api ) end |
#simulate_network_lifecycle_pre_arbitration_response(dispute, params = {}, opts = {}) ⇒ Object
Test helper: populates network_lifecycle.pre_arbitration_response on a test-mode Visa Issuing Dispute using placeholder file tokens. Only supported for Visa disputes in the collaboration flow.
31 32 33 34 35 36 37 38 39 |
# File 'lib/stripe/services/test_helpers/issuing/dispute_service.rb', line 31 def simulate_network_lifecycle_pre_arbitration_response(dispute, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/disputes/%<dispute>s/simulate_network_lifecycle_pre_arbitration_response", { dispute: CGI.escape(dispute) }), params: params, opts: opts, base_address: :api ) end |
#simulate_network_lifecycle_pre_arbitration_submission(dispute, params = {}, opts = {}) ⇒ Object
Test helper: populates network_lifecycle.pre_arbitration_submission on a test-mode Visa Issuing Dispute using placeholder file tokens. Only supported for Visa disputes.
42 43 44 45 46 47 48 49 50 |
# File 'lib/stripe/services/test_helpers/issuing/dispute_service.rb', line 42 def simulate_network_lifecycle_pre_arbitration_submission(dispute, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/issuing/disputes/%<dispute>s/simulate_network_lifecycle_pre_arbitration_submission", { dispute: CGI.escape(dispute) }), params: params, opts: opts, base_address: :api ) end |