Class: Pago::V2026_04::Models::OrganizationCapabilities
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ checkout_payments: "checkout_payments", subscription_renewals: "subscription_renewals", payouts: "payouts", refunds: "refunds", api_access: "api_access", dashboard_access: "dashboard_access" }.freeze
- REQUIRED_KEYS =
["checkout_payments", "subscription_renewals", "payouts", "refunds", "api_access", "dashboard_access"].freeze
Instance Attribute Summary collapse
-
#api_access ⇒ Boolean
readonly
Whether the organization can access the API.
-
#checkout_payments ⇒ Boolean
readonly
Whether the organization can accept new checkout payments.
-
#dashboard_access ⇒ Boolean
readonly
Whether the organization can access the dashboard.
-
#payouts ⇒ Boolean
readonly
Whether the organization can withdraw its balance.
-
#refunds ⇒ Boolean
readonly
Whether the organization can issue refunds.
-
#subscription_renewals ⇒ Boolean
readonly
Whether the organization can process subscription renewals.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(checkout_payments:, subscription_renewals:, payouts:, refunds:, api_access:, dashboard_access:) ⇒ OrganizationCapabilities
constructor
A new instance of OrganizationCapabilities.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(checkout_payments:, subscription_renewals:, payouts:, refunds:, api_access:, dashboard_access:) ⇒ OrganizationCapabilities
Returns a new instance of OrganizationCapabilities.
34303 34304 34305 34306 34307 34308 34309 34310 34311 34312 34313 34314 34315 34316 34317 34318 |
# File 'lib/pago/v2026_04/models.rb', line 34303 def initialize( checkout_payments:, subscription_renewals:, payouts:, refunds:, api_access:, dashboard_access: ) super() assign(:checkout_payments, checkout_payments) assign(:subscription_renewals, subscription_renewals) assign(:payouts, payouts) assign(:refunds, refunds) assign(:api_access, api_access) assign(:dashboard_access, dashboard_access) end |
Instance Attribute Details
#api_access ⇒ Boolean (readonly)
Whether the organization can access the API.
34297 34298 34299 |
# File 'lib/pago/v2026_04/models.rb', line 34297 def api_access @api_access end |
#checkout_payments ⇒ Boolean (readonly)
Whether the organization can accept new checkout payments.
34281 34282 34283 |
# File 'lib/pago/v2026_04/models.rb', line 34281 def checkout_payments @checkout_payments end |
#dashboard_access ⇒ Boolean (readonly)
Whether the organization can access the dashboard.
34301 34302 34303 |
# File 'lib/pago/v2026_04/models.rb', line 34301 def dashboard_access @dashboard_access end |
#payouts ⇒ Boolean (readonly)
Whether the organization can withdraw its balance.
34289 34290 34291 |
# File 'lib/pago/v2026_04/models.rb', line 34289 def payouts @payouts end |
#refunds ⇒ Boolean (readonly)
Whether the organization can issue refunds.
34293 34294 34295 |
# File 'lib/pago/v2026_04/models.rb', line 34293 def refunds @refunds end |
#subscription_renewals ⇒ Boolean (readonly)
Whether the organization can process subscription renewals.
34285 34286 34287 |
# File 'lib/pago/v2026_04/models.rb', line 34285 def subscription_renewals @subscription_renewals end |
Class Method Details
.from_json(data) ⇒ OrganizationCapabilities?
34322 34323 34324 34325 34326 34327 34328 34329 34330 34331 34332 34333 34334 34335 34336 34337 34338 |
# File 'lib/pago/v2026_04/models.rb', line 34322 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( checkout_payments: (data.key?("checkout_payments") ? data["checkout_payments"] : ::Pago::UNSET), subscription_renewals: (data.key?("subscription_renewals") ? data["subscription_renewals"] : ::Pago::UNSET), payouts: (data.key?("payouts") ? data["payouts"] : ::Pago::UNSET), refunds: (data.key?("refunds") ? data["refunds"] : ::Pago::UNSET), api_access: (data.key?("api_access") ? data["api_access"] : ::Pago::UNSET), dashboard_access: (data.key?("dashboard_access") ? data["dashboard_access"] : ::Pago::UNSET) ), data ) end |