Class: Increase::Resources::Simulations::CardDisputes
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::CardDisputes
- Defined in:
- lib/increase/resources/simulations/card_disputes.rb
Instance Method Summary collapse
-
#action(card_dispute_id, network: , visa: nil, request_options: {}) ⇒ Increase::Models::CardDispute
Some parameter documentations has been truncated, see Models::Simulations::CardDisputeActionParams for more details.
-
#initialize(client:) ⇒ CardDisputes
constructor
private
A new instance of CardDisputes.
Constructor Details
#initialize(client:) ⇒ CardDisputes
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CardDisputes.
42 43 44 |
# File 'lib/increase/resources/simulations/card_disputes.rb', line 42 def initialize(client:) @client = client end |
Instance Method Details
#action(card_dispute_id, network: , visa: nil, request_options: {}) ⇒ Increase::Models::CardDispute
Some parameter documentations has been truncated, see Models::Simulations::CardDisputeActionParams for more details.
After a [Card Dispute](#card-disputes) is created in production, the dispute will initially be in a ‘pending_user_submission_reviewing` state. Since no review or further action happens in sandbox, this endpoint simulates moving a Card Dispute through its various states.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/increase/resources/simulations/card_disputes.rb', line 28 def action(card_dispute_id, params) parsed, = Increase::Simulations::CardDisputeActionParams.dump_request(params) @client.request( method: :post, path: ["simulations/card_disputes/%1$s/action", card_dispute_id], body: parsed, model: Increase::CardDispute, options: ) end |