Class: Anthropic::Models::Beta::BetaBillingPolicy

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_billing_policy.rb,
sig/anthropic/models/beta/beta_billing_policy.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • bill_to: (Anthropic::Models::Beta::beta_bill_to)
  • type: (:billing_policy)


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.

Parameters:

  • (Anthropic::Models::Beta::beta_bill_to)

Returns:



20
# File 'lib/anthropic/models/beta/beta_billing_policy.rb', line 20

optional :bill_to, enum: -> { Anthropic::Beta::BetaBillTo }

#type ⇒ Symbol, :billing_policy

Parameters:

  • value (:billing_policy)

Returns:

  • (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 }

Returns:

  • ({ 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
}