billingaccount

package
v0.20240712.1173055 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/billingaccount Documentation

The billingaccount SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2024-04-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/billingaccount"

Client Initialization

client := billingaccount.NewBillingAccountClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BillingAccountClient.AddPaymentTerms

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")
var payload []PaymentTerm

if err := client.AddPaymentTermsThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingAccountClient.AddressValidate

ctx := context.TODO()

payload := billingaccount.AddressDetails{
	// ...
}


read, err := client.AddressValidate(ctx, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingAccountClient.CancelPaymentTerms

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")
var payload string

if err := client.CancelPaymentTermsThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingAccountClient.ConfirmTransition

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")

read, err := client.ConfirmTransition(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingAccountClient.Get

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingAccountClient.List

ctx := context.TODO()


// alternatively `client.List(ctx, billingaccount.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, billingaccount.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingAccountClient.ListInvoiceSectionsByCreateSubscriptionPermission

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")

// alternatively `client.ListInvoiceSectionsByCreateSubscriptionPermission(ctx, id, billingaccount.DefaultListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions())` can be used to do batched pagination
items, err := client.ListInvoiceSectionsByCreateSubscriptionPermissionComplete(ctx, id, billingaccount.DefaultListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingAccountClient.Update

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")

payload := billingaccount.BillingAccountPatch{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingAccountClient.ValidatePaymentTerms

ctx := context.TODO()
id := billingaccount.NewBillingAccountID("billingAccountValue")
var payload []PaymentTerm

read, err := client.ValidatePaymentTerms(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccountStatus

func PossibleValuesForAccountStatus() []string

func PossibleValuesForAccountSubType

func PossibleValuesForAccountSubType() []string

func PossibleValuesForAccountType

func PossibleValuesForAccountType() []string

func PossibleValuesForAddressValidationStatus

func PossibleValuesForAddressValidationStatus() []string

func PossibleValuesForAgreementType

func PossibleValuesForAgreementType() []string

func PossibleValuesForBillingAccountStatusReasonCode

func PossibleValuesForBillingAccountStatusReasonCode() []string

func PossibleValuesForBillingProfileStatus

func PossibleValuesForBillingProfileStatus() []string

func PossibleValuesForBillingProfileStatusReasonCode

func PossibleValuesForBillingProfileStatusReasonCode() []string

func PossibleValuesForBillingRelationshipType

func PossibleValuesForBillingRelationshipType() []string

func PossibleValuesForExtendedTermOption

func PossibleValuesForExtendedTermOption() []string

func PossibleValuesForMarkupStatus

func PossibleValuesForMarkupStatus() []string

func PossibleValuesForPaymentTermsEligibilityCode

func PossibleValuesForPaymentTermsEligibilityCode() []string

func PossibleValuesForPaymentTermsEligibilityStatus

func PossibleValuesForPaymentTermsEligibilityStatus() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSpendingLimit

func PossibleValuesForSpendingLimit() []string

func PossibleValuesForSupportLevel

func PossibleValuesForSupportLevel() []string

func PossibleValuesForTaxIdentifierStatus

func PossibleValuesForTaxIdentifierStatus() []string

func PossibleValuesForTaxIdentifierType

func PossibleValuesForTaxIdentifierType() []string

func ValidateBillingAccountID

func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID

Types

type AccountStatus

type AccountStatus string
const (
	AccountStatusActive      AccountStatus = "Active"
	AccountStatusDeleted     AccountStatus = "Deleted"
	AccountStatusDisabled    AccountStatus = "Disabled"
	AccountStatusExpired     AccountStatus = "Expired"
	AccountStatusExtended    AccountStatus = "Extended"
	AccountStatusNew         AccountStatus = "New"
	AccountStatusOther       AccountStatus = "Other"
	AccountStatusPending     AccountStatus = "Pending"
	AccountStatusTerminated  AccountStatus = "Terminated"
	AccountStatusTransferred AccountStatus = "Transferred"
	AccountStatusUnderReview AccountStatus = "UnderReview"
)

func (*AccountStatus) UnmarshalJSON

func (s *AccountStatus) UnmarshalJSON(bytes []byte) error

type AccountSubType

type AccountSubType string
const (
	AccountSubTypeEnterprise   AccountSubType = "Enterprise"
	AccountSubTypeIndividual   AccountSubType = "Individual"
	AccountSubTypeNone         AccountSubType = "None"
	AccountSubTypeOther        AccountSubType = "Other"
	AccountSubTypeProfessional AccountSubType = "Professional"
)

func (*AccountSubType) UnmarshalJSON

func (s *AccountSubType) UnmarshalJSON(bytes []byte) error

type AccountType

type AccountType string
const (
	AccountTypeBusiness       AccountType = "Business"
	AccountTypeClassicPartner AccountType = "ClassicPartner"
	AccountTypeEnterprise     AccountType = "Enterprise"
	AccountTypeIndividual     AccountType = "Individual"
	AccountTypeInternal       AccountType = "Internal"
	AccountTypeOther          AccountType = "Other"
	AccountTypePartner        AccountType = "Partner"
	AccountTypeReseller       AccountType = "Reseller"
	AccountTypeTenant         AccountType = "Tenant"
)

func (*AccountType) UnmarshalJSON

func (s *AccountType) UnmarshalJSON(bytes []byte) error

type AddPaymentTermsOperationResponse

type AddPaymentTermsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingAccount
}

type AddressDetails

type AddressDetails struct {
	AddressLine1   string  `json:"addressLine1"`
	AddressLine2   *string `json:"addressLine2,omitempty"`
	AddressLine3   *string `json:"addressLine3,omitempty"`
	City           *string `json:"city,omitempty"`
	CompanyName    *string `json:"companyName,omitempty"`
	Country        string  `json:"country"`
	District       *string `json:"district,omitempty"`
	Email          *string `json:"email,omitempty"`
	FirstName      *string `json:"firstName,omitempty"`
	IsValidAddress *bool   `json:"isValidAddress,omitempty"`
	LastName       *string `json:"lastName,omitempty"`
	MiddleName     *string `json:"middleName,omitempty"`
	PhoneNumber    *string `json:"phoneNumber,omitempty"`
	PostalCode     *string `json:"postalCode,omitempty"`
	Region         *string `json:"region,omitempty"`
}

type AddressValidateOperationResponse

type AddressValidateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AddressValidationResponse
}

type AddressValidationResponse

type AddressValidationResponse struct {
	Status             *AddressValidationStatus `json:"status,omitempty"`
	SuggestedAddresses *[]AddressDetails        `json:"suggestedAddresses,omitempty"`
	ValidationMessage  *string                  `json:"validationMessage,omitempty"`
}

type AddressValidationStatus

type AddressValidationStatus string
const (
	AddressValidationStatusInvalid AddressValidationStatus = "Invalid"
	AddressValidationStatusOther   AddressValidationStatus = "Other"
	AddressValidationStatusValid   AddressValidationStatus = "Valid"
)

func (*AddressValidationStatus) UnmarshalJSON

func (s *AddressValidationStatus) UnmarshalJSON(bytes []byte) error

type AgreementType

type AgreementType string
const (
	AgreementTypeEnterpriseAgreement            AgreementType = "EnterpriseAgreement"
	AgreementTypeMicrosoftCustomerAgreement     AgreementType = "MicrosoftCustomerAgreement"
	AgreementTypeMicrosoftOnlineServicesProgram AgreementType = "MicrosoftOnlineServicesProgram"
	AgreementTypeMicrosoftPartnerAgreement      AgreementType = "MicrosoftPartnerAgreement"
	AgreementTypeOther                          AgreementType = "Other"
)

func (*AgreementType) UnmarshalJSON

func (s *AgreementType) UnmarshalJSON(bytes []byte) error

type AzurePlan

type AzurePlan struct {
	ProductId      *string `json:"productId,omitempty"`
	SkuDescription *string `json:"skuDescription,omitempty"`
	SkuId          *string `json:"skuId,omitempty"`
}

type BillingAccount

type BillingAccount struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *BillingAccountProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type BillingAccountClient

type BillingAccountClient struct {
	Client *resourcemanager.Client
}

func NewBillingAccountClientWithBaseURI

func NewBillingAccountClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingAccountClient, error)

func (BillingAccountClient) AddPaymentTerms

AddPaymentTerms ...

func (BillingAccountClient) AddPaymentTermsThenPoll

func (c BillingAccountClient) AddPaymentTermsThenPoll(ctx context.Context, id BillingAccountId, input []PaymentTerm) error

AddPaymentTermsThenPoll performs AddPaymentTerms then polls until it's completed

func (BillingAccountClient) AddressValidate

func (c BillingAccountClient) AddressValidate(ctx context.Context, input AddressDetails) (result AddressValidateOperationResponse, err error)

AddressValidate ...

func (BillingAccountClient) CancelPaymentTerms

func (c BillingAccountClient) CancelPaymentTerms(ctx context.Context, id BillingAccountId, input string) (result CancelPaymentTermsOperationResponse, err error)

CancelPaymentTerms ...

func (BillingAccountClient) CancelPaymentTermsThenPoll

func (c BillingAccountClient) CancelPaymentTermsThenPoll(ctx context.Context, id BillingAccountId, input string) error

CancelPaymentTermsThenPoll performs CancelPaymentTerms then polls until it's completed

func (BillingAccountClient) ConfirmTransition

ConfirmTransition ...

func (BillingAccountClient) Get

Get ...

func (BillingAccountClient) List

List ...

func (BillingAccountClient) ListComplete

ListComplete retrieves all the results into a single object

func (BillingAccountClient) ListCompleteMatchingPredicate

func (c BillingAccountClient) ListCompleteMatchingPredicate(ctx context.Context, options ListOperationOptions, predicate BillingAccountOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingAccountClient) ListInvoiceSectionsByCreateSubscriptionPermission

ListInvoiceSectionsByCreateSubscriptionPermission ...

func (BillingAccountClient) ListInvoiceSectionsByCreateSubscriptionPermissionComplete

ListInvoiceSectionsByCreateSubscriptionPermissionComplete retrieves all the results into a single object

func (BillingAccountClient) ListInvoiceSectionsByCreateSubscriptionPermissionCompleteMatchingPredicate

ListInvoiceSectionsByCreateSubscriptionPermissionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingAccountClient) Update

Update ...

func (BillingAccountClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

func (BillingAccountClient) ValidatePaymentTerms

func (c BillingAccountClient) ValidatePaymentTerms(ctx context.Context, id BillingAccountId, input []PaymentTerm) (result ValidatePaymentTermsOperationResponse, err error)

ValidatePaymentTerms ...

type BillingAccountId

type BillingAccountId struct {
	BillingAccountName string
}

BillingAccountId is a struct representing the Resource ID for a Billing Account

func NewBillingAccountID

func NewBillingAccountID(billingAccountName string) BillingAccountId

NewBillingAccountID returns a new BillingAccountId struct

func ParseBillingAccountID

func ParseBillingAccountID(input string) (*BillingAccountId, error)

ParseBillingAccountID parses 'input' into a BillingAccountId

func ParseBillingAccountIDInsensitively

func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error)

ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input

func (*BillingAccountId) FromParseResult

func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error

func (BillingAccountId) ID

func (id BillingAccountId) ID() string

ID returns the formatted Billing Account ID

func (BillingAccountId) Segments

func (id BillingAccountId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Account ID

func (BillingAccountId) String

func (id BillingAccountId) String() string

String returns a human-readable description of this Billing Account ID

type BillingAccountOperationPredicate

type BillingAccountOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (BillingAccountOperationPredicate) Matches

type BillingAccountPatch

type BillingAccountPatch struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *BillingAccountProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type BillingAccountProperties

type BillingAccountProperties struct {
	AccountStatus            *AccountStatus                  `json:"accountStatus,omitempty"`
	AccountStatusReasonCode  *BillingAccountStatusReasonCode `json:"accountStatusReasonCode,omitempty"`
	AccountSubType           *AccountSubType                 `json:"accountSubType,omitempty"`
	AccountType              *AccountType                    `json:"accountType,omitempty"`
	AgreementType            *AgreementType                  `json:"agreementType,omitempty"`
	BillingRelationshipTypes *[]BillingRelationshipType      `json:"billingRelationshipTypes,omitempty"`
	DisplayName              *string                         `json:"displayName,omitempty"`
	EnrollmentDetails        *EnrollmentDetails              `json:"enrollmentDetails,omitempty"`
	HasNoBillingProfiles     *bool                           `json:"hasNoBillingProfiles,omitempty"`
	HasReadAccess            *bool                           `json:"hasReadAccess,omitempty"`
	NotificationEmailAddress *string                         `json:"notificationEmailAddress,omitempty"`
	PrimaryBillingTenantId   *string                         `json:"primaryBillingTenantId,omitempty"`
	ProvisioningState        *ProvisioningState              `json:"provisioningState,omitempty"`
	Qualifications           *[]string                       `json:"qualifications,omitempty"`
	RegistrationNumber       *RegistrationNumber             `json:"registrationNumber,omitempty"`
	SoldTo                   *AddressDetails                 `json:"soldTo,omitempty"`
	TaxIds                   *[]TaxIdentifier                `json:"taxIds,omitempty"`
}

type BillingAccountStatusReasonCode

type BillingAccountStatusReasonCode string
const (
	BillingAccountStatusReasonCodeExpired             BillingAccountStatusReasonCode = "Expired"
	BillingAccountStatusReasonCodeManuallyTerminated  BillingAccountStatusReasonCode = "ManuallyTerminated"
	BillingAccountStatusReasonCodeOther               BillingAccountStatusReasonCode = "Other"
	BillingAccountStatusReasonCodeTerminateProcessing BillingAccountStatusReasonCode = "TerminateProcessing"
	BillingAccountStatusReasonCodeTransferred         BillingAccountStatusReasonCode = "Transferred"
	BillingAccountStatusReasonCodeUnusualActivity     BillingAccountStatusReasonCode = "UnusualActivity"
)

func (*BillingAccountStatusReasonCode) UnmarshalJSON

func (s *BillingAccountStatusReasonCode) UnmarshalJSON(bytes []byte) error

type BillingProfileStatus

type BillingProfileStatus string
const (
	BillingProfileStatusActive      BillingProfileStatus = "Active"
	BillingProfileStatusDeleted     BillingProfileStatus = "Deleted"
	BillingProfileStatusDisabled    BillingProfileStatus = "Disabled"
	BillingProfileStatusOther       BillingProfileStatus = "Other"
	BillingProfileStatusUnderReview BillingProfileStatus = "UnderReview"
	BillingProfileStatusWarned      BillingProfileStatus = "Warned"
)

func (*BillingProfileStatus) UnmarshalJSON

func (s *BillingProfileStatus) UnmarshalJSON(bytes []byte) error

type BillingProfileStatusReasonCode

type BillingProfileStatusReasonCode string
const (
	BillingProfileStatusReasonCodeOther                BillingProfileStatusReasonCode = "Other"
	BillingProfileStatusReasonCodePastDue              BillingProfileStatusReasonCode = "PastDue"
	BillingProfileStatusReasonCodeSpendingLimitExpired BillingProfileStatusReasonCode = "SpendingLimitExpired"
	BillingProfileStatusReasonCodeSpendingLimitReached BillingProfileStatusReasonCode = "SpendingLimitReached"
	BillingProfileStatusReasonCodeUnusualActivity      BillingProfileStatusReasonCode = "UnusualActivity"
)

func (*BillingProfileStatusReasonCode) UnmarshalJSON

func (s *BillingProfileStatusReasonCode) UnmarshalJSON(bytes []byte) error

type BillingRelationshipType

type BillingRelationshipType string
const (
	BillingRelationshipTypeCSPCustomer      BillingRelationshipType = "CSPCustomer"
	BillingRelationshipTypeCSPPartner       BillingRelationshipType = "CSPPartner"
	BillingRelationshipTypeDirect           BillingRelationshipType = "Direct"
	BillingRelationshipTypeIndirectCustomer BillingRelationshipType = "IndirectCustomer"
	BillingRelationshipTypeIndirectPartner  BillingRelationshipType = "IndirectPartner"
	BillingRelationshipTypeOther            BillingRelationshipType = "Other"
)

func (*BillingRelationshipType) UnmarshalJSON

func (s *BillingRelationshipType) UnmarshalJSON(bytes []byte) error

type CancelPaymentTermsOperationResponse

type CancelPaymentTermsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingAccount
}

type ConfirmTransitionOperationResponse

type ConfirmTransitionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransitionDetails
}

type EnrollmentDetails

type EnrollmentDetails struct {
	BillingCycle             *string                   `json:"billingCycle,omitempty"`
	Channel                  *string                   `json:"channel,omitempty"`
	Cloud                    *string                   `json:"cloud,omitempty"`
	CountryCode              *string                   `json:"countryCode,omitempty"`
	Currency                 *string                   `json:"currency,omitempty"`
	EndDate                  *string                   `json:"endDate,omitempty"`
	ExtendedTermOption       *ExtendedTermOption       `json:"extendedTermOption,omitempty"`
	IndirectRelationshipInfo *IndirectRelationshipInfo `json:"indirectRelationshipInfo,omitempty"`
	InvoiceRecipient         *string                   `json:"invoiceRecipient,omitempty"`
	Language                 *string                   `json:"language,omitempty"`
	MarkupStatus             *MarkupStatus             `json:"markupStatus,omitempty"`
	PoNumber                 *string                   `json:"poNumber,omitempty"`
	StartDate                *string                   `json:"startDate,omitempty"`
	SupportCoverage          *string                   `json:"supportCoverage,omitempty"`
	SupportLevel             *SupportLevel             `json:"supportLevel,omitempty"`
}

func (*EnrollmentDetails) GetEndDateAsTime

func (o *EnrollmentDetails) GetEndDateAsTime() (*time.Time, error)

func (*EnrollmentDetails) GetStartDateAsTime

func (o *EnrollmentDetails) GetStartDateAsTime() (*time.Time, error)

func (*EnrollmentDetails) SetEndDateAsTime

func (o *EnrollmentDetails) SetEndDateAsTime(input time.Time)

func (*EnrollmentDetails) SetStartDateAsTime

func (o *EnrollmentDetails) SetStartDateAsTime(input time.Time)

type ExtendedTermOption

type ExtendedTermOption string
const (
	ExtendedTermOptionOptedNegativeIn  ExtendedTermOption = "Opted-In"
	ExtendedTermOptionOptedNegativeOut ExtendedTermOption = "Opted-Out"
	ExtendedTermOptionOther            ExtendedTermOption = "Other"
)

func (*ExtendedTermOption) UnmarshalJSON

func (s *ExtendedTermOption) UnmarshalJSON(bytes []byte) error

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingAccount
}

type IndirectRelationshipInfo

type IndirectRelationshipInfo struct {
	BillingAccountName *string `json:"billingAccountName,omitempty"`
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	DisplayName        *string `json:"displayName,omitempty"`
}

type InvoiceSectionWithCreateSubPermission

type InvoiceSectionWithCreateSubPermission struct {
	BillingProfileDisplayName      *string                         `json:"billingProfileDisplayName,omitempty"`
	BillingProfileId               *string                         `json:"billingProfileId,omitempty"`
	BillingProfileSpendingLimit    *SpendingLimit                  `json:"billingProfileSpendingLimit,omitempty"`
	BillingProfileStatus           *BillingProfileStatus           `json:"billingProfileStatus,omitempty"`
	BillingProfileStatusReasonCode *BillingProfileStatusReasonCode `json:"billingProfileStatusReasonCode,omitempty"`
	BillingProfileSystemId         *string                         `json:"billingProfileSystemId,omitempty"`
	EnabledAzurePlans              *[]AzurePlan                    `json:"enabledAzurePlans,omitempty"`
	InvoiceSectionDisplayName      *string                         `json:"invoiceSectionDisplayName,omitempty"`
	InvoiceSectionId               *string                         `json:"invoiceSectionId,omitempty"`
	InvoiceSectionSystemId         *string                         `json:"invoiceSectionSystemId,omitempty"`
}

type InvoiceSectionWithCreateSubPermissionOperationPredicate

type InvoiceSectionWithCreateSubPermissionOperationPredicate struct {
	BillingProfileDisplayName *string
	BillingProfileId          *string
	BillingProfileSystemId    *string
	InvoiceSectionDisplayName *string
	InvoiceSectionId          *string
	InvoiceSectionSystemId    *string
}

func (InvoiceSectionWithCreateSubPermissionOperationPredicate) Matches

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingAccount
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListInvoiceSectionsByCreateSubscriptionPermissionCompleteResult

type ListInvoiceSectionsByCreateSubscriptionPermissionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []InvoiceSectionWithCreateSubPermission
}

type ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager added in v0.20240628.1153531

type ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions

type ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions struct {
	Filter *string
}

func (ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions) ToHeaders

func (ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions) ToOData

func (ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions) ToQuery

type ListInvoiceSectionsByCreateSubscriptionPermissionOperationResponse

type ListInvoiceSectionsByCreateSubscriptionPermissionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]InvoiceSectionWithCreateSubPermission
}

type ListOperationOptions

type ListOperationOptions struct {
	Expand                           *string
	Filter                           *string
	IncludeAll                       *bool
	IncludeAllWithoutBillingProfiles *bool
	IncludeDeleted                   *bool
	IncludePendingAgreement          *bool
	IncludeResellee                  *bool
	LegalOwnerOID                    *string
	LegalOwnerTID                    *string
	Search                           *string
	Skip                             *int64
	Top                              *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingAccount
}

type MarkupStatus

type MarkupStatus string
const (
	MarkupStatusDisabled  MarkupStatus = "Disabled"
	MarkupStatusLocked    MarkupStatus = "Locked"
	MarkupStatusOther     MarkupStatus = "Other"
	MarkupStatusPreview   MarkupStatus = "Preview"
	MarkupStatusPublished MarkupStatus = "Published"
)

func (*MarkupStatus) UnmarshalJSON

func (s *MarkupStatus) UnmarshalJSON(bytes []byte) error

type PaymentTerm

type PaymentTerm struct {
	EndDate   *string `json:"endDate,omitempty"`
	IsDefault *bool   `json:"isDefault,omitempty"`
	StartDate *string `json:"startDate,omitempty"`
	Term      *string `json:"term,omitempty"`
}

func (*PaymentTerm) GetEndDateAsTime

func (o *PaymentTerm) GetEndDateAsTime() (*time.Time, error)

func (*PaymentTerm) GetStartDateAsTime

func (o *PaymentTerm) GetStartDateAsTime() (*time.Time, error)

func (*PaymentTerm) SetEndDateAsTime

func (o *PaymentTerm) SetEndDateAsTime(input time.Time)

func (*PaymentTerm) SetStartDateAsTime

func (o *PaymentTerm) SetStartDateAsTime(input time.Time)

type PaymentTermsEligibilityCode

type PaymentTermsEligibilityCode string
const (
	PaymentTermsEligibilityCodeBillingAccountNotFound         PaymentTermsEligibilityCode = "BillingAccountNotFound"
	PaymentTermsEligibilityCodeInactiveBillingAccount         PaymentTermsEligibilityCode = "InactiveBillingAccount"
	PaymentTermsEligibilityCodeIneligibleBillingAccountStatus PaymentTermsEligibilityCode = "IneligibleBillingAccountStatus"
	PaymentTermsEligibilityCodeInvalidBillingAccountType      PaymentTermsEligibilityCode = "InvalidBillingAccountType"
	PaymentTermsEligibilityCodeInvalidDateFormat              PaymentTermsEligibilityCode = "InvalidDateFormat"
	PaymentTermsEligibilityCodeInvalidDateRange               PaymentTermsEligibilityCode = "InvalidDateRange"
	PaymentTermsEligibilityCodeInvalidTerms                   PaymentTermsEligibilityCode = "InvalidTerms"
	PaymentTermsEligibilityCodeNullOrEmptyPaymentTerms        PaymentTermsEligibilityCode = "NullOrEmptyPaymentTerms"
	PaymentTermsEligibilityCodeOther                          PaymentTermsEligibilityCode = "Other"
	PaymentTermsEligibilityCodeOverlappingPaymentTerms        PaymentTermsEligibilityCode = "OverlappingPaymentTerms"
)

func (*PaymentTermsEligibilityCode) UnmarshalJSON

func (s *PaymentTermsEligibilityCode) UnmarshalJSON(bytes []byte) error

type PaymentTermsEligibilityDetail

type PaymentTermsEligibilityDetail struct {
	Code    *PaymentTermsEligibilityCode `json:"code,omitempty"`
	Message *string                      `json:"message,omitempty"`
}

type PaymentTermsEligibilityResult

type PaymentTermsEligibilityResult struct {
	EligibilityDetails *[]PaymentTermsEligibilityDetail `json:"eligibilityDetails,omitempty"`
	EligibilityStatus  *PaymentTermsEligibilityStatus   `json:"eligibilityStatus,omitempty"`
}

type PaymentTermsEligibilityStatus

type PaymentTermsEligibilityStatus string
const (
	PaymentTermsEligibilityStatusInvalid PaymentTermsEligibilityStatus = "Invalid"
	PaymentTermsEligibilityStatusOther   PaymentTermsEligibilityStatus = "Other"
	PaymentTermsEligibilityStatusValid   PaymentTermsEligibilityStatus = "Valid"
)

func (*PaymentTermsEligibilityStatus) UnmarshalJSON

func (s *PaymentTermsEligibilityStatus) UnmarshalJSON(bytes []byte) error

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNew          ProvisioningState = "New"
	ProvisioningStatePending      ProvisioningState = "Pending"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type RegistrationNumber

type RegistrationNumber struct {
	Id       *string   `json:"id,omitempty"`
	Required *bool     `json:"required,omitempty"`
	Type     *[]string `json:"type,omitempty"`
}

type SpendingLimit

type SpendingLimit string
const (
	SpendingLimitOff SpendingLimit = "Off"
	SpendingLimitOn  SpendingLimit = "On"
)

func (*SpendingLimit) UnmarshalJSON

func (s *SpendingLimit) UnmarshalJSON(bytes []byte) error

type SupportLevel

type SupportLevel string
const (
	SupportLevelDeveloper         SupportLevel = "Developer"
	SupportLevelOther             SupportLevel = "Other"
	SupportLevelProNegativeDirect SupportLevel = "Pro-Direct"
	SupportLevelStandard          SupportLevel = "Standard"
)

func (*SupportLevel) UnmarshalJSON

func (s *SupportLevel) UnmarshalJSON(bytes []byte) error

type TaxIdentifier

type TaxIdentifier struct {
	Country *string              `json:"country,omitempty"`
	Id      *string              `json:"id,omitempty"`
	Scope   *string              `json:"scope,omitempty"`
	Status  *TaxIdentifierStatus `json:"status,omitempty"`
	Type    *TaxIdentifierType   `json:"type,omitempty"`
}

type TaxIdentifierStatus

type TaxIdentifierStatus string
const (
	TaxIdentifierStatusInvalid TaxIdentifierStatus = "Invalid"
	TaxIdentifierStatusOther   TaxIdentifierStatus = "Other"
	TaxIdentifierStatusValid   TaxIdentifierStatus = "Valid"
)

func (*TaxIdentifierStatus) UnmarshalJSON

func (s *TaxIdentifierStatus) UnmarshalJSON(bytes []byte) error

type TaxIdentifierType

type TaxIdentifierType string
const (
	TaxIdentifierTypeBrazilCcmId                  TaxIdentifierType = "BrazilCcmId"
	TaxIdentifierTypeBrazilCnpjId                 TaxIdentifierType = "BrazilCnpjId"
	TaxIdentifierTypeBrazilCpfId                  TaxIdentifierType = "BrazilCpfId"
	TaxIdentifierTypeCanadianFederalExempt        TaxIdentifierType = "CanadianFederalExempt"
	TaxIdentifierTypeCanadianProvinceExempt       TaxIdentifierType = "CanadianProvinceExempt"
	TaxIdentifierTypeExternalTaxation             TaxIdentifierType = "ExternalTaxation"
	TaxIdentifierTypeIndiaFederalServiceTaxId     TaxIdentifierType = "IndiaFederalServiceTaxId"
	TaxIdentifierTypeIndiaFederalTanId            TaxIdentifierType = "IndiaFederalTanId"
	TaxIdentifierTypeIndiaPanId                   TaxIdentifierType = "IndiaPanId"
	TaxIdentifierTypeIndiaStateCstId              TaxIdentifierType = "IndiaStateCstId"
	TaxIdentifierTypeIndiaStateGstINId            TaxIdentifierType = "IndiaStateGstINId"
	TaxIdentifierTypeIndiaStateVatId              TaxIdentifierType = "IndiaStateVatId"
	TaxIdentifierTypeIntlExempt                   TaxIdentifierType = "IntlExempt"
	TaxIdentifierTypeLoveCode                     TaxIdentifierType = "LoveCode"
	TaxIdentifierTypeMobileBarCode                TaxIdentifierType = "MobileBarCode"
	TaxIdentifierTypeNationalIdentificationNumber TaxIdentifierType = "NationalIdentificationNumber"
	TaxIdentifierTypeOther                        TaxIdentifierType = "Other"
	TaxIdentifierTypePublicSectorId               TaxIdentifierType = "PublicSectorId"
	TaxIdentifierTypeUSExempt                     TaxIdentifierType = "USExempt"
	TaxIdentifierTypeVatId                        TaxIdentifierType = "VatId"
)

func (*TaxIdentifierType) UnmarshalJSON

func (s *TaxIdentifierType) UnmarshalJSON(bytes []byte) error

type TransitionDetails

type TransitionDetails struct {
	AnniversaryDay *int64  `json:"anniversaryDay,omitempty"`
	TransitionDate *string `json:"transitionDate,omitempty"`
}

func (*TransitionDetails) GetTransitionDateAsTime

func (o *TransitionDetails) GetTransitionDateAsTime() (*time.Time, error)

func (*TransitionDetails) SetTransitionDateAsTime

func (o *TransitionDetails) SetTransitionDateAsTime(input time.Time)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingAccount
}

type ValidatePaymentTermsOperationResponse

type ValidatePaymentTermsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PaymentTermsEligibilityResult
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL