Module: Justifi::Dispute
- Defined in:
- lib/justifi/dispute.rb
Class Method Summary collapse
- .get(dispute_id:, headers: {}) ⇒ Object
- .list(params: {}, headers: {}, seller_account_id: nil, sub_account_id: nil) ⇒ Object
- .update(dispute_id:, params: {}, headers: {}, idempotency_key: nil) ⇒ Object
Class Method Details
.get(dispute_id:, headers: {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/justifi/dispute.rb', line 13 def get(dispute_id:, headers: {}) JustifiOperations.execute_get_request("/v1/disputes/#{dispute_id}", {}, headers) end |
.list(params: {}, headers: {}, seller_account_id: nil, sub_account_id: nil) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/justifi/dispute.rb', line 6 def list(params: {}, headers: {}, seller_account_id: nil, sub_account_id: nil) Justifi.seller_account_deprecation_warning if seller_account_id headers[:sub_account] = sub_account_id || seller_account_id if sub_account_id || seller_account_id JustifiOperations.execute_get_request("/v1/disputes", params, headers) end |
.update(dispute_id:, params: {}, headers: {}, idempotency_key: nil) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/justifi/dispute.rb', line 19 def update(dispute_id:, params: {}, headers: {}, idempotency_key: nil) JustifiOperations.idempotently_request("/v1/disputes/#{dispute_id}", method: :patch, params: params, headers: {}, idempotency_key: idempotency_key) end |