accounts

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, oauth2 *clientcredentials.Config, overrideSvr ...string) (*clients.Client[Account], error)

Types

type Account

type Account struct {
	ID          string           `json:"accountID"`
	Advertiser  *AccountCustomer `json:"advertiser,omitempty" bson:"-"`
	BillTo      *AccountCustomer `json:"billTo,omitempty" bson:"-"`
	Buyer       *AccountCustomer `json:"buyer,omitempty" bson:"-"`
	CreatedAt   time.Time        `json:"createdAt"`
	ExternalIDs []string         `json:"externalIDs,omitempty"`
	ThirdParty  *AccountCustomer `json:"thirdParty,omitempty" bson:"-"`
	UpdatedAt   time.Time        `json:"updatedAt"`
}

type AccountCustomer

type AccountCustomer struct {
	ID          string   `json:"customerID"`
	ExternalIDs []string `json:"externalIDs,omitempty"`
	Name        string   `json:"name"`
}

Jump to

Keyboard shortcuts

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