Class: Increase::Resources::Simulations::AccountRevenuePayments
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::AccountRevenuePayments
- Defined in:
- lib/increase/resources/simulations/account_revenue_payments.rb,
sig/increase/resources/simulations/account_revenue_payments.rbs
Instance Method Summary collapse
-
#create(account_id:, amount:, accrued_on_account_id: nil, period_end: nil, period_start: nil, request_options: {}) ⇒ Increase::Models::Transaction
Simulates an account revenue payment to your account.
-
#initialize(client:) ⇒ AccountRevenuePayments
constructor
private
A new instance of AccountRevenuePayments.
Constructor Details
#initialize(client:) ⇒ AccountRevenuePayments
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 AccountRevenuePayments.
47 48 49 |
# File 'lib/increase/resources/simulations/account_revenue_payments.rb', line 47 def initialize(client:) @client = client end |
Instance Method Details
#create(account_id:, amount:, accrued_on_account_id: nil, period_end: nil, period_start: nil, request_options: {}) ⇒ Increase::Models::Transaction
Simulates an account revenue payment to your account. In production, this happens automatically on the first of each month.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/increase/resources/simulations/account_revenue_payments.rb', line 33 def create(params) parsed, = Increase::Simulations::AccountRevenuePaymentCreateParams.dump_request(params) @client.request( method: :post, path: "simulations/account_revenue_payments", body: parsed, model: Increase::Transaction, options: ) end |