Documentation
¶
Index ¶
- type CreateCustomerInput
- type Customer
- type CustomerAppError
- type CustomerID
- type CustomerMutate
- type CustomerUsageAttribution
- type DeleteCustomerInput
- type GetCustomerInput
- type ListCustomersInput
- type NotFoundError
- type SubjectKeyConflictError
- type UpdateAfterDeleteError
- type UpdateCustomerInput
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCustomerInput ¶
type CreateCustomerInput struct {
Namespace string
CustomerMutate
}
CreateCustomerInput represents the input for the CreateCustomer method
func (CreateCustomerInput) Validate ¶
func (i CreateCustomerInput) Validate() error
type Customer ¶
type Customer struct {
models.ManagedResource
Timezone *timezone.Timezone `json:"timezone,omitempty"`
UsageAttribution CustomerUsageAttribution `json:"usageAttribution"`
PrimaryEmail *string `json:"primaryEmail,omitempty"`
Currency *currencyx.Code `json:"currency,omitempty"`
BillingAddress *models.Address `json:"billingAddress,omitempty"`
CurrentSubscriptionID *string `json:"currentSubscriptionId,omitempty"`
}
Customer represents a customer
func (Customer) GetID ¶
func (c Customer) GetID() CustomerID
type CustomerAppError ¶
type CustomerAppError struct {
AppID appentitybase.AppID
AppType appentitybase.AppType
Err error
}
func (CustomerAppError) Error ¶
func (e CustomerAppError) Error() string
type CustomerID ¶
type CustomerID models.NamespacedID
func (CustomerID) Validate ¶
func (i CustomerID) Validate() error
type CustomerMutate ¶
type CustomerMutate struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Timezone *timezone.Timezone `json:"timezone"`
UsageAttribution CustomerUsageAttribution `json:"usageAttribution"`
PrimaryEmail *string `json:"primaryEmail"`
Currency *currencyx.Code `json:"currency"`
BillingAddress *models.Address `json:"billingAddress"`
}
func (CustomerMutate) Validate ¶
func (c CustomerMutate) Validate() error
type CustomerUsageAttribution ¶
type CustomerUsageAttribution struct {
SubjectKeys []string
}
CustomerUsageAttribution represents the usage attribution for a customer
type DeleteCustomerInput ¶
type DeleteCustomerInput CustomerID
DeleteCustomerInput represents the input for the DeleteCustomer method
func (DeleteCustomerInput) Validate ¶
func (i DeleteCustomerInput) Validate() error
type GetCustomerInput ¶
type GetCustomerInput CustomerID
GetCustomerInput represents the input for the GetCustomer method
func (GetCustomerInput) Validate ¶
func (i GetCustomerInput) Validate() error
type ListCustomersInput ¶
type ListCustomersInput struct {
Namespace string
pagination.Page
IncludeDeleted bool
// Order
OrderBy api.CustomerOrderBy
Order sortx.Order
// Filters
Name *string
PrimaryEmail *string
Subject *string
}
ListCustomersInput represents the input for the ListCustomers method
type NotFoundError ¶
type NotFoundError struct {
CustomerID
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type SubjectKeyConflictError ¶
type SubjectKeyConflictError struct {
Namespace string `json:"namespace"`
SubjectKeys []string `json:"subjectKeys"`
}
SubjectKeyConflictError represents an error when a subject key is already associated with a customer
func (SubjectKeyConflictError) Error ¶
func (e SubjectKeyConflictError) Error() string
type UpdateAfterDeleteError ¶
type UpdateAfterDeleteError genericError
func (UpdateAfterDeleteError) Error ¶
func (e UpdateAfterDeleteError) Error() string
func (UpdateAfterDeleteError) Unwrap ¶
func (e UpdateAfterDeleteError) Unwrap() error
type UpdateCustomerInput ¶
type UpdateCustomerInput struct {
CustomerID CustomerID
CustomerMutate
}
UpdateCustomerInput represents the input for the UpdateCustomer method
func (UpdateCustomerInput) Validate ¶
func (i UpdateCustomerInput) Validate() error
type ValidationError ¶
type ValidationError genericError
func (ValidationError) Error ¶
func (e ValidationError) Error() string
func (ValidationError) Unwrap ¶
func (e ValidationError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.