Class: Nombaone::Resources::Organization
- Inherits:
-
BaseResource
- Object
- BaseResource
- Nombaone::Resources::Organization
- Defined in:
- lib/nombaone/resources/organization.rb,
sig/nombaone/resources.rbs
Overview
Organization settings — configuration, not a billing object.
Instance Method Summary collapse
-
#billing ⇒ OrganizationBilling
Billing + dunning policy.
-
#retrieve(request_options: {}) ⇒ NombaObject
Read org-level settings (limits, settlement mode, branding, statuses).
-
#update(monthly_request_quota: OMIT, settlement_mode: OMIT, branding: OMIT, request_options: {}) ⇒ NombaObject
Update tenant-editable settings.
Methods inherited from BaseResource
#encode, #initialize, #request, #request_page
Constructor Details
This class inherits a constructor from Nombaone::Resources::BaseResource
Instance Method Details
#billing ⇒ OrganizationBilling
Billing + dunning policy.
60 61 62 |
# File 'lib/nombaone/resources/organization.rb', line 60 def billing @billing ||= OrganizationBilling.new(@client) end |
#retrieve(request_options: {}) ⇒ NombaObject
Read org-level settings (limits, settlement mode, branding, statuses).
68 69 70 |
# File 'lib/nombaone/resources/organization.rb', line 68 def retrieve(request_options: {}) request(:get, "/organization", options: ) end |
#update(monthly_request_quota: OMIT, settlement_mode: OMIT, branding: OMIT, request_options: {}) ⇒ NombaObject
Update tenant-editable settings. At least one field is required.
79 80 81 82 83 84 85 86 87 88 |
# File 'lib/nombaone/resources/organization.rb', line 79 def update(monthly_request_quota: OMIT, settlement_mode: OMIT, branding: OMIT, request_options: {}) request(:put, "/organization", body: { monthly_request_quota: monthly_request_quota, settlement_mode: settlement_mode, branding: branding, }, options: ) end |