Class: ModernTreasury::Resources::ExpectedPayments
- Inherits:
-
Object
- Object
- ModernTreasury::Resources::ExpectedPayments
- Defined in:
- lib/modern_treasury/resources/expected_payments.rb
Instance Method Summary collapse
-
#create(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
Some parameter documentations has been truncated, see Models::ExpectedPaymentCreateParams for more details.
-
#delete(id, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
delete expected payment.
-
#initialize(client:) ⇒ ExpectedPayments
constructor
private
A new instance of ExpectedPayments.
-
#list(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, updated_at_lower_bound: nil, updated_at_upper_bound: nil, request_options: {}) ⇒ ModernTreasury::Internal::Page<ModernTreasury::Models::ExpectedPayment>
Some parameter documentations has been truncated, see Models::ExpectedPaymentListParams for more details.
-
#retrieve(id, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
get expected payment.
-
#update(id, amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
Some parameter documentations has been truncated, see Models::ExpectedPaymentUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ ExpectedPayments
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 ExpectedPayments.
223 224 225 |
# File 'lib/modern_treasury/resources/expected_payments.rb', line 223 def initialize(client:) @client = client end |
Instance Method Details
#create(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
Some parameter documentations has been truncated, see Models::ExpectedPaymentCreateParams for more details.
create expected payment
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/modern_treasury/resources/expected_payments.rb', line 58 def create(params = {}) parsed, = ModernTreasury::ExpectedPaymentCreateParams.dump_request(params) @client.request( method: :post, path: "api/expected_payments", body: parsed, model: ModernTreasury::ExpectedPayment, options: ) end |
#delete(id, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
delete expected payment
211 212 213 214 215 216 217 218 |
# File 'lib/modern_treasury/resources/expected_payments.rb', line 211 def delete(id, params = {}) @client.request( method: :delete, path: ["api/expected_payments/%1$s", id], model: ModernTreasury::ExpectedPayment, options: params[:request_options] ) end |
#list(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, updated_at_lower_bound: nil, updated_at_upper_bound: nil, request_options: {}) ⇒ ModernTreasury::Internal::Page<ModernTreasury::Models::ExpectedPayment>
Some parameter documentations has been truncated, see Models::ExpectedPaymentListParams for more details.
list expected_payments
188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/modern_treasury/resources/expected_payments.rb', line 188 def list(params = {}) parsed, = ModernTreasury::ExpectedPaymentListParams.dump_request(params) @client.request( method: :get, path: "api/expected_payments", query: parsed, page: ModernTreasury::Internal::Page, model: ModernTreasury::ExpectedPayment, options: ) end |
#retrieve(id, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
get expected payment
80 81 82 83 84 85 86 87 |
# File 'lib/modern_treasury/resources/expected_payments.rb', line 80 def retrieve(id, params = {}) @client.request( method: :get, path: ["api/expected_payments/%1$s", id], model: ModernTreasury::ExpectedPayment, options: params[:request_options] ) end |
#update(id, amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, external_id: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil, request_options: {}) ⇒ ModernTreasury::Models::ExpectedPayment
Some parameter documentations has been truncated, see Models::ExpectedPaymentUpdateParams for more details.
update expected payment
139 140 141 142 143 144 145 146 147 148 |
# File 'lib/modern_treasury/resources/expected_payments.rb', line 139 def update(id, params = {}) parsed, = ModernTreasury::ExpectedPaymentUpdateParams.dump_request(params) @client.request( method: :patch, path: ["api/expected_payments/%1$s", id], body: parsed, model: ModernTreasury::ExpectedPayment, options: ) end |