Sha256: 891d1f3805f7b1db518b52a0fd28770e4592983a3d118847887026caf271fee1
Contents?: true
Size: 2 KB
Versions: 20
Compression:
Stored size: 2 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module TestHelpers module Treasury class OutboundPaymentService < StripeService # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state. def fail(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state. def post(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state. def return_outbound_payment(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end # Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states. def update(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems