Class: Nombaone::Resources::OrganizationBilling
- Inherits:
-
BaseResource
- Object
- BaseResource
- Nombaone::Resources::OrganizationBilling
- Defined in:
- lib/nombaone/resources/organization.rb,
sig/nombaone/resources.rbs
Overview
Billing + dunning policy under nombaone.organization.billing.
Instance Method Summary collapse
-
#retrieve(request_options: {}) ⇒ NombaObject
Read the org's billing + dunning policy.
-
#update(partial_collection_enabled: OMIT, proration_credit_policy: OMIT, dunning_max_attempts: OMIT, dunning_intervals_hours: OMIT, dunning_max_window_hours: OMIT, grace_period_hours: OMIT, payday_days: OMIT, payday_pull_forward_days: OMIT, payday_bias_enabled: OMIT, default_collection_method: OMIT, comms_enabled: OMIT, request_options: {}) ⇒ NombaObject
Update the billing policy.
Methods inherited from BaseResource
#encode, #initialize, #request, #request_page
Constructor Details
This class inherits a constructor from Nombaone::Resources::BaseResource
Instance Method Details
#retrieve(request_options: {}) ⇒ NombaObject
Read the org's billing + dunning policy.
11 12 13 |
# File 'lib/nombaone/resources/organization.rb', line 11 def retrieve(request_options: {}) request(:get, "/organization/billing", options: ) end |
#update(partial_collection_enabled: OMIT, proration_credit_policy: OMIT, dunning_max_attempts: OMIT, dunning_intervals_hours: OMIT, dunning_max_window_hours: OMIT, grace_period_hours: OMIT, payday_days: OMIT, payday_pull_forward_days: OMIT, payday_bias_enabled: OMIT, default_collection_method: OMIT, comms_enabled: OMIT, request_options: {}) ⇒ NombaObject
Update the billing policy. PUT semantics, but only supplied keys change.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/nombaone/resources/organization.rb', line 33 def update(partial_collection_enabled: OMIT, proration_credit_policy: OMIT, dunning_max_attempts: OMIT, dunning_intervals_hours: OMIT, dunning_max_window_hours: OMIT, grace_period_hours: OMIT, payday_days: OMIT, payday_pull_forward_days: OMIT, payday_bias_enabled: OMIT, default_collection_method: OMIT, comms_enabled: OMIT, request_options: {}) request(:put, "/organization/billing", body: { partial_collection_enabled: partial_collection_enabled, proration_credit_policy: proration_credit_policy, dunning_max_attempts: dunning_max_attempts, dunning_intervals_hours: dunning_intervals_hours, dunning_max_window_hours: dunning_max_window_hours, grace_period_hours: grace_period_hours, payday_days: payday_days, payday_pull_forward_days: payday_pull_forward_days, payday_bias_enabled: payday_bias_enabled, default_collection_method: default_collection_method, comms_enabled: comms_enabled, }, options: ) end |