Class: Stripe::Treasury::InboundTransfer::TestHelpers
- Inherits:
 - 
      APIResourceTestHelpers
      
        
- Object
 - APIResourceTestHelpers
 - Stripe::Treasury::InboundTransfer::TestHelpers
 
 
- Defined in:
 - lib/stripe/resources/treasury/inbound_transfer.rb
 
Constant Summary collapse
- RESOURCE_CLASS =
 InboundTransfer
Class Method Summary collapse
- 
  
    
      .fail(id, params = {}, opts = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Transitions a test mode created InboundTransfer to the failed status.
 - .resource_class ⇒ Object
 - 
  
    
      .return_inbound_transfer(id, params = {}, opts = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit.
 - 
  
    
      .succeed(id, params = {}, opts = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Transitions a test mode created InboundTransfer to the succeeded status.
 
Instance Method Summary collapse
- 
  
    
      #fail(params = {}, opts = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Transitions a test mode created InboundTransfer to the failed status.
 - 
  
    
      #return_inbound_transfer(params = {}, opts = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit.
 - 
  
    
      #succeed(params = {}, opts = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Transitions a test mode created InboundTransfer to the succeeded status.
 
Methods inherited from APIResourceTestHelpers
custom_method, #initialize, resource_url, #resource_url
Methods included from APIOperations::Request
Constructor Details
This class inherits a constructor from Stripe::APIResourceTestHelpers
Class Method Details
.fail(id, params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
      67 68 69 70 71 72 73 74  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 67 def self.fail(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(id) }), params: params, opts: opts ) end  | 
  
.resource_class ⇒ Object
      62 63 64  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 62 def self.resource_class "InboundTransfer" end  | 
  
.return_inbound_transfer(id, params = {}, opts = {}) ⇒ Object
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
      87 88 89 90 91 92 93 94  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 87 def self.return_inbound_transfer(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(id) }), params: params, opts: opts ) end  | 
  
.succeed(id, params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
      107 108 109 110 111 112 113 114  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 107 def self.succeed(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(id) }), params: params, opts: opts ) end  | 
  
Instance Method Details
#fail(params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
      77 78 79 80 81 82 83 84  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 77 def fail(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end  | 
  
#return_inbound_transfer(params = {}, opts = {}) ⇒ Object
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
      97 98 99 100 101 102 103 104  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 97 def return_inbound_transfer(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end  | 
  
#succeed(params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
      117 118 119 120 121 122 123 124  | 
    
      # File 'lib/stripe/resources/treasury/inbound_transfer.rb', line 117 def succeed(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end  |