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, params = {}, opts = {}) ⇒ Increase::Models::CardDispute
After a Card Dispute is created in production, the dispute will be reviewed.
-
#initialize(client:) ⇒ CardDisputes
constructor
A new instance of CardDisputes.
Constructor Details
#initialize(client:) ⇒ CardDisputes
Returns a new instance of CardDisputes.
7 8 9 |
# File 'lib/increase/resources/simulations/card_disputes.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#action(card_dispute_id, params = {}, opts = {}) ⇒ Increase::Models::CardDispute
After a Card Dispute is created in production, the dispute
will be reviewed. Since no review happens in sandbox, this endpoint simulates
moving a Card Dispute into a rejected or accepted state. A Card Dispute can only
be actioned one time and must have a status of pending_reviewing
.
25 26 27 28 29 30 31 32 |
# File 'lib/increase/resources/simulations/card_disputes.rb', line 25 def action(card_dispute_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/card_disputes/#{card_dispute_id}/action" req[:body] = params req[:model] = Increase::Models::CardDispute @client.request(req, opts) end |