Class: Increase::Resources::CardDisputes
- Inherits:
-
Object
- Object
- Increase::Resources::CardDisputes
- Defined in:
- lib/increase/resources/card_disputes.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::CardDispute
Create a Card Dispute.
-
#initialize(client:) ⇒ CardDisputes
constructor
A new instance of CardDisputes.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CardDispute>
List Card Disputes.
-
#retrieve(card_dispute_id, opts = {}) ⇒ Increase::Models::CardDispute
Retrieve a Card Dispute.
Constructor Details
#initialize(client:) ⇒ CardDisputes
Returns a new instance of CardDisputes.
6 7 8 |
# File 'lib/increase/resources/card_disputes.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::CardDispute
Create a Card Dispute
20 21 22 23 24 25 26 27 |
# File 'lib/increase/resources/card_disputes.rb', line 20 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/card_disputes" req[:body] = params req[:model] = Increase::Models::CardDispute @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CardDispute>
List Card Disputes
59 60 61 62 63 64 65 66 67 |
# File 'lib/increase/resources/card_disputes.rb', line 59 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/card_disputes" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::CardDispute @client.request(req, opts) end |
#retrieve(card_dispute_id, opts = {}) ⇒ Increase::Models::CardDispute
Retrieve a Card Dispute
35 36 37 38 39 40 41 |
# File 'lib/increase/resources/card_disputes.rb', line 35 def retrieve(card_dispute_id, opts = {}) req = {} req[:method] = :get req[:path] = "/card_disputes/#{card_dispute_id}" req[:model] = Increase::Models::CardDispute @client.request(req, opts) end |