Class BetaBillingPolicy
-
- All Implemented Interfaces:
public final class BetaBillingPolicyDeclares which organization is billed for the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaBillingPolicy.BuilderA builder for BetaBillingPolicy.
-
Method Summary
Modifier and Type Method Description final Optional<BetaBillTo>billTo()Who is billed. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("billing_policy")final JsonField<BetaBillTo>_billTo()Returns the raw JSON value of billTo. final Map<String, JsonValue>_additionalProperties()final BetaBillingPolicy.BuildertoBuilder()final BetaBillingPolicyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaBillingPolicy.Builderbuilder()Returns a mutable builder for constructing an instance of BetaBillingPolicy. -
-
Method Detail
-
billTo
final Optional<BetaBillTo> billTo()
Who is billed.
self, the default, bills your organization, as ifbilling_policywere omitted.user_profilebills 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.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("billing_policy")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_billTo
final JsonField<BetaBillTo> _billTo()
Returns the raw JSON value of billTo.
Unlike billTo, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaBillingPolicy.Builder toBuilder()
-
validate
final BetaBillingPolicy validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaBillingPolicy.Builder builder()
Returns a mutable builder for constructing an instance of BetaBillingPolicy.
-
-
-
-