Class: Anthropic::Models::Beta::BetaBillingPolicy
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaBillingPolicy
- Defined in:
- lib/anthropic/models/beta/beta_billing_policy.rb,
sig/anthropic/models/beta/beta_billing_policy.rbs
Instance Attribute Summary collapse
-
#bill_to ⇒ Symbol, ...
Who is billed.
- #type ⇒ Symbol, :billing_policy
Instance Method Summary collapse
-
#initialize ⇒ BetaBillingPolicy
constructor
A new instance of BetaBillingPolicy.
- #to_hash ⇒ { type: :billing_policy, bill_to: Anthropic::Models::Beta::beta_bill_to }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ BetaBillingPolicy
Returns a new instance of BetaBillingPolicy.
21 22 23 24 |
# File 'sig/anthropic/models/beta/beta_billing_policy.rbs', line 21
def initialize: (
?bill_to: Anthropic::Models::Beta::beta_bill_to,
?type: :billing_policy
) -> void
|
Instance Attribute Details
#bill_to ⇒ Symbol, ...
Who is billed. self, the default, bills your organization, as if
billing_policy were omitted. user_profile bills the customer behind the user
profile the request names; if that customer has not linked an Anthropic
organization to the profile, or has not allowed your organization to bill it,
the request is rejected rather than billed to you.
20 |
# File 'lib/anthropic/models/beta/beta_billing_policy.rb', line 20 optional :bill_to, enum: -> { Anthropic::Beta::BetaBillTo } |
#type ⇒ Symbol, :billing_policy
10 |
# File 'lib/anthropic/models/beta/beta_billing_policy.rb', line 10 required :type, const: :billing_policy |
Instance Method Details
#to_hash ⇒ { type: :billing_policy, bill_to: Anthropic::Models::Beta::beta_bill_to }
26 27 28 29 |
# File 'sig/anthropic/models/beta/beta_billing_policy.rbs', line 26
def to_hash: -> {
type: :billing_policy,
bill_to: Anthropic::Models::Beta::beta_bill_to
}
|